Skip to content
This repository was archived by the owner on Mar 18, 2023. It is now read-only.

Commit c56440f

Browse files
committed
init
0 parents  commit c56440f

File tree

279 files changed

+32670
-0
lines changed

Some content is hidden

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

279 files changed

+32670
-0
lines changed

.editorconfig

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
max_line_length = 120
11+
trim_trailing_whitespace = true
12+
13+
[*.markdown]
14+
trim_trailing_whitespace = false
15+
16+
# Matches multiple files with brace expansion notation
17+
# Set default charset
18+
[*.{js, py, ts, tsx, html, css, scss, json}]
19+
charset = utf-8
20+
indent_style = space
21+
indent_size = 2
22+
23+
# 4 space indentation
24+
[*.py]
25+
indent_style = space
26+
indent_size = 4
27+
28+
# Tab indentation (no size specified)
29+
[Makefile]
30+
indent_style = tab
31+
32+
# Matches the exact files either package.json or .travis.yml
33+
[{package.json,.travis.yml}]
34+
indent_style = space
35+
indent_size = 2

.env.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# fake enc on local dev
2+
# ```nodejs
3+
# const { createHash } = require('node:crypto');
4+
# const enc = createHash('sha256').update(String(<secret>)).digest('base64').substring(0, 32);
5+
# ```
6+
ENC_KEY=
7+
# can get free db from https://auth.planetscale.com/sign-up
8+
DATABASE_URL=
9+
# replace it to your own
10+
# only works at `development`
11+
PROXY_HOST=
12+
PROXY_PORT=

.eslintrc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"root": true,
3+
"plugins": [
4+
"@typescript-eslint"
5+
],
6+
"extends": [
7+
"next/core-web-vitals",
8+
"plugin:@typescript-eslint/recommended",
9+
"prettier"
10+
],
11+
"rules": {
12+
"react-hooks/exhaustive-deps": "off",
13+
"no-console": "off",
14+
"@typescript-eslint/no-unused-vars": "off",
15+
"@typescript-eslint/no-explicit-any": "off"
16+
}
17+
}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
31+
32+
**Smartphone (please complete the following information):**
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
38+
39+
**Additional context**
40+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/workflows/ci.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches: [dev, master]
6+
pull_request:
7+
branches: [dev]
8+
9+
jobs:
10+
build:
11+
name: Build & Test
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node-version: ["lts/gallium", "lts/hydrogen", "current"]
16+
steps:
17+
- name: Checkout 🛎️
18+
uses: actions/checkout@v3
19+
with:
20+
persist-credentials: false
21+
22+
- uses: actions/setup-node@v3
23+
with:
24+
node-version: 16
25+
26+
- run: npm ci
27+
28+
- run: npm run test
29+
30+
- run: npm run build --if-present
31+
lint:
32+
name: format and lint
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Checkout 🛎️
36+
uses: actions/checkout@v3
37+
with:
38+
persist-credentials: false
39+
40+
- uses: actions/setup-node@v3
41+
with:
42+
node-version: 16
43+
- run: npm ci
44+
45+
- run: npm run format
46+
47+
- run: npm run lint

.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
pnpm-lock.yaml
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/.swc/
15+
/out/
16+
17+
# production
18+
/build
19+
20+
# misc
21+
.DS_Store
22+
*.pem
23+
24+
# debug
25+
npm-debug.log*
26+
yarn-debug.log*
27+
yarn-error.log*
28+
.pnpm-debug.log*
29+
30+
# local env files
31+
.env*.local
32+
33+
# vercel
34+
.vercel
35+
36+
# typescript
37+
*.tsbuildinfo
38+
next-env.d.ts
39+
.idea
40+
41+
/dist
42+
public/sitemap-0.xml
43+
src/assets/resources/**/*.json
44+
45+
.vercel
46+
.env

.husky/pre-push

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
# TODO(CGQAQ): uncomment this when next 13.2.4 came out
5+
# npm run lint;
6+
npm run format;

.prettierignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Ignore artifacts:
2+
build
3+
coverage
4+
5+
.next
6+
7+
dist
8+
node_modules
9+
public
10+
11+
.vscode
12+
.idea
13+
14+
*.json
15+
CNAME

.prettierrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "http://json.schemastore.org/prettierrc",
3+
"trailingComma": "all",
4+
"tabWidth": 2,
5+
"semi": true,
6+
"singleQuote": false,
7+
"jsxSingleQuote": true,
8+
"endOfLine": "lf",
9+
"printWidth": 120,
10+
"bracketSpacing": true,
11+
"arrowParens": "always",
12+
"useTabs": false
13+
}

0 commit comments

Comments
 (0)