create-young-proj 0.0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -21
- package/README.md +13 -2
- package/dist/index.mjs +18 -18
- package/index.mjs +3 -3
- package/package.json +10 -12
- package/template-admin-server/.editorconfig +11 -0
- package/template-admin-server/.nvmrc +1 -0
- package/template-admin-server/.vscode/extensions.json +6 -0
- package/template-admin-server/.vscode/settings.json +4 -0
- package/template-admin-server/README.md +73 -0
- package/template-admin-server/_gitignore +15 -0
- package/template-admin-server/boot.mjs +11 -0
- package/template-admin-server/package.json +60 -0
- package/template-admin-server/rome.json +22 -0
- package/template-admin-server/src/config/config.default.ts +56 -0
- package/template-admin-server/src/configuration.ts +47 -0
- package/template-admin-server/src/controller/admin.controller.ts +397 -0
- package/template-admin-server/src/controller/api.controller.ts +98 -0
- package/template-admin-server/src/controller/base.controller.ts +70 -0
- package/template-admin-server/src/controller/dto/api.ts +47 -0
- package/template-admin-server/src/controller/dto/index.ts +36 -0
- package/template-admin-server/src/controller/dto/menu.ts +41 -0
- package/template-admin-server/src/controller/dto/role.ts +41 -0
- package/template-admin-server/src/controller/dto/user.ts +52 -0
- package/template-admin-server/src/controller/menu.controller.ts +138 -0
- package/template-admin-server/src/controller/role.controller.ts +116 -0
- package/template-admin-server/src/controller/user.controller.ts +108 -0
- package/template-admin-server/src/entities/Api.ts +29 -0
- package/template-admin-server/src/entities/BaseCreate.ts +30 -0
- package/template-admin-server/src/entities/Menu.ts +39 -0
- package/template-admin-server/src/entities/Role.ts +36 -0
- package/template-admin-server/src/entities/User.ts +35 -0
- package/template-admin-server/src/entities/index.ts +10 -0
- package/template-admin-server/src/filter/default.filter.ts +22 -0
- package/template-admin-server/src/filter/notfound.filter.ts +23 -0
- package/template-admin-server/src/middleware/helper.middleware.ts +28 -0
- package/template-admin-server/src/middleware/index.ts +9 -0
- package/template-admin-server/src/middleware/jwt.middleware.ts +32 -0
- package/template-admin-server/src/middleware/report.middleware.ts +26 -0
- package/template-admin-server/src/service/api.service.ts +174 -0
- package/template-admin-server/src/service/basic.ts +118 -0
- package/template-admin-server/src/service/index.ts +10 -0
- package/template-admin-server/src/service/menu.service.ts +139 -0
- package/template-admin-server/src/service/role.service.ts +286 -0
- package/template-admin-server/src/service/user.service.ts +124 -0
- package/template-admin-server/src/strategy/jwt.strategy.ts +26 -0
- package/template-admin-server/src/types/index.ts +42 -0
- package/template-admin-server/src/types/types.d.ts +31 -0
- package/template-admin-server/tsconfig.json +24 -0
- package/template-vue-admin/.vscode/extensions.json +10 -0
- package/template-vue-admin/.vscode/list-add.code-snippets +108 -0
- package/template-vue-admin/.vscode/list-export.code-snippets +72 -0
- package/template-vue-admin/.vscode/list.code-snippets +61 -0
- package/template-vue-admin/.vscode/settings.json +7 -0
- package/template-vue-admin/Dockerfile +42 -0
- package/template-vue-admin/README.md +75 -0
- package/template-vue-admin/_env +8 -0
- package/template-vue-admin/_gitignore +30 -0
- package/template-vue-admin/boot.mjs +16 -0
- package/template-vue-admin/build/custom-plugin.ts +30 -0
- package/template-vue-admin/build/index.ts +7 -0
- package/template-vue-admin/build/plugins.ts +59 -0
- package/template-vue-admin/config/.devrc +2 -0
- package/template-vue-admin/config/.onlinerc +2 -0
- package/template-vue-admin/config/.testrc +2 -0
- package/template-vue-admin/index.html +21 -0
- package/template-vue-admin/nitro.config.ts +19 -0
- package/template-vue-admin/package.json +50 -0
- package/template-vue-admin/plugins/env.ts +26 -0
- package/template-vue-admin/public/vite.svg +1 -0
- package/template-vue-admin/rome.json +26 -0
- package/template-vue-admin/routes/api/[...all].ts +49 -0
- package/template-vue-admin/routes/get/env.ts +18 -0
- package/template-vue-admin/src/App.vue +14 -0
- package/template-vue-admin/src/apis/delete.ts +36 -0
- package/template-vue-admin/src/apis/get.ts +84 -0
- package/template-vue-admin/src/apis/index.ts +10 -0
- package/template-vue-admin/src/apis/patch.ts +79 -0
- package/template-vue-admin/src/apis/post.ts +77 -0
- package/template-vue-admin/src/assets/img/login_background.jpg +0 -0
- package/template-vue-admin/src/auto-components.d.ts +36 -0
- package/template-vue-admin/src/auto-imports.d.ts +282 -0
- package/template-vue-admin/src/layouts/blank.vue +9 -0
- package/template-vue-admin/src/layouts/default/components/Link.vue +23 -0
- package/template-vue-admin/src/layouts/default/components/Logo.vue +20 -0
- package/template-vue-admin/src/layouts/default/components/Menu.vue +54 -0
- package/template-vue-admin/src/layouts/default/components/NavSearch.vue +52 -0
- package/template-vue-admin/src/layouts/default/components/ScrollPane.vue +79 -0
- package/template-vue-admin/src/layouts/default/components/TagsView.vue +137 -0
- package/template-vue-admin/src/layouts/default/components/TopMenu.vue +21 -0
- package/template-vue-admin/src/layouts/default/components/UserCenter.vue +50 -0
- package/template-vue-admin/src/layouts/default/index.vue +95 -0
- package/template-vue-admin/src/main.ts +44 -0
- package/template-vue-admin/src/modules/1-router.ts +66 -0
- package/template-vue-admin/src/modules/2-pinia.ts +10 -0
- package/template-vue-admin/src/modules/3-net.ts +75 -0
- package/template-vue-admin/src/modules/4-auth.ts +126 -0
- package/template-vue-admin/src/shims.d.ts +12 -0
- package/template-vue-admin/src/stores/index.ts +9 -0
- package/template-vue-admin/src/stores/local/index.ts +23 -0
- package/template-vue-admin/src/stores/session/index.ts +63 -0
- package/template-vue-admin/src/stores/tags.ts +109 -0
- package/template-vue-admin/src/typings/global.d.ts +70 -0
- package/template-vue-admin/src/typings/index.ts +50 -0
- package/template-vue-admin/src/views/403.vue +32 -0
- package/template-vue-admin/src/views/[...all_404].vue +556 -0
- package/template-vue-admin/src/views/base/login.vue +193 -0
- package/template-vue-admin/src/views/dashboard/[name].vue +23 -0
- package/template-vue-admin/src/views/index.vue +19 -0
- package/template-vue-admin/src/views/system/api.vue +161 -0
- package/template-vue-admin/src/views/system/hooks/useRole.ts +286 -0
- package/template-vue-admin/src/views/system/menuList.vue +195 -0
- package/template-vue-admin/src/views/system/role.vue +132 -0
- package/template-vue-admin/src/views/system/user.vue +193 -0
- package/template-vue-admin/src/vite-env.d.ts +52 -0
- package/template-vue-admin/tsconfig.json +21 -0
- package/template-vue-admin/tsconfig.node.json +9 -0
- package/template-vue-admin/unocss.config.ts +47 -0
- package/template-vue-admin/vite.config.ts +32 -0
- package/template-vue-thin/package.json +14 -13
- package/template-vue-thin/vite.config.ts +1 -6
@@ -13,27 +13,28 @@
|
|
13
13
|
"dependencies": {
|
14
14
|
"@vueuse/core": "^9.4.0",
|
15
15
|
"core-js": "^3.26.0",
|
16
|
-
"regenerator-runtime": "^0.13.10",
|
17
16
|
"pinia": "^2.0.23",
|
17
|
+
"regenerator-runtime": "^0.13.10",
|
18
18
|
"vue": "^3.2.41",
|
19
19
|
"vue-router": "^4.1.6"
|
20
20
|
},
|
21
21
|
"devDependencies": {
|
22
|
-
"@
|
23
|
-
"@
|
24
|
-
"
|
25
|
-
"@
|
26
|
-
"@vitejs/plugin-
|
27
|
-
"unocss": "^0.46.3",
|
22
|
+
"@types/node": "16",
|
23
|
+
"@unocss/reset": "^0.48.0",
|
24
|
+
"@vitejs/plugin-legacy": "^3.0.1",
|
25
|
+
"@vitejs/plugin-vue": "^4.0.0",
|
26
|
+
"@vitejs/plugin-vue-jsx": "^3.0.0",
|
28
27
|
"bumpp": "^8.2.1",
|
29
28
|
"changelogen": "^0.4.0",
|
30
29
|
"less": "^4.1.3",
|
31
|
-
"rome": "^
|
30
|
+
"rome": "^11.0.0",
|
32
31
|
"terser": "^5.15.1",
|
33
|
-
"
|
32
|
+
"typescript": "^4.8.4",
|
33
|
+
"unocss": "^0.48.0",
|
34
|
+
"unplugin-auto-import": "^0.12.1",
|
34
35
|
"unplugin-vue-components": "^0.22.9",
|
35
|
-
"vite
|
36
|
-
"vite-plugin-
|
37
|
-
"vite": "^
|
36
|
+
"vite": "^4.0.4",
|
37
|
+
"vite-plugin-pages": "^0.28.0",
|
38
|
+
"vite-plugin-vue-layouts": "^0.7.0"
|
38
39
|
}
|
39
|
-
}
|
40
|
+
}
|
@@ -44,12 +44,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
|
|
44
44
|
}),
|
45
45
|
AutoImport({
|
46
46
|
dts: './src/auto-imports.d.ts',
|
47
|
-
imports: [
|
48
|
-
'vue',
|
49
|
-
'vue-router',
|
50
|
-
'@vueuse/core',
|
51
|
-
'pinia'
|
52
|
-
],
|
47
|
+
imports: ['vue', 'vue-router', '@vueuse/core', 'pinia'],
|
53
48
|
}),
|
54
49
|
Unocss(),
|
55
50
|
legacy({
|