-
Notifications
You must be signed in to change notification settings - Fork 6
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
1 parent
fe673c7
commit de556b8
Showing
134 changed files
with
10,452 additions
and
12,494 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 @@ | ||
# Use `NODE_ENV=development` in `.env.local` while developing |
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,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
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,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
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,37 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- run: npm ci | ||
|
||
# Runs a single command using the runners shell | ||
- name: Run tests | ||
run: npm run test:once |
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,34 @@ | ||
# 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.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# vercel | ||
.vercel |
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,36 @@ | ||
{ | ||
// Place your workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | ||
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | ||
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | ||
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | ||
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | ||
// Placeholders with the same ids are connected. | ||
// Example: | ||
// "Print to console": { | ||
// "scope": "javascript,typescript", | ||
// "prefix": "log", | ||
// "body": [ | ||
// "console.log('$1');", | ||
// "$2" | ||
// ], | ||
// "description": "Log output to console" | ||
// | ||
// Snippet Docs: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax | ||
// | ||
|
||
"className Shorthand": { | ||
"prefix": "cn", | ||
"scope": "javascriptreact,typescriptreact", | ||
"body": ["className=\"$0\""] | ||
}, | ||
"console.log Shorthand": { | ||
"prefix": "cl", | ||
"scope": "javascript,typescript,javascriptreact,typescriptreact", | ||
"body": ["console.log(\"${TM_FILENAME_BASE} - $0\");"] | ||
}, | ||
"console.log a Variable Shorthand": { | ||
"prefix": "clv", | ||
"scope": "javascript,typescript,javascriptreact,typescriptreact", | ||
"body": ["console.log(\"${TM_FILENAME_BASE} - $1\", $0);"] | ||
} | ||
} |
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,12 @@ | ||
{ | ||
"Test Suite": { | ||
"prefix": "tsuite", | ||
"scope": "javascriptreact,typescriptreact", | ||
"body": ["describe(\"${1:Enter the suite name.}\", ()=> {", "$0", "})"] | ||
}, | ||
"Test Case": { | ||
"prefix": "tcase", | ||
"scope": "javascriptreact,typescriptreact", | ||
"body": ["it(\"${1:Enter the test name.}\", ()=> {", "$0", "})"] | ||
} | ||
} |
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 @@ | ||
{ | ||
"getStaticProps with locale": { | ||
"prefix": "0-getStaticPropsWLocale", | ||
"scope": "typescriptreact", | ||
"body": [ | ||
"export const getStaticProps: GetStaticProps = async (ctx) => {", | ||
" const { locale } = ctx;", | ||
"", | ||
" return {", | ||
" props: {", | ||
" ...(await serverSideTranslations(locale || \"en\", [${0:namespace}])),", | ||
" },", | ||
" };", | ||
"};", | ||
"" | ||
] | ||
}, | ||
"const { t } = useTranslation([PAGES_TNS]...": { | ||
"prefix": "0-UseTransPages", | ||
"scope": "javascriptreact,typescriptreact", | ||
"body": [ | ||
"const { t } = useTranslation([PAGES_TNS], { keyPrefix: \"$0${RELATIVE_FILEPATH/(?:^.*(?:[\\\\\\/]pages[\\\\\\/]))(.*)\\..+/${1}/g}\" });" | ||
] | ||
}, | ||
"const { t: gt } = useTranslation([GLOSSARY])": { | ||
"prefix": "0-UseTransGlossary", | ||
"scope": "javascriptreact,typescriptreact", | ||
"body": ["const { t: gt } = useTranslation([GLOSSARY_TNS]);"] | ||
} | ||
} |
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,50 @@ | ||
### Next.js | ||
|
||
### TypeScript | ||
|
||
### Tailwind CSS | ||
|
||
A rapid and utility-first CSS framework. | ||
|
||
- @tailwindcss/typography | ||
- tailwindcss-rtl (by 20lives) | ||
- Theme Colors | ||
- `primary, secondary, accent, background` | ||
|
||
### next-i18next | ||
|
||
### Jest and React Testing Library | ||
|
||
### atomic design | ||
|
||
### Error Page Template | ||
|
||
404 and 500 error pages do exist as a sample. | ||
|
||
### Height Breakpoints and Media Queries | ||
|
||
xsh, smh, mdh, lgh, xlh. | ||
|
||
### Import Path Aliases | ||
|
||
`@/components`, `@/lib`, `@/styles`... | ||
|
||
### Recommended VSCode Extensions | ||
|
||
Headwind, Auto Rename Tag and Prettier. | ||
|
||
## Getting Started with Next.js | ||
|
||
First, run the development server: | ||
|
||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
||
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. | ||
|
||
## Deploy on Vercel |
Oops, something went wrong.