create-young-proj 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. package/README.md +5 -3
  2. package/dist/index.mjs +9 -9
  3. package/package.json +1 -1
  4. package/template-nuxt-admin/Dockerfile +41 -0
  5. package/template-nuxt-admin/README.md +35 -0
  6. package/template-nuxt-admin/app.vue +41 -0
  7. package/template-nuxt-admin/boot.mjs +16 -0
  8. package/template-nuxt-admin/components/ScreenFull.vue +18 -0
  9. package/template-nuxt-admin/components/TopSearch.vue +73 -0
  10. package/template-nuxt-admin/components/TopUser.vue +69 -0
  11. package/template-nuxt-admin/components/YoungChangePassword.vue +87 -0
  12. package/template-nuxt-admin/components/YoungCodeInput.vue +60 -0
  13. package/template-nuxt-admin/components/YoungLink.vue +23 -0
  14. package/template-nuxt-admin/components/YoungLoading.vue +39 -0
  15. package/template-nuxt-admin/components/layout/Footer.vue +29 -0
  16. package/template-nuxt-admin/components/layout/Logo.vue +52 -0
  17. package/template-nuxt-admin/components/layout/Main.vue +41 -0
  18. package/template-nuxt-admin/components/layout/NavBar.vue +77 -0
  19. package/template-nuxt-admin/components/layout/SideBar.vue +90 -0
  20. package/template-nuxt-admin/components/layout/SubMenu.vue +46 -0
  21. package/template-nuxt-admin/components/layout/TabsBar.vue +183 -0
  22. package/template-nuxt-admin/composables/api.ts +104 -0
  23. package/template-nuxt-admin/composables/apis/delete.ts +37 -0
  24. package/template-nuxt-admin/composables/apis/get.ts +83 -0
  25. package/template-nuxt-admin/composables/apis/index.ts +10 -0
  26. package/template-nuxt-admin/composables/apis/patch.ts +74 -0
  27. package/template-nuxt-admin/composables/apis/post.ts +85 -0
  28. package/template-nuxt-admin/composables/config.ts +13 -0
  29. package/template-nuxt-admin/composables/icon.ts +27 -0
  30. package/template-nuxt-admin/composables/nav.ts +60 -0
  31. package/template-nuxt-admin/composables/tags.ts +108 -0
  32. package/template-nuxt-admin/composables/user.ts +29 -0
  33. package/template-nuxt-admin/config/.devrc +1 -0
  34. package/template-nuxt-admin/config/.onlinerc +1 -0
  35. package/template-nuxt-admin/config/.testrc +1 -0
  36. package/template-nuxt-admin/env.d.ts +47 -0
  37. package/template-nuxt-admin/error.vue +53 -0
  38. package/template-nuxt-admin/layouts/blank.vue +9 -0
  39. package/template-nuxt-admin/layouts/default.vue +124 -0
  40. package/template-nuxt-admin/middleware/auth.global.ts +39 -0
  41. package/template-nuxt-admin/nuxt.config.ts +101 -0
  42. package/template-nuxt-admin/package.json +44 -0
  43. package/template-nuxt-admin/pages/home/[id].vue +28 -0
  44. package/template-nuxt-admin/pages/index.vue +20 -0
  45. package/template-nuxt-admin/pages/login.vue +179 -0
  46. package/template-nuxt-admin/pages/system/api.vue +166 -0
  47. package/template-nuxt-admin/pages/system/hooks/useRole.ts +336 -0
  48. package/template-nuxt-admin/pages/system/menuList.vue +329 -0
  49. package/template-nuxt-admin/pages/system/role.vue +117 -0
  50. package/template-nuxt-admin/pages/system/user.vue +214 -0
  51. package/template-nuxt-admin/plugins/directive.ts +26 -0
  52. package/template-nuxt-admin/public/default_avatar.svg +1 -0
  53. package/template-nuxt-admin/public/favicon.ico +0 -0
  54. package/template-nuxt-admin/public/image_placeholder.svg +15 -0
  55. package/template-nuxt-admin/public/tabbar_bg.png +0 -0
  56. package/template-nuxt-admin/rome.json +26 -0
  57. package/template-nuxt-admin/server/api/[...all].ts +10 -0
  58. package/template-nuxt-admin/server/plugins/env.ts +89 -0
  59. package/template-nuxt-admin/server/routes/get/env.ts +13 -0
  60. package/template-nuxt-admin/server/tsconfig.json +3 -0
  61. package/template-nuxt-admin/server/utils/index.ts +35 -0
  62. package/template-nuxt-admin/styles/element.scss +30 -0
  63. package/template-nuxt-admin/styles/index.scss +59 -0
  64. package/template-nuxt-admin/styles/variable.scss +103 -0
  65. package/template-nuxt-admin/tsconfig.json +7 -0
  66. package/template-nuxt-admin/typings/global.d.ts +16 -0
  67. package/template-nuxt-admin/typings/system.d.ts +66 -0
  68. package/template-nuxt-admin/typings/user.d.ts +19 -0
  69. package/template-nuxt-admin/uno.config.ts +40 -0
  70. package/template-nuxt-admin/utils/tool.ts +207 -0
  71. package/template-nuxt-admin/yarn.lock +6849 -0
  72. package/template-uni-app/_npmrc +2 -0
  73. package/template-uni-app/src/layouts/tabbar.vue +6 -6
  74. package/template-uni-app/src/pages/index.vue +16 -12
  75. package/template-uni-app/src/pages/my.vue +7 -11
@@ -0,0 +1,2 @@
1
+ shamefully-hoist=true
2
+ strict-peer-dependencies=false
@@ -17,12 +17,12 @@ onMounted(() => {
17
17
  });
18
18
  </script>
19
19
  <template>
20
+ <slot name="nav"></slot>
20
21
  <young-loading ref="loadingEl" />
21
22
  <young-loading-mini ref="httpLoadingEl" />
22
- <div class="flex flex-col" :style="{ height: `calc(100vh - ${customBarH}px - ${safeBottom}px - 44px)` }">
23
- <scroll-view scroll-y class="flex-1 bg-transparent">
24
- <slot></slot>
25
- </scroll-view>
26
- <young-tabbar :z="999" />
27
- </div>
23
+ <scroll-view scroll-y class="flex flex-col bg-transparent"
24
+ :style="{ height: `calc(100vh - ${customBarH}px - ${safeBottom}px - 44px)` }">
25
+ <slot></slot>
26
+ </scroll-view>
27
+ <young-tabbar :z="999" />
28
28
  </template>
@@ -23,18 +23,22 @@ const testPost = async () => {
23
23
  </script>
24
24
 
25
25
  <template>
26
- <young-navbar :isback="false" />
27
- <h1 class="text-32">我是页面</h1>
28
- <view class="uni-primary">主色</view>
29
- <view class="uni-success">成功色</view>
30
- <view class="uni-warning">警告色</view>
31
- <view class="uni-error">错误色</view>
26
+ <template #nav>
27
+ <young-navbar :isback="false" />
28
+ </template>
29
+ <template #default>
30
+ <h1 class="text-32">我是页面</h1>
31
+ <view class="uni-primary">主色</view>
32
+ <view class="uni-success">成功色</view>
33
+ <view class="uni-warning">警告色</view>
34
+ <view class="uni-error">错误色</view>
32
35
 
33
- <button @click="testGet">点我测试 Get 请求</button>
34
- <button @click="testPost">点我测试 Post 请求</button>
36
+ <button @click="testGet">点我测试 Get 请求</button>
37
+ <button @click="testPost">点我测试 Post 请求</button>
35
38
 
36
- <uni-card title="基础卡片" sub-title="副标题" extra="额外信息"
37
- thumbnail="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/unicloudlogo.png" @click="to(Pages.测试子页面)">
38
- <text>这是一个带头像和双标题的基础卡片,此示例展示了一个完整的卡片。</text>
39
- </uni-card>
39
+ <uni-card title="基础卡片" sub-title="副标题" extra="额外信息"
40
+ thumbnail="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/unicloudlogo.png" @click="to(Pages.测试子页面)">
41
+ <text>这是一个带头像和双标题的基础卡片,此示例展示了一个完整的卡片。</text>
42
+ </uni-card>
43
+ </template>
40
44
  </template>
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  * @Author: zhangyang
3
3
  * @Date: 2023-07-18 17:53:43
4
- * @LastEditTime: 2023-07-20 11:56:29
4
+ * @LastEditTime: 2023-08-01 12:07:03
5
5
  * @Description:
6
6
  -->
7
7
  <route lang="json">
@@ -12,14 +12,10 @@
12
12
  </route>
13
13
 
14
14
  <template>
15
- <uni-nav-bar status-bar :border="false" title="个人中心" />
16
- <h1 class="text-32">我是页面</h1>
17
- <view class="uni-primary">主色</view>
18
- <view class="uni-success">成功色</view>
19
- <view class="uni-warning">警告色</view>
20
- <view class="uni-error">错误色</view>
21
- <uni-card title="基础卡片" sub-title="副标题" extra="额外信息"
22
- thumbnail="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/unicloudlogo.png">
23
- <text>这是一个带头像和双标题的基础卡片,此示例展示了一个完整的卡片。</text>
24
- </uni-card>
15
+ <template #nav>
16
+ <young-navbar :isback="false" />
17
+ </template>
18
+ <template #default>
19
+ <h1 class="text-32">我是个人中心</h1>
20
+ </template>
25
21
  </template>