create-pubinfo 2.1.1 → 2.1.3-beta.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/dist/cli.js +1 -1
- package/dist/{helper-BzE6iSZN.js → helper-B7RQApjD.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/templates/pubinfo-app/package.json.hbs +0 -1
- package/templates/pubinfo-app/src/main.ts.hbs +0 -2
- package/templates/pubinfo-app/src/views/system/login/composables.ts +0 -5
- package/templates/pubinfo-app/uno.config.ts +1 -1
- package/templates/pubinfo-module/playground/package.json.hbs +0 -1
- package/templates/pubinfo-module/playground/src/main.ts.hbs +0 -2
- package/templates/pubinfo-module/playground/uno.config.ts +1 -1
- package/templates/pubinfo-module/uno.config.ts +1 -1
- package/templates/pubinfo-app/src/modules/auth.ts +0 -20
- package/templates/pubinfo-module/playground/src/modules/auth.ts +0 -20
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as validateInput, n as readPackageJSON, r as run, t as bootstrop } from "./helper-
|
|
2
|
+
import { a as validateInput, n as readPackageJSON, r as run, t as bootstrop } from "./helper-B7RQApjD.js";
|
|
3
3
|
import { checkbox, confirm, input, select } from "@inquirer/prompts";
|
|
4
4
|
import { logger } from "@pubinfo/shared";
|
|
5
5
|
import { Command } from "commander";
|
|
@@ -147,7 +147,7 @@ async function run(version$1) {
|
|
|
147
147
|
var package_default = {
|
|
148
148
|
name: "create-pubinfo",
|
|
149
149
|
type: "module",
|
|
150
|
-
version: "2.1.1",
|
|
150
|
+
version: "2.1.3-beta.1",
|
|
151
151
|
description: "初始化项目框架",
|
|
152
152
|
author: "Werheng <werheng.zhang@gmail.com>",
|
|
153
153
|
license: "MIT",
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as interaction, n as readPackageJSON, o as generate, r as run, s as copyTemplate } from "./helper-
|
|
1
|
+
import { i as interaction, n as readPackageJSON, o as generate, r as run, s as copyTemplate } from "./helper-B7RQApjD.js";
|
|
2
2
|
|
|
3
3
|
export { copyTemplate, generate, interaction, readPackageJSON, run };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pubinfo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.1",
|
|
4
|
+
"version": "2.1.3-beta.1",
|
|
5
5
|
"description": "初始化项目框架",
|
|
6
6
|
"author": "Werheng <werheng.zhang@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"ora": "^8.2.0",
|
|
38
38
|
"rimraf": "^6.0.1",
|
|
39
39
|
"semver": "^7.7.2",
|
|
40
|
-
"@pubinfo/shared": "2.1.1"
|
|
40
|
+
"@pubinfo/shared": "2.1.3-beta.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^24.0.10"
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createPubinfo } from 'pubinfo';
|
|
2
2
|
import { auth, basic } from './api/request';
|
|
3
3
|
import App from './App.vue';
|
|
4
|
-
import { setupAuth } from './modules/auth';
|
|
5
4
|
import { setupCaptcha } from './modules/captcha';
|
|
6
5
|
{{#if rbac}}
|
|
7
6
|
import { setupRbac } from './modules/rbac';
|
|
@@ -19,7 +18,6 @@ createPubinfo({
|
|
|
19
18
|
basic,
|
|
20
19
|
},
|
|
21
20
|
modules: [
|
|
22
|
-
setupAuth(),
|
|
23
21
|
setupCaptcha(),
|
|
24
22
|
{{#if rbac}}
|
|
25
23
|
setupRbac(),
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Component, MaybeRef } from 'vue';
|
|
2
|
-
import { LoginWithFourA } from '@pubinfo/module-auth';
|
|
3
2
|
import { useActiveElement } from '@vueuse/core';
|
|
4
3
|
|
|
5
4
|
interface LoginTabs {
|
|
@@ -17,10 +16,6 @@ export function useLoginTabs() {
|
|
|
17
16
|
title: '手机号登录',
|
|
18
17
|
component: defineAsyncComponent(() => import('./components/LoginWithPhone.vue')),
|
|
19
18
|
},
|
|
20
|
-
{
|
|
21
|
-
title: '4A登录',
|
|
22
|
-
component: LoginWithFourA,
|
|
23
|
-
},
|
|
24
19
|
];
|
|
25
20
|
const initialTab = ref(0);
|
|
26
21
|
|
|
@@ -2,7 +2,6 @@ import { createPubinfo } from 'pubinfo';
|
|
|
2
2
|
import { {{camelCase dir}} } from 'pubinfo-module-{{kebabCase dir}}';
|
|
3
3
|
import { auth, basic } from './api/request';
|
|
4
4
|
import App from './App.vue';
|
|
5
|
-
import { setupAuth } from './modules/auth';
|
|
6
5
|
import { setupRbac } from './modules/rbac';
|
|
7
6
|
import { constantRoutes } from './routes';
|
|
8
7
|
import './settings';
|
|
@@ -17,7 +16,6 @@ createPubinfo({
|
|
|
17
16
|
basic,
|
|
18
17
|
},
|
|
19
18
|
modules: [
|
|
20
|
-
setupAuth(),
|
|
21
19
|
setupRbac(),
|
|
22
20
|
{{camelCase dir}}(),
|
|
23
21
|
],
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { auth } from '@pubinfo/module-auth';
|
|
2
|
-
import FourA from '@pubinfo/module-auth/providers/4A';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 登录相关配置
|
|
6
|
-
*/
|
|
7
|
-
export function setupAuth() {
|
|
8
|
-
return auth({
|
|
9
|
-
baseURL: import.meta.env.VITE_APP_API_BASEURL,
|
|
10
|
-
providers: [
|
|
11
|
-
FourA({
|
|
12
|
-
// 4A client_id
|
|
13
|
-
clientId: '',
|
|
14
|
-
|
|
15
|
-
// 4A redirect_uri 需要配置为 `xxx/#/auth/4A` 的格式
|
|
16
|
-
redirectUri: '',
|
|
17
|
-
}),
|
|
18
|
-
],
|
|
19
|
-
});
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { auth } from '@pubinfo/module-auth';
|
|
2
|
-
import FourA from '@pubinfo/module-auth/providers/4A';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 登录相关配置
|
|
6
|
-
*/
|
|
7
|
-
export function setupAuth() {
|
|
8
|
-
return auth({
|
|
9
|
-
baseURL: import.meta.env.VITE_APP_API_BASEURL,
|
|
10
|
-
providers: [
|
|
11
|
-
FourA({
|
|
12
|
-
// 4A client_id
|
|
13
|
-
clientId: '',
|
|
14
|
-
|
|
15
|
-
// 4A redirect_uri 需要配置为 `xxx/#/auth/4A` 的格式
|
|
16
|
-
redirectUri: '',
|
|
17
|
-
}),
|
|
18
|
-
],
|
|
19
|
-
});
|
|
20
|
-
}
|