create-pubinfo-pr 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +20 -0
- package/dist/cli-BgCjzF7D.d.ts +2 -0
- package/dist/cli.js +258 -0
- package/dist/helper-Cwc2jDwQ.js +229 -0
- package/dist/index-DCf5j10Q.d.ts +122 -0
- package/dist/index.js +3 -0
- package/package.json +52 -0
- package/templates/pubinfo-app/.browserslistrc +5 -0
- package/templates/pubinfo-app/.editorconfig +10 -0
- package/templates/pubinfo-app/.env +2 -0
- package/templates/pubinfo-app/.env.development +4 -0
- package/templates/pubinfo-app/.env.production +10 -0
- package/templates/pubinfo-app/.vscode/settings.json +50 -0
- package/templates/pubinfo-app/_gitignore +38 -0
- package/templates/pubinfo-app/_npmrc +5 -0
- package/templates/pubinfo-app/eslint.config.ts +3 -0
- package/templates/pubinfo-app/index.html +47 -0
- package/templates/pubinfo-app/openapi.config.ts.hbs +33 -0
- package/templates/pubinfo-app/package.json.hbs +59 -0
- package/templates/pubinfo-app/pubinfo.config.ts +9 -0
- package/templates/pubinfo-app/public/browser_upgrade/chrome.png +0 -0
- package/templates/pubinfo-app/public/browser_upgrade/edge.png +0 -0
- package/templates/pubinfo-app/public/browser_upgrade/index.css +49 -0
- package/templates/pubinfo-app/public/loading.css +92 -0
- package/templates/pubinfo-app/src/App.vue +7 -0
- package/templates/pubinfo-app/src/api/modules/auth/index.ts +3 -0
- package/templates/pubinfo-app/src/api/modules/auth/renzhengfuwu.ts +145 -0
- package/templates/pubinfo-app/src/api/modules/auth/typings.d.ts +97 -0
- package/templates/pubinfo-app/src/api/request.ts +125 -0
- package/templates/pubinfo-app/src/assets/icons/logo.svg +1 -0
- package/templates/pubinfo-app/src/assets/icons/process-management.svg +1 -0
- package/templates/pubinfo-app/src/assets/icons/workbench.svg +1 -0
- package/templates/pubinfo-app/src/assets/images/login-bg.webp +0 -0
- package/templates/pubinfo-app/src/assets/images/login-bg_dark.webp +0 -0
- package/templates/pubinfo-app/src/assets/images/login-small.png +0 -0
- package/templates/pubinfo-app/src/assets/images/login-small_dark.webp +0 -0
- package/templates/pubinfo-app/src/components/UIProvider/index.vue +51 -0
- package/templates/pubinfo-app/src/layouts/index.vue +48 -0
- package/templates/pubinfo-app/src/main.ts.hbs +26 -0
- package/templates/pubinfo-app/src/modules/captcha.ts +8 -0
- package/templates/pubinfo-app/src/modules/rbac.ts +10 -0
- package/templates/pubinfo-app/src/routes/index.ts +71 -0
- package/templates/pubinfo-app/src/routes/modules/demo/breadcrumb.example.ts +62 -0
- package/templates/pubinfo-app/src/routes/modules/demo/link.ts +15 -0
- package/templates/pubinfo-app/src/routes/modules/demo/multilevel.menu.example.ts +68 -0
- package/templates/pubinfo-app/src/routes/modules/demo/other.page.ts +37 -0
- package/templates/pubinfo-app/src/routes/modules/demo/single.ts +14 -0
- package/templates/pubinfo-app/src/settings.ts.hbs +8 -0
- package/templates/pubinfo-app/src/stores/index.ts +2 -0
- package/templates/pubinfo-app/src/stores/modules/conter.ts +16 -0
- package/templates/pubinfo-app/src/views/demo/breadcrumb_example/detail1.vue +11 -0
- package/templates/pubinfo-app/src/views/demo/breadcrumb_example/detail2.vue +11 -0
- package/templates/pubinfo-app/src/views/demo/breadcrumb_example/list1.vue +11 -0
- package/templates/pubinfo-app/src/views/demo/breadcrumb_example/list2.vue +11 -0
- package/templates/pubinfo-app/src/views/demo/multilevel_menu_example/level2/level3/page1.vue +11 -0
- package/templates/pubinfo-app/src/views/demo/multilevel_menu_example/level2/level3/page2.vue +11 -0
- package/templates/pubinfo-app/src/views/demo/multilevel_menu_example/level2/page.vue +11 -0
- package/templates/pubinfo-app/src/views/demo/multilevel_menu_example/page.vue +11 -0
- package/templates/pubinfo-app/src/views/demo/other_page/des.vue +13 -0
- package/templates/pubinfo-app/src/views/demo/other_page/index.vue +25 -0
- package/templates/pubinfo-app/src/views/demo/preview-empty/index.vue +17 -0
- package/templates/pubinfo-app/src/views/demo/single/index.vue +13 -0
- package/templates/pubinfo-app/src/views/system/index.vue +5 -0
- package/templates/pubinfo-app/src/views/system/login/components/LoginForm.vue +29 -0
- package/templates/pubinfo-app/src/views/system/login/components/LoginWithPhone.vue +213 -0
- package/templates/pubinfo-app/src/views/system/login/components/PasswordLogin.vue +178 -0
- package/templates/pubinfo-app/src/views/system/login/components/Savephone.vue +17 -0
- package/templates/pubinfo-app/src/views/system/login/components/Useragreement.vue +26 -0
- package/templates/pubinfo-app/src/views/system/login/composables.ts +63 -0
- package/templates/pubinfo-app/src/views/system/login/index.vue +142 -0
- package/templates/pubinfo-app/stylelint.config.js +3 -0
- package/templates/pubinfo-app/tsconfig.json +3 -0
- package/templates/pubinfo-app/uno.config.ts +17 -0
- package/templates/pubinfo-module/.editorconfig +10 -0
- package/templates/pubinfo-module/.vscode/settings.json +50 -0
- package/templates/pubinfo-module/README.md.hbs +27 -0
- package/templates/pubinfo-module/_gitignore +38 -0
- package/templates/pubinfo-module/_npmrc +5 -0
- package/templates/pubinfo-module/eslint.config.ts +3 -0
- package/templates/pubinfo-module/package.json.hbs +67 -0
- package/templates/pubinfo-module/playground/.env +2 -0
- package/templates/pubinfo-module/playground/.env.development +4 -0
- package/templates/pubinfo-module/playground/.env.production +10 -0
- package/templates/pubinfo-module/playground/index.html +47 -0
- package/templates/pubinfo-module/playground/openapi.config.ts.hbs +33 -0
- package/templates/pubinfo-module/playground/package.json.hbs +21 -0
- package/templates/pubinfo-module/playground/pubinfo.config.ts +9 -0
- package/templates/pubinfo-module/playground/public/browser_upgrade/chrome.png +0 -0
- package/templates/pubinfo-module/playground/public/browser_upgrade/edge.png +0 -0
- package/templates/pubinfo-module/playground/public/browser_upgrade/index.css +49 -0
- package/templates/pubinfo-module/playground/public/loading.css +92 -0
- package/templates/pubinfo-module/playground/src/App.vue +7 -0
- package/templates/pubinfo-module/playground/src/api/modules/auth/index.ts +3 -0
- package/templates/pubinfo-module/playground/src/api/modules/auth/renzhengfuwu.ts +145 -0
- package/templates/pubinfo-module/playground/src/api/modules/auth/typings.d.ts +97 -0
- package/templates/pubinfo-module/playground/src/api/request.ts +125 -0
- package/templates/pubinfo-module/playground/src/assets/icons/logo.svg +1 -0
- package/templates/pubinfo-module/playground/src/assets/icons/process-management.svg +1 -0
- package/templates/pubinfo-module/playground/src/assets/icons/workbench.svg +1 -0
- package/templates/pubinfo-module/playground/src/assets/images/login-bg.webp +0 -0
- package/templates/pubinfo-module/playground/src/assets/images/login-bg_dark.webp +0 -0
- package/templates/pubinfo-module/playground/src/assets/images/login-small.png +0 -0
- package/templates/pubinfo-module/playground/src/assets/images/login-small_dark.webp +0 -0
- package/templates/pubinfo-module/playground/src/components/UIProvider/index.vue +51 -0
- package/templates/pubinfo-module/playground/src/layouts/index.vue +44 -0
- package/templates/pubinfo-module/playground/src/main.ts.hbs +22 -0
- package/templates/pubinfo-module/playground/src/modules/rbac.ts +10 -0
- package/templates/pubinfo-module/playground/src/routes/index.ts +71 -0
- package/templates/pubinfo-module/playground/src/routes/modules/demo/breadcrumb.example.ts +62 -0
- package/templates/pubinfo-module/playground/src/routes/modules/demo/link.ts +15 -0
- package/templates/pubinfo-module/playground/src/routes/modules/demo/multilevel.menu.example.ts +68 -0
- package/templates/pubinfo-module/playground/src/routes/modules/demo/other.page.ts +37 -0
- package/templates/pubinfo-module/playground/src/routes/modules/demo/single.ts +14 -0
- package/templates/pubinfo-module/playground/src/settings.ts +8 -0
- package/templates/pubinfo-module/playground/src/stores/index.ts +2 -0
- package/templates/pubinfo-module/playground/src/stores/modules/conter.ts +16 -0
- package/templates/pubinfo-module/playground/src/views/demo/breadcrumb_example/detail1.vue +11 -0
- package/templates/pubinfo-module/playground/src/views/demo/breadcrumb_example/detail2.vue +11 -0
- package/templates/pubinfo-module/playground/src/views/demo/breadcrumb_example/list1.vue +11 -0
- package/templates/pubinfo-module/playground/src/views/demo/breadcrumb_example/list2.vue +11 -0
- package/templates/pubinfo-module/playground/src/views/demo/multilevel_menu_example/level2/level3/page1.vue +11 -0
- package/templates/pubinfo-module/playground/src/views/demo/multilevel_menu_example/level2/level3/page2.vue +11 -0
- package/templates/pubinfo-module/playground/src/views/demo/multilevel_menu_example/level2/page.vue +11 -0
- package/templates/pubinfo-module/playground/src/views/demo/multilevel_menu_example/page.vue +11 -0
- package/templates/pubinfo-module/playground/src/views/demo/other_page/des.vue +13 -0
- package/templates/pubinfo-module/playground/src/views/demo/other_page/index.vue +25 -0
- package/templates/pubinfo-module/playground/src/views/demo/preview-empty/index.vue +17 -0
- package/templates/pubinfo-module/playground/src/views/demo/single/index.vue +13 -0
- package/templates/pubinfo-module/playground/src/views/system/index.vue +5 -0
- package/templates/pubinfo-module/playground/src/views/system/login/components/LoginForm.vue +29 -0
- package/templates/pubinfo-module/playground/src/views/system/login/components/LoginWithPhone.vue +213 -0
- package/templates/pubinfo-module/playground/src/views/system/login/components/PasswordLogin.vue +194 -0
- package/templates/pubinfo-module/playground/src/views/system/login/components/Savephone.vue +17 -0
- package/templates/pubinfo-module/playground/src/views/system/login/components/Useragreement.vue +26 -0
- package/templates/pubinfo-module/playground/src/views/system/login/composables.ts +84 -0
- package/templates/pubinfo-module/playground/src/views/system/login/index.vue +142 -0
- package/templates/pubinfo-module/playground/tsconfig.json +3 -0
- package/templates/pubinfo-module/playground/uno.config.ts +17 -0
- package/templates/pubinfo-module/pnpm-workspace.yaml +2 -0
- package/templates/pubinfo-module/pubinfo.config.ts.hbs +36 -0
- package/templates/pubinfo-module/src/index.ts.hbs +9 -0
- package/templates/pubinfo-module/src/pages/demo.vue +11 -0
- package/templates/pubinfo-module/stylelint.config.js +3 -0
- package/templates/pubinfo-module/tsconfig.json +16 -0
- package/templates/pubinfo-module/uno.config.ts +8 -0
- package/templates/pubinfo-monorepo/.browserslistrc +5 -0
- package/templates/pubinfo-monorepo/.editorconfig +10 -0
- package/templates/pubinfo-monorepo/.vscode/settings.json +50 -0
- package/templates/pubinfo-monorepo/_gitignore +38 -0
- package/templates/pubinfo-monorepo/_npmrc +5 -0
- package/templates/pubinfo-monorepo/apps/basic/.env +2 -0
- package/templates/pubinfo-monorepo/apps/basic/.env.development +4 -0
- package/templates/pubinfo-monorepo/apps/basic/.env.production +10 -0
- package/templates/pubinfo-monorepo/apps/basic/index.html +47 -0
- package/templates/pubinfo-monorepo/apps/basic/openapi.config.ts.hbs +33 -0
- package/templates/pubinfo-monorepo/apps/basic/package.json.hbs +26 -0
- package/templates/pubinfo-monorepo/apps/basic/pubinfo.config.ts +9 -0
- package/templates/pubinfo-monorepo/apps/basic/public/browser_upgrade/chrome.png +0 -0
- package/templates/pubinfo-monorepo/apps/basic/public/browser_upgrade/edge.png +0 -0
- package/templates/pubinfo-monorepo/apps/basic/public/browser_upgrade/index.css +49 -0
- package/templates/pubinfo-monorepo/apps/basic/public/loading.css +92 -0
- package/templates/pubinfo-monorepo/apps/basic/src/App.vue +7 -0
- package/templates/pubinfo-monorepo/apps/basic/src/api/modules/auth/index.ts +3 -0
- package/templates/pubinfo-monorepo/apps/basic/src/api/modules/auth/renzhengfuwu.ts +145 -0
- package/templates/pubinfo-monorepo/apps/basic/src/api/modules/auth/typings.d.ts +97 -0
- package/templates/pubinfo-monorepo/apps/basic/src/api/request.ts +125 -0
- package/templates/pubinfo-monorepo/apps/basic/src/assets/icons/logo.svg +1 -0
- package/templates/pubinfo-monorepo/apps/basic/src/assets/icons/process-management.svg +1 -0
- package/templates/pubinfo-monorepo/apps/basic/src/assets/icons/workbench.svg +1 -0
- package/templates/pubinfo-monorepo/apps/basic/src/assets/images/login-bg.webp +0 -0
- package/templates/pubinfo-monorepo/apps/basic/src/assets/images/login-bg_dark.webp +0 -0
- package/templates/pubinfo-monorepo/apps/basic/src/assets/images/login-small.png +0 -0
- package/templates/pubinfo-monorepo/apps/basic/src/assets/images/login-small_dark.webp +0 -0
- package/templates/pubinfo-monorepo/apps/basic/src/components/UIProvider/index.vue +51 -0
- package/templates/pubinfo-monorepo/apps/basic/src/layouts/index.vue +48 -0
- package/templates/pubinfo-monorepo/apps/basic/src/main.ts.hbs +26 -0
- package/templates/pubinfo-monorepo/apps/basic/src/modules/captcha.ts +8 -0
- package/templates/pubinfo-monorepo/apps/basic/src/modules/rbac.ts +10 -0
- package/templates/pubinfo-monorepo/apps/basic/src/routes/index.ts +71 -0
- package/templates/pubinfo-monorepo/apps/basic/src/routes/modules/demo/breadcrumb.example.ts +62 -0
- package/templates/pubinfo-monorepo/apps/basic/src/routes/modules/demo/link.ts +15 -0
- package/templates/pubinfo-monorepo/apps/basic/src/routes/modules/demo/multilevel.menu.example.ts +68 -0
- package/templates/pubinfo-monorepo/apps/basic/src/routes/modules/demo/other.page.ts +37 -0
- package/templates/pubinfo-monorepo/apps/basic/src/routes/modules/demo/single.ts +14 -0
- package/templates/pubinfo-monorepo/apps/basic/src/settings.ts.hbs +8 -0
- package/templates/pubinfo-monorepo/apps/basic/src/stores/index.ts +2 -0
- package/templates/pubinfo-monorepo/apps/basic/src/stores/modules/conter.ts +16 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/breadcrumb_example/detail1.vue +11 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/breadcrumb_example/detail2.vue +11 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/breadcrumb_example/list1.vue +11 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/breadcrumb_example/list2.vue +11 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/multilevel_menu_example/level2/level3/page1.vue +11 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/multilevel_menu_example/level2/level3/page2.vue +11 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/multilevel_menu_example/level2/page.vue +11 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/multilevel_menu_example/page.vue +11 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/other_page/des.vue +13 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/other_page/index.vue +25 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/preview-empty/index.vue +17 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/single/index.vue +13 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/system/index.vue +5 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/system/login/components/LoginForm.vue +29 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/system/login/components/LoginWithPhone.vue +213 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/system/login/components/PasswordLogin.vue +178 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/system/login/components/Savephone.vue +17 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/system/login/components/Useragreement.vue +26 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/system/login/composables.ts +63 -0
- package/templates/pubinfo-monorepo/apps/basic/src/views/system/login/index.vue +142 -0
- package/templates/pubinfo-monorepo/apps/basic/tsconfig.json +3 -0
- package/templates/pubinfo-monorepo/apps/basic/uno.config.ts +17 -0
- package/templates/pubinfo-monorepo/eslint.config.ts +3 -0
- package/templates/pubinfo-monorepo/package.json.hbs +45 -0
- package/templates/pubinfo-monorepo/pnpm-lock.yaml +12686 -0
- package/templates/pubinfo-monorepo/pnpm-workspace.yaml +11 -0
- package/templates/pubinfo-monorepo/stylelint.config.js +3 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { Component, MaybeRef } from 'vue';
|
|
2
|
+
import { useActiveElement } from '@vueuse/core';
|
|
3
|
+
|
|
4
|
+
interface LoginTabs {
|
|
5
|
+
title: string
|
|
6
|
+
component: Component
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function useLoginTabs() {
|
|
10
|
+
const tabs: LoginTabs[] = [
|
|
11
|
+
{
|
|
12
|
+
title: '账号登录',
|
|
13
|
+
component: defineAsyncComponent(() => import('./components/PasswordLogin.vue')),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
title: '手机号登录',
|
|
17
|
+
component: defineAsyncComponent(() => import('./components/LoginWithPhone.vue')),
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
const initialTab = ref(0);
|
|
21
|
+
|
|
22
|
+
function changeActiveTab(activeTab: number): void {
|
|
23
|
+
initialTab.value = activeTab;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
tabs,
|
|
27
|
+
initialTab,
|
|
28
|
+
changeActiveTab,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function useFocusElement() {
|
|
33
|
+
const activeElement = useActiveElement();
|
|
34
|
+
const focusElementDataId = computed(() =>
|
|
35
|
+
activeElement.value?.dataset?.id || 'null',
|
|
36
|
+
);
|
|
37
|
+
return {
|
|
38
|
+
focusElementDataId,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function useCountdown(initialTime: MaybeRef<number> = 60) {
|
|
43
|
+
const count = ref(toValue(initialTime));
|
|
44
|
+
const isStart = computed(() => {
|
|
45
|
+
return toValue(count) !== toValue(initialTime);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
function start() {
|
|
49
|
+
count.value--;
|
|
50
|
+
const timer = setInterval(() => {
|
|
51
|
+
count.value--;
|
|
52
|
+
if (count.value === 0) {
|
|
53
|
+
clearInterval(timer);
|
|
54
|
+
count.value = toValue(initialTime);
|
|
55
|
+
}
|
|
56
|
+
}, 1000);
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
count,
|
|
60
|
+
start,
|
|
61
|
+
isStart,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import LoginFrom from './components/LoginForm.vue';
|
|
3
|
+
|
|
4
|
+
defineOptions({
|
|
5
|
+
name: 'Login',
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
const title = ref(import.meta.env.VITE_APP_TITLE);
|
|
9
|
+
|
|
10
|
+
const designDescription = [
|
|
11
|
+
{
|
|
12
|
+
title: '快速',
|
|
13
|
+
description: '快速搭建技术中台系统',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
title: '灵活',
|
|
17
|
+
description: '灵活配置系统功能',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
title: '便捷',
|
|
21
|
+
description: '高效提升系统开发效率',
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<template>
|
|
27
|
+
<div class="warp">
|
|
28
|
+
<div class="warp-blank">
|
|
29
|
+
<div
|
|
30
|
+
hidden
|
|
31
|
+
smd:block
|
|
32
|
+
class="w-full pl-[5vw] pt-[7vh]"
|
|
33
|
+
>
|
|
34
|
+
<div class="logo-group">
|
|
35
|
+
<PubinfoIcon
|
|
36
|
+
name="logo"
|
|
37
|
+
color="transparent"
|
|
38
|
+
mr="10px"
|
|
39
|
+
:size="32"
|
|
40
|
+
/>
|
|
41
|
+
<span text="black dark:[#C9D6EF]">{{ title }}</span>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="title-group">
|
|
44
|
+
<span text="black dark:[#C9D6EF]">一体化技术架构 一站式技术支撑</span>
|
|
45
|
+
<div flex="~ row" mt="30px">
|
|
46
|
+
<div
|
|
47
|
+
v-for="(item, index) in designDescription"
|
|
48
|
+
:key="index"
|
|
49
|
+
w-84px
|
|
50
|
+
h-36px
|
|
51
|
+
bg="#2F6BFF"
|
|
52
|
+
rounded-20px
|
|
53
|
+
text="20px #F7F7F7 dark:[#fff]"
|
|
54
|
+
font-normal
|
|
55
|
+
flex="~ center"
|
|
56
|
+
mr="15px"
|
|
57
|
+
>
|
|
58
|
+
{{ item.title }}
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
<div
|
|
65
|
+
h-full
|
|
66
|
+
bg="[rgba(255,255,255,0.1)] smd:[rgba(255,255,255,1)] dark:[#0F1E3B]"
|
|
67
|
+
backdrop-blur-sm
|
|
68
|
+
w="full smd:1/2 xl:800px 2xl:900px"
|
|
69
|
+
transition-all
|
|
70
|
+
flex="~ col"
|
|
71
|
+
justify-between
|
|
72
|
+
pb="40px"
|
|
73
|
+
relative
|
|
74
|
+
>
|
|
75
|
+
<div
|
|
76
|
+
smd:hidden
|
|
77
|
+
flex="~ row center"
|
|
78
|
+
w-full
|
|
79
|
+
h-200px
|
|
80
|
+
absolute
|
|
81
|
+
disable="none"
|
|
82
|
+
>
|
|
83
|
+
<PubinfoIcon
|
|
84
|
+
name="logo"
|
|
85
|
+
color="transparent"
|
|
86
|
+
:size="42"
|
|
87
|
+
mr-15px
|
|
88
|
+
/>
|
|
89
|
+
<span text="33px" font="bold">{{ title }}</span>
|
|
90
|
+
</div>
|
|
91
|
+
<div
|
|
92
|
+
w-full
|
|
93
|
+
flex="~"
|
|
94
|
+
justify-center
|
|
95
|
+
pt="20vh"
|
|
96
|
+
>
|
|
97
|
+
<LoginFrom />
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</template>
|
|
102
|
+
|
|
103
|
+
<style scoped>
|
|
104
|
+
.warp {
|
|
105
|
+
--at-apply: relative flex flex-row w-full h-full overflow-hidden;
|
|
106
|
+
background: url("@/assets/images/login-bg.webp") no-repeat;
|
|
107
|
+
background-size: cover;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.warp .warp-blank {
|
|
111
|
+
--at-apply: flex-auto basis-0 overflow-hidden;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.warp .logo-group {
|
|
115
|
+
--at-apply: flex flex-row items-center h-33px mb-35px text-6 font-400 text-[#151e26];
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.warp .title-group {
|
|
119
|
+
--at-apply: h-52px text-38px font-800 text-[#072347] tracking-[1.5px];
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@media (width < 1024px) {
|
|
123
|
+
.warp {
|
|
124
|
+
background: url("@/assets/images/login-small.png") no-repeat left;
|
|
125
|
+
background-size: cover;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
[data-theme="dark"] {
|
|
130
|
+
.warp {
|
|
131
|
+
background: url("@/assets/images/login-bg_dark.webp") no-repeat;
|
|
132
|
+
background-size: cover;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@media (width < 1024px) {
|
|
136
|
+
.warp {
|
|
137
|
+
background: url("@/assets/images/login-small_dark.webp") no-repeat left;
|
|
138
|
+
background-size: cover;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
</style>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { presetUnocss } from 'pubinfo/node';
|
|
2
|
+
import { defineConfig } from 'unocss';
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
presets: [
|
|
6
|
+
presetUnocss(),
|
|
7
|
+
],
|
|
8
|
+
|
|
9
|
+
content: {
|
|
10
|
+
pipeline: {
|
|
11
|
+
include: [
|
|
12
|
+
/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
|
|
13
|
+
'src/routes/**/*.ts',
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pubinfo-template",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"private": true,
|
|
5
|
+
"packageManager": "pnpm@10.12.4",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"commit": "pubinfo-commit",
|
|
8
|
+
"prepare": "pubinfo-commit --init",
|
|
9
|
+
"lint": "pnpm run lint:eslint && pnpm run lint:stylelint",
|
|
10
|
+
"lint:eslint": "eslint . --cache --fix",
|
|
11
|
+
"lint:stylelint": "stylelint \"apps/*/src/**/*.{css,scss,vue}\" --cache --fix",
|
|
12
|
+
"viewer:eslint-rule": "pnpx @eslint/config-inspector"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@ant-design/icons-vue": "^7.0.1",
|
|
16
|
+
"@pubinfo/pro-components": "^1.8.1",
|
|
17
|
+
"@vueuse/core": "^14.0.0",
|
|
18
|
+
"alova": "^3.3.4",
|
|
19
|
+
"ant-design-vue": "^4.2.6",
|
|
20
|
+
"dayjs": "^1.11.19"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@pubinfo/commitlint": "{{version}}",
|
|
24
|
+
"@pubinfo/config": "{{version}}",
|
|
25
|
+
"eslint": "^9.39.1",
|
|
26
|
+
"lint-staged": "^16.2.6",
|
|
27
|
+
"simple-git-hooks": "^2.13.1",
|
|
28
|
+
"stylelint": "^16.25.0",
|
|
29
|
+
"typescript": "^5.9.3"
|
|
30
|
+
},
|
|
31
|
+
"simple-git-hooks": {
|
|
32
|
+
"pre-commit": "pnpm lint-staged && pnpm run lint",
|
|
33
|
+
"commit-msg": "pnpm exec pubinfo commit --edit $1"
|
|
34
|
+
},
|
|
35
|
+
"lint-staged": {
|
|
36
|
+
"*.{vue,js,ts,jsx,tsx,md,json}": "eslint --cache --fix",
|
|
37
|
+
"*.{css,scss,vue}": "stylelint --cache --fix"
|
|
38
|
+
},
|
|
39
|
+
"config": {
|
|
40
|
+
"commitizen": {
|
|
41
|
+
"path": "node_modules/cz-git",
|
|
42
|
+
"czConfig": ".pubinfo/cz.config.cjs"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|