Skip to content

Commit

Permalink
Fix eslint errors ant styling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kaje94 committed Dec 24, 2023
1 parent 086715a commit a6c575b
Show file tree
Hide file tree
Showing 10 changed files with 272 additions and 275 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
// fix following
// "@typescript-eslint/no-unused-vars": [1, { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
// "@typescript-eslint/consistent-type-imports": "error",

},
"settings": { "import/resolver": { "typescript": true, "node": true } }
}
20 changes: 9 additions & 11 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ In the interest of fostering an open and welcoming environment, we pledge to mak

We expect all contributors and participants to:

- Be respectful and considerate of others.
- Refrain from any form of harassment, discrimination, or unwelcome behavior.
- Communicate with empathy and kindness.
- Be collaborative and inclusive.
- Be respectful and considerate of others.
- Refrain from any form of harassment, discrimination, or unwelcome behavior.
- Communicate with empathy and kindness.
- Be collaborative and inclusive.

## Unacceptable Behavior

Unacceptable behaviors include, but are not limited to:

- Harassment or discrimination based on personal attributes.
- Offensive comments or jokes related to personal attributes.
- Any form of unwelcome or inappropriate advances.
- Intimidation or trolling.
- Disrespectful or disruptive comments.
- Harassment or discrimination based on personal attributes.
- Offensive comments or jokes related to personal attributes.
- Any form of unwelcome or inappropriate advances.
- Intimidation or trolling.
- Disrespectful or disruptive comments.

## Reporting Violations

Expand All @@ -40,5 +40,3 @@ Violations of this Code of Conduct may result in corrective actions, including b
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).

Thank you for contributing to a positive and inclusive community!


15 changes: 7 additions & 8 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

Certainly! Here's a basic template for a SECURITY.md file:

markdown
Copy code

# Security Policy

## Reporting a Vulnerability
Expand All @@ -11,21 +11,20 @@ If you believe you have found a security vulnerability, please report it to us a

To report a security issue, email us directly at [a.kajendran@gmail.com](mailto:a.kajendran@gmail.com). Please include the following details in your report:

- Description of the issue, including steps to reproduce.
- Version of the project where the issue was discovered.
- Your name and contact information (optional).
- Description of the issue, including steps to reproduce.
- Version of the project where the issue was discovered.
- Your name and contact information (optional).

We will respond to security incidents as quickly as possible and keep you informed of our progress.

## Responsible Disclosure

We encourage responsible disclosure of security vulnerabilities. If you discover a vulnerability, we kindly request that you:

- Notify us privately, providing sufficient details for us to reproduce and address the issue.
- Avoid disclosing the issue publicly until we have had a chance to address it.
- Do not exploit the vulnerability for malicious purposes.
- Notify us privately, providing sufficient details for us to reproduce and address the issue.
- Avoid disclosing the issue publicly until we have had a chance to address it.
- Do not exploit the vulnerability for malicious purposes.

We appreciate your help in keeping our project secure.

Thank you!

70 changes: 35 additions & 35 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
---
name: Checks
on:
- push
- workflow_dispatch
- push
- workflow_dispatch
jobs:
checks:
runs-on: ubuntu-latest
env:
SKIP_ENV_VALIDATION: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.9.0
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Run EsLint
run: pnpm run lint
- name: Run Tsc
run: pnpm run tsc
checks:
runs-on: ubuntu-latest
env:
SKIP_ENV_VALIDATION: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.9.0
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Run EsLint
run: pnpm run lint
- name: Run Tsc
run: pnpm run tsc
110 changes: 55 additions & 55 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
name: Dev Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DEV_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DEV_PROJECT_ID }}
on:
workflow_dispatch:
workflow_dispatch:
jobs:
deployment:
runs-on: ubuntu-latest
timeout-minutes: 10
environment: development
env:
AUTH0_SECRET: ${{secrets.DEV_ENV_AUTH0_SECRET}}
AUTH0_BASE_URL: ${{secrets.DEV_ENV_AUTH0_BASE_URL}}
AUTH0_ISSUER_BASE_URL: ${{secrets.DEV_ENV_AUTH0_ISSUER_BASE_URL}}
AUTH0_CLIENT_ID: ${{secrets.DEV_ENV_AUTH0_CLIENT_ID}}
AUTH0_CLIENT_SECRET: ${{secrets.DEV_ENV_AUTH0_CLIENT_SECRET}}
AUTH0_AUDIENCE: ${{secrets.DEV_ENV_AUTH0_AUDIENCE}}
AUTH0_SCOPE: "openid profile email offline_access"
API_BASE_URL: ${{secrets.DEV_ENV_API_BASE_URL}}
NEXT_PUBLIC_IMAGE_CDN_BASE: ${{secrets.DEV_ENV_NEXT_PUBLIC_IMAGE_CDN_BASE}}
NEXT_PUBLIC_SUPPORT_EMAIL: "support@targabay.com"
NEXT_CONTACT_US_FORM_KEY: ${{secrets.DEV_ENV_NEXT_CONTACT_US_FORM_KEY}}
NEXT_PUBLIC_RECAPTCHA_SITE_KEY: ${{secrets.DEV_ENV_NEXT_PUBLIC_RECAPTCHA_SITE_KEY}}
RECAPTCHA_SITE_SECRET: ${{secrets.DEV_ENV_RECAPTCHA_SITE_SECRET}}
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Delete robots.prod.txt in dev env
run: rm public/robots.prod.txt
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.9.0
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Vercel CLI
run: pnpm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --force --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
deployment:
runs-on: ubuntu-latest
timeout-minutes: 10
environment: development
env:
AUTH0_SECRET: ${{secrets.DEV_ENV_AUTH0_SECRET}}
AUTH0_BASE_URL: ${{secrets.DEV_ENV_AUTH0_BASE_URL}}
AUTH0_ISSUER_BASE_URL: ${{secrets.DEV_ENV_AUTH0_ISSUER_BASE_URL}}
AUTH0_CLIENT_ID: ${{secrets.DEV_ENV_AUTH0_CLIENT_ID}}
AUTH0_CLIENT_SECRET: ${{secrets.DEV_ENV_AUTH0_CLIENT_SECRET}}
AUTH0_AUDIENCE: ${{secrets.DEV_ENV_AUTH0_AUDIENCE}}
AUTH0_SCOPE: "openid profile email offline_access"
API_BASE_URL: ${{secrets.DEV_ENV_API_BASE_URL}}
NEXT_PUBLIC_IMAGE_CDN_BASE: ${{secrets.DEV_ENV_NEXT_PUBLIC_IMAGE_CDN_BASE}}
NEXT_PUBLIC_SUPPORT_EMAIL: "support@targabay.com"
NEXT_CONTACT_US_FORM_KEY: ${{secrets.DEV_ENV_NEXT_CONTACT_US_FORM_KEY}}
NEXT_PUBLIC_RECAPTCHA_SITE_KEY: ${{secrets.DEV_ENV_NEXT_PUBLIC_RECAPTCHA_SITE_KEY}}
RECAPTCHA_SITE_SECRET: ${{secrets.DEV_ENV_RECAPTCHA_SITE_SECRET}}
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Delete robots.prod.txt in dev env
run: rm public/robots.prod.txt
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.9.0
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Vercel CLI
run: pnpm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --force --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
114 changes: 57 additions & 57 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,60 +7,60 @@ on:
types: [created]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
environment: production
env:
AUTH0_SECRET: ${{secrets.PROD_ENV_AUTH0_SECRET}}
AUTH0_BASE_URL: ${{secrets.PROD_ENV_AUTH0_BASE_URL}}
AUTH0_ISSUER_BASE_URL: ${{secrets.PROD_ENV_AUTH0_ISSUER_BASE_URL}}
AUTH0_CLIENT_ID: ${{secrets.PROD_ENV_AUTH0_CLIENT_ID}}
AUTH0_CLIENT_SECRET: ${{secrets.PROD_ENV_AUTH0_CLIENT_SECRET}}
AUTH0_AUDIENCE: ${{secrets.PROD_ENV_AUTH0_AUDIENCE}}
AUTH0_SCOPE: "openid profile email offline_access"
API_BASE_URL: ${{secrets.PROD_ENV_API_BASE_URL}}
NEXT_PUBLIC_IMAGE_CDN_BASE: ${{secrets.PROD_ENV_NEXT_PUBLIC_IMAGE_CDN_BASE}}
NEXT_PUBLIC_SUPPORT_EMAIL: "support@targabay.com"
NEXT_CONTACT_US_FORM_KEY: ${{secrets.PROD_ENV_NEXT_CONTACT_US_FORM_KEY}}
NEXT_PUBLIC_RECAPTCHA_SITE_KEY: ${{secrets.PROD_ENV_NEXT_PUBLIC_RECAPTCHA_SITE_KEY}}
RECAPTCHA_SITE_SECRET: ${{secrets.PROD_ENV_RECAPTCHA_SITE_SECRET}}
NODE_OPTIONS: "--max_old_space_size=4096"
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Update robots.txt
run: mv public/robots.prod.txt public/robots.txt
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.9.0
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Vercel CLI
run: pnpm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --force --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
- uses: ncipollo/release-action@v1
with:
skipIfReleaseExists: true
build:
runs-on: ubuntu-latest
timeout-minutes: 10
environment: production
env:
AUTH0_SECRET: ${{secrets.PROD_ENV_AUTH0_SECRET}}
AUTH0_BASE_URL: ${{secrets.PROD_ENV_AUTH0_BASE_URL}}
AUTH0_ISSUER_BASE_URL: ${{secrets.PROD_ENV_AUTH0_ISSUER_BASE_URL}}
AUTH0_CLIENT_ID: ${{secrets.PROD_ENV_AUTH0_CLIENT_ID}}
AUTH0_CLIENT_SECRET: ${{secrets.PROD_ENV_AUTH0_CLIENT_SECRET}}
AUTH0_AUDIENCE: ${{secrets.PROD_ENV_AUTH0_AUDIENCE}}
AUTH0_SCOPE: "openid profile email offline_access"
API_BASE_URL: ${{secrets.PROD_ENV_API_BASE_URL}}
NEXT_PUBLIC_IMAGE_CDN_BASE: ${{secrets.PROD_ENV_NEXT_PUBLIC_IMAGE_CDN_BASE}}
NEXT_PUBLIC_SUPPORT_EMAIL: "support@targabay.com"
NEXT_CONTACT_US_FORM_KEY: ${{secrets.PROD_ENV_NEXT_CONTACT_US_FORM_KEY}}
NEXT_PUBLIC_RECAPTCHA_SITE_KEY: ${{secrets.PROD_ENV_NEXT_PUBLIC_RECAPTCHA_SITE_KEY}}
RECAPTCHA_SITE_SECRET: ${{secrets.PROD_ENV_RECAPTCHA_SITE_SECRET}}
NODE_OPTIONS: "--max_old_space_size=4096"
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Update robots.txt
run: mv public/robots.prod.txt public/robots.txt
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.9.0
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Vercel CLI
run: pnpm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --force --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
- uses: ncipollo/release-action@v1
with:
skipIfReleaseExists: true
Loading

0 comments on commit a6c575b

Please sign in to comment.