-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from wego-technologies/latest
Latest
- Loading branch information
Showing
414 changed files
with
27,054 additions
and
12,169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Set this value to 'agree' to accept our license: | ||
# Set this value to 'agree' to accept our license: | ||
# LICENSE: https://github.com/calendso/calendso/blob/main/LICENSE | ||
# | ||
# Summary of terms: | ||
|
@@ -8,14 +8,28 @@ | |
NEXT_PUBLIC_LICENSE_CONSENT='' | ||
|
||
# DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>/<db-name>' | ||
DATABASE_URL="postgresql://postgres:@localhost:5432/calendso?schema=public" | ||
DATABASE_URL="postgresql://postgres:@localhost:5450/calendso" | ||
|
||
GOOGLE_API_CREDENTIALS='secret' | ||
# Needed to enable Google Calendar integrationa and Login with Google | ||
# @see https://github.com/calendso/calendso#obtaining-the-google-api-credentials | ||
GOOGLE_API_CREDENTIALS='{}' | ||
|
||
# To enable Login with Google you need to: | ||
# 1. Set `GOOGLE_API_CREDENTIALS` above | ||
# 2. Set `GOOGLE_LOGIN_ENABLED` to `true` | ||
GOOGLE_LOGIN_ENABLED=false | ||
|
||
BASE_URL='http://localhost:3000' | ||
NEXT_PUBLIC_APP_URL='http://localhost:3000' | ||
|
||
JWT_SECRET='secret' | ||
# This is used so we can bypass emails in auth flows for E2E testing | ||
PLAYWRIGHT_SECRET= | ||
|
||
# To enable SAML login, set both these variables | ||
# @see https://github.com/calendso/calendso/tree/main/ee#setting-up-saml-login | ||
# SAML_DATABASE_URL="postgresql://postgres:@localhost:5450/cal-saml" | ||
# SAML_ADMINS='[email protected]' | ||
|
||
# @see: https://github.com/calendso/calendso/issues/263 | ||
# Required for Vercel hosting - set NEXTAUTH_URL to equal your BASE_URL | ||
|
@@ -34,6 +48,7 @@ ZOOM_CLIENT_SECRET= | |
|
||
#Used for the Daily integration | ||
DAILY_API_KEY= | ||
DAILY_SCALE_PLAN='' | ||
|
||
# E-mail settings | ||
|
||
|
@@ -50,16 +65,24 @@ EMAIL_SERVER_PORT=587 | |
EMAIL_SERVER_USER='<office365_emailAddress>' | ||
# Keep in mind that if you have 2FA enabled, you will need to provision an App Password. | ||
EMAIL_SERVER_PASSWORD='<office365_password>' | ||
# The following configuration for Gmail has been verified to work. | ||
# EMAIL_SERVER_HOST='smtp.gmail.com' | ||
# EMAIL_SERVER_PORT=465 | ||
# EMAIL_SERVER_USER='<gmail_emailAddress>' | ||
## You will need to provision an App Password. | ||
## @see https://support.google.com/accounts/answer/185833 | ||
# EMAIL_SERVER_PASSWORD='<gmail_app_password>' | ||
|
||
# ApiKey for cronjobs | ||
CRON_API_KEY='0cc0e6c35519bba620c9360cfe3e68d0' | ||
|
||
# Stripe Config | ||
NEXT_PUBLIC_STRIPE_PUBLIC_KEY= # pk_test_... | ||
STRIPE_PRIVATE_KEY= # sk_test_... | ||
STRIPE_CLIENT_ID= # ca_... | ||
STRIPE_WEBHOOK_SECRET= # whsec_... | ||
PAYMENT_FEE_PERCENTAGE=0.005 # Take 0.5% commission | ||
PAYMENT_FEE_FIXED=10 # Take 10 additional cents commission | ||
STRIPE_PRIVATE_KEY= # sk_test_... | ||
STRIPE_CLIENT_ID= # ca_... | ||
STRIPE_WEBHOOK_SECRET= # whsec_... | ||
PAYMENT_FEE_PERCENTAGE=0.005 # Take 0.5% commission | ||
PAYMENT_FEE_FIXED=10 # Take 10 additional cents commission | ||
|
||
# Application Key for symmetric encryption and decryption | ||
# must be 32 bytes for AES256 encryption algorithm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
prisma/zod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## What does this PR do? | ||
|
||
<!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> | ||
|
||
Fixes # (issue) | ||
|
||
## Type of change | ||
|
||
<!-- Please delete options that are not relevant. --> | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] This change requires a documentation update | ||
|
||
## How should this be tested? | ||
|
||
<!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> | ||
|
||
- [ ] Test A | ||
- [ ] Test B | ||
|
||
## Checklist: | ||
|
||
- [ ] My code follows the style guidelines of this project | ||
- [ ] I have performed a self-review of my own code and corrected any misspellings | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] My changes generate no new warnings | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] New and existing unit tests pass locally with my changes |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Check types | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
types: | ||
name: Check types | ||
|
||
strategy: | ||
matrix: | ||
node: ["14.x"] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Use Node ${{ matrix.node }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Install deps | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- run: yarn check-changed-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
uses: actions/checkout@v2 | ||
|
||
- name: crowdin action | ||
uses: crowdin/[email protected].0 | ||
uses: crowdin/[email protected].2 | ||
with: | ||
upload_translations: true | ||
download_translations: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
name: E2E test | ||
on: [push] | ||
on: | ||
pull_request_target: | ||
branches: | ||
- main | ||
jobs: | ||
test: | ||
timeout-minutes: 10 | ||
name: ${{ matrix.node }} and ${{ matrix.os }} | ||
|
||
env: | ||
DATABASE_URL: postgresql://postgres:@localhost:5432/calendso | ||
NODE_ENV: test | ||
BASE_URL: http://localhost:3000 | ||
JWT_SECRET: secret | ||
# GOOGLE_API_CREDENTIALS: ${{ secrets.CI_GOOGLE_API_CREDENTIALS }} | ||
PLAYWRIGHT_SECRET: ${{ secrets.CI_PLAYWRIGHT_SECRET }} | ||
GOOGLE_API_CREDENTIALS: ${{ secrets.CI_GOOGLE_API_CREDENTIALS }} | ||
GOOGLE_LOGIN_ENABLED: true | ||
# CRON_API_KEY: xxx | ||
# CALENDSO_ENCRYPTION_KEY: xxx | ||
CALENDSO_ENCRYPTION_KEY: ${{ secrets.CI_CALENDSO_ENCRYPTION_KEY }} | ||
NEXT_PUBLIC_STRIPE_PUBLIC_KEY: ${{ secrets.CI_NEXT_PUBLIC_STRIPE_PUBLIC_KEY }} | ||
STRIPE_PRIVATE_KEY: ${{ secrets.CI_STRIPE_PRIVATE_KEY }} | ||
STRIPE_CLIENT_ID: ${{ secrets.CI_STRIPE_CLIENT_ID }} | ||
STRIPE_WEBHOOK_SECRET: ${{ secrets.CI_STRIPE_WEBHOOK_SECRET }} | ||
PAYMENT_FEE_PERCENTAGE: 0.005 | ||
PAYMENT_FEE_FIXED: 10 | ||
SAML_DATABASE_URL: postgresql://postgres:@localhost:5432/calendso | ||
SAML_ADMINS: [email protected] | ||
# NEXTAUTH_URL: xxx | ||
# EMAIL_FROM: xxx | ||
# EMAIL_SERVER_HOST: xxx | ||
|
@@ -39,6 +50,9 @@ jobs: | |
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 2 | ||
|
||
- name: Use Node ${{ matrix.node }} | ||
uses: actions/setup-node@v1 | ||
|
@@ -51,15 +65,30 @@ jobs: | |
uses: actions/cache@v2 | ||
with: | ||
path: ${{ github.workspace }}/.next/cache | ||
key: ${{ runner.os }}-nextjs | ||
# Generate a new cache whenever packages or source files change. | ||
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} | ||
# If source files changed but packages didn't, rebuild from a prior cache. | ||
restore-keys: | | ||
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}- | ||
- run: yarn test | ||
- run: yarn prisma migrate deploy | ||
- run: yarn db-seed | ||
- run: yarn test | ||
- run: yarn build | ||
- run: yarn start & | ||
- run: npx wait-port 3000 --timeout 10000 | ||
- run: yarn playwright install-deps | ||
|
||
- name: Cache playwright binaries | ||
uses: actions/cache@v2 | ||
id: playwright-cache | ||
with: | ||
path: | | ||
~/Library/Caches/ms-playwright | ||
~/.cache/ms-playwright | ||
**/node_modules/playwright | ||
key: cache-playwright-${{ hashFiles('**/yarn.lock') }} | ||
- name: Install playwright deps | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' | ||
run: yarn playwright install --with-deps | ||
|
||
- run: yarn test-playwright | ||
|
||
- name: Upload videos | ||
|
@@ -70,3 +99,4 @@ jobs: | |
path: | | ||
playwright/screenshots | ||
playwright/videos | ||
playwright/results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
name: Lint | ||
on: [push] | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{ | ||
"recommendations": [ | ||
"DavidAnson.vscode-markdownlint", // markdown linting | ||
"yzhang.markdown-all-in-one", // nicer markdown support | ||
"esbenp.prettier-vscode", // prettier plugin | ||
"dbaeumer.vscode-eslint", // eslint plugin | ||
"bradlc.vscode-tailwindcss", // hinting / autocompletion for tailwind | ||
"heybourn.headwind", // automatically sort tailwind classes in predictable order, kinda like "prettier for tailwind", | ||
"ban.spellright", // Spell check for docs | ||
"stripe.vscode-stripe" // stripe VSCode extension | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.