Skip to content

Commit

Permalink
core: use next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi1520 committed Dec 7, 2021
1 parent a76f99e commit ec60040
Show file tree
Hide file tree
Showing 109 changed files with 6,521 additions and 3,734 deletions.
18 changes: 18 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
NEXTAUTH_URL=http://localhost:3000
SECRET=

GITHUB_ID=
GITHUB_SECRET=

# 请修改下面邮箱服务
EMAIL_SERVER=smtps://[email protected]:[email protected]:465
EMAIL_FROM=狂奔的小马 <[email protected]>

SHADOW_DATABASE_URL=
DATABASE_URL=


MYSQL_ROOT_PASSWORD=12345678
MYSQL_PASSWORD=12345678
MYSQL_DATABASE=app
MYSQL_USER=user
9 changes: 9 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["next", "prettier"],
"rules": {
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
40 changes: 39 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,39 @@
node_modules
# 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
/dist

# 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
.env

*.sql
docker-compose.yml
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true
}
5 changes: 0 additions & 5 deletions client/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions client/.prettierrc

This file was deleted.

13 changes: 0 additions & 13 deletions client/index.html

This file was deleted.

55 changes: 0 additions & 55 deletions client/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions client/postcss.config.js

This file was deleted.

47 changes: 0 additions & 47 deletions client/src/app/PrivateRoute.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions client/src/app/index.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions client/src/app/rootReducer.ts

This file was deleted.

Loading

0 comments on commit ec60040

Please sign in to comment.