create-pubinfo 2.0.0-rc.4 → 2.0.0-rc.5
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/dist/index.js +199 -148
- package/package.json +5 -1
- package/templates/{pubinfo-template → pubinfo-app}/.env +0 -3
- package/templates/{pubinfo-template/openapi.config.ts → pubinfo-app/openapi.config.ts.hbs} +1 -1
- package/templates/{pubinfo-template/package.json → pubinfo-app/package.json.hbs} +8 -4
- package/templates/pubinfo-app/src/settings.ts.hbs +8 -0
- package/templates/pubinfo-module/.editorconfig +10 -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 +6 -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 +22 -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 +24 -0
- package/templates/pubinfo-module/playground/src/modules/auth.ts +20 -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-template → pubinfo-module/playground}/src/settings.ts +1 -1
- 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-template → pubinfo-app}/.browserslistrc +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/.editorconfig +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/.env.development +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/.env.production +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/_gitignore +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/_npmrc +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/eslint.config.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/index.html +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/pubinfo.config.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/public/browser_upgrade/chrome.png +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/public/browser_upgrade/edge.png +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/public/browser_upgrade/index.css +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/public/loading.css +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/App.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/api/modules/auth/index.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/api/modules/auth/renzhengfuwu.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/api/modules/auth/typings.d.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/api/request.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/assets/icons/logo.svg +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/assets/icons/process-management.svg +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/assets/icons/workbench.svg +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/assets/images/login-bg.webp +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/assets/images/login-bg_dark.webp +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/assets/images/login-small.png +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/assets/images/login-small_dark.webp +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/components/UIProvider/index.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/layouts/index.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/main.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/modules/auth.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/modules/rbac.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/routes/index.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/routes/modules/demo/breadcrumb.example.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/routes/modules/demo/link.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/routes/modules/demo/multilevel.menu.example.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/routes/modules/demo/other.page.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/routes/modules/demo/single.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/stores/index.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/stores/modules/conter.ts +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/breadcrumb_example/detail1.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/breadcrumb_example/detail2.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/breadcrumb_example/list1.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/breadcrumb_example/list2.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/multilevel_menu_example/level2/level3/page1.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/multilevel_menu_example/level2/level3/page2.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/multilevel_menu_example/level2/page.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/multilevel_menu_example/page.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/other_page/des.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/other_page/index.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/preview-empty/index.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/single/index.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/system/index.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/system/login/components/LoginForm.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/system/login/components/LoginWithPhone.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/system/login/components/PasswordLogin.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/system/login/components/Savephone.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/system/login/components/Useragreement.vue +0 -0
- package/templates/{pubinfo-template → pubinfo-app}/src/views/system/login/composables.ts +1 -1
- /package/templates/{pubinfo-template → pubinfo-app}/src/views/system/login/index.vue +0 -0
- /package/templates/{pubinfo-template → pubinfo-app}/stylelint.config.js +0 -0
- /package/templates/{pubinfo-template → pubinfo-app}/tsconfig.json +0 -0
- /package/templates/{pubinfo-template → pubinfo-app}/uno.config.ts +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineModuleConfig } from 'pubinfo/node';
|
|
2
|
+
import pkg from './package.json' with { type: 'json' };
|
|
3
|
+
|
|
4
|
+
const external = Object
|
|
5
|
+
.keys({ ...pkg.peerDependencies })
|
|
6
|
+
.map(packageName => new RegExp(`^${packageName}(\/.*)?`));
|
|
7
|
+
|
|
8
|
+
export default defineModuleConfig({
|
|
9
|
+
moduleId: '{{dir}}',
|
|
10
|
+
|
|
11
|
+
vite: {
|
|
12
|
+
build: {
|
|
13
|
+
sourcemap: false,
|
|
14
|
+
lib: {
|
|
15
|
+
entry: 'src/index.ts',
|
|
16
|
+
},
|
|
17
|
+
rolldownOptions: {
|
|
18
|
+
external,
|
|
19
|
+
output: [
|
|
20
|
+
{
|
|
21
|
+
format: 'es',
|
|
22
|
+
entryFileNames: '[name].js',
|
|
23
|
+
exports: 'named',
|
|
24
|
+
dir: 'dist',
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
resolver: {
|
|
32
|
+
entries: {
|
|
33
|
+
pages: 'src/pages/**/*.vue',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./.pubinfo/tsconfig.app.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"baseUrl": ".",
|
|
6
|
+
"moduleResolution": "bundler",
|
|
7
|
+
"paths": {
|
|
8
|
+
"@/*": ["src/*"],
|
|
9
|
+
"#/*": ["types/*"]
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"include": [
|
|
13
|
+
"src",
|
|
14
|
+
"types"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/templates/{pubinfo-template → pubinfo-app}/src/routes/modules/demo/breadcrumb.example.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/breadcrumb_example/detail1.vue
RENAMED
|
File without changes
|
package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/breadcrumb_example/detail2.vue
RENAMED
|
File without changes
|
package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/breadcrumb_example/list1.vue
RENAMED
|
File without changes
|
package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/breadcrumb_example/list2.vue
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/templates/{pubinfo-template → pubinfo-app}/src/views/demo/multilevel_menu_example/page.vue
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/templates/{pubinfo-template → pubinfo-app}/src/views/system/login/components/LoginForm.vue
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/templates/{pubinfo-template → pubinfo-app}/src/views/system/login/components/Savephone.vue
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Component, MaybeRef } from 'vue';
|
|
2
|
-
import { getAuthLoginValidCode } from '@/api/modules/auth';
|
|
3
2
|
import { useActiveElement } from '@vueuse/core';
|
|
4
3
|
import { useRequest } from 'alova/client';
|
|
4
|
+
import { getAuthLoginValidCode } from '@/api/modules/auth';
|
|
5
5
|
|
|
6
6
|
interface LoginTabs {
|
|
7
7
|
title: string
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|