Skip to content

Commit 45679c7

Browse files
Initial commit from Create Next App
0 parents  commit 45679c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+21527
-0
lines changed

.env.example

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# !STARTERCONF Duplicate this to .env.local
2+
3+
# DEVELOPMENT TOOLS
4+
# Ideally, don't add them to production deployment envs
5+
# !STARTERCONF Change to true if you want to log data
6+
NEXT_PUBLIC_SHOW_LOGGER="false"

.eslintrc.js

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true,
6+
},
7+
plugins: ['@typescript-eslint', 'simple-import-sort', 'unused-imports'],
8+
extends: [
9+
'eslint:recommended',
10+
'next',
11+
'next/core-web-vitals',
12+
'plugin:@typescript-eslint/recommended',
13+
'prettier',
14+
],
15+
rules: {
16+
'no-unused-vars': 'off',
17+
'no-console': 'warn',
18+
'@typescript-eslint/explicit-module-boundary-types': 'off',
19+
'react/no-unescaped-entities': 'off',
20+
21+
'react/display-name': 'off',
22+
'react/jsx-curly-brace-presence': [
23+
'warn',
24+
{ props: 'never', children: 'never' },
25+
],
26+
27+
//#region //*=========== Unused Import ===========
28+
'@typescript-eslint/no-unused-vars': 'off',
29+
'unused-imports/no-unused-imports': 'warn',
30+
'unused-imports/no-unused-vars': [
31+
'warn',
32+
{
33+
vars: 'all',
34+
varsIgnorePattern: '^_',
35+
args: 'after-used',
36+
argsIgnorePattern: '^_',
37+
},
38+
],
39+
//#endregion //*======== Unused Import ===========
40+
41+
//#region //*=========== Import Sort ===========
42+
'simple-import-sort/exports': 'warn',
43+
'simple-import-sort/imports': [
44+
'warn',
45+
{
46+
groups: [
47+
// ext library & side effect imports
48+
['^@?\\w', '^\\u0000'],
49+
// {s}css files
50+
['^.+\\.s?css$'],
51+
// Lib and hooks
52+
['^@/lib', '^@/hooks'],
53+
// static data
54+
['^@/data'],
55+
// components
56+
['^@/components', '^@/container'],
57+
// zustand store
58+
['^@/store'],
59+
// Other imports
60+
['^@/'],
61+
// relative paths up until 3 level
62+
[
63+
'^\\./?$',
64+
'^\\.(?!/?$)',
65+
'^\\.\\./?$',
66+
'^\\.\\.(?!/?$)',
67+
'^\\.\\./\\.\\./?$',
68+
'^\\.\\./\\.\\.(?!/?$)',
69+
'^\\.\\./\\.\\./\\.\\./?$',
70+
'^\\.\\./\\.\\./\\.\\.(?!/?$)',
71+
],
72+
['^@/types'],
73+
// other that didnt fit in
74+
['^'],
75+
],
76+
},
77+
],
78+
//#endregion //*======== Import Sort ===========
79+
},
80+
globals: {
81+
React: true,
82+
JSX: true,
83+
},
84+
};

.github/FUNDING.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# !STARTERCONF You can delete this file :) Your support is much appreciated!
2+
# These are supported funding model platforms
3+
4+
github: theodorusclarence
5+
patreon: # Replace with a single Patreon username
6+
open_collective: # Replace with a single Open Collective username
7+
ko_fi: # Replace with a single Ko-fi username
8+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
9+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
10+
liberapay: # Replace with a single Liberapay username
11+
issuehunt: # Replace with a single IssueHunt username
12+
otechie: # Replace with a single Otechie username
13+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
14+
custom: ['https://saweria.co/theodorusclarence']

.github/issue-branch.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# https://github.com/robvanderleek/create-issue-branch#option-2-configure-github-action
2+
3+
# ex: i4-lower_camel_upper
4+
branchName: 'i${issue.number}-${issue.title,}'
5+
branches:
6+
- label: epic
7+
skip: true
8+
- label: debt
9+
skip: true

.github/pull_request_template.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Description & Technical Solution
2+
3+
Describe problems, if any, clearly and concisely.
4+
Summarize the impact to the system.
5+
Please also include relevant motivation and context.
6+
Please include a summary of the technical solution and how it solves the problem.
7+
8+
# Checklist
9+
10+
- [ ] I have commented my code, particularly in hard-to-understand areas.
11+
- [ ] Already rebased against main branch.
12+
13+
# Screenshots
14+
15+
Provide screenshots or videos of the changes made if any.

.github/workflows/create-branch.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Create Branch from Issue
2+
3+
on:
4+
issues:
5+
types: [assigned]
6+
7+
jobs:
8+
create_issue_branch_job:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Create Issue Branch
12+
uses: robvanderleek/create-issue-branch@main
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/issue-autolink.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Issue Autolink'
2+
on:
3+
pull_request:
4+
types: [opened]
5+
6+
jobs:
7+
issue-links:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
pull-requests: write
11+
steps:
12+
- uses: tkt-actions/[email protected]
13+
with:
14+
repo-token: '${{ secrets.GITHUB_TOKEN }}'
15+
branch-prefix: 'i'
16+
resolve: 'true'

.github/workflows/lint.yml

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# https://github.com/kentcdodds/kentcdodds.com/blob/main/.github/workflows/deployment.yml
2+
name: Code Check
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request: {}
8+
9+
concurrency:
10+
group: ${{ github.job }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
lint:
15+
name: ⬣ ESLint
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: ⬇️ Checkout repo
19+
uses: actions/checkout@v2
20+
21+
- name: ⎔ Setup node
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: 16
25+
26+
- name: 📥 Download deps
27+
uses: bahmutov/npm-install@v1
28+
29+
- name: 🔬 Lint
30+
run: yarn lint:strict
31+
32+
typecheck:
33+
name: ʦ TypeScript
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: ⬇️ Checkout repo
37+
uses: actions/checkout@v2
38+
39+
- name: ⎔ Setup node
40+
uses: actions/setup-node@v3
41+
with:
42+
node-version: 16
43+
44+
- name: 📥 Download deps
45+
uses: bahmutov/npm-install@v1
46+
47+
- name: 🔎 Type check
48+
run: yarn typecheck
49+
50+
prettier:
51+
name: 💅 Prettier
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: ⬇️ Checkout repo
55+
uses: actions/checkout@v2
56+
57+
- name: ⎔ Setup node
58+
uses: actions/setup-node@v3
59+
with:
60+
node-version: 16
61+
62+
- name: 📥 Download deps
63+
uses: bahmutov/npm-install@v1
64+
65+
- name: 💅 Prettier check
66+
run: yarn format:check
67+
68+
test:
69+
name: 🃏 Test
70+
runs-on: ubuntu-latest
71+
steps:
72+
- name: ⬇️ Checkout repo
73+
uses: actions/checkout@v2
74+
75+
- name: ⎔ Setup node
76+
uses: actions/setup-node@v3
77+
with:
78+
node-version: 16
79+
80+
- name: 📥 Download deps
81+
uses: bahmutov/npm-install@v1
82+
83+
- name: 🃏 Run jest
84+
run: yarn test

.github/workflows/release-please.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: release-please
2+
on:
3+
# !STARTERCONF Choose your preferred event
4+
# !Option 1: Manual Trigger from GitHub
5+
workflow_dispatch:
6+
# !Option 2: Release on every push on main branch
7+
# push:
8+
# branches:
9+
# - main
10+
jobs:
11+
release-please:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: google-github-actions/release-please-action@v3
15+
with:
16+
release-type: node
17+
package-name: release-please-action

.gitignore

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.pnpm-debug.log*
27+
28+
# local env files
29+
.env
30+
.env*.local
31+
32+
# vercel
33+
.vercel
34+
35+
# typescript
36+
*.tsbuildinfo
37+
next-env.d.ts
38+
39+
# next-sitemap
40+
robots.txt
41+
sitemap.xml
42+
sitemap-*.xml

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit "$1"

.husky/post-merge

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.14.0

.prettierignore

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
.next
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env.local
30+
.env.development.local
31+
.env.test.local
32+
.env.production.local
33+
34+
# vercel
35+
.vercel
36+
37+
# changelog
38+
CHANGELOG.md

.prettierrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
arrowParens: 'always',
3+
singleQuote: true,
4+
jsxSingleQuote: true,
5+
tabWidth: 2,
6+
semi: true,
7+
};

.vscode/css.code-snippets

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"Region CSS": {
3+
"prefix": "regc",
4+
"body": [
5+
"/* #region /**=========== ${1} =========== */",
6+
"$0",
7+
"/* #endregion /**======== ${1} =========== */"
8+
]
9+
}
10+
}

.vscode/extensions.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
// Tailwind CSS Intellisense
4+
"bradlc.vscode-tailwindcss",
5+
"esbenp.prettier-vscode",
6+
"dbaeumer.vscode-eslint",
7+
"aaron-bond.better-comments"
8+
]
9+
}

0 commit comments

Comments
 (0)