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.
Files changed (130) hide show
  1. package/dist/index.mjs +9 -9
  2. package/package.json +1 -1
  3. package/template-nuxt-admin/README.md +42 -1
  4. package/template-nuxt-admin/components/layout/Main.vue +2 -2
  5. package/template-nuxt-admin/components/layout/NavBar.vue +11 -2
  6. package/template-nuxt-admin/components/layout/SideBar.vue +6 -2
  7. package/template-nuxt-admin/components/layout/SubMenu.vue +9 -2
  8. package/template-nuxt-admin/components/layout/TabsBar.vue +4 -5
  9. package/template-nuxt-admin/composables/api.ts +17 -3
  10. package/template-nuxt-admin/composables/nav.ts +20 -3
  11. package/template-nuxt-admin/composables/tags.ts +29 -1
  12. package/template-nuxt-admin/middleware/auth.global.ts +16 -4
  13. package/template-nuxt-admin/nuxt.config.ts +5 -1
  14. package/template-nuxt-admin/package.json +5 -5
  15. package/template-nuxt-admin/pages/home/[id].vue +2 -2
  16. package/template-nuxt-admin/pages/index.vue +2 -7
  17. package/template-nuxt-admin/pages/login.vue +2 -2
  18. package/template-nuxt-admin/pages/system/menuList.vue +0 -1
  19. package/template-nuxt-admin/public/bg.webp +0 -0
  20. package/template-nuxt-admin/public/favicon.svg +2 -0
  21. package/template-nuxt-admin/public/logo.svg +2 -0
  22. package/template-nuxt-admin/server/plugins/env.ts +3 -4
  23. package/template-nuxt-admin/utils/tool.ts +17 -1
  24. package/template-nuxt-admin/yarn.lock +706 -854
  25. package/template-uni-app/auto-imports.d.ts +9 -6
  26. package/template-uni-app/custom-plugins/index.ts +1 -2
  27. package/template-uni-app/dist/dev/mp-weixin/apis/index.js +5 -6
  28. package/template-uni-app/dist/dev/mp-weixin/apis/requests/get.js +2 -2
  29. package/template-uni-app/dist/dev/mp-weixin/apis/requests/post.js +4 -4
  30. package/template-uni-app/dist/dev/mp-weixin/app.js +4 -5
  31. package/template-uni-app/dist/dev/mp-weixin/common/vendor.js +1448 -2471
  32. package/template-uni-app/dist/dev/mp-weixin/components/young-navbar/young-navbar.js +7 -8
  33. package/template-uni-app/dist/dev/mp-weixin/components/young-navbar/young-navbar.wxml +1 -1
  34. package/template-uni-app/dist/dev/mp-weixin/components/young-tabbar/young-tabbar.js +7 -8
  35. package/template-uni-app/dist/dev/mp-weixin/components/young-tabbar/young-tabbar.wxml +1 -1
  36. package/template-uni-app/dist/dev/mp-weixin/layouts/default.js +1 -2
  37. package/template-uni-app/dist/dev/mp-weixin/layouts/tabbar.wxml +1 -1
  38. package/template-uni-app/dist/dev/mp-weixin/pages/demo/index.js +4 -5
  39. package/template-uni-app/dist/dev/mp-weixin/pages/demo/index.wxml +1 -1
  40. package/template-uni-app/dist/dev/mp-weixin/pages/index.js +4 -5
  41. package/template-uni-app/dist/dev/mp-weixin/pages/index.wxml +1 -1
  42. package/template-uni-app/dist/dev/mp-weixin/pages/my.wxml +1 -1
  43. package/template-uni-app/dist/dev/mp-weixin/project.config.json +1 -2
  44. package/template-uni-app/dist/dev/mp-weixin/project.private.config.json +6 -0
  45. package/template-uni-app/dist/dev/mp-weixin/store/local/index.js +3 -1
  46. package/template-uni-app/dist/dev/mp-weixin/utils/modal.js +10 -14
  47. package/template-uni-app/dist/dev/mp-weixin/utils/route.js +4 -6
  48. package/template-uni-app/dist/dev/mp-weixin/utils/system.js +4 -4
  49. package/template-uni-app/package.json +2 -3
  50. package/template-uni-app/pnpm-lock.yaml +154 -105
  51. package/template-uni-app/src/apis/index.ts +2 -2
  52. package/template-uni-app/src/apis/requests/get.ts +5 -5
  53. package/template-uni-app/src/apis/requests/post.ts +5 -5
  54. package/template-uni-app/vite.config.ts +2 -3
  55. package/template-nuxt-admin/public/favicon.ico +0 -0
  56. package/template-uni-app/custom-plugins/polyfill.ts +0 -32
  57. package/template-uni-app/dist/dev/mp-weixin/apis/lib/index.js +0 -90
  58. package/template-uni-app/src/apis/lib/index.ts +0 -235
  59. package/template-vue-admin/.vscode/extensions.json +0 -10
  60. package/template-vue-admin/.vscode/list-add.code-snippets +0 -108
  61. package/template-vue-admin/.vscode/list-export.code-snippets +0 -72
  62. package/template-vue-admin/.vscode/list.code-snippets +0 -61
  63. package/template-vue-admin/.vscode/settings.json +0 -7
  64. package/template-vue-admin/Dockerfile +0 -42
  65. package/template-vue-admin/README.md +0 -75
  66. package/template-vue-admin/_env +0 -8
  67. package/template-vue-admin/_gitignore +0 -30
  68. package/template-vue-admin/boot.mjs +0 -16
  69. package/template-vue-admin/build/custom-plugin.ts +0 -57
  70. package/template-vue-admin/build/index.ts +0 -7
  71. package/template-vue-admin/build/plugins.ts +0 -59
  72. package/template-vue-admin/config/.devrc +0 -2
  73. package/template-vue-admin/config/.onlinerc +0 -2
  74. package/template-vue-admin/config/.testrc +0 -2
  75. package/template-vue-admin/index.html +0 -21
  76. package/template-vue-admin/nitro.config.ts +0 -19
  77. package/template-vue-admin/package.json +0 -51
  78. package/template-vue-admin/plugins/init.ts +0 -31
  79. package/template-vue-admin/public/vite.svg +0 -1
  80. package/template-vue-admin/rome.json +0 -26
  81. package/template-vue-admin/routes/api/[...all].ts +0 -49
  82. package/template-vue-admin/routes/get/env.ts +0 -18
  83. package/template-vue-admin/src/App.vue +0 -14
  84. package/template-vue-admin/src/apis/delete.ts +0 -36
  85. package/template-vue-admin/src/apis/get.ts +0 -83
  86. package/template-vue-admin/src/apis/index.ts +0 -10
  87. package/template-vue-admin/src/apis/patch.ts +0 -78
  88. package/template-vue-admin/src/apis/post.ts +0 -76
  89. package/template-vue-admin/src/assets/img/login_background.jpg +0 -0
  90. package/template-vue-admin/src/auto-components.d.ts +0 -38
  91. package/template-vue-admin/src/auto-imports.d.ts +0 -302
  92. package/template-vue-admin/src/layouts/blank.vue +0 -9
  93. package/template-vue-admin/src/layouts/default/components/Link.vue +0 -23
  94. package/template-vue-admin/src/layouts/default/components/Logo.vue +0 -20
  95. package/template-vue-admin/src/layouts/default/components/Menu.vue +0 -54
  96. package/template-vue-admin/src/layouts/default/components/NavSearch.vue +0 -52
  97. package/template-vue-admin/src/layouts/default/components/ScrollPane.vue +0 -79
  98. package/template-vue-admin/src/layouts/default/components/TagsView.vue +0 -137
  99. package/template-vue-admin/src/layouts/default/components/TopMenu.vue +0 -21
  100. package/template-vue-admin/src/layouts/default/components/UserCenter.vue +0 -50
  101. package/template-vue-admin/src/layouts/default/index.vue +0 -95
  102. package/template-vue-admin/src/main.ts +0 -46
  103. package/template-vue-admin/src/modules/1-router.ts +0 -48
  104. package/template-vue-admin/src/modules/2-pinia.ts +0 -10
  105. package/template-vue-admin/src/modules/3-net.ts +0 -79
  106. package/template-vue-admin/src/modules/4-auth.ts +0 -124
  107. package/template-vue-admin/src/modules/5-checkupdate.ts +0 -38
  108. package/template-vue-admin/src/shims.d.ts +0 -12
  109. package/template-vue-admin/src/stores/index.ts +0 -9
  110. package/template-vue-admin/src/stores/local/index.ts +0 -31
  111. package/template-vue-admin/src/stores/session/index.ts +0 -63
  112. package/template-vue-admin/src/stores/tags.ts +0 -109
  113. package/template-vue-admin/src/typings/global.d.ts +0 -70
  114. package/template-vue-admin/src/typings/index.ts +0 -13
  115. package/template-vue-admin/src/typings/system.d.ts +0 -46
  116. package/template-vue-admin/src/views/403.vue +0 -33
  117. package/template-vue-admin/src/views/[...all_404].vue +0 -557
  118. package/template-vue-admin/src/views/base/login.vue +0 -194
  119. package/template-vue-admin/src/views/dashboard/[name].vue +0 -28
  120. package/template-vue-admin/src/views/index.vue +0 -25
  121. package/template-vue-admin/src/views/system/api.vue +0 -160
  122. package/template-vue-admin/src/views/system/hooks/useRole.ts +0 -286
  123. package/template-vue-admin/src/views/system/menuList.vue +0 -194
  124. package/template-vue-admin/src/views/system/role.vue +0 -131
  125. package/template-vue-admin/src/views/system/user.vue +0 -192
  126. package/template-vue-admin/src/vite-env.d.ts +0 -52
  127. package/template-vue-admin/tsconfig.json +0 -21
  128. package/template-vue-admin/tsconfig.node.json +0 -9
  129. package/template-vue-admin/unocss.config.ts +0 -47
  130. 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.3.4",
16
+ "@bluesyoung/http": "^1.0.1",
17
17
  "@bluesyoung/ui-vue3": "^0.1.1",
18
- "@bluesyoung/ui-vue3-element-plus": "0.11.6",
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.41.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.5.9",
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.1",
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-07-28 11:34:29
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
- onMounted(() => {
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-07-23 16:23:00
4
+ * @LastEditTime: 2023-09-18 14:15:35
5
5
  * @Description:
6
6
  -->
7
7
  <script setup lang="ts">
8
8
  definePageMeta({
9
- noCache: true,
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-08 10:03:40
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
- onMounted(() => {
66
+ useTabNoCache(() => {
67
67
  if (SaveFlag.value && hasLogin.value) {
68
68
  navigateTo({
69
69
  path: '/',
@@ -284,7 +284,6 @@ useTabReOpen(getList)
284
284
  新建菜单
285
285
  </ElButton>
286
286
  </div>
287
- <br>
288
287
  <!-- 节点列表 -->
289
288
  <YoungTablePro
290
289
  :table-data="tableData" :table-head="tableHead" :tree-props="{ children: 'children' }" row-key="id"
@@ -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-07-31 17:52:20
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
- 'https://dogefs.s3.ladydaily.com/~/source/unsplash/photo-1688380692117-63178554d76d?ixid=M3wyNjY4NDZ8MHwxfHRvcGljfHxhZXU2ckwtajZld3x8fHx8Mnx8MTY5MDAxMDMzNnw&ixlib=rb-4.0.3&w=1920&h=1080&fmt=webp',
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-08 10:12:37
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
+ }