xto-fronted 0.4.87 → 0.4.88

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.
Files changed (53) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/api/auth.d.ts +8 -0
  3. package/dist/api/system.d.ts +16 -0
  4. package/dist/api/user.d.ts +13 -0
  5. package/dist/components/Layout/Footer.vue.d.ts +2 -0
  6. package/dist/components/Layout/Header.vue.d.ts +5 -0
  7. package/dist/components/Layout/MixTopMenu.vue.d.ts +5 -0
  8. package/dist/components/Layout/Sidebar.vue.d.ts +11 -0
  9. package/dist/components/Layout/SidebarMenuItem.vue.d.ts +5 -0
  10. package/dist/components/Layout/Tabs.vue.d.ts +2 -0
  11. package/dist/components/Layout/TopMenu.vue.d.ts +5 -0
  12. package/dist/components/Layout/index.vue.d.ts +2 -0
  13. package/dist/composables/useApp.d.ts +29 -0
  14. package/dist/composables/useAuth.d.ts +6 -0
  15. package/dist/composables/useForm.d.ts +20 -0
  16. package/dist/composables/useI18n.d.ts +30 -0
  17. package/dist/composables/useTable.d.ts +29 -0
  18. package/dist/directives/permission.d.ts +4 -0
  19. package/dist/enums/index.d.ts +32 -0
  20. package/dist/index-BRvi9qW-.js +515 -0
  21. package/dist/index-Bmf0YbVq.js +189 -0
  22. package/dist/index-C2-a5KSQ.js +4233 -0
  23. package/dist/index-D25KzR0I.js +479 -0
  24. package/dist/index-DEYOivza.js +641 -0
  25. package/dist/index.d.ts +59 -0
  26. package/dist/index.es.js +94 -0
  27. package/dist/index.umd.js +8 -0
  28. package/dist/main.d.ts +0 -0
  29. package/dist/router/dynamicRoutes.d.ts +30 -0
  30. package/dist/router/guards.d.ts +17 -0
  31. package/dist/router/index.d.ts +6 -0
  32. package/dist/router/layoutRoute.d.ts +18 -0
  33. package/dist/router/staticRoutes.d.ts +2 -0
  34. package/dist/stores/app.d.ts +93 -0
  35. package/dist/stores/auth.d.ts +41 -0
  36. package/dist/stores/index.d.ts +10 -0
  37. package/dist/stores/locale.d.ts +42 -0
  38. package/dist/stores/menu.d.ts +77 -0
  39. package/dist/stores/user.d.ts +92 -0
  40. package/dist/style.css +1 -0
  41. package/dist/utils/auth.d.ts +27 -0
  42. package/dist/utils/config.d.ts +30 -0
  43. package/dist/utils/permission.d.ts +18 -0
  44. package/dist/utils/request.d.ts +24 -0
  45. package/dist/utils/storage.d.ts +24 -0
  46. package/dist/views/dashboard/index.vue.d.ts +2 -0
  47. package/dist/views/error/403.vue.d.ts +2 -0
  48. package/dist/views/error/404.vue.d.ts +2 -0
  49. package/dist/views/login/index.vue.d.ts +4 -0
  50. package/dist/views/system/menu/index.vue.d.ts +4 -0
  51. package/dist/views/system/role/index.vue.d.ts +4 -0
  52. package/dist/views/system/user/index.vue.d.ts +4 -0
  53. package/package.json +1 -1
@@ -0,0 +1,189 @@
1
+ import { defineComponent as g, ref as l, resolveComponent as b, openBlock as i, createElementBlock as o, createElementVNode as s, Fragment as n, renderList as c, normalizeStyle as r, toDisplayString as a, normalizeClass as d, createBlock as w, withCtx as U, createVNode as u, unref as v } from "vue";
2
+ import { Progress as _ } from "@xto/data";
3
+ import { _ as q } from "./index-C2-a5KSQ.js";
4
+ const x = { class: "dashboard" }, C = { class: "stats-section" }, B = { class: "stat-content" }, M = { class: "stat-title" }, I = {
5
+ key: 0,
6
+ viewBox: "0 0 24 24",
7
+ fill: "none",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, V = {
11
+ key: 1,
12
+ viewBox: "0 0 24 24",
13
+ fill: "none",
14
+ stroke: "currentColor",
15
+ "stroke-width": "2"
16
+ }, L = { class: "main-section" }, S = { class: "quick-section" }, $ = { class: "quick-grid" }, z = { class: "quick-icon" }, E = { class: "quick-info" }, N = { class: "quick-title" }, P = { class: "quick-desc" }, D = { class: "activity-section" }, F = { class: "activity-list" }, O = { class: "activity-content" }, T = { class: "activity-main" }, X = { class: "activity-user" }, j = { class: "activity-action" }, A = { class: "activity-time" }, G = { class: "system-section" }, H = { class: "system-grid" }, J = { class: "system-info-list" }, K = { class: "info-label" }, Q = { class: "info-value" }, R = { class: "system-status" }, W = { class: "status-item" }, Y = { class: "status-item" }, Z = { class: "status-item" }, ss = /* @__PURE__ */ g({
17
+ __name: "index",
18
+ setup(ts) {
19
+ const p = l([
20
+ { title: "用户总数", value: 1234, icon: "👥", color: "#1677ff", trend: "+12.5%", trendUp: !0 },
21
+ { title: "今日访问", value: 567, icon: "👀", color: "#52c41a", trend: "+8.2%", trendUp: !0 },
22
+ { title: "订单数量", value: 890, icon: "📦", color: "#faad14", trend: "-3.1%", trendUp: !1 },
23
+ { title: "销售金额", value: 123456, icon: "💰", color: "#ff4d4f", trend: "+15.8%", trendUp: !0 }
24
+ ]), m = l([
25
+ { user: "张三", action: "登录系统", time: "2分钟前", type: "success", avatar: "张" },
26
+ { user: "李四", action: "修改了用户信息", time: "5分钟前", type: "warning", avatar: "李" },
27
+ { user: "王五", action: "创建了新订单", time: "10分钟前", type: "info", avatar: "王" },
28
+ { user: "赵六", action: "删除了测试数据", time: "30分钟前", type: "danger", avatar: "赵" },
29
+ { user: "钱七", action: "更新了系统配置", time: "1小时前", type: "primary", avatar: "钱" }
30
+ ]), h = l([
31
+ { title: "用户管理", path: "/system/user", icon: "👤", desc: "管理系统用户" },
32
+ { title: "角色管理", path: "/system/role", icon: "👥", desc: "角色权限配置" },
33
+ { title: "菜单管理", path: "/system/menu", icon: "📋", desc: "菜单路由管理" },
34
+ { title: "系统设置", path: "/system", icon: "⚙️", desc: "系统参数配置" }
35
+ ]), y = l([
36
+ { label: "系统版本", value: "v1.0.0" },
37
+ { label: "Vue 版本", value: "3.4.21" },
38
+ { label: "构建工具", value: "Vite 5" },
39
+ { label: "UI 组件库", value: "XTO UI" }
40
+ ]);
41
+ return (es, e) => {
42
+ const f = b("router-link");
43
+ return i(), o("div", x, [
44
+ s("div", C, [
45
+ (i(!0), o(n, null, c(p.value, (t) => (i(), o("div", {
46
+ key: t.title,
47
+ class: "stat-card"
48
+ }, [
49
+ s("div", {
50
+ class: "stat-icon",
51
+ style: r({ background: `linear-gradient(135deg, ${t.color}20 0%, ${t.color}10 100%)` })
52
+ }, [
53
+ s("span", null, a(t.icon), 1)
54
+ ], 4),
55
+ s("div", B, [
56
+ s("div", M, a(t.title), 1),
57
+ s("div", {
58
+ class: "stat-value",
59
+ style: r({ color: t.color })
60
+ }, a(t.value.toLocaleString()), 5),
61
+ s("div", {
62
+ class: d(["stat-trend", { up: t.trendUp, down: !t.trendUp }])
63
+ }, [
64
+ t.trendUp ? (i(), o("svg", I, [...e[0] || (e[0] = [
65
+ s("path", { d: "M7 17l5-5 5 5M7 7l5 5 5-5" }, null, -1)
66
+ ])])) : (i(), o("svg", V, [...e[1] || (e[1] = [
67
+ s("path", { d: "M7 7l5 5 5-5M7 17l5-5 5 5" }, null, -1)
68
+ ])])),
69
+ s("span", null, a(t.trend), 1)
70
+ ], 2)
71
+ ]),
72
+ s("div", {
73
+ class: "stat-decoration",
74
+ style: r({ background: `linear-gradient(135deg, ${t.color}08 0%, transparent 100%)` })
75
+ }, null, 4)
76
+ ]))), 128))
77
+ ]),
78
+ s("div", L, [
79
+ s("div", S, [
80
+ e[3] || (e[3] = s("div", { class: "section-header" }, [
81
+ s("h3", null, "快捷入口"),
82
+ s("span", { class: "section-badge" }, "4 个入口")
83
+ ], -1)),
84
+ s("div", $, [
85
+ (i(!0), o(n, null, c(h.value, (t) => (i(), w(f, {
86
+ key: t.path,
87
+ to: t.path,
88
+ class: "quick-card"
89
+ }, {
90
+ default: U(() => [
91
+ s("div", z, a(t.icon), 1),
92
+ s("div", E, [
93
+ s("div", N, a(t.title), 1),
94
+ s("div", P, a(t.desc), 1)
95
+ ]),
96
+ e[2] || (e[2] = s("div", { class: "quick-arrow" }, [
97
+ s("svg", {
98
+ viewBox: "0 0 24 24",
99
+ fill: "none",
100
+ stroke: "currentColor",
101
+ "stroke-width": "2"
102
+ }, [
103
+ s("path", { d: "M9 18l6-6-6-6" })
104
+ ])
105
+ ], -1))
106
+ ]),
107
+ _: 2
108
+ }, 1032, ["to"]))), 128))
109
+ ])
110
+ ]),
111
+ s("div", D, [
112
+ e[4] || (e[4] = s("div", { class: "section-header" }, [
113
+ s("h3", null, "最近活动"),
114
+ s("a", {
115
+ href: "#",
116
+ class: "section-link"
117
+ }, "查看全部")
118
+ ], -1)),
119
+ s("div", F, [
120
+ (i(!0), o(n, null, c(m.value, (t, k) => (i(), o("div", {
121
+ key: k,
122
+ class: "activity-item"
123
+ }, [
124
+ s("div", {
125
+ class: d(["activity-avatar", t.type])
126
+ }, a(t.avatar), 3),
127
+ s("div", O, [
128
+ s("div", T, [
129
+ s("span", X, a(t.user), 1),
130
+ s("span", j, a(t.action), 1)
131
+ ]),
132
+ s("div", A, a(t.time), 1)
133
+ ]),
134
+ s("div", {
135
+ class: d(["activity-dot", t.type])
136
+ }, null, 2)
137
+ ]))), 128))
138
+ ])
139
+ ])
140
+ ]),
141
+ s("div", G, [
142
+ e[8] || (e[8] = s("div", { class: "section-header" }, [
143
+ s("h3", null, "系统信息")
144
+ ], -1)),
145
+ s("div", H, [
146
+ s("div", J, [
147
+ (i(!0), o(n, null, c(y.value, (t) => (i(), o("div", {
148
+ key: t.label,
149
+ class: "info-item"
150
+ }, [
151
+ s("span", K, a(t.label), 1),
152
+ s("span", Q, a(t.value), 1)
153
+ ]))), 128))
154
+ ]),
155
+ s("div", R, [
156
+ s("div", W, [
157
+ e[5] || (e[5] = s("div", { class: "status-header" }, [
158
+ s("span", { class: "status-label" }, "服务器状态"),
159
+ s("span", { class: "status-value" }, "75%")
160
+ ], -1)),
161
+ u(v(_), {
162
+ percentage: 75,
163
+ status: "success"
164
+ })
165
+ ]),
166
+ s("div", Y, [
167
+ e[6] || (e[6] = s("div", { class: "status-header" }, [
168
+ s("span", { class: "status-label" }, "内存使用"),
169
+ s("span", { class: "status-value" }, "45%")
170
+ ], -1)),
171
+ u(v(_), { percentage: 45 })
172
+ ]),
173
+ s("div", Z, [
174
+ e[7] || (e[7] = s("div", { class: "status-header" }, [
175
+ s("span", { class: "status-label" }, "CPU 使用率"),
176
+ s("span", { class: "status-value" }, "32%")
177
+ ], -1)),
178
+ u(v(_), { percentage: 32 })
179
+ ])
180
+ ])
181
+ ])
182
+ ])
183
+ ]);
184
+ };
185
+ }
186
+ }), ls = /* @__PURE__ */ q(ss, [["__scopeId", "data-v-fd54abc0"]]);
187
+ export {
188
+ ls as default
189
+ };