-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 72c4768
Showing
260 changed files
with
34,949 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# View & likes tracking | ||
DATABASE_URL="postgresql://clarence:@localhost:5432/theodorusclarence" | ||
DIRECT_DATABASE_URL="postgresql://clarence:@localhost:5432/theodorusclarence" | ||
IP_ADDRESS_SALT= | ||
|
||
# Dev.to Credentials for getting views | ||
DEVTO_KEY= | ||
|
||
# Spotify Credentials | ||
# used for /api/spotify widget | ||
SPOTIFY_CLIENT_ID= | ||
SPOTIFY_CLIENT_SECRET= | ||
SPOTIFY_REFRESH_TOKEN= | ||
|
||
# Dev tools page hidden route | ||
ADMIN_PASSWORD=admin | ||
|
||
# Revue Subscription (Unused) | ||
REVUE_TOKEN= | ||
|
||
# Client .envs | ||
# These envs are feature flagged in constants/env.ts. No need to fill them in if you won't use it | ||
NEXT_PUBLIC_FEEDBACK_FISH_ID= | ||
NEXT_PUBLIC_GISCUS_REPO= | ||
NEXT_PUBLIC_GISCUS_REPO_ID= | ||
NEXT_PUBLIC_BLOCK_DOMAIN_WHITELIST="theodorusclarence.com" | ||
NEXT_PUBLIC_UMAMI_WEBSITE_ID= | ||
|
||
# Used for remote refresh in development | ||
remoteRefreshPort="8080" | ||
|
||
# Feature flags | ||
# NEXT_PUBLIC_FLAG_COMMENT="true" | ||
# NEXT_PUBLIC_FLAG_CONTENT_META="true" | ||
# NEXT_PUBLIC_FLAG_SPOTIFY="true" | ||
# NEXT_PUBLIC_FLAG_NEWSLETTER="true" | ||
# NEXT_PUBLIC_FLAG_SAY_HELLO="true" | ||
# NEXT_PUBLIC_FLAG_FEEDBACK="true" | ||
# NEXT_PUBLIC_META_BLOCK_DOMAIN="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 |
---|---|---|
@@ -0,0 +1,84 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
node: true, | ||
}, | ||
plugins: ['@typescript-eslint', 'simple-import-sort', 'unused-imports'], | ||
extends: [ | ||
'eslint:recommended', | ||
'next', | ||
'next/core-web-vitals', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@tanstack/eslint-plugin-query/recommended', | ||
'prettier', | ||
], | ||
rules: { | ||
'no-unused-vars': 'off', | ||
'no-console': 'warn', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'react/no-unescaped-entities': 'off', | ||
'react/display-name': 'off', | ||
'react/no-unknown-property': ['error', { ignore: ['jsx'] }], | ||
'react/jsx-curly-brace-presence': [ | ||
'warn', | ||
{ props: 'never', children: 'never' }, | ||
], | ||
'@typescript-eslint/no-var-requires': 'off', | ||
|
||
//#region //*=========== Unused Import =========== | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'unused-imports/no-unused-imports': 'warn', | ||
'unused-imports/no-unused-vars': [ | ||
'warn', | ||
{ | ||
vars: 'all', | ||
varsIgnorePattern: '^_', | ||
args: 'after-used', | ||
argsIgnorePattern: '^_', | ||
}, | ||
], | ||
//#endregion //*======== Unused Import =========== | ||
|
||
//#region //*=========== Sort Import =========== | ||
'simple-import-sort/exports': 'warn', | ||
'simple-import-sort/imports': [ | ||
'warn', | ||
{ | ||
groups: [ | ||
// ext library & side effect imports | ||
['^@?\\w', '^\\u0000'], | ||
// {s}css files | ||
['^.+\\.s?css$'], | ||
// Lib and hooks | ||
['^@/lib', '^@/hooks'], | ||
// static data | ||
['^@/data'], | ||
// components | ||
['^@/components'], | ||
// Other imports | ||
['^@/'], | ||
// relative paths up until 3 level | ||
[ | ||
'^\\./?$', | ||
'^\\.(?!/?$)', | ||
'^\\.\\./?$', | ||
'^\\.\\.(?!/?$)', | ||
'^\\.\\./\\.\\./?$', | ||
'^\\.\\./\\.\\.(?!/?$)', | ||
'^\\.\\./\\.\\./\\.\\./?$', | ||
'^\\.\\./\\.\\./\\.\\.(?!/?$)', | ||
], | ||
['^@/types'], | ||
// other that didnt fit in | ||
['^'], | ||
], | ||
}, | ||
], | ||
//#endregion //*======== Sort Import =========== | ||
}, | ||
globals: { | ||
React: true, | ||
JSX: 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# https://github.com/robvanderleek/create-issue-branch#option-2-configure-github-action | ||
|
||
# ex: i4-lower_camel_upper | ||
branchName: 'i${issue.number}-${issue.title,}' | ||
branches: | ||
- label: epic | ||
skip: true | ||
- label: debt | ||
skip: 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Cypress End to End | ||
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows | ||
on: [deployment_status] | ||
|
||
concurrency: | ||
group: ${{ github.job }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
cypress-run: | ||
if: ${{ github.event.deployment_status.state == 'success' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Print URL 🖨 | ||
run: echo Testing URL ${{ github.event.deployment_status.target_url }} | ||
|
||
- name: Print GitHub env variables 🖨 | ||
run: npx @bahmutov/print-env GITHUB | ||
|
||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v2 | ||
# Install NPM dependencies, cache them correctly | ||
# and run all Cypress tests | ||
- name: Cypress run | ||
uses: cypress-io/github-action@v5 | ||
with: | ||
record: true | ||
spec: | | ||
cypress/e2e/ta | ||
env: | ||
CYPRESS_BASE_URL: ${{ github.event.deployment_status.target_url }} | ||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
# | ||
# Required Config | ||
# Add CYPRESS_RECORD_KEY to github secrets |
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,14 @@ | ||
name: Create Branch from Issue | ||
|
||
on: | ||
issues: | ||
types: [assigned] | ||
|
||
jobs: | ||
create_issue_branch_job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create Issue Branch | ||
uses: robvanderleek/create-issue-branch@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,14 @@ | ||
name: 'Issue Autolink' | ||
on: | ||
pull_request: | ||
types: [opened] | ||
|
||
jobs: | ||
issue-links: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: tkt-actions/[email protected] | ||
with: | ||
repo-token: '${{ secrets.GITHUB_TOKEN }}' | ||
branch-prefix: 'i' | ||
resolve: '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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Code Check | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: {} | ||
|
||
concurrency: | ||
group: ${{ github.job }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
name: ⬣ ESLint, ʦ TypeScript, and 💅 Prettier | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: 🤌 Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: 📥 Download deps | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: 🔬 Lint | ||
run: pnpm run lint:strict | ||
|
||
- name: 🔎 Type check | ||
run: pnpm run typecheck | ||
|
||
- name: 💅 Prettier check | ||
run: pnpm run format:check |
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,17 @@ | ||
name: Purge Cache | ||
on: [deployment_status] | ||
|
||
concurrency: | ||
group: ${{ github.job }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
purge-everything: | ||
if: ${{ github.event.deployment_status.state == 'success' && github.event.deployment_status.environment == 'Production' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Purge cache | ||
uses: jakejarvis/cloudflare-purge-action@master | ||
env: | ||
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }} | ||
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} |
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,13 @@ | ||
name: release-please | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v3 | ||
with: | ||
release-type: node | ||
package-name: release-please-action |
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,49 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# next-sitemap | ||
robots.txt | ||
sitemap.xml | ||
|
||
# cypress | ||
cypress/videos | ||
cypress/screenshots | ||
|
||
# rss | ||
rss.xml | ||
|
||
# scripts | ||
scripts/out |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit "$1" |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm install |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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,40 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
.next | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# changelog | ||
CHANGELOG.md | ||
|
||
pnpm-lock.yaml |
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,7 @@ | ||
module.exports = { | ||
arrowParens: 'always', | ||
singleQuote: true, | ||
jsxSingleQuote: true, | ||
tabWidth: 2, | ||
semi: true, | ||
}; |
Oops, something went wrong.