generated from songquanpeng/gin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Showing
205 changed files
with
13,220 additions
and
6,851 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
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
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
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,89 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"prettier", | ||
"plugin:react/jsx-runtime", | ||
"plugin:jsx-a11y/recommended", | ||
"plugin:react-hooks/recommended", | ||
"eslint:recommended", | ||
"plugin:react/recommended" | ||
], | ||
"settings": { | ||
"react": { | ||
"createClass": "createReactClass", // Regex for Component Factory to use, | ||
// default to "createReactClass" | ||
"pragma": "React", // Pragma to use, default to "React" | ||
"fragment": "Fragment", // Fragment to use (may be a property of <pragma>), default to "Fragment" | ||
"version": "detect", // React version. "detect" automatically picks the version you have installed. | ||
// You can also use `16.0`, `16.3`, etc, if you want to override the detected value. | ||
// It will default to "latest" and warn if missing, and to "detect" in the future | ||
"flowVersion": "0.53" // Flow version | ||
}, | ||
"import/resolver": { | ||
"node": { | ||
"moduleDirectory": ["node_modules", "src/"] | ||
} | ||
} | ||
}, | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"experimentalObjectRestSpread": true, | ||
"impliedStrict": true, | ||
"jsx": true | ||
}, | ||
"ecmaVersion": 12 | ||
}, | ||
"plugins": ["prettier", "react", "react-hooks"], | ||
"rules": { | ||
"react/jsx-uses-react": "error", | ||
"react/jsx-uses-vars": "error", | ||
"react/react-in-jsx-scope": "off", | ||
"no-undef": "off", | ||
"react/display-name": "off", | ||
"react/jsx-filename-extension": "off", | ||
"no-param-reassign": "off", | ||
"react/prop-types": 1, | ||
"react/require-default-props": "off", | ||
"react/no-array-index-key": "off", | ||
"react/jsx-props-no-spreading": "off", | ||
"react/forbid-prop-types": "off", | ||
"import/order": "off", | ||
"import/no-cycle": "off", | ||
"no-console": "off", | ||
"jsx-a11y/anchor-is-valid": "off", | ||
"prefer-destructuring": "off", | ||
"no-shadow": "off", | ||
"import/no-named-as-default": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"jsx-a11y/no-autofocus": "off", | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
"patterns": ["@mui/*/*/*", "!@mui/material/test-utils/*"] | ||
} | ||
], | ||
"no-unused-vars": [ | ||
"error", | ||
{ | ||
"ignoreRestSiblings": false | ||
} | ||
], | ||
"prettier/prettier": [ | ||
"warn", | ||
{ | ||
"bracketSpacing": true, | ||
"printWidth": 140, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"endOfLine": "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,8 @@ | ||
{ | ||
"bracketSpacing": true, | ||
"printWidth": 140, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"tabWidth": 2, | ||
"useTabs": false | ||
} |
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 |
---|---|---|
@@ -1,21 +1,14 @@ | ||
# React Template | ||
# One API 前端界面 | ||
|
||
## Basic Usages | ||
这个项目是 One API 的前端界面,它基于 [Berry Free React Admin Template](https://github.com/codedthemes/berry-free-react-admin-template) 进行开发。 | ||
|
||
```shell | ||
# Runs the app in the development mode | ||
npm start | ||
## 使用的开源项目 | ||
|
||
# Builds the app for production to the `build` folder | ||
npm run build | ||
``` | ||
使用了以下开源项目作为我们项目的一部分: | ||
|
||
If you want to change the default server, please set `REACT_APP_SERVER` environment variables before build, | ||
for example: `REACT_APP_SERVER=http://your.domain.com`. | ||
- [Berry Free React Admin Template](https://github.com/codedthemes/berry-free-react-admin-template) | ||
- [minimal-ui-kit](minimal-ui-kit) | ||
|
||
Before you start editing, make sure your `Actions on Save` options have `Optimize imports` & `Run Prettier` enabled. | ||
## 许可证 | ||
|
||
## Reference | ||
|
||
1. https://github.com/OIerDb-ng/OIerDb | ||
2. https://github.com/cornflourblue/react-hooks-redux-registration-login-example | ||
本项目中使用的代码遵循 MIT 许可证。 |
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 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"module": "commonjs", | ||
"baseUrl": "src" | ||
}, | ||
"include": ["src/**/*"], | ||
"exclude": ["node_modules"] | ||
} |
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
Binary file not shown.
Oops, something went wrong.