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.
- package/README.md +5 -3
- package/dist/index.mjs +9 -9
- package/package.json +1 -1
- package/template-nuxt-admin/Dockerfile +41 -0
- package/template-nuxt-admin/README.md +35 -0
- package/template-nuxt-admin/app.vue +41 -0
- package/template-nuxt-admin/boot.mjs +16 -0
- package/template-nuxt-admin/components/ScreenFull.vue +18 -0
- package/template-nuxt-admin/components/TopSearch.vue +73 -0
- package/template-nuxt-admin/components/TopUser.vue +69 -0
- package/template-nuxt-admin/components/YoungChangePassword.vue +87 -0
- package/template-nuxt-admin/components/YoungCodeInput.vue +60 -0
- package/template-nuxt-admin/components/YoungLink.vue +23 -0
- package/template-nuxt-admin/components/YoungLoading.vue +39 -0
- package/template-nuxt-admin/components/layout/Footer.vue +29 -0
- package/template-nuxt-admin/components/layout/Logo.vue +52 -0
- package/template-nuxt-admin/components/layout/Main.vue +41 -0
- package/template-nuxt-admin/components/layout/NavBar.vue +77 -0
- package/template-nuxt-admin/components/layout/SideBar.vue +90 -0
- package/template-nuxt-admin/components/layout/SubMenu.vue +46 -0
- package/template-nuxt-admin/components/layout/TabsBar.vue +183 -0
- package/template-nuxt-admin/composables/api.ts +104 -0
- package/template-nuxt-admin/composables/apis/delete.ts +37 -0
- package/template-nuxt-admin/composables/apis/get.ts +83 -0
- package/template-nuxt-admin/composables/apis/index.ts +10 -0
- package/template-nuxt-admin/composables/apis/patch.ts +74 -0
- package/template-nuxt-admin/composables/apis/post.ts +85 -0
- package/template-nuxt-admin/composables/config.ts +13 -0
- package/template-nuxt-admin/composables/icon.ts +27 -0
- package/template-nuxt-admin/composables/nav.ts +60 -0
- package/template-nuxt-admin/composables/tags.ts +108 -0
- package/template-nuxt-admin/composables/user.ts +29 -0
- package/template-nuxt-admin/config/.devrc +1 -0
- package/template-nuxt-admin/config/.onlinerc +1 -0
- package/template-nuxt-admin/config/.testrc +1 -0
- package/template-nuxt-admin/env.d.ts +47 -0
- package/template-nuxt-admin/error.vue +53 -0
- package/template-nuxt-admin/layouts/blank.vue +9 -0
- package/template-nuxt-admin/layouts/default.vue +124 -0
- package/template-nuxt-admin/middleware/auth.global.ts +39 -0
- package/template-nuxt-admin/nuxt.config.ts +101 -0
- package/template-nuxt-admin/package.json +44 -0
- package/template-nuxt-admin/pages/home/[id].vue +28 -0
- package/template-nuxt-admin/pages/index.vue +20 -0
- package/template-nuxt-admin/pages/login.vue +179 -0
- package/template-nuxt-admin/pages/system/api.vue +166 -0
- package/template-nuxt-admin/pages/system/hooks/useRole.ts +336 -0
- package/template-nuxt-admin/pages/system/menuList.vue +329 -0
- package/template-nuxt-admin/pages/system/role.vue +117 -0
- package/template-nuxt-admin/pages/system/user.vue +214 -0
- package/template-nuxt-admin/plugins/directive.ts +26 -0
- package/template-nuxt-admin/public/default_avatar.svg +1 -0
- package/template-nuxt-admin/public/favicon.ico +0 -0
- package/template-nuxt-admin/public/image_placeholder.svg +15 -0
- package/template-nuxt-admin/public/tabbar_bg.png +0 -0
- package/template-nuxt-admin/rome.json +26 -0
- package/template-nuxt-admin/server/api/[...all].ts +10 -0
- package/template-nuxt-admin/server/plugins/env.ts +89 -0
- package/template-nuxt-admin/server/routes/get/env.ts +13 -0
- package/template-nuxt-admin/server/tsconfig.json +3 -0
- package/template-nuxt-admin/server/utils/index.ts +35 -0
- package/template-nuxt-admin/styles/element.scss +30 -0
- package/template-nuxt-admin/styles/index.scss +59 -0
- package/template-nuxt-admin/styles/variable.scss +103 -0
- package/template-nuxt-admin/tsconfig.json +7 -0
- package/template-nuxt-admin/typings/global.d.ts +16 -0
- package/template-nuxt-admin/typings/system.d.ts +66 -0
- package/template-nuxt-admin/typings/user.d.ts +19 -0
- package/template-nuxt-admin/uno.config.ts +40 -0
- package/template-nuxt-admin/utils/tool.ts +207 -0
- package/template-nuxt-admin/yarn.lock +6849 -0
- package/template-uni-app/_npmrc +2 -0
- package/template-uni-app/src/layouts/tabbar.vue +6 -6
- package/template-uni-app/src/pages/index.vue +16 -12
- package/template-uni-app/src/pages/my.vue +7 -11
@@ -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
|
-
<
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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
|
-
<
|
27
|
-
|
28
|
-
|
29
|
-
<
|
30
|
-
|
31
|
-
|
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
|
-
|
34
|
-
|
36
|
+
<button @click="testGet">点我测试 Get 请求</button>
|
37
|
+
<button @click="testPost">点我测试 Post 请求</button>
|
35
38
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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-
|
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
|
-
<
|
16
|
-
|
17
|
-
|
18
|
-
<
|
19
|
-
|
20
|
-
|
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>
|