@yyp92-cli/template-vue-pc 1.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.
Files changed (113) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/package.json +15 -0
  3. package/template/.env.development +2 -0
  4. package/template/.env.production +2 -0
  5. package/template/.env.test +2 -0
  6. package/template/README.md +30 -0
  7. package/template/auto-imports.d.ts +11 -0
  8. package/template/components.d.ts +67 -0
  9. package/template/index.html +16 -0
  10. package/template/package.json +43 -0
  11. package/template/pnpm-lock.yaml +2830 -0
  12. package/template/public/vite.svg +1 -0
  13. package/template/src/App.vue +26 -0
  14. package/template/src/assets/img/login-bg.jpg +0 -0
  15. package/template/src/assets/img/logo.svg +15 -0
  16. package/template/src/components/layout/header-crumb/index.vue +38 -0
  17. package/template/src/components/layout/header-info/index.vue +181 -0
  18. package/template/src/components/layout/index.vue +83 -0
  19. package/template/src/components/layout/main-header/index.vue +85 -0
  20. package/template/src/components/layout/main-menu/index.vue +166 -0
  21. package/template/src/components/layout-horizontal/header-crumb/index.vue +38 -0
  22. package/template/src/components/layout-horizontal/header-info/index.vue +185 -0
  23. package/template/src/components/layout-horizontal/index.vue +55 -0
  24. package/template/src/components/layout-horizontal/main-header/index.vue +86 -0
  25. package/template/src/components/layout-horizontal/main-menu/index.vue +135 -0
  26. package/template/src/global/constants.ts +4 -0
  27. package/template/src/global/register-icons.ts +10 -0
  28. package/template/src/main.ts +16 -0
  29. package/template/src/mock/index.ts +8 -0
  30. package/template/src/mock/login.ts +5 -0
  31. package/template/src/mock/userDepartmentList.ts +85 -0
  32. package/template/src/mock/userInfoMock.ts +24 -0
  33. package/template/src/mock/userList.ts +115 -0
  34. package/template/src/mock/userListDelete.ts +1 -0
  35. package/template/src/mock/userMenuList.ts +466 -0
  36. package/template/src/mock/userMenus.ts +374 -0
  37. package/template/src/mock/userRoleList.ts +1846 -0
  38. package/template/src/router/index.ts +41 -0
  39. package/template/src/router/routes.ts +189 -0
  40. package/template/src/service/api/index.ts +90 -0
  41. package/template/src/service/request/index.ts +268 -0
  42. package/template/src/service/request/type.ts +5 -0
  43. package/template/src/store/counter.ts +19 -0
  44. package/template/src/store/index.ts +14 -0
  45. package/template/src/store/login/index.ts +142 -0
  46. package/template/src/store/main/index.ts +54 -0
  47. package/template/src/store/main/system/index.ts +88 -0
  48. package/template/src/store/main/system/type.ts +19 -0
  49. package/template/src/styles/global.scss +33 -0
  50. package/template/src/styles/index.scss +4 -0
  51. package/template/src/styles/reset.scss +17 -0
  52. package/template/src/theme/darkTheme.scss +51 -0
  53. package/template/src/theme/lightTheme.scss +53 -0
  54. package/template/src/types/index.ts +1 -0
  55. package/template/src/types/login.ts +4 -0
  56. package/template/src/utils/cache.ts +44 -0
  57. package/template/src/utils/download.ts +27 -0
  58. package/template/src/utils/format.ts +10 -0
  59. package/template/src/utils/index.ts +14 -0
  60. package/template/src/utils/map-menus.ts +174 -0
  61. package/template/src/views/403/index.vue +22 -0
  62. package/template/src/views/login/component/login-panel.vue +138 -0
  63. package/template/src/views/login/component/panel-account.vue +138 -0
  64. package/template/src/views/login/component/panel-phone.vue +56 -0
  65. package/template/src/views/login/index.vue +28 -0
  66. package/template/src/views/main/analysis/dashboard/index.vue +19 -0
  67. package/template/src/views/main/analysis/overview/index.vue +25 -0
  68. package/template/src/views/main/detail/index.vue +19 -0
  69. package/template/src/views/main/fullScreen/images/bg.png +0 -0
  70. package/template/src/views/main/fullScreen/images/contrast-bg.png +0 -0
  71. package/template/src/views/main/fullScreen/images/dataScreen-alarm.png +0 -0
  72. package/template/src/views/main/fullScreen/images/dataScreen-header-btn-bg-l.png +0 -0
  73. package/template/src/views/main/fullScreen/images/dataScreen-header-btn-bg-r.png +0 -0
  74. package/template/src/views/main/fullScreen/images/dataScreen-header-center-bg.png +0 -0
  75. package/template/src/views/main/fullScreen/images/dataScreen-header-left-bg.png +0 -0
  76. package/template/src/views/main/fullScreen/images/dataScreen-header-right-bg.png +0 -0
  77. package/template/src/views/main/fullScreen/images/dataScreen-header-warn-bg.png +0 -0
  78. package/template/src/views/main/fullScreen/images/dataScreen-main-cb.png +0 -0
  79. package/template/src/views/main/fullScreen/images/dataScreen-main-lb.png +0 -0
  80. package/template/src/views/main/fullScreen/images/dataScreen-main-lc.png +0 -0
  81. package/template/src/views/main/fullScreen/images/dataScreen-main-lt.png +0 -0
  82. package/template/src/views/main/fullScreen/images/dataScreen-main-rb.png +0 -0
  83. package/template/src/views/main/fullScreen/images/dataScreen-main-rc.png +0 -0
  84. package/template/src/views/main/fullScreen/images/dataScreen-main-rt.png +0 -0
  85. package/template/src/views/main/fullScreen/images/dataScreen-title.png +0 -0
  86. package/template/src/views/main/fullScreen/images/dataScreen-warn-bg.png +0 -0
  87. package/template/src/views/main/fullScreen/images/line-bg.png +0 -0
  88. package/template/src/views/main/fullScreen/images/man-bg.png +0 -0
  89. package/template/src/views/main/fullScreen/images/man.png +0 -0
  90. package/template/src/views/main/fullScreen/images/map-title-bg.png +0 -0
  91. package/template/src/views/main/fullScreen/images/rankingChart-bg.png +0 -0
  92. package/template/src/views/main/fullScreen/images/total.png +0 -0
  93. package/template/src/views/main/fullScreen/images/woman-bg.png +0 -0
  94. package/template/src/views/main/fullScreen/images/woman.png +0 -0
  95. package/template/src/views/main/fullScreen/index.vue +33 -0
  96. package/template/src/views/main/index.vue +24 -0
  97. package/template/src/views/main/product/category/index.vue +19 -0
  98. package/template/src/views/main/product/goods/index.vue +19 -0
  99. package/template/src/views/main/story/chat/index.vue +70 -0
  100. package/template/src/views/main/story/list/index.vue +19 -0
  101. package/template/src/views/main/system/department/index.vue +20 -0
  102. package/template/src/views/main/system/menu/index.vue +19 -0
  103. package/template/src/views/main/system/role/index.vue +20 -0
  104. package/template/src/views/main/system/user/index.vue +141 -0
  105. package/template/src/views/main/system/user/user-comp/UserContent.vue +211 -0
  106. package/template/src/views/main/system/user/user-comp/UserModal.vue +225 -0
  107. package/template/src/views/main/system/user/user-comp/UserSearch.vue +147 -0
  108. package/template/src/views/not-found/index.vue +22 -0
  109. package/template/src/vite-env.d.ts +9 -0
  110. package/template/tsconfig.app.json +26 -0
  111. package/template/tsconfig.json +7 -0
  112. package/template/tsconfig.node.json +25 -0
  113. package/template/vite.config.ts +66 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # @yyp92-cli/template-vue-pc
2
+
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - yyp92-cli 项目模板完善
8
+
9
+ ## 1.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - yyp92-cli 项目模板测试-1
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@yyp92-cli/template-vue-pc",
3
+ "version": "1.2.0",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "main": "index.js",
8
+ "keywords": [],
9
+ "author": "",
10
+ "license": "ISC",
11
+ "description": "",
12
+ "scripts": {
13
+ "test": "echo \"Error: no test specified\" && exit 1"
14
+ }
15
+ }
@@ -0,0 +1,2 @@
1
+ NODE_ENV = 'development'
2
+ VITE_APP_BASE_API = '/api'
@@ -0,0 +1,2 @@
1
+ NODE_ENV = 'production'
2
+ VITE_APP_BASE_API = 'http://codercba.com:5000'
@@ -0,0 +1,2 @@
1
+ NODE_ENV = 'test'
2
+ VITE_APP_BASE_API = 'http://123.207.32.32:5000'
@@ -0,0 +1,30 @@
1
+ # vite-vue3-pc-template
2
+
3
+ ## 命令
4
+ ```bash
5
+ pnpm install
6
+ pnpm dev
7
+ ```
8
+
9
+
10
+
11
+ ## 登录用户账号
12
+ coderwhy 123456
13
+
14
+
15
+
16
+
17
+ ## 注意事项
18
+ - 实际开发把接口的mock删除,接口地址换成实际的地址
19
+ - 替换的文件:
20
+ - vite.config.ts: server-proxy-target
21
+ - .env的三个文件的 VITE_APP_BASE_API
22
+
23
+
24
+
25
+
26
+ ## 资料
27
+ - [vue-hooks-plus](https://inhiblabcore.github.io/vue-hooks-plus/zh/guide/introduction)
28
+ - [水球图](https://github.com/ecomfe/echarts-liquidfill)
29
+ - [echarts 国内镜像网站](https://www.isqqw.com/echarts-doc/zh/option.html#title)
30
+ - [datav 数据可视化平台](https://datav.aliyun.com/portal/school/atlas/area_selector)
@@ -0,0 +1,11 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ // @ts-nocheck
4
+ // noinspection JSUnusedGlobalSymbols
5
+ // Generated by unplugin-auto-import
6
+ // biome-ignore lint: disable
7
+ export {}
8
+ declare global {
9
+ const ElMessage: typeof import('element-plus/es')['ElMessage']
10
+ const useToggle: typeof import('vue-hooks-plus')['useToggle']
11
+ }
@@ -0,0 +1,67 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ // Generated by unplugin-vue-components
4
+ // Read more: https://github.com/vuejs/core/pull/3399
5
+ // biome-ignore lint: disable
6
+ export {}
7
+
8
+ /* prettier-ignore */
9
+ declare module 'vue' {
10
+ export interface GlobalComponents {
11
+ ElAside: typeof import('element-plus/es')['ElAside']
12
+ ElAvatar: typeof import('element-plus/es')['ElAvatar']
13
+ ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
14
+ ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
15
+ ElButton: typeof import('element-plus/es')['ElButton']
16
+ ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
17
+ ElCol: typeof import('element-plus/es')['ElCol']
18
+ ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
19
+ ElContainer: typeof import('element-plus/es')['ElContainer']
20
+ ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
21
+ ElDialog: typeof import('element-plus/es')['ElDialog']
22
+ ElDropdown: typeof import('element-plus/es')['ElDropdown']
23
+ ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
24
+ ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
25
+ ElForm: typeof import('element-plus/es')['ElForm']
26
+ ElFormItem: typeof import('element-plus/es')['ElFormItem']
27
+ ElHeader: typeof import('element-plus/es')['ElHeader']
28
+ ElIcon: typeof import('element-plus/es')['ElIcon']
29
+ ElInput: typeof import('element-plus/es')['ElInput']
30
+ ElLink: typeof import('element-plus/es')['ElLink']
31
+ ElMain: typeof import('element-plus/es')['ElMain']
32
+ ElMenu: typeof import('element-plus/es')['ElMenu']
33
+ ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
34
+ ElOption: typeof import('element-plus/es')['ElOption']
35
+ ElPagination: typeof import('element-plus/es')['ElPagination']
36
+ ElResult: typeof import('element-plus/es')['ElResult']
37
+ ElRow: typeof import('element-plus/es')['ElRow']
38
+ ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
39
+ ElSelect: typeof import('element-plus/es')['ElSelect']
40
+ ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
41
+ ElSwitch: typeof import('element-plus/es')['ElSwitch']
42
+ ElTable: typeof import('element-plus/es')['ElTable']
43
+ ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
44
+ ElTabPane: typeof import('element-plus/es')['ElTabPane']
45
+ ElTabs: typeof import('element-plus/es')['ElTabs']
46
+ ElTag: typeof import('element-plus/es')['ElTag']
47
+ ElTooltip: typeof import('element-plus/es')['ElTooltip']
48
+ HeaderCrumb: typeof import('./src/components/layout/header-crumb/index.vue')['default']
49
+ HeaderInfo: typeof import('./src/components/layout/header-info/index.vue')['default']
50
+ Layout: typeof import('./src/components/layout/index.vue')['default']
51
+ LayoutHorizontal: typeof import('./src/components/layout-horizontal/index.vue')['default']
52
+ MainHeader: typeof import('./src/components/layout/main-header/index.vue')['default']
53
+ MainMenu: typeof import('./src/components/layout/main-menu/index.vue')['default']
54
+ PageComp: typeof import('./src/components/page-comp/index.vue')['default']
55
+ PageContent: typeof import('./src/components/page-comp/PageContent.vue')['default']
56
+ PageModal: typeof import('./src/components/page-comp/PageModal.vue')['default']
57
+ PageSearch: typeof import('./src/components/page-comp/PageSearch.vue')['default']
58
+ RouterLink: typeof import('vue-router')['RouterLink']
59
+ RouterView: typeof import('vue-router')['RouterView']
60
+ UserContent: typeof import('./src/components/user-comp/UserContent.vue')['default']
61
+ UserModal: typeof import('./src/components/user-comp/UserModal.vue')['default']
62
+ UserSearch: typeof import('./src/components/user-comp/UserSearch.vue')['default']
63
+ }
64
+ export interface GlobalDirectives {
65
+ vLoading: typeof import('element-plus/es')['ElLoadingDirective']
66
+ }
67
+ }
@@ -0,0 +1,16 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
+ <title>vite-vue3-pc-template</title>
9
+ </head>
10
+
11
+ <body>
12
+ <div id="app"></div>
13
+ <script type="module" src="/src/main.ts"></script>
14
+ </body>
15
+
16
+ </html>
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "vite-vue3-pc-template",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite --open --mode development",
8
+ "build:test": "vue-tsc -b && vite build --mode test",
9
+ "build:prod": "vue-tsc -b && vite build --mode production",
10
+ "preview": "vite preview"
11
+ },
12
+ "dependencies": {
13
+ "@element-plus/icons-vue": "^2.3.2",
14
+ "@wangeditor/editor": "^5.1.23",
15
+ "@wangeditor/editor-for-vue": "^5.1.12",
16
+ "axios": "^1.11.0",
17
+ "dayjs": "^1.11.13",
18
+ "echarts": "^6.0.0",
19
+ "echarts-liquidfill": "^3.1.0",
20
+ "element-plus": "^2.11.1",
21
+ "lodash-es": "^4.17.21",
22
+ "normalize.css": "^8.0.1",
23
+ "pinia": "^3.0.3",
24
+ "vue": "^3.5.17",
25
+ "vue-hooks-plus": "^2.4.1",
26
+ "vue-router": "^4.5.1"
27
+ },
28
+ "devDependencies": {
29
+ "@types/lodash-es": "^4.17.12",
30
+ "@types/node": "^24.2.0",
31
+ "@vitejs/plugin-vue": "^6.0.0",
32
+ "@vue-hooks-plus/resolvers": "^1.3.0",
33
+ "@vue/tsconfig": "^0.7.0",
34
+ "consola": "^3.4.2",
35
+ "sass": "^1.89.2",
36
+ "typescript": "~5.8.3",
37
+ "unplugin-auto-import": "^20.0.0",
38
+ "unplugin-vue-components": "^29.0.0",
39
+ "vite": "^7.0.4",
40
+ "vite-plugin-style-import": "^2.0.0",
41
+ "vue-tsc": "^2.2.12"
42
+ }
43
+ }