@yyp92-cli/template-react-pc 1.5.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -1
- package/CHANGELOG.md +0 -43
- package/template/.env.development +0 -5
- package/template/.env.production +0 -4
- package/template/.env.test +0 -4
- package/template/.eslintrc.cjs +0 -18
- package/template/README.md +0 -9
- package/template/index.html +0 -13
- package/template/package.json +0 -43
- package/template/pnpm-lock.yaml +0 -3583
- package/template/public/vite.svg +0 -1
- package/template/src/antdTheme/darkTheme.ts +0 -1
- package/template/src/antdTheme/lightTheme.ts +0 -68
- package/template/src/app.scss +0 -29
- package/template/src/app.tsx +0 -14
- package/template/src/assets/iconfont/demo.css +0 -539
- package/template/src/assets/iconfont/demo_index.html +0 -211
- package/template/src/assets/iconfont/iconfont.css +0 -19
- package/template/src/assets/iconfont/iconfont.js +0 -1
- package/template/src/assets/iconfont/iconfont.json +0 -16
- package/template/src/assets/iconfont/iconfont.ttf +0 -0
- package/template/src/assets/iconfont/iconfont.woff +0 -0
- package/template/src/assets/iconfont/iconfont.woff2 +0 -0
- package/template/src/assets/react.svg +0 -1
- package/template/src/components/403/index.tsx +0 -22
- package/template/src/components/404/index.tsx +0 -24
- package/template/src/components/index.ts +0 -3
- package/template/src/components/layout/content/index.module.scss +0 -22
- package/template/src/components/layout/content/index.tsx +0 -109
- package/template/src/components/layout/footer/index.module.scss +0 -12
- package/template/src/components/layout/footer/index.tsx +0 -15
- package/template/src/components/layout/header/index.module.scss +0 -21
- package/template/src/components/layout/header/index.tsx +0 -112
- package/template/src/components/layout/index.module.scss +0 -8
- package/template/src/components/layout/index.tsx +0 -59
- package/template/src/components/layout/side/index.module.scss +0 -31
- package/template/src/components/layout/side/index.tsx +0 -109
- package/template/src/components/layout-horizontal/content/index.module.scss +0 -22
- package/template/src/components/layout-horizontal/content/index.tsx +0 -105
- package/template/src/components/layout-horizontal/footer/index.module.scss +0 -12
- package/template/src/components/layout-horizontal/footer/index.tsx +0 -15
- package/template/src/components/layout-horizontal/header/index.module.scss +0 -23
- package/template/src/components/layout-horizontal/header/index.tsx +0 -112
- package/template/src/components/layout-horizontal/index.module.scss +0 -8
- package/template/src/components/layout-horizontal/index.tsx +0 -59
- package/template/src/components/layout-horizontal/side/index.module.scss +0 -32
- package/template/src/components/layout-horizontal/side/index.tsx +0 -104
- package/template/src/components/login/index.module.scss +0 -23
- package/template/src/components/login/index.tsx +0 -133
- package/template/src/global/constants.ts +0 -4
- package/template/src/pages/home/index.module.scss +0 -0
- package/template/src/pages/home/index.tsx +0 -90
- package/template/src/router/router.tsx +0 -190
- package/template/src/service/api.ts +0 -9
- package/template/src/service/config.ts +0 -9
- package/template/src/service/index.ts +0 -1
- package/template/src/service/request/index.ts +0 -267
- package/template/src/service/request/type.ts +0 -5
- package/template/src/service/service.ts +0 -27
- package/template/src/store/login.ts +0 -38
- package/template/src/store/menus.ts +0 -30
- package/template/src/store/permission.ts +0 -30
- package/template/src/store/token.ts +0 -30
- package/template/src/theme/darkTheme.scss +0 -47
- package/template/src/theme/lightTheme.scss +0 -49
- package/template/src/utils/base64ToBlob.ts +0 -41
- package/template/src/utils/cache.ts +0 -44
- package/template/src/utils/changeTheme.ts +0 -14
- package/template/src/utils/download.ts +0 -45
- package/template/src/utils/filterMenu.ts +0 -34
- package/template/src/utils/index.ts +0 -5
- package/template/src/vite-env.d.ts +0 -5
- package/template/tsconfig.json +0 -45
- package/template/tsconfig.node.json +0 -10
- package/template/vite.config.ts +0 -49
package/package.json
CHANGED
package/CHANGELOG.md
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# @yyp92-cli/template-react-pc
|
|
2
|
-
|
|
3
|
-
## 1.5.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- react 模板 去掉手动存储本地
|
|
8
|
-
|
|
9
|
-
## 1.4.0
|
|
10
|
-
|
|
11
|
-
### Minor Changes
|
|
12
|
-
|
|
13
|
-
- 路由修改
|
|
14
|
-
|
|
15
|
-
## 1.3.0
|
|
16
|
-
|
|
17
|
-
### Minor Changes
|
|
18
|
-
|
|
19
|
-
- 项目模板-二级路由修改
|
|
20
|
-
|
|
21
|
-
## 1.2.1
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- 模板修改
|
|
26
|
-
|
|
27
|
-
## 1.2.0
|
|
28
|
-
|
|
29
|
-
### Minor Changes
|
|
30
|
-
|
|
31
|
-
- 项目模板修改
|
|
32
|
-
|
|
33
|
-
## 1.1.1
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
- react pc 模板 layout 引用修改
|
|
38
|
-
|
|
39
|
-
## 1.1.0
|
|
40
|
-
|
|
41
|
-
### Minor Changes
|
|
42
|
-
|
|
43
|
-
- yyp92-cli 项目模板完善
|
package/template/.env.production
DELETED
package/template/.env.test
DELETED
package/template/.eslintrc.cjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: { browser: true, es2020: true },
|
|
4
|
-
extends: [
|
|
5
|
-
'eslint:recommended',
|
|
6
|
-
'plugin:@typescript-eslint/recommended',
|
|
7
|
-
'plugin:react-hooks/recommended',
|
|
8
|
-
],
|
|
9
|
-
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
|
10
|
-
parser: '@typescript-eslint/parser',
|
|
11
|
-
plugins: ['react-refresh'],
|
|
12
|
-
rules: {
|
|
13
|
-
'react-refresh/only-export-components': [
|
|
14
|
-
'warn',
|
|
15
|
-
{ allowConstantExport: true },
|
|
16
|
-
],
|
|
17
|
-
},
|
|
18
|
-
}
|
package/template/README.md
DELETED
package/template/index.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>Vite + React + TS</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="root"></div>
|
|
11
|
-
<script type="module" src="/src/app.tsx"></script>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
package/template/package.json
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "<%= projectName %>",
|
|
3
|
-
"description": "脚手架创建的 <%= projectName %> 项目",
|
|
4
|
-
"private": true,
|
|
5
|
-
"version": "0.0.0",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"dev": "vite --open --mode development",
|
|
9
|
-
"build:test": "tsc && vite build --mode test",
|
|
10
|
-
"build:prod": "tsc && vite build --mode production",
|
|
11
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
12
|
-
"preview": "vite preview"
|
|
13
|
-
},
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"@ant-design/icons": "^5.2.6",
|
|
16
|
-
"antd": "^5.11.3",
|
|
17
|
-
"axios": "^1.6.7",
|
|
18
|
-
"dayjs": "^1.11.10",
|
|
19
|
-
"lodash-es": "^4.17.21",
|
|
20
|
-
"react": "^18.2.0",
|
|
21
|
-
"react-dom": "^18.2.0",
|
|
22
|
-
"react-router-dom": "^6.20.0",
|
|
23
|
-
"uuid": "^11.1.0",
|
|
24
|
-
"zustand": "^5.0.5"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@types/lodash-es": "^4.17.12",
|
|
28
|
-
"@types/node": "^24.2.0",
|
|
29
|
-
"@types/react": "^18.2.37",
|
|
30
|
-
"@types/react-dom": "^18.2.15",
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
32
|
-
"@typescript-eslint/parser": "^6.10.0",
|
|
33
|
-
"@vitejs/plugin-react": "^4.2.0",
|
|
34
|
-
"eslint": "^8.53.0",
|
|
35
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
36
|
-
"eslint-plugin-react-refresh": "^0.4.4",
|
|
37
|
-
"path": "^0.12.7",
|
|
38
|
-
"sass": "^1.69.5",
|
|
39
|
-
"typescript": "^5.2.2",
|
|
40
|
-
"url": "^0.11.3",
|
|
41
|
-
"vite": "^5.0.0"
|
|
42
|
-
}
|
|
43
|
-
}
|