create-pubinfo-pr 0.182.2 → 0.182.4
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/package.json +2 -2
- package/templates/pubinfo-app/eslint.config.ts +1 -1
- package/templates/pubinfo-app/openapi.config.ts.hbs +2 -2
- package/templates/pubinfo-app/package.json.hbs +15 -15
- package/templates/pubinfo-app/pubinfo.config.ts +1 -1
- package/templates/pubinfo-app/src/api/request.ts +1 -1
- package/templates/pubinfo-app/src/components/UIProvider/index.vue +1 -1
- package/templates/pubinfo-app/src/layouts/index.vue +1 -1
- package/templates/pubinfo-app/src/main.ts.hbs +1 -1
- package/templates/pubinfo-app/src/modules/captcha.ts +1 -1
- package/templates/pubinfo-app/src/modules/rbac.ts +1 -1
- package/templates/pubinfo-app/src/routes/index.ts +1 -1
- package/templates/pubinfo-app/src/settings.ts.hbs +1 -1
- package/templates/pubinfo-app/src/stores/index.ts +1 -1
- package/templates/pubinfo-app/src/views/demo/breadcrumb_example/detail1.vue +1 -1
- package/templates/pubinfo-app/src/views/demo/breadcrumb_example/detail2.vue +1 -1
- package/templates/pubinfo-app/src/views/demo/breadcrumb_example/list1.vue +1 -1
- package/templates/pubinfo-app/src/views/demo/breadcrumb_example/list2.vue +1 -1
- package/templates/pubinfo-app/src/views/demo/multilevel_menu_example/level2/level3/page1.vue +1 -1
- package/templates/pubinfo-app/src/views/demo/multilevel_menu_example/level2/level3/page2.vue +1 -1
- package/templates/pubinfo-app/src/views/demo/multilevel_menu_example/level2/page.vue +1 -1
- package/templates/pubinfo-app/src/views/demo/multilevel_menu_example/page.vue +1 -1
- package/templates/pubinfo-app/src/views/demo/other_page/des.vue +1 -1
- package/templates/pubinfo-app/src/views/demo/other_page/index.vue +1 -1
- package/templates/pubinfo-app/src/views/demo/single/index.vue +1 -1
- package/templates/pubinfo-app/src/views/system/login/components/PasswordLogin.vue +2 -2
- package/templates/pubinfo-app/stylelint.config.js +1 -1
- package/templates/pubinfo-app/uno.config.ts +1 -1
- package/templates/pubinfo-module/eslint.config.ts +1 -1
- package/templates/pubinfo-module/package.json.hbs +11 -11
- package/templates/pubinfo-module/playground/openapi.config.ts.hbs +2 -2
- package/templates/pubinfo-module/playground/package.json.hbs +6 -6
- package/templates/pubinfo-module/playground/pubinfo.config.ts +1 -1
- package/templates/pubinfo-module/playground/src/api/request.ts +1 -1
- package/templates/pubinfo-module/playground/src/components/UIProvider/index.vue +1 -1
- package/templates/pubinfo-module/playground/src/layouts/index.vue +1 -1
- package/templates/pubinfo-module/playground/src/main.ts.hbs +1 -1
- package/templates/pubinfo-module/playground/src/modules/rbac.ts +1 -1
- package/templates/pubinfo-module/playground/src/routes/index.ts +1 -1
- package/templates/pubinfo-module/playground/src/settings.ts +1 -1
- package/templates/pubinfo-module/playground/src/stores/index.ts +1 -1
- package/templates/pubinfo-module/playground/src/views/demo/breadcrumb_example/detail1.vue +1 -1
- package/templates/pubinfo-module/playground/src/views/demo/breadcrumb_example/detail2.vue +1 -1
- package/templates/pubinfo-module/playground/src/views/demo/breadcrumb_example/list1.vue +1 -1
- package/templates/pubinfo-module/playground/src/views/demo/breadcrumb_example/list2.vue +1 -1
- package/templates/pubinfo-module/playground/src/views/demo/multilevel_menu_example/level2/level3/page1.vue +1 -1
- package/templates/pubinfo-module/playground/src/views/demo/multilevel_menu_example/level2/level3/page2.vue +1 -1
- package/templates/pubinfo-module/playground/src/views/demo/multilevel_menu_example/level2/page.vue +1 -1
- package/templates/pubinfo-module/playground/src/views/demo/multilevel_menu_example/page.vue +1 -1
- package/templates/pubinfo-module/playground/src/views/demo/other_page/des.vue +1 -1
- package/templates/pubinfo-module/playground/src/views/demo/other_page/index.vue +1 -1
- package/templates/pubinfo-module/playground/src/views/demo/single/index.vue +1 -1
- package/templates/pubinfo-module/playground/src/views/system/login/components/PasswordLogin.vue +1 -1
- package/templates/pubinfo-module/playground/uno.config.ts +1 -1
- package/templates/pubinfo-module/pubinfo.config.ts.hbs +1 -1
- package/templates/pubinfo-module/src/index.ts.hbs +2 -2
- package/templates/pubinfo-module/stylelint.config.js +1 -1
- package/templates/pubinfo-module/uno.config.ts +1 -1
- package/templates/pubinfo-monorepo/apps/basic/openapi.config.ts.hbs +2 -2
- package/templates/pubinfo-monorepo/apps/basic/package.json.hbs +12 -12
- package/templates/pubinfo-monorepo/apps/basic/pubinfo.config.ts +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/api/request.ts +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/components/UIProvider/index.vue +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/layouts/index.vue +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/main.ts.hbs +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/modules/captcha.ts +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/modules/rbac.ts +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/routes/index.ts +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/settings.ts.hbs +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/stores/index.ts +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/breadcrumb_example/detail1.vue +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/breadcrumb_example/detail2.vue +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/breadcrumb_example/list1.vue +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/breadcrumb_example/list2.vue +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/multilevel_menu_example/level2/level3/page1.vue +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/multilevel_menu_example/level2/level3/page2.vue +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/multilevel_menu_example/level2/page.vue +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/multilevel_menu_example/page.vue +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/other_page/des.vue +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/other_page/index.vue +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/views/demo/single/index.vue +1 -1
- package/templates/pubinfo-monorepo/apps/basic/src/views/system/login/components/PasswordLogin.vue +2 -2
- package/templates/pubinfo-monorepo/apps/basic/uno.config.ts +1 -1
- package/templates/pubinfo-monorepo/eslint.config.ts +1 -1
- package/templates/pubinfo-monorepo/package.json.hbs +6 -5
- package/templates/pubinfo-monorepo/pnpm-workspace.yaml +1 -1
- package/templates/pubinfo-monorepo/stylelint.config.js +1 -1
package/dist/cli.js
CHANGED
|
@@ -43,7 +43,7 @@ const pubinfo = async (input$1, { auth }) => {
|
|
|
43
43
|
async function download(options) {
|
|
44
44
|
const finish = loading();
|
|
45
45
|
try {
|
|
46
|
-
await downloadTemplate(`pubinfo:${PKG_NAME}-${options.version}`, {
|
|
46
|
+
await downloadTemplate(`pubinfo-pr:${PKG_NAME}-${options.version}`, {
|
|
47
47
|
providers: { pubinfo },
|
|
48
48
|
force: true,
|
|
49
49
|
forceClean: true,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pubinfo-pr",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.182.
|
|
4
|
+
"version": "0.182.4",
|
|
5
5
|
"description": "初始化项目框架",
|
|
6
6
|
"author": "Werheng <werheng.zhang@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@inquirer/prompts": "^7.6.0",
|
|
30
|
-
"@pubinfo-pr/shared": "0.182.
|
|
30
|
+
"@pubinfo-pr/shared": "0.182.4",
|
|
31
31
|
"ansi-colors": "^4.1.3",
|
|
32
32
|
"cfonts": "^3.3.0",
|
|
33
33
|
"commander": "^14.0.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineConfig } from '@pubinfo/openapi';
|
|
2
|
-
import { presetName } from '@pubinfo/preset-openapi';
|
|
1
|
+
import { defineConfig } from '@pubinfo-pr/openapi';
|
|
2
|
+
import { presetName } from '@pubinfo-pr/preset-openapi';
|
|
3
3
|
|
|
4
4
|
export default defineConfig({
|
|
5
5
|
enabled: {{openapi}},
|
|
@@ -7,35 +7,35 @@
|
|
|
7
7
|
"node": "^20.19.0 || >=22.12.0"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"dev": "pubinfo dev",
|
|
11
|
-
"build": "pubinfo build",
|
|
12
|
-
"preview": "pubinfo preview",
|
|
13
|
-
"commit": "pubinfo commit",
|
|
14
|
-
"upgrade": "pubinfo upgrade",
|
|
15
|
-
"prepare": "pubinfo setup && pubinfo commit --init",
|
|
10
|
+
"dev": "pubinfo-pr dev",
|
|
11
|
+
"build": "pubinfo-pr build",
|
|
12
|
+
"preview": "pubinfo-pr preview",
|
|
13
|
+
"commit": "pubinfo-pr commit",
|
|
14
|
+
"upgrade": "pubinfo-pr upgrade",
|
|
15
|
+
"prepare": "pubinfo-pr setup && pubinfo-pr commit --init",
|
|
16
16
|
"lint": "pnpm run lint:eslint && pnpm run lint:stylelint",
|
|
17
17
|
"lint:eslint": "eslint . --cache --fix",
|
|
18
18
|
"lint:stylelint": "stylelint \"src/**/*.{css,scss,vue}\" --cache --fix",
|
|
19
19
|
"viewer:eslint-rule": "pnpx @eslint/config-inspector",
|
|
20
|
-
"openapi": "pnpx @pubinfo/openapi generate",
|
|
21
|
-
"icon:normalize": "pubinfo icon"
|
|
20
|
+
"openapi": "pnpx @pubinfo-pr/openapi generate",
|
|
21
|
+
"icon:normalize": "pubinfo-pr icon"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@ant-design/icons-vue": "^7.0.1",
|
|
25
|
-
"@pubinfo/module-captcha": "{{version}}",
|
|
25
|
+
"@pubinfo-pr/module-captcha": "{{version}}",
|
|
26
26
|
{{#if rbac}}
|
|
27
|
-
"@pubinfo/module-rbac": "{{version}}",
|
|
27
|
+
"@pubinfo-pr/module-rbac": "{{version}}",
|
|
28
28
|
{{/if}}
|
|
29
|
-
"@pubinfo/pro-components": "^1.7.1",
|
|
29
|
+
"@pubinfo-pr/pro-components": "^1.7.1",
|
|
30
30
|
"@vueuse/core": "^13.7.0",
|
|
31
31
|
"alova": "^3.3.4",
|
|
32
32
|
"ant-design-vue": "^4.2.6",
|
|
33
33
|
"dayjs": "^1.11.13",
|
|
34
|
-
"pubinfo": "{{version}}"
|
|
34
|
+
"pubinfo-pr": "{{version}}"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@pubinfo/openapi": "^0.9.0",
|
|
38
|
-
"@pubinfo/preset-openapi": "^0.9.0",
|
|
37
|
+
"@pubinfo-pr/openapi": "^0.9.0",
|
|
38
|
+
"@pubinfo-pr/preset-openapi": "^0.9.0",
|
|
39
39
|
"eslint": "^9.30.1",
|
|
40
40
|
"lint-staged": "^16.1.2",
|
|
41
41
|
"simple-git-hooks": "^2.13.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"simple-git-hooks": {
|
|
46
46
|
"pre-commit": "pnpm lint-staged",
|
|
47
|
-
"commit-msg": "pnpm exec pubinfo commit --edit $1"
|
|
47
|
+
"commit-msg": "pnpm exec pubinfo-pr commit --edit $1"
|
|
48
48
|
},
|
|
49
49
|
"lint-staged": {
|
|
50
50
|
"*.{vue,js,ts,jsx,tsx,md,json}": "eslint --cache --fix",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { legacyLogicalPropertiesTransformer, theme } from 'ant-design-vue';
|
|
3
3
|
import zhCN from 'ant-design-vue/es/locale/zh_CN';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
|
-
import { useTheme } from 'pubinfo';
|
|
5
|
+
import { useTheme } from 'pubinfo-pr';
|
|
6
6
|
import 'dayjs/locale/zh-cn';
|
|
7
7
|
|
|
8
8
|
defineOptions({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './modules/conter';
|
|
2
|
-
export { useUserStore } from 'pubinfo';
|
|
2
|
+
export { useUserStore } from 'pubinfo-pr';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { FormInstance, Rule } from 'ant-design-vue/es/form';
|
|
3
3
|
import type { UnwrapRef } from 'vue';
|
|
4
|
-
import { PubinfoVerifyInput } from '@pubinfo/module-captcha';
|
|
4
|
+
import { PubinfoVerifyInput } from '@pubinfo-pr/module-captcha';
|
|
5
5
|
import { useToggle } from '@vueuse/core';
|
|
6
6
|
import { message, Modal } from 'ant-design-vue';
|
|
7
|
-
import { RESPONSE_CODE, useUserStore } from 'pubinfo';
|
|
7
|
+
import { RESPONSE_CODE, useUserStore } from 'pubinfo-pr';
|
|
8
8
|
import { useFocusElement } from '../composables';
|
|
9
9
|
import Useragreement from './Useragreement.vue';
|
|
10
10
|
|
|
@@ -24,35 +24,35 @@
|
|
|
24
24
|
"play": "pnpm run -C playground dev",
|
|
25
25
|
"play:build": "pnpm run -C playground build",
|
|
26
26
|
"play:preview": "pnpm run -C playground preview",
|
|
27
|
-
"dev": "pubinfo build -w",
|
|
28
|
-
"build": "pubinfo build",
|
|
29
|
-
"commit": "pubinfo commit",
|
|
30
|
-
"upgrade": "pubinfo upgrade",
|
|
31
|
-
"prepare": "pubinfo setup && pubinfo commit --init",
|
|
27
|
+
"dev": "pubinfo-pr build -w",
|
|
28
|
+
"build": "pubinfo-pr build",
|
|
29
|
+
"commit": "pubinfo-pr commit",
|
|
30
|
+
"upgrade": "pubinfo-pr upgrade",
|
|
31
|
+
"prepare": "pubinfo-pr setup && pubinfo-pr commit --init",
|
|
32
32
|
"lint": "pnpm run lint:eslint && pnpm run lint:stylelint",
|
|
33
33
|
"lint:eslint": "eslint . --cache --fix",
|
|
34
34
|
"lint:stylelint": "stylelint \"src/**/*.{css,scss,vue}\" --cache --fix",
|
|
35
|
-
"openapi": "pnpx @pubinfo/openapi generate",
|
|
35
|
+
"openapi": "pnpx @pubinfo-pr/openapi generate",
|
|
36
36
|
"release": "bumpp",
|
|
37
37
|
"deps": "pnpx taze -r",
|
|
38
38
|
"deps:up": "pnpx taze -wr"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"pubinfo": ">=2.0.0"
|
|
41
|
+
"pubinfo-pr": ">=2.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@pubinfo/openapi": "^0.9.0",
|
|
45
|
-
"@pubinfo/preset-openapi": "^0.9.0",
|
|
44
|
+
"@pubinfo-pr/openapi": "^0.9.0",
|
|
45
|
+
"@pubinfo-pr/preset-openapi": "^0.9.0",
|
|
46
46
|
"eslint": "^9.30.1",
|
|
47
47
|
"lint-staged": "^16.1.2",
|
|
48
|
-
"pubinfo": "{{version}}",
|
|
48
|
+
"pubinfo-pr": "{{version}}",
|
|
49
49
|
"simple-git-hooks": "^2.13.0",
|
|
50
50
|
"stylelint": "^16.21.0",
|
|
51
51
|
"typescript": "^5.8.3"
|
|
52
52
|
},
|
|
53
53
|
"simple-git-hooks": {
|
|
54
54
|
"pre-commit": "pnpm lint-staged",
|
|
55
|
-
"commit-msg": "pnpm exec pubinfo commit --edit $1"
|
|
55
|
+
"commit-msg": "pnpm exec pubinfo-pr commit --edit $1"
|
|
56
56
|
},
|
|
57
57
|
"lint-staged": {
|
|
58
58
|
"*.{vue,js,ts,jsx,tsx,md,json}": "eslint --cache --fix",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineConfig } from '@pubinfo/openapi';
|
|
2
|
-
import { presetName } from '@pubinfo/preset-openapi';
|
|
1
|
+
import { defineConfig } from '@pubinfo-pr/openapi';
|
|
2
|
+
import { presetName } from '@pubinfo-pr/preset-openapi';
|
|
3
3
|
|
|
4
4
|
export default defineConfig({
|
|
5
5
|
enabled: {{openapi}},
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
|
-
"dev": "pubinfo dev",
|
|
7
|
-
"build": "pubinfo build",
|
|
8
|
-
"preview": "pubinfo preview",
|
|
9
|
-
"openapi": "pnpx @pubinfo/openapi generate"
|
|
6
|
+
"dev": "pubinfo-pr dev",
|
|
7
|
+
"build": "pubinfo-pr build",
|
|
8
|
+
"preview": "pubinfo-pr preview",
|
|
9
|
+
"openapi": "pnpx @pubinfo-pr/openapi generate"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@ant-design/icons-vue": "^7.0.1",
|
|
13
|
-
"@pubinfo/module-rbac": "{{version}}",
|
|
14
|
-
"@pubinfo/pro-components": "^1.7.3",
|
|
13
|
+
"@pubinfo-pr/module-rbac": "{{version}}",
|
|
14
|
+
"@pubinfo-pr/pro-components": "^1.7.3",
|
|
15
15
|
"@vueuse/core": "^13.7.0",
|
|
16
16
|
"alova": "^3.3.4",
|
|
17
17
|
"ant-design-vue": "^4.2.6",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { legacyLogicalPropertiesTransformer, theme } from 'ant-design-vue';
|
|
3
3
|
import zhCN from 'ant-design-vue/es/locale/zh_CN';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
|
-
import { useTheme } from 'pubinfo';
|
|
5
|
+
import { useTheme } from 'pubinfo-pr';
|
|
6
6
|
import 'dayjs/locale/zh-cn';
|
|
7
7
|
|
|
8
8
|
defineOptions({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './modules/conter';
|
|
2
|
-
export { useUserStore } from 'pubinfo';
|
|
2
|
+
export { useUserStore } from 'pubinfo-pr';
|
package/templates/pubinfo-module/playground/src/views/system/login/components/PasswordLogin.vue
CHANGED
|
@@ -3,7 +3,7 @@ import type { FormInstance, Rule } from 'ant-design-vue/es/form';
|
|
|
3
3
|
import type { UnwrapRef } from 'vue';
|
|
4
4
|
import { useToggle } from '@vueuse/core';
|
|
5
5
|
import { message, Modal } from 'ant-design-vue';
|
|
6
|
-
import { RESPONSE_CODE, useUserStore } from 'pubinfo';
|
|
6
|
+
import { RESPONSE_CODE, useUserStore } from 'pubinfo-pr';
|
|
7
7
|
import { useCaptchas, useFocusElement } from '../composables';
|
|
8
8
|
import Useragreement from './Useragreement.vue';
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ModuleOptions } from 'pubinfo';
|
|
1
|
+
import type { ModuleOptions } from 'pubinfo-pr';
|
|
2
2
|
import 'uno.css';
|
|
3
3
|
|
|
4
4
|
export function {{camelCase dir}}(): ModuleOptions {
|
|
5
5
|
return {
|
|
6
|
-
name: 'pubinfo:{{kebabCase dir}}',
|
|
6
|
+
name: 'pubinfo-pr:{{kebabCase dir}}',
|
|
7
7
|
setup() {},
|
|
8
8
|
};
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineConfig } from '@pubinfo/openapi';
|
|
2
|
-
import { presetName } from '@pubinfo/preset-openapi';
|
|
1
|
+
import { defineConfig } from '@pubinfo-pr/openapi';
|
|
2
|
+
import { presetName } from '@pubinfo-pr/preset-openapi';
|
|
3
3
|
|
|
4
4
|
export default defineConfig({
|
|
5
5
|
enabled: {{openapi}},
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
|
-
"dev": "pubinfo dev",
|
|
7
|
-
"build": "pubinfo build",
|
|
8
|
-
"preview": "pubinfo preview",
|
|
9
|
-
"upgrade": "pubinfo upgrade",
|
|
10
|
-
"prepare": "pubinfo setup",
|
|
11
|
-
"openapi": "pnpx @pubinfo/openapi generate",
|
|
12
|
-
"icon:normalize": "pubinfo icon"
|
|
6
|
+
"dev": "pubinfo-pr dev",
|
|
7
|
+
"build": "pubinfo-pr build",
|
|
8
|
+
"preview": "pubinfo-pr preview",
|
|
9
|
+
"upgrade": "pubinfo-pr upgrade",
|
|
10
|
+
"prepare": "pubinfo-pr setup",
|
|
11
|
+
"openapi": "pnpx @pubinfo-pr/openapi generate",
|
|
12
|
+
"icon:normalize": "pubinfo-pr icon"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@pubinfo/module-captcha": "{{version}}",
|
|
15
|
+
"@pubinfo-pr/module-captcha": "{{version}}",
|
|
16
16
|
{{#if rbac}}
|
|
17
|
-
"@pubinfo/module-rbac": "{{version}}",
|
|
17
|
+
"@pubinfo-pr/module-rbac": "{{version}}",
|
|
18
18
|
{{/if}}
|
|
19
19
|
"@vueuse/core": "^14.0.0",
|
|
20
|
-
"pubinfo": "{{version}}"
|
|
20
|
+
"pubinfo-pr": "{{version}}"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@pubinfo/openapi": "^0.9.1",
|
|
24
|
-
"@pubinfo/preset-openapi": "^0.9.1"
|
|
23
|
+
"@pubinfo-pr/openapi": "^0.9.1",
|
|
24
|
+
"@pubinfo-pr/preset-openapi": "^0.9.1"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { legacyLogicalPropertiesTransformer, theme } from 'ant-design-vue';
|
|
3
3
|
import zhCN from 'ant-design-vue/es/locale/zh_CN';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
|
-
import { useTheme } from 'pubinfo';
|
|
5
|
+
import { useTheme } from 'pubinfo-pr';
|
|
6
6
|
import 'dayjs/locale/zh-cn';
|
|
7
7
|
|
|
8
8
|
defineOptions({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './modules/conter';
|
|
2
|
-
export { useUserStore } from 'pubinfo';
|
|
2
|
+
export { useUserStore } from 'pubinfo-pr';
|
package/templates/pubinfo-monorepo/apps/basic/src/views/system/login/components/PasswordLogin.vue
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { FormInstance, Rule } from 'ant-design-vue/es/form';
|
|
3
3
|
import type { UnwrapRef } from 'vue';
|
|
4
|
-
import { PubinfoVerifyInput } from '@pubinfo/module-captcha';
|
|
4
|
+
import { PubinfoVerifyInput } from '@pubinfo-pr/module-captcha';
|
|
5
5
|
import { useToggle } from '@vueuse/core';
|
|
6
6
|
import { message, Modal } from 'ant-design-vue';
|
|
7
|
-
import { RESPONSE_CODE, useUserStore } from 'pubinfo';
|
|
7
|
+
import { RESPONSE_CODE, useUserStore } from 'pubinfo-pr';
|
|
8
8
|
import { useFocusElement } from '../composables';
|
|
9
9
|
import Useragreement from './Useragreement.vue';
|
|
10
10
|
|
|
@@ -9,19 +9,20 @@
|
|
|
9
9
|
"lint": "pnpm run lint:eslint && pnpm run lint:stylelint",
|
|
10
10
|
"lint:eslint": "eslint . --cache --fix",
|
|
11
11
|
"lint:stylelint": "stylelint \"apps/*/src/**/*.{css,scss,vue}\" --cache --fix",
|
|
12
|
-
"viewer:eslint-rule": "pnpx @eslint/config-inspector"
|
|
12
|
+
"viewer:eslint-rule": "pnpx @eslint/config-inspector",
|
|
13
|
+
"generate": "pubinfo-pr generate"
|
|
13
14
|
},
|
|
14
15
|
"dependencies": {
|
|
15
16
|
"@ant-design/icons-vue": "^7.0.1",
|
|
16
|
-
"@pubinfo/pro-components": "^1.8.1",
|
|
17
|
+
"@pubinfo-pr/pro-components": "^1.8.1",
|
|
17
18
|
"@vueuse/core": "^14.0.0",
|
|
18
19
|
"alova": "^3.3.4",
|
|
19
20
|
"ant-design-vue": "^4.2.6",
|
|
20
21
|
"dayjs": "^1.11.19"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
|
-
"@pubinfo/commitlint": "{{version}}",
|
|
24
|
-
"@pubinfo/config": "{{version}}",
|
|
24
|
+
"@pubinfo-pr/commitlint": "{{version}}",
|
|
25
|
+
"@pubinfo-pr/config": "{{version}}",
|
|
25
26
|
"eslint": "^9.39.1",
|
|
26
27
|
"lint-staged": "^16.2.6",
|
|
27
28
|
"simple-git-hooks": "^2.13.1",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
},
|
|
31
32
|
"simple-git-hooks": {
|
|
32
33
|
"pre-commit": "pnpm lint-staged && pnpm run lint",
|
|
33
|
-
"commit-msg": "pnpm exec pubinfo
|
|
34
|
+
"commit-msg": "pnpm exec pubinfo-commit --edit $1"
|
|
34
35
|
},
|
|
35
36
|
"lint-staged": {
|
|
36
37
|
"*.{vue,js,ts,jsx,tsx,md,json}": "eslint --cache --fix",
|