Skip to content

Commit

Permalink
更改前端
Browse files Browse the repository at this point in the history
  • Loading branch information
slowlyo committed Aug 29, 2023
1 parent 6bf8114 commit 4d2dd96
Show file tree
Hide file tree
Showing 338 changed files with 1,997 additions and 21,817 deletions.
8 changes: 0 additions & 8 deletions admin-views/.env

This file was deleted.

1 change: 0 additions & 1 deletion admin-views/.eslintignore

This file was deleted.

34 changes: 0 additions & 34 deletions admin-views/.eslintrc

This file was deleted.

18 changes: 18 additions & 0 deletions admin-views/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
62 changes: 21 additions & 41 deletions admin-views/.gitignore
Original file line number Diff line number Diff line change
@@ -1,44 +1,24 @@
# 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
# Logs
logs
*.log
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

# typescript
*.tsbuildinfo


# eslint
.eslintcache

# stylelint
.stylelintcache
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
31 changes: 24 additions & 7 deletions admin-views/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
# React + TypeScript + Vite

```
// 初始化项目
pnpm install
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

// 开发模式
pnpm run dev
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
```

// 构建
pnpm run build
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
1 change: 0 additions & 1 deletion admin-views/dist/assets/BarCode-592fb19d.js

This file was deleted.

Binary file removed admin-views/dist/assets/BarCode-592fb19d.js.gz
Binary file not shown.
1 change: 0 additions & 1 deletion admin-views/dist/assets/CityDB-4ba0c728.js

This file was deleted.

Binary file removed admin-views/dist/assets/CityDB-4ba0c728.js.gz
Binary file not shown.
1 change: 0 additions & 1 deletion admin-views/dist/assets/ColorPicker-f9a0363a.js

This file was deleted.

Binary file removed admin-views/dist/assets/ColorPicker-f9a0363a.js.gz
Binary file not shown.
21 changes: 0 additions & 21 deletions admin-views/dist/assets/Markdown-db09aaff.js

This file was deleted.

Binary file removed admin-views/dist/assets/Markdown-db09aaff.js.gz
Binary file not shown.
Loading

0 comments on commit 4d2dd96

Please sign in to comment.