@pubinfo-pr/core 0.220.4 → 0.221.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo-pr/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.221.2",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"node": "^20.19.0 || >=22.12.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@pubinfo-pr/config": "0.
|
|
31
|
-
"@pubinfo-pr/devtools": "0.
|
|
32
|
-
"@pubinfo-pr/vite": "0.
|
|
30
|
+
"@pubinfo-pr/config": "0.221.2",
|
|
31
|
+
"@pubinfo-pr/devtools": "0.221.2",
|
|
32
|
+
"@pubinfo-pr/vite": "0.221.2",
|
|
33
33
|
"alova": "^3.5.0",
|
|
34
34
|
"pinia": "^3.0.4",
|
|
35
35
|
"vue": "^3.5.28",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@headlessui/vue": "^1.7.23",
|
|
43
43
|
"@imengyu/vue3-context-menu": "^1.5.4",
|
|
44
44
|
"@pubinfo/pro-components": "^1.8.2",
|
|
45
|
-
"@pubinfo-pr/shared": "0.
|
|
45
|
+
"@pubinfo-pr/shared": "0.221.2",
|
|
46
46
|
"@unocss/reset": "^66.6.0",
|
|
47
47
|
"@vueuse/core": "^14.2.1",
|
|
48
48
|
"@vueuse/integrations": "^14.2.1",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"@alova/mock": "^2.0.18",
|
|
70
70
|
"@iconify/json": "^2.2.437",
|
|
71
71
|
"@iconify/vue": "^5.0.0",
|
|
72
|
-
"@pubinfo-pr/config": "0.
|
|
72
|
+
"@pubinfo-pr/config": "0.221.2",
|
|
73
73
|
"@pubinfo/openapi": "^0.9.1",
|
|
74
74
|
"@pubinfo/preset-openapi": "^0.9.1",
|
|
75
|
-
"@pubinfo-pr/vite": "0.
|
|
75
|
+
"@pubinfo-pr/vite": "0.221.2",
|
|
76
76
|
"@types/lodash-es": "^4.17.12",
|
|
77
77
|
"@types/md5": "^2.3.6",
|
|
78
78
|
"@types/nprogress": "^0.2.3",
|
|
@@ -10,74 +10,76 @@ hotkeys('alt+i', () => toggle());
|
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
<div class="
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
<Teleport to="body">
|
|
14
|
+
<HSlideover v-model="visible" title="系统信息">
|
|
15
|
+
<div class="text-dark dark:text-light">
|
|
16
|
+
<div class="px-4">
|
|
17
|
+
<h2 class="m-0 text-lg font-bold">
|
|
18
|
+
最后编译时间
|
|
19
|
+
</h2>
|
|
20
|
+
<div class="my-4 text-center text-lg font-sans">
|
|
21
|
+
{{ buildTime }}
|
|
22
|
+
</div>
|
|
21
23
|
</div>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</
|
|
35
|
-
</
|
|
36
|
-
</
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</div>
|
|
47
|
-
<div class="font-sans">
|
|
48
|
-
{{ val }}
|
|
49
|
-
</div>
|
|
50
|
-
</li>
|
|
51
|
-
</ul>
|
|
52
|
-
</div>
|
|
53
|
-
<div v-if="git" class="px-4">
|
|
54
|
-
<h2 class="m-0 text-lg font-bold">
|
|
55
|
-
Git 信息
|
|
56
|
-
</h2>
|
|
57
|
-
<ul class="list-none pl-0 text-sm">
|
|
58
|
-
<li class="flex items-center justify-between rounded px-2 py-1.5 hover:bg-stone-1 dark:hover:bg-stone-9">
|
|
59
|
-
<div class="font-bold">
|
|
60
|
-
编译分支
|
|
61
|
-
</div>
|
|
62
|
-
<div class="font-sans">
|
|
63
|
-
{{ git.branch }}
|
|
64
|
-
</div>
|
|
65
|
-
</li>
|
|
66
|
-
<li class="flex items-center justify-between rounded px-2 py-1.5 hover:bg-stone-1 dark:hover:bg-stone-9">
|
|
67
|
-
<div class="font-bold">
|
|
68
|
-
最新提交提交哈希
|
|
69
|
-
</div>
|
|
70
|
-
<a-tooltip>
|
|
71
|
-
<template #title>
|
|
72
|
-
{{ git.commit }}
|
|
73
|
-
</template>
|
|
24
|
+
<div class="px-4">
|
|
25
|
+
<h2 class="m-0 text-lg font-bold">
|
|
26
|
+
生产环境依赖
|
|
27
|
+
</h2>
|
|
28
|
+
<ul class="list-none pl-0 text-sm">
|
|
29
|
+
<li v-for="(val, key) in (pkg.dependencies as object)" :key="key" class="flex items-center justify-between rounded px-2 py-1.5 hover:bg-stone-1 dark:hover:bg-stone-9">
|
|
30
|
+
<div class="font-bold">
|
|
31
|
+
{{ key }}
|
|
32
|
+
</div>
|
|
33
|
+
<div class="font-sans">
|
|
34
|
+
{{ val }}
|
|
35
|
+
</div>
|
|
36
|
+
</li>
|
|
37
|
+
</ul>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="px-4">
|
|
40
|
+
<h2 class="m-0 text-lg font-bold">
|
|
41
|
+
开发环境依赖
|
|
42
|
+
</h2>
|
|
43
|
+
<ul class="list-none pl-0 text-sm">
|
|
44
|
+
<li v-for="(val, key) in (pkg.devDependencies as object)" :key="key" class="flex items-center justify-between rounded px-2 py-1.5 hover:bg-stone-1 dark:hover:bg-stone-9">
|
|
45
|
+
<div class="font-bold">
|
|
46
|
+
{{ key }}
|
|
47
|
+
</div>
|
|
74
48
|
<div class="font-sans">
|
|
75
|
-
{{
|
|
49
|
+
{{ val }}
|
|
50
|
+
</div>
|
|
51
|
+
</li>
|
|
52
|
+
</ul>
|
|
53
|
+
</div>
|
|
54
|
+
<div v-if="git" class="px-4">
|
|
55
|
+
<h2 class="m-0 text-lg font-bold">
|
|
56
|
+
Git 信息
|
|
57
|
+
</h2>
|
|
58
|
+
<ul class="list-none pl-0 text-sm">
|
|
59
|
+
<li class="flex items-center justify-between rounded px-2 py-1.5 hover:bg-stone-1 dark:hover:bg-stone-9">
|
|
60
|
+
<div class="font-bold">
|
|
61
|
+
编译分支
|
|
76
62
|
</div>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
63
|
+
<div class="font-sans">
|
|
64
|
+
{{ git.branch }}
|
|
65
|
+
</div>
|
|
66
|
+
</li>
|
|
67
|
+
<li class="flex items-center justify-between rounded px-2 py-1.5 hover:bg-stone-1 dark:hover:bg-stone-9">
|
|
68
|
+
<div class="font-bold">
|
|
69
|
+
最新提交提交哈希
|
|
70
|
+
</div>
|
|
71
|
+
<a-tooltip>
|
|
72
|
+
<template #title>
|
|
73
|
+
{{ git.commit }}
|
|
74
|
+
</template>
|
|
75
|
+
<div class="font-sans">
|
|
76
|
+
{{ git.commitShort }}
|
|
77
|
+
</div>
|
|
78
|
+
</a-tooltip>
|
|
79
|
+
</li>
|
|
80
|
+
</ul>
|
|
81
|
+
</div>
|
|
80
82
|
</div>
|
|
81
|
-
</
|
|
82
|
-
</
|
|
83
|
+
</HSlideover>
|
|
84
|
+
</Teleport>
|
|
83
85
|
</template>
|
|
@@ -7,10 +7,10 @@ import SystemInfoComponent from './components/SystemInfo.vue';
|
|
|
7
7
|
export function SystemInfo(): ModuleOptions {
|
|
8
8
|
return {
|
|
9
9
|
name: 'built-in:system-info',
|
|
10
|
-
setup() {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
setup(ctx) {
|
|
11
|
+
// 使用 Teleport 将组件渲染到 body,而不是创建新的 Vue 应用
|
|
12
|
+
// 这样可以确保 DevTools 中只显示一个应用
|
|
13
|
+
ctx.app.component('SystemInfoPanel', SystemInfoComponent);
|
|
14
14
|
},
|
|
15
15
|
};
|
|
16
16
|
}
|