create-pubinfo 2.1.0 → 2.1.2

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 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-Brawr6dy.js";
2
+ import { a as validateInput, n as readPackageJSON, r as run, t as bootstrop } from "./helper-CqGoNZjT.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.0",
150
+ version: "2.1.2",
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-Brawr6dy.js";
1
+ import { i as interaction, n as readPackageJSON, o as generate, r as run, s as copyTemplate } from "./helper-CqGoNZjT.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.0",
4
+ "version": "2.1.2",
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.0"
40
+ "@pubinfo/shared": "2.1.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^24.0.10"
@@ -22,8 +22,6 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@ant-design/icons-vue": "^7.0.1",
25
- "@pubinfo/module-auth": "{{version}}",
26
- "@pubinfo/module-captcha": "{{version}}",
27
25
  {{#if rbac}}
28
26
  "@pubinfo/module-rbac": "{{version}}",
29
27
  {{/if}}
@@ -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
 
@@ -1,4 +1,4 @@
1
- import { presetUnocss } from 'pubinfo/node';
1
+ import { presetUnocss } from 'pubinfo/unocss';
2
2
  import { defineConfig } from 'unocss';
3
3
 
4
4
  export default defineConfig({
@@ -10,7 +10,6 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@ant-design/icons-vue": "^7.0.1",
13
- "@pubinfo/module-auth": "{{version}}",
14
13
  "@pubinfo/module-rbac": "{{version}}",
15
14
  "@pubinfo/pro-components": "^1.7.3",
16
15
  "@vueuse/core": "^13.7.0",
@@ -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,4 +1,4 @@
1
- import { presetUnocss } from 'pubinfo/node';
1
+ import { presetUnocss } from 'pubinfo/unocss';
2
2
  import { defineConfig } from 'unocss';
3
3
 
4
4
  export default defineConfig({
@@ -1,4 +1,4 @@
1
- import { presetUnocss } from 'pubinfo/node';
1
+ import { presetUnocss } from 'pubinfo/unocss';
2
2
  import { defineConfig } from 'unocss';
3
3
 
4
4
  export default defineConfig({
@@ -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
- }