Skip to content

Commit

Permalink
Added google calendar feature
Browse files Browse the repository at this point in the history
  • Loading branch information
mibrahim0499 committed Jan 20, 2024
1 parent 7d5de9f commit fe9c001
Show file tree
Hide file tree
Showing 3,621 changed files with 253,768 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
14 changes: 14 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Dockerfile
.dockerignore
**/node_modules
npm-debug.log
README.md
**/.next
.git
.github
.turbo
**/.env
landing-page
docs
packages/scripts
wordpress
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 2
19 changes: 19 additions & 0 deletions .env.dev.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Make sure to change this to your own random string of 32 characters (https://docs.typebot.io/self-hosting/docker#2-add-the-required-configuration)
ENCRYPTION_SECRET=H+KbL/OFrqbEuDy/1zX8bsPG+spXri3S

DATABASE_URL=postgresql://postgres:typebot@localhost:5432/typebot

NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_VIEWER_URL=http://localhost:3001

GITHUB_CLIENT_ID=534b549dd17709a743a2
GITHUB_CLIENT_SECRET=7adb03507504fb1a54422f6c3c697277cfd000a9

S3_ACCESS_KEY=minio
S3_SECRET_KEY=minio123
S3_BUCKET=typebot
S3_PORT=9000
S3_ENDPOINT=localhost
S3_SSL=false

# For more configuration options check out: https://docs.typebot.io/self-hosting/configuration
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Make sure to change this to your own random string of 32 characters (https://docs.typebot.io/self-hosting/docker#2-add-the-required-configuration)
ENCRYPTION_SECRET=do+UspMmB/rewbX2K/rskFmtgGSSZ8Ta

DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot

NEXTAUTH_URL=
NEXT_PUBLIC_VIEWER_URL=

ADMIN_EMAIL=
# For more configuration options check out: https://docs.typebot.io/self-hosting/configuration
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: baptisteArno
Binary file added .github/images/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/logo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/star-project.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/videos/demo.mp4
Binary file not shown.
16 changes: 16 additions & 0 deletions .github/workflows/auto-add-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Automatically add issues to projects when labeled

on:
issues:
types:
- labeled

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/users/baptisteArno/projects/4
github-token: ${{ secrets.PERSONAL_TOKEN }}
24 changes: 24 additions & 0 deletions .github/workflows/auto-create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
tags:
- 'v*'

name: Create Release

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Extract body from changelog
run: |
NEW_VERSION=$(echo '${{ github.ref }}' | sed 's/refs\/tags\/v//')
echo $NEW_VERSION
sed -n -e "/## ${NEW_VERSION}/,/<a/ p" ./CHANGELOG.md | sed -e '1,2d' | sed -e '$d' | sed -e '$d' > extractedBody.md
- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
bodyFile: 'extractedBody.md'
41 changes: 41 additions & 0 deletions .github/workflows/auto-create-tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Create Tag

on:
push:
branches:
- main

jobs:
create-tag:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: '${{ secrets.PERSONAL_TOKEN }}'
steps:
- uses: actions/checkout@v2
- name: 'Create main tag'
id: 'main'
uses: butlerlogic/[email protected]
with:
tag_prefix: 'v'

- name: 'Create latest tag'
if: ${{ contains(steps.main.outputs.tagname, 'v') }}
uses: EndBug/latest-tag@latest

- name: 'Create js tag'
uses: butlerlogic/[email protected]
with:
root: '/packages/embeds/js'
tag_prefix: 'js-v'

- name: 'Create react tag'
uses: butlerlogic/[email protected]
with:
root: '/packages/embeds/react'
tag_prefix: 'react-v'

- name: 'Create nextjs tag'
uses: butlerlogic/[email protected]
with:
root: '/packages/embeds/nextjs'
tag_prefix: 'nextjs-v'
34 changes: 34 additions & 0 deletions .github/workflows/check-and-report-chats-usage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check and report chats usage

on:
schedule:
- cron: '0 * * * *'

jobs:
send:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/scripts
env:
DATABASE_URL: '${{ secrets.DATABASE_URL }}'
ENCRYPTION_SECRET: '${{ secrets.ENCRYPTION_SECRET }}'
NEXTAUTH_URL: 'http://localhost:3000'
NEXT_PUBLIC_VIEWER_URL: 'http://localhost:3001'
TELEMETRY_WEBHOOK_URL: '${{ secrets.TELEMETRY_WEBHOOK_URL }}'
TELEMETRY_WEBHOOK_BEARER_TOKEN: '${{ secrets.TELEMETRY_WEBHOOK_BEARER_TOKEN }}'
SMTP_USERNAME: '${{ secrets.SMTP_USERNAME }}'
SMTP_PASSWORD: '${{ secrets.SMTP_PASSWORD }}'
SMTP_HOST: '${{ secrets.SMTP_HOST }}'
SMTP_PORT: '${{ secrets.SMTP_PORT }}'
NEXT_PUBLIC_SMTP_FROM: '${{ secrets.NEXT_PUBLIC_SMTP_FROM }}'
STRIPE_SECRET_KEY: '${{ secrets.STRIPE_SECRET_KEY }}'
STRIPE_STARTER_PRICE_ID: '${{ secrets.STRIPE_STARTER_PRICE_ID }}'
STRIPE_STARTER_CHATS_PRICE_ID: '${{ secrets.STRIPE_STARTER_CHATS_PRICE_ID }}'
STRIPE_PRO_PRICE_ID: '${{ secrets.STRIPE_PRO_PRICE_ID }}'
STRIPE_PRO_CHATS_PRICE_ID: '${{ secrets.STRIPE_PRO_CHATS_PRICE_ID }}'
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
- run: pnpm i --frozen-lockfile
- run: pnpm turbo run checkAndReportChatsUsage
22 changes: 22 additions & 0 deletions .github/workflows/clean-database.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Daily database cleanup

on:
schedule:
- cron: '0 6 * * *'

jobs:
clean:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/scripts
env:
DATABASE_URL: '${{ secrets.DATABASE_URL }}'
ENCRYPTION_SECRET: '${{ secrets.ENCRYPTION_SECRET }}'
NEXTAUTH_URL: 'http://localhost:3000'
NEXT_PUBLIC_VIEWER_URL: 'http://localhost:3001'
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
- run: pnpm i --frozen-lockfile
- run: pnpm turbo run db:cleanDatabase
23 changes: 23 additions & 0 deletions .github/workflows/publish-lib-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish typebot-js to NPM

on:
push:
tags:
- 'js-lib-v*'

jobs:
publish:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
- run: pnpm i --frozen-lockfile
- run: pnpm turbo build --filter=typebot-js...
- name: Set NPM_TOKEN in config
run: pnpm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
working-directory: ./packages/typebot-js
- name: Publish
run: pnpm publish --no-git-checks --access public
working-directory: ./packages/typebot-js
18 changes: 18 additions & 0 deletions .github/workflows/publish-typebot-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish @typebot.io/js package to NPM

on:
push:
tags:
- 'js-v*'

jobs:
publish:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
- run: pnpm i --frozen-lockfile
- run: pnpm turbo build [email protected]/js...
- run: cd packages/embeds/js && pnpm publish --no-git-checks --access public
18 changes: 18 additions & 0 deletions .github/workflows/publish-typebot-nextjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish @typebot.io/nextjs package to NPM

on:
push:
tags:
- 'nextjs-v*'

jobs:
publish:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
- run: pnpm i --frozen-lockfile
- run: pnpm turbo build [email protected]/nextjs...
- run: cd packages/embeds/nextjs && pnpm publish --no-git-checks --access public
18 changes: 18 additions & 0 deletions .github/workflows/publish-typebot-react.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish @typebot.io/react package to NPM

on:
push:
tags:
- 'react-v*'

jobs:
publish:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
- run: pnpm i --frozen-lockfile
- run: pnpm turbo build [email protected]/react...
- run: cd packages/embeds/react && pnpm publish --no-git-checks --access public
Loading

0 comments on commit fe9c001

Please sign in to comment.