create-young-proj 0.10.2 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.mjs +9 -9
- package/package.json +1 -1
- package/template-nuxt-admin/README.md +42 -1
- package/template-nuxt-admin/components/layout/Main.vue +2 -2
- package/template-nuxt-admin/components/layout/NavBar.vue +11 -2
- package/template-nuxt-admin/components/layout/SideBar.vue +6 -2
- package/template-nuxt-admin/components/layout/SubMenu.vue +9 -2
- package/template-nuxt-admin/components/layout/TabsBar.vue +4 -5
- package/template-nuxt-admin/composables/api.ts +17 -3
- package/template-nuxt-admin/composables/nav.ts +20 -3
- package/template-nuxt-admin/composables/tags.ts +29 -1
- package/template-nuxt-admin/middleware/auth.global.ts +16 -4
- package/template-nuxt-admin/nuxt.config.ts +5 -1
- package/template-nuxt-admin/package.json +5 -5
- package/template-nuxt-admin/pages/home/[id].vue +2 -2
- package/template-nuxt-admin/pages/index.vue +2 -7
- package/template-nuxt-admin/pages/login.vue +2 -2
- package/template-nuxt-admin/pages/system/menuList.vue +0 -1
- package/template-nuxt-admin/public/bg.webp +0 -0
- package/template-nuxt-admin/public/favicon.svg +2 -0
- package/template-nuxt-admin/public/logo.svg +2 -0
- package/template-nuxt-admin/server/plugins/env.ts +3 -4
- package/template-nuxt-admin/utils/tool.ts +17 -1
- package/template-nuxt-admin/yarn.lock +706 -854
- package/template-uni-app/auto-imports.d.ts +9 -6
- package/template-uni-app/custom-plugins/index.ts +1 -2
- package/template-uni-app/dist/dev/mp-weixin/apis/index.js +5 -6
- package/template-uni-app/dist/dev/mp-weixin/apis/requests/get.js +2 -2
- package/template-uni-app/dist/dev/mp-weixin/apis/requests/post.js +4 -4
- package/template-uni-app/dist/dev/mp-weixin/app.js +4 -5
- package/template-uni-app/dist/dev/mp-weixin/common/vendor.js +1448 -2471
- package/template-uni-app/dist/dev/mp-weixin/components/young-navbar/young-navbar.js +7 -8
- package/template-uni-app/dist/dev/mp-weixin/components/young-navbar/young-navbar.wxml +1 -1
- package/template-uni-app/dist/dev/mp-weixin/components/young-tabbar/young-tabbar.js +7 -8
- package/template-uni-app/dist/dev/mp-weixin/components/young-tabbar/young-tabbar.wxml +1 -1
- package/template-uni-app/dist/dev/mp-weixin/layouts/default.js +1 -2
- package/template-uni-app/dist/dev/mp-weixin/layouts/tabbar.wxml +1 -1
- package/template-uni-app/dist/dev/mp-weixin/pages/demo/index.js +4 -5
- package/template-uni-app/dist/dev/mp-weixin/pages/demo/index.wxml +1 -1
- package/template-uni-app/dist/dev/mp-weixin/pages/index.js +4 -5
- package/template-uni-app/dist/dev/mp-weixin/pages/index.wxml +1 -1
- package/template-uni-app/dist/dev/mp-weixin/pages/my.wxml +1 -1
- package/template-uni-app/dist/dev/mp-weixin/project.config.json +1 -2
- package/template-uni-app/dist/dev/mp-weixin/project.private.config.json +6 -0
- package/template-uni-app/dist/dev/mp-weixin/store/local/index.js +3 -1
- package/template-uni-app/dist/dev/mp-weixin/utils/modal.js +10 -14
- package/template-uni-app/dist/dev/mp-weixin/utils/route.js +4 -6
- package/template-uni-app/dist/dev/mp-weixin/utils/system.js +4 -4
- package/template-uni-app/package.json +2 -3
- package/template-uni-app/pnpm-lock.yaml +154 -105
- package/template-uni-app/src/apis/index.ts +2 -2
- package/template-uni-app/src/apis/requests/get.ts +5 -5
- package/template-uni-app/src/apis/requests/post.ts +5 -5
- package/template-uni-app/vite.config.ts +2 -3
- package/template-nuxt-admin/public/favicon.ico +0 -0
- package/template-uni-app/custom-plugins/polyfill.ts +0 -32
- package/template-uni-app/dist/dev/mp-weixin/apis/lib/index.js +0 -90
- package/template-uni-app/src/apis/lib/index.ts +0 -235
- package/template-vue-admin/.vscode/extensions.json +0 -10
- package/template-vue-admin/.vscode/list-add.code-snippets +0 -108
- package/template-vue-admin/.vscode/list-export.code-snippets +0 -72
- package/template-vue-admin/.vscode/list.code-snippets +0 -61
- package/template-vue-admin/.vscode/settings.json +0 -7
- package/template-vue-admin/Dockerfile +0 -42
- package/template-vue-admin/README.md +0 -75
- package/template-vue-admin/_env +0 -8
- package/template-vue-admin/_gitignore +0 -30
- package/template-vue-admin/boot.mjs +0 -16
- package/template-vue-admin/build/custom-plugin.ts +0 -57
- package/template-vue-admin/build/index.ts +0 -7
- package/template-vue-admin/build/plugins.ts +0 -59
- package/template-vue-admin/config/.devrc +0 -2
- package/template-vue-admin/config/.onlinerc +0 -2
- package/template-vue-admin/config/.testrc +0 -2
- package/template-vue-admin/index.html +0 -21
- package/template-vue-admin/nitro.config.ts +0 -19
- package/template-vue-admin/package.json +0 -51
- package/template-vue-admin/plugins/init.ts +0 -31
- package/template-vue-admin/public/vite.svg +0 -1
- package/template-vue-admin/rome.json +0 -26
- package/template-vue-admin/routes/api/[...all].ts +0 -49
- package/template-vue-admin/routes/get/env.ts +0 -18
- package/template-vue-admin/src/App.vue +0 -14
- package/template-vue-admin/src/apis/delete.ts +0 -36
- package/template-vue-admin/src/apis/get.ts +0 -83
- package/template-vue-admin/src/apis/index.ts +0 -10
- package/template-vue-admin/src/apis/patch.ts +0 -78
- package/template-vue-admin/src/apis/post.ts +0 -76
- package/template-vue-admin/src/assets/img/login_background.jpg +0 -0
- package/template-vue-admin/src/auto-components.d.ts +0 -38
- package/template-vue-admin/src/auto-imports.d.ts +0 -302
- package/template-vue-admin/src/layouts/blank.vue +0 -9
- package/template-vue-admin/src/layouts/default/components/Link.vue +0 -23
- package/template-vue-admin/src/layouts/default/components/Logo.vue +0 -20
- package/template-vue-admin/src/layouts/default/components/Menu.vue +0 -54
- package/template-vue-admin/src/layouts/default/components/NavSearch.vue +0 -52
- package/template-vue-admin/src/layouts/default/components/ScrollPane.vue +0 -79
- package/template-vue-admin/src/layouts/default/components/TagsView.vue +0 -137
- package/template-vue-admin/src/layouts/default/components/TopMenu.vue +0 -21
- package/template-vue-admin/src/layouts/default/components/UserCenter.vue +0 -50
- package/template-vue-admin/src/layouts/default/index.vue +0 -95
- package/template-vue-admin/src/main.ts +0 -46
- package/template-vue-admin/src/modules/1-router.ts +0 -48
- package/template-vue-admin/src/modules/2-pinia.ts +0 -10
- package/template-vue-admin/src/modules/3-net.ts +0 -79
- package/template-vue-admin/src/modules/4-auth.ts +0 -124
- package/template-vue-admin/src/modules/5-checkupdate.ts +0 -38
- package/template-vue-admin/src/shims.d.ts +0 -12
- package/template-vue-admin/src/stores/index.ts +0 -9
- package/template-vue-admin/src/stores/local/index.ts +0 -31
- package/template-vue-admin/src/stores/session/index.ts +0 -63
- package/template-vue-admin/src/stores/tags.ts +0 -109
- package/template-vue-admin/src/typings/global.d.ts +0 -70
- package/template-vue-admin/src/typings/index.ts +0 -13
- package/template-vue-admin/src/typings/system.d.ts +0 -46
- package/template-vue-admin/src/views/403.vue +0 -33
- package/template-vue-admin/src/views/[...all_404].vue +0 -557
- package/template-vue-admin/src/views/base/login.vue +0 -194
- package/template-vue-admin/src/views/dashboard/[name].vue +0 -28
- package/template-vue-admin/src/views/index.vue +0 -25
- package/template-vue-admin/src/views/system/api.vue +0 -160
- package/template-vue-admin/src/views/system/hooks/useRole.ts +0 -286
- package/template-vue-admin/src/views/system/menuList.vue +0 -194
- package/template-vue-admin/src/views/system/role.vue +0 -131
- package/template-vue-admin/src/views/system/user.vue +0 -192
- package/template-vue-admin/src/vite-env.d.ts +0 -52
- package/template-vue-admin/tsconfig.json +0 -21
- package/template-vue-admin/tsconfig.node.json +0 -9
- package/template-vue-admin/unocss.config.ts +0 -47
- package/template-vue-admin/vite.config.ts +0 -32
@@ -13,9 +13,9 @@
|
|
13
13
|
},
|
14
14
|
"dependencies": {
|
15
15
|
"@bluesyoung/casdoor-auth": "^0.1.0",
|
16
|
-
"@bluesyoung/http": "^0.
|
16
|
+
"@bluesyoung/http": "^1.0.1",
|
17
17
|
"@bluesyoung/ui-vue3": "^0.1.1",
|
18
|
-
"@bluesyoung/ui-vue3-element-plus": "0.
|
18
|
+
"@bluesyoung/ui-vue3-element-plus": "0.13.0",
|
19
19
|
"@bluesyoung/utils": "0.2.1",
|
20
20
|
"@wangeditor/editor": "^5.1.23",
|
21
21
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"vue-cropper": "^1.0.9"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
|
-
"@antfu/eslint-config": "^0.
|
32
|
+
"@antfu/eslint-config": "^0.42.0",
|
33
33
|
"@bluesyoung/logger": "^0.0.1",
|
34
34
|
"@element-plus/nuxt": "^1.0.5",
|
35
35
|
"@iconify/json": "^2.2.93",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"@pinia/nuxt": "^0.4.11",
|
38
38
|
"@types/file-saver": "^2.0.5",
|
39
39
|
"@types/md5": "^2.3.2",
|
40
|
-
"@types/node": "20.
|
40
|
+
"@types/node": "20.6.2",
|
41
41
|
"@types/qrcode": "^1.5.1",
|
42
42
|
"@unocss/nuxt": "^0.55.6",
|
43
43
|
"@vant/nuxt": "^1.0.2",
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"element-plus": "^2.3.8",
|
48
48
|
"eslint": "^8.48.0",
|
49
49
|
"lint-staged": "^14.0.1",
|
50
|
-
"nuxt": "^3.7.
|
50
|
+
"nuxt": "^3.7.3",
|
51
51
|
"nuxt-lazy-load": "^3.0.4",
|
52
52
|
"pinia": "^2.1.4",
|
53
53
|
"sass": "^1.64.0",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<!--
|
2
2
|
* @Author: zhangyang
|
3
3
|
* @Date: 2023-07-21 17:35:12
|
4
|
-
* @LastEditTime: 2023-
|
4
|
+
* @LastEditTime: 2023-09-15 15:20:25
|
5
5
|
* @Description:
|
6
6
|
-->
|
7
7
|
<script lang="ts" setup>
|
@@ -14,7 +14,7 @@ definePageMeta({
|
|
14
14
|
const { nick } = storeToRefs(useUserStore())
|
15
15
|
const { nav_arr } = storeToRefs(useNavStore())
|
16
16
|
|
17
|
-
|
17
|
+
useTabNoCache(() => {
|
18
18
|
nav_arr.value.length === 0 && generateNavData()
|
19
19
|
})
|
20
20
|
</script>
|
@@ -1,17 +1,12 @@
|
|
1
1
|
<!--
|
2
2
|
* @Author: zhangyang
|
3
3
|
* @Date: 2023-07-21 09:27:14
|
4
|
-
* @LastEditTime: 2023-
|
4
|
+
* @LastEditTime: 2023-09-18 14:15:35
|
5
5
|
* @Description:
|
6
6
|
-->
|
7
7
|
<script setup lang="ts">
|
8
8
|
definePageMeta({
|
9
|
-
|
10
|
-
})
|
11
|
-
|
12
|
-
navigateTo({
|
13
|
-
path: '/home/index',
|
14
|
-
replace: true,
|
9
|
+
redirect: '/home/index',
|
15
10
|
})
|
16
11
|
</script>
|
17
12
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<!--
|
2
2
|
* @Author: zhangyang
|
3
3
|
* @Date: 2023-07-21 10:03:11
|
4
|
-
* @LastEditTime: 2023-09-
|
4
|
+
* @LastEditTime: 2023-09-15 15:19:59
|
5
5
|
* @Description:
|
6
6
|
-->
|
7
7
|
<script lang="ts" setup>
|
@@ -63,7 +63,7 @@ function loginHandler() {
|
|
63
63
|
})
|
64
64
|
}
|
65
65
|
|
66
|
-
|
66
|
+
useTabNoCache(() => {
|
67
67
|
if (SaveFlag.value && hasLogin.value) {
|
68
68
|
navigateTo({
|
69
69
|
path: '/',
|
Binary file
|
@@ -0,0 +1,2 @@
|
|
1
|
+
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32"><path fill="#666" d="M26 2h4v4h-4zm0 6h4v4h-4zm-6-6h4v4h-4zm0 6h4v4h-4z"/><path fill="#666" d="M28 16v6H4V6h12V4H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8v4H8v2h16v-2h-4v-4h8a2 2 0 0 0 2-2v-6ZM18 28h-4v-4h4Z"/></svg>
|
@@ -0,0 +1,2 @@
|
|
1
|
+
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32"><path fill="#fff" d="M26 2h4v4h-4zm0 6h4v4h-4zm-6-6h4v4h-4zm0 6h4v4h-4z"/><path fill="#fff" d="M28 16v6H4V6h12V4H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8v4H8v2h16v-2h-4v-4h8a2 2 0 0 0 2-2v-6ZM18 28h-4v-4h4Z"/></svg>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* @Author: zhangyang
|
3
3
|
* @Date: 2022-12-30 17:19:42
|
4
|
-
* @LastEditTime: 2023-
|
4
|
+
* @LastEditTime: 2023-09-16 16:27:56
|
5
5
|
* @Description:
|
6
6
|
*/
|
7
7
|
import { resolve } from 'node:path'
|
@@ -22,9 +22,8 @@ export default defineNitroPlugin(async (nitroApp) => {
|
|
22
22
|
NUXT_PUBLIC_TITLE: 'XXX-后台管理系统',
|
23
23
|
NUXT_PUBLIC_SUB_TITLE: '做XXX我们是认真的!',
|
24
24
|
NUXT_PUBLIC_SLOGAN: 'XXXXX, XXXXX',
|
25
|
-
NUXT_PUBLIC_LOGIN_BG:
|
26
|
-
|
27
|
-
NUXT_PUBLIC_LOGIN_LOGO: 'https://api.iconify.design/logos:nuxt-icon.svg?color=%23f74d49',
|
25
|
+
NUXT_PUBLIC_LOGIN_BG: '/bg.webp',
|
26
|
+
NUXT_PUBLIC_LOGIN_LOGO: '/logo.svg',
|
28
27
|
},
|
29
28
|
})
|
30
29
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* @Author: zhangyang
|
3
3
|
* @Date: 2023-05-28 16:01:24
|
4
|
-
* @LastEditTime: 2023-09-
|
4
|
+
* @LastEditTime: 2023-09-13 09:43:52
|
5
5
|
* @Description:
|
6
6
|
*/
|
7
7
|
import { randomId } from '@bluesyoung/utils'
|
@@ -181,3 +181,19 @@ export function useChangePassword() {
|
|
181
181
|
|
182
182
|
vnode.component!.exposed?.show()
|
183
183
|
}
|
184
|
+
|
185
|
+
/**
|
186
|
+
* 修改状态二次确认
|
187
|
+
*/
|
188
|
+
export function useConfirm(cbk: Function, tip = '确定修改状态嘛?', successTip?: string) {
|
189
|
+
ElMessageBox.confirm(tip, '提示', {
|
190
|
+
type: 'warning',
|
191
|
+
confirmButtonText: '确定',
|
192
|
+
cancelButtonText: '取消',
|
193
|
+
})
|
194
|
+
.then(async () => {
|
195
|
+
await cbk()
|
196
|
+
successTip && ElMessage.success(successTip)
|
197
|
+
})
|
198
|
+
.catch(() => null)
|
199
|
+
}
|