jmash-core 0.0.96 → 0.0.97

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 (194) hide show
  1. package/dist/401-gR-a4eWP.mjs +100 -0
  2. package/dist/404-CvF2Wpf5.mjs +37 -0
  3. package/dist/BarChart--k4pvqvu.mjs +199 -0
  4. package/dist/FunnelChart-Ci14WUay.mjs +107 -0
  5. package/dist/PieChart-C60V9Kgc.mjs +4 -0
  6. package/dist/PieChart.vue_vue_type_script_setup_true_lang-D1-1NDvg.mjs +89 -0
  7. package/dist/RadarChart-BBq1VxXC.mjs +4 -0
  8. package/dist/RadarChart.vue_vue_type_script_setup_true_lang-BNLujpKR.mjs +108 -0
  9. package/dist/favicon.ico +0 -0
  10. package/dist/index-B3bBQvl1.mjs +43717 -0
  11. package/dist/index-Bw3IdFvk.mjs +19539 -0
  12. package/dist/index-ByS03yYq.mjs +1629 -0
  13. package/dist/index-CsnH0_yb.mjs +367 -0
  14. package/dist/index-DSalnTBz.mjs +267 -0
  15. package/dist/index-uykKwY2Z.mjs +12 -0
  16. package/dist/index.mjs +58 -0
  17. package/dist/picture-CBRsHLZl.mjs +22 -0
  18. package/dist/profile-DB5oJY6F.mjs +267 -0
  19. package/dist/runAs-BgAqMTuy.mjs +4 -0
  20. package/dist/runAs.vue_vue_type_script_setup_true_lang-SOwNuXuK.mjs +2496 -0
  21. package/dist/style.css +1 -0
  22. package/dist/types-4mFLhd4n.mjs +204 -0
  23. package/dist/updatePwd-Dr2JoWzO.mjs +4 -0
  24. package/dist/updatePwd.vue_vue_type_script_setup_true_lang-sFzRukhN.mjs +146 -0
  25. package/dts/src/App.vue.d.ts +2 -0
  26. package/dts/src/api/auth/index.d.ts +66 -0
  27. package/dts/src/api/auth/types.d.ts +201 -0
  28. package/dts/src/api/file/index.d.ts +33 -0
  29. package/dts/src/api/file/types.d.ts +14 -0
  30. package/dts/src/api/index.d.ts +38 -0
  31. package/dts/src/api/types.d.ts +85 -0
  32. package/dts/src/assets/components/icon-a-fixed.vue.d.ts +2 -0
  33. package/dts/src/assets/components/icon-a-list.vue.d.ts +2 -0
  34. package/dts/src/assets/components/icon-anquanrizhi.vue.d.ts +2 -0
  35. package/dts/src/assets/components/icon-api.vue.d.ts +2 -0
  36. package/dts/src/assets/components/icon-bumenguanli.vue.d.ts +2 -0
  37. package/dts/src/assets/components/icon-caozuoguanliyuan.vue.d.ts +2 -0
  38. package/dts/src/assets/components/icon-captcha.vue.d.ts +2 -0
  39. package/dts/src/assets/components/icon-cascader.vue.d.ts +2 -0
  40. package/dts/src/assets/components/icon-client.vue.d.ts +2 -0
  41. package/dts/src/assets/components/icon-close-all.vue.d.ts +2 -0
  42. package/dts/src/assets/components/icon-close-eye.vue.d.ts +2 -0
  43. package/dts/src/assets/components/icon-close-left.vue.d.ts +2 -0
  44. package/dts/src/assets/components/icon-close-other.vue.d.ts +2 -0
  45. package/dts/src/assets/components/icon-close-right.vue.d.ts +2 -0
  46. package/dts/src/assets/components/icon-close.vue.d.ts +2 -0
  47. package/dts/src/assets/components/icon-dept.vue.d.ts +2 -0
  48. package/dts/src/assets/components/icon-dict.vue.d.ts +2 -0
  49. package/dts/src/assets/components/icon-document.vue.d.ts +2 -0
  50. package/dts/src/assets/components/icon-download.vue.d.ts +2 -0
  51. package/dts/src/assets/components/icon-drag.vue.d.ts +2 -0
  52. package/dts/src/assets/components/icon-edit.vue.d.ts +2 -0
  53. package/dts/src/assets/components/icon-email.vue.d.ts +2 -0
  54. package/dts/src/assets/components/icon-exit-fullscreen.vue.d.ts +2 -0
  55. package/dts/src/assets/components/icon-eye-open.vue.d.ts +2 -0
  56. package/dts/src/assets/components/icon-fullscreen-exit.vue.d.ts +2 -0
  57. package/dts/src/assets/components/icon-fullscreen.vue.d.ts +2 -0
  58. package/dts/src/assets/components/icon-gangweiguanli.vue.d.ts +2 -0
  59. package/dts/src/assets/components/icon-github.vue.d.ts +2 -0
  60. package/dts/src/assets/components/icon-homepage.vue.d.ts +2 -0
  61. package/dts/src/assets/components/icon-icon.vue.d.ts +2 -0
  62. package/dts/src/assets/components/icon-indent-decrease.vue.d.ts +2 -0
  63. package/dts/src/assets/components/icon-ip.vue.d.ts +2 -0
  64. package/dts/src/assets/components/icon-jiemianxijietubiao-26.vue.d.ts +2 -0
  65. package/dts/src/assets/components/icon-language.vue.d.ts +2 -0
  66. package/dts/src/assets/components/icon-link.vue.d.ts +2 -0
  67. package/dts/src/assets/components/icon-lock.vue.d.ts +2 -0
  68. package/dts/src/assets/components/icon-log.vue.d.ts +2 -0
  69. package/dts/src/assets/components/icon-menu.vue.d.ts +2 -0
  70. package/dts/src/assets/components/icon-message.vue.d.ts +2 -0
  71. package/dts/src/assets/components/icon-mokuaiguanli.vue.d.ts +2 -0
  72. package/dts/src/assets/components/icon-money.vue.d.ts +2 -0
  73. package/dts/src/assets/components/icon-monitor.vue.d.ts +2 -0
  74. package/dts/src/assets/components/icon-moon.vue.d.ts +2 -0
  75. package/dts/src/assets/components/icon-order.vue.d.ts +2 -0
  76. package/dts/src/assets/components/icon-password.vue.d.ts +2 -0
  77. package/dts/src/assets/components/icon-peoples.vue.d.ts +2 -0
  78. package/dts/src/assets/components/icon-phone.vue.d.ts +2 -0
  79. package/dts/src/assets/components/icon-project.vue.d.ts +2 -0
  80. package/dts/src/assets/components/icon-publish.vue.d.ts +2 -0
  81. package/dts/src/assets/components/icon-quanxianguanli.vue.d.ts +2 -0
  82. package/dts/src/assets/components/icon-redis.vue.d.ts +2 -0
  83. package/dts/src/assets/components/icon-refresh.vue.d.ts +2 -0
  84. package/dts/src/assets/components/icon-role.vue.d.ts +2 -0
  85. package/dts/src/assets/components/icon-security.vue.d.ts +2 -0
  86. package/dts/src/assets/components/icon-setting.vue.d.ts +2 -0
  87. package/dts/src/assets/components/icon-shoujihao.vue.d.ts +2 -0
  88. package/dts/src/assets/components/icon-shrink.vue.d.ts +2 -0
  89. package/dts/src/assets/components/icon-size.vue.d.ts +2 -0
  90. package/dts/src/assets/components/icon-sunny.vue.d.ts +2 -0
  91. package/dts/src/assets/components/icon-system.vue.d.ts +2 -0
  92. package/dts/src/assets/components/icon-table.vue.d.ts +2 -0
  93. package/dts/src/assets/components/icon-team.vue.d.ts +2 -0
  94. package/dts/src/assets/components/icon-todolist.vue.d.ts +2 -0
  95. package/dts/src/assets/components/icon-tree.vue.d.ts +2 -0
  96. package/dts/src/assets/components/icon-user.vue.d.ts +2 -0
  97. package/dts/src/assets/components/icon-visit.vue.d.ts +2 -0
  98. package/dts/src/assets/components/icon-xingming.vue.d.ts +2 -0
  99. package/dts/src/assets/components/icon-yonghuguanli.vue.d.ts +2 -0
  100. package/dts/src/assets/components/icon-youxiang.vue.d.ts +2 -0
  101. package/dts/src/assets/components/index.d.ts +69 -0
  102. package/dts/src/assets/index.d.ts +2 -0
  103. package/dts/src/components/AppLink/index.vue.d.ts +19 -0
  104. package/dts/src/components/Breadcrumb/index.vue.d.ts +2 -0
  105. package/dts/src/components/DictRadio/index.vue.d.ts +32 -0
  106. package/dts/src/components/DictSelect/index.vue.d.ts +50 -0
  107. package/dts/src/components/Dictionary/index.vue.d.ts +47 -0
  108. package/dts/src/components/GithubCorner/index.vue.d.ts +2 -0
  109. package/dts/src/components/Hamburger/index.vue.d.ts +18 -0
  110. package/dts/src/components/IconSelect/index.vue.d.ts +20 -0
  111. package/dts/src/components/IconSelect/requireIcons.d.ts +3 -0
  112. package/dts/src/components/JmashColumnSelect/index.vue.d.ts +17 -0
  113. package/dts/src/components/JmashEnumSelect/index.vue.d.ts +23 -0
  114. package/dts/src/components/JmashPagination/index.vue.d.ts +32 -0
  115. package/dts/src/components/JmashTable/index.vue.d.ts +46 -0
  116. package/dts/src/components/JmashUploadFile/index.vue.d.ts +7 -0
  117. package/dts/src/components/JmashUploadImage/index.vue.d.ts +37 -0
  118. package/dts/src/components/LangSelect/index.vue.d.ts +2 -0
  119. package/dts/src/components/Pagination/index.vue.d.ts +88 -0
  120. package/dts/src/components/RightPanel/index.vue.d.ts +21 -0
  121. package/dts/src/components/SizeSelect/index.vue.d.ts +2 -0
  122. package/dts/src/components/SvgIcon/index.vue.d.ts +43 -0
  123. package/dts/src/components/Table/index.vue.d.ts +64 -0
  124. package/dts/src/components/Upload/MultiUpload.vue.d.ts +65 -0
  125. package/dts/src/components/Upload/SingleUpload.vue.d.ts +18 -0
  126. package/dts/src/components/Upload/importUpload.vue.d.ts +31 -0
  127. package/dts/src/components/Upload/index.vue.d.ts +18 -0
  128. package/dts/src/components/index.d.ts +0 -0
  129. package/dts/src/directive/index.d.ts +5 -0
  130. package/dts/src/directive/permission/index.d.ts +9 -0
  131. package/dts/src/enums/DeviceEnum.d.ts +13 -0
  132. package/dts/src/enums/LayoutEnum.d.ts +17 -0
  133. package/dts/src/enums/MenuTypeEnum.d.ts +21 -0
  134. package/dts/src/enums/SidebarStatusEnum.d.ts +13 -0
  135. package/dts/src/enums/ThemeEnum.d.ts +17 -0
  136. package/dts/src/hooks/table.d.ts +43 -0
  137. package/dts/src/hooks/useList.d.ts +1 -0
  138. package/dts/src/index.d.ts +38 -0
  139. package/dts/src/lang/index.d.ts +2 -0
  140. package/dts/src/lang/package/en.d.ts +147 -0
  141. package/dts/src/lang/package/zh-cn.d.ts +151 -0
  142. package/dts/src/layout/components/AppMain/index.vue.d.ts +2 -0
  143. package/dts/src/layout/components/NavBar/components/NavbarLeft.vue.d.ts +2 -0
  144. package/dts/src/layout/components/NavBar/components/NavbarRight.vue.d.ts +2 -0
  145. package/dts/src/layout/components/NavBar/index.vue.d.ts +2 -0
  146. package/dts/src/layout/components/Settings/components/LayoutSelect.vue.d.ts +10 -0
  147. package/dts/src/layout/components/Settings/components/ThemeColorPicker.vue.d.ts +10 -0
  148. package/dts/src/layout/components/Settings/index.vue.d.ts +2 -0
  149. package/dts/src/layout/components/Sidebar/components/SidebarLogo.vue.d.ts +12 -0
  150. package/dts/src/layout/components/Sidebar/components/SidebarMenu.vue.d.ts +50 -0
  151. package/dts/src/layout/components/Sidebar/components/SidebarMenuItem.vue.d.ts +42 -0
  152. package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +32 -0
  153. package/dts/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue.d.ts +2 -0
  154. package/dts/src/layout/components/Sidebar/index.vue.d.ts +2 -0
  155. package/dts/src/layout/components/TagsView/index.vue.d.ts +2 -0
  156. package/dts/src/layout/index.vue.d.ts +2 -0
  157. package/dts/src/main.d.ts +1 -0
  158. package/dts/src/permission.d.ts +1 -0
  159. package/dts/src/router/index.d.ts +22 -0
  160. package/dts/src/settings.d.ts +28 -0
  161. package/dts/src/stores/index.d.ts +7 -0
  162. package/dts/src/stores/modules/app.d.ts +2 -0
  163. package/dts/src/stores/modules/permission.d.ts +2 -0
  164. package/dts/src/stores/modules/settings.d.ts +1 -0
  165. package/dts/src/stores/modules/tagsView.d.ts +85 -0
  166. package/dts/src/stores/modules/user.d.ts +2 -0
  167. package/dts/src/types/index.d.ts +74 -0
  168. package/dts/src/utils/color.d.ts +69 -0
  169. package/dts/src/utils/common.d.ts +6 -0
  170. package/dts/src/utils/file_hash_util.d.ts +28 -0
  171. package/dts/src/utils/fileajax.d.ts +9 -0
  172. package/dts/src/utils/grpc.d.ts +3 -0
  173. package/dts/src/utils/i18n.d.ts +4 -0
  174. package/dts/src/utils/index.d.ts +33 -0
  175. package/dts/src/utils/netsecret.d.ts +1 -0
  176. package/dts/src/utils/nprogress.d.ts +4 -0
  177. package/dts/src/utils/request.d.ts +4 -0
  178. package/dts/src/utils/route.d.ts +6 -0
  179. package/dts/src/utils/scroll-to.d.ts +6 -0
  180. package/dts/src/utils/sm3.d.ts +10 -0
  181. package/dts/src/views/dashboard/components/BarChart.vue.d.ts +45 -0
  182. package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +45 -0
  183. package/dts/src/views/dashboard/components/PieChart.vue.d.ts +45 -0
  184. package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +45 -0
  185. package/dts/src/views/dashboard/index.vue.d.ts +2 -0
  186. package/dts/src/views/error-page/401.vue.d.ts +2 -0
  187. package/dts/src/views/error-page/404.vue.d.ts +2 -0
  188. package/dts/src/views/login/components/types.vue.d.ts +2 -0
  189. package/dts/src/views/login/index.vue.d.ts +2 -0
  190. package/dts/src/views/my/profile.vue.d.ts +2 -0
  191. package/dts/src/views/my/runAs.vue.d.ts +6 -0
  192. package/dts/src/views/my/updatePwd.vue.d.ts +18 -0
  193. package/dts/src/views/redirect/index.vue.d.ts +2 -0
  194. package/package.json +1 -1
@@ -0,0 +1,367 @@
1
+ import { _ as G } from "./RadarChart.vue_vue_type_script_setup_true_lang-BNLujpKR.mjs";
2
+ import { _ as H } from "./PieChart.vue_vue_type_script_setup_true_lang-D1-1NDvg.mjs";
3
+ import R from "./BarChart--k4pvqvu.mjs";
4
+ import { g as N, f as q, b as J, n as f, o as p, S as K } from "./index-Bw3IdFvk.mjs";
5
+ import { openBlock as C, createElementBlock as y, pushScopeId as P, popScopeId as V, createElementVNode as t, defineComponent as Q, computed as B, ref as x, resolveComponent as d, createVNode as e, withCtx as s, unref as a, toDisplayString as i, createTextVNode as u } from "vue";
6
+ const W = {}, w = (c) => (P("data-v-5088dedb"), c = c(), V(), c), X = {
7
+ href: "https://github.com/haoxianrui",
8
+ target: "_blank",
9
+ class: "github-corner",
10
+ "aria-label": "View source on Github"
11
+ }, Y = {
12
+ width: "80",
13
+ height: "80",
14
+ viewBox: "0 0 250 250",
15
+ style: { color: "#fff", fill: "#40c9c6" },
16
+ "aria-hidden": "true"
17
+ }, tt = /* @__PURE__ */ w(() => /* @__PURE__ */ t("path", { d: "M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z" }, null, -1)), et = /* @__PURE__ */ w(() => /* @__PURE__ */ t("path", {
18
+ d: "M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",
19
+ fill: "currentColor",
20
+ style: { "transform-origin": "130px 106px" },
21
+ class: "octo-arm"
22
+ }, null, -1)), st = /* @__PURE__ */ w(() => /* @__PURE__ */ t("path", {
23
+ d: "M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",
24
+ fill: "currentColor",
25
+ class: "octo-body"
26
+ }, null, -1)), ot = [
27
+ tt,
28
+ et,
29
+ st
30
+ ];
31
+ function nt(c, j) {
32
+ return C(), y("a", X, [
33
+ (C(), y("svg", Y, ot))
34
+ ]);
35
+ }
36
+ const at = /* @__PURE__ */ N(W, [["render", nt], ["__scopeId", "data-v-5088dedb"]]), o = (c) => (P("data-v-496f50be"), c = c(), V(), c), ct = { class: "dashboard-container" }, lt = { class: "flex h-full items-center" }, it = ["src"], rt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("p", { class: "text-sm text-gray" }, "今日天气晴朗,气温在15℃至25℃之间,东南风。", -1)), _t = { class: "flex h-full items-center justify-around" }, dt = { class: "flex items-center" }, ut = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[16px] ml-1" }, "消息", -1)), ht = { class: "flex items-center" }, mt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[16px] ml-1" }, "待办", -1)), ft = { class: "flex items-center" }, pt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[16px] ml-1" }, "项目", -1)), xt = { class: "flex items-center justify-between" }, vt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[var(--el-text-color-secondary)]" }, "访客数", -1)), gt = { class: "flex items-center justify-between mt-5" }, bt = { class: "text-lg text-right" }, Ct = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, yt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", null, " 总访客数 ", -1)), wt = { class: "flex items-center justify-between" }, jt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[var(--el-text-color-secondary)]" }, "IP数", -1)), Mt = { class: "flex items-center justify-between mt-5" }, $t = { class: "text-lg text-right" }, It = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, St = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", null, " 总IP数 ", -1)), Ot = { class: "flex items-center justify-between" }, zt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[var(--el-text-color-secondary)]" }, "销售额", -1)), Lt = { class: "flex items-center justify-between mt-5" }, Et = { class: "text-lg text-right" }, kt = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, Bt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", null, " 总销售额 ", -1)), Nt = { class: "flex items-center justify-between" }, Pt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[var(--el-text-color-secondary)]" }, "订单量", -1)), Vt = { class: "flex items-center justify-between mt-5" }, Dt = { class: "text-lg text-right" }, Tt = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, Ut = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", null, " 总订单量 ", -1)), v = 5e3, At = /* @__PURE__ */ Q({
37
+ name: "Dashboard",
38
+ inheritAttrs: !1,
39
+ __name: "index",
40
+ setup(c) {
41
+ const j = B(() => q.imageUrl(M.user.avatar, 160, 160)), M = J(), D = /* @__PURE__ */ new Date(), T = B(() => {
42
+ const n = D.getHours();
43
+ let h = M.user.realName;
44
+ if (n >= 6 && n < 8)
45
+ return "晨起披衣出草堂,轩窗已自喜微凉🌅!";
46
+ if (n >= 8 && n < 12)
47
+ return "上午好," + h + "!";
48
+ if (n >= 12 && n < 18)
49
+ return "下午好," + h + "!";
50
+ if (n >= 18 && n < 24)
51
+ return "晚上好," + h + "!";
52
+ if (n >= 0 && n < 6)
53
+ return "偷偷向银河要了一把碎星,只等你闭上眼睛撒入你的梦中,晚安🌛!";
54
+ }), $ = x(0), I = f($, {
55
+ duration: v,
56
+ transition: p.easeOutExpo
57
+ });
58
+ $.value = 2e3;
59
+ const S = x(0), O = f(S, {
60
+ duration: v,
61
+ transition: p.easeOutExpo
62
+ });
63
+ S.value = 2e3;
64
+ const z = x(0), L = f(z, {
65
+ duration: v,
66
+ transition: p.easeOutExpo
67
+ });
68
+ z.value = 2e3;
69
+ const E = x(0), k = f(E, {
70
+ duration: v,
71
+ transition: p.easeOutExpo
72
+ });
73
+ return E.value = 2e3, (n, h) => {
74
+ const U = at, l = d("el-col"), r = K, g = d("el-statistic"), b = d("el-row"), _ = d("el-card"), m = d("el-tag"), A = R, Z = H, F = G;
75
+ return C(), y("div", ct, [
76
+ e(U, { class: "github-corner" }),
77
+ e(_, { shadow: "never" }, {
78
+ default: s(() => [
79
+ e(b, { justify: "space-between" }, {
80
+ default: s(() => [
81
+ e(l, {
82
+ span: 18,
83
+ xs: 24
84
+ }, {
85
+ default: s(() => [
86
+ t("div", lt, [
87
+ t("img", {
88
+ class: "w-20 h-20 mr-5 rounded-full",
89
+ src: a(j)
90
+ }, null, 8, it),
91
+ t("div", null, [
92
+ t("p", null, i(a(T)), 1),
93
+ rt
94
+ ])
95
+ ])
96
+ ]),
97
+ _: 1
98
+ }),
99
+ e(l, {
100
+ span: 6,
101
+ xs: 24
102
+ }, {
103
+ default: s(() => [
104
+ t("div", _t, [
105
+ e(g, { value: 99 }, {
106
+ title: s(() => [
107
+ t("div", dt, [
108
+ e(r, {
109
+ "icon-class": "message",
110
+ size: "20px"
111
+ }),
112
+ ut
113
+ ])
114
+ ]),
115
+ _: 1
116
+ }),
117
+ e(g, { value: 50 }, {
118
+ title: s(() => [
119
+ t("div", ht, [
120
+ e(r, {
121
+ "icon-class": "todolist",
122
+ size: "20px"
123
+ }),
124
+ mt
125
+ ])
126
+ ]),
127
+ suffix: s(() => [
128
+ u("/100")
129
+ ]),
130
+ _: 1
131
+ }),
132
+ e(g, { value: 10 }, {
133
+ title: s(() => [
134
+ t("div", ft, [
135
+ e(r, {
136
+ "icon-class": "project",
137
+ size: "20px"
138
+ }),
139
+ pt
140
+ ])
141
+ ]),
142
+ _: 1
143
+ })
144
+ ])
145
+ ]),
146
+ _: 1
147
+ })
148
+ ]),
149
+ _: 1
150
+ })
151
+ ]),
152
+ _: 1
153
+ }),
154
+ e(b, {
155
+ gutter: 10,
156
+ class: "mt-3"
157
+ }, {
158
+ default: s(() => [
159
+ e(l, {
160
+ xs: 24,
161
+ sm: 12,
162
+ lg: 6
163
+ }, {
164
+ default: s(() => [
165
+ e(_, { shadow: "never" }, {
166
+ header: s(() => [
167
+ t("div", xt, [
168
+ vt,
169
+ e(m, { type: "success" }, {
170
+ default: s(() => [
171
+ u("日")
172
+ ]),
173
+ _: 1
174
+ })
175
+ ])
176
+ ]),
177
+ default: s(() => [
178
+ t("div", gt, [
179
+ t("div", bt, i(Math.round(a(O))), 1),
180
+ e(r, {
181
+ "icon-class": "visit",
182
+ size: "2em"
183
+ })
184
+ ]),
185
+ t("div", Ct, [
186
+ yt,
187
+ t("span", null, i(Math.round(a(O) * 15)), 1)
188
+ ])
189
+ ]),
190
+ _: 1
191
+ })
192
+ ]),
193
+ _: 1
194
+ }),
195
+ e(l, {
196
+ xs: 24,
197
+ sm: 12,
198
+ lg: 6
199
+ }, {
200
+ default: s(() => [
201
+ e(_, { shadow: "never" }, {
202
+ header: s(() => [
203
+ t("div", wt, [
204
+ jt,
205
+ e(m, { type: "success" }, {
206
+ default: s(() => [
207
+ u("日")
208
+ ]),
209
+ _: 1
210
+ })
211
+ ])
212
+ ]),
213
+ default: s(() => [
214
+ t("div", Mt, [
215
+ t("div", $t, i(Math.round(a(L))), 1),
216
+ e(r, {
217
+ "icon-class": "ip",
218
+ size: "2em"
219
+ })
220
+ ]),
221
+ t("div", It, [
222
+ St,
223
+ t("span", null, i(Math.round(a(L))), 1)
224
+ ])
225
+ ]),
226
+ _: 1
227
+ })
228
+ ]),
229
+ _: 1
230
+ }),
231
+ e(l, {
232
+ xs: 24,
233
+ sm: 12,
234
+ lg: 6
235
+ }, {
236
+ default: s(() => [
237
+ e(_, { shadow: "never" }, {
238
+ header: s(() => [
239
+ t("div", Ot, [
240
+ zt,
241
+ e(m, null, {
242
+ default: s(() => [
243
+ u("月")
244
+ ]),
245
+ _: 1
246
+ })
247
+ ])
248
+ ]),
249
+ default: s(() => [
250
+ t("div", Lt, [
251
+ t("div", Et, i(Math.round(a(I))), 1),
252
+ e(r, {
253
+ "icon-class": "money",
254
+ size: "2em"
255
+ })
256
+ ]),
257
+ t("div", kt, [
258
+ Bt,
259
+ t("span", null, i(Math.round(a(I) * 15)), 1)
260
+ ])
261
+ ]),
262
+ _: 1
263
+ })
264
+ ]),
265
+ _: 1
266
+ }),
267
+ e(l, {
268
+ xs: 24,
269
+ sm: 12,
270
+ lg: 6
271
+ }, {
272
+ default: s(() => [
273
+ e(_, { shadow: "never" }, {
274
+ header: s(() => [
275
+ t("div", Nt, [
276
+ Pt,
277
+ e(m, { type: "danger" }, {
278
+ default: s(() => [
279
+ u("季")
280
+ ]),
281
+ _: 1
282
+ })
283
+ ])
284
+ ]),
285
+ default: s(() => [
286
+ t("div", Vt, [
287
+ t("div", Dt, i(Math.round(a(k))), 1),
288
+ e(r, {
289
+ "icon-class": "order",
290
+ size: "2em"
291
+ })
292
+ ]),
293
+ t("div", Tt, [
294
+ Ut,
295
+ t("span", null, i(Math.round(a(k) * 15)), 1)
296
+ ])
297
+ ]),
298
+ _: 1
299
+ })
300
+ ]),
301
+ _: 1
302
+ })
303
+ ]),
304
+ _: 1
305
+ }),
306
+ e(b, {
307
+ gutter: 10,
308
+ class: "mt-3"
309
+ }, {
310
+ default: s(() => [
311
+ e(l, {
312
+ sm: 24,
313
+ lg: 8,
314
+ class: "mb-2"
315
+ }, {
316
+ default: s(() => [
317
+ e(A, {
318
+ id: "barChart",
319
+ height: "400px",
320
+ width: "100%",
321
+ class: "bg-[var(--el-bg-color-overlay)]"
322
+ })
323
+ ]),
324
+ _: 1
325
+ }),
326
+ e(l, {
327
+ xs: 24,
328
+ sm: 12,
329
+ lg: 8,
330
+ class: "mb-2"
331
+ }, {
332
+ default: s(() => [
333
+ e(Z, {
334
+ id: "pieChart",
335
+ height: "400px",
336
+ width: "100%",
337
+ class: "bg-[var(--el-bg-color-overlay)]"
338
+ })
339
+ ]),
340
+ _: 1
341
+ }),
342
+ e(l, {
343
+ xs: 24,
344
+ sm: 12,
345
+ lg: 8,
346
+ class: "mb-2"
347
+ }, {
348
+ default: s(() => [
349
+ e(F, {
350
+ id: "radarChart",
351
+ height: "400px",
352
+ width: "100%",
353
+ class: "bg-[var(--el-bg-color-overlay)]"
354
+ })
355
+ ]),
356
+ _: 1
357
+ })
358
+ ]),
359
+ _: 1
360
+ })
361
+ ]);
362
+ };
363
+ }
364
+ }), qt = /* @__PURE__ */ N(At, [["__scopeId", "data-v-496f50be"]]);
365
+ export {
366
+ qt as default
367
+ };
@@ -0,0 +1,267 @@
1
+ import { _ as oe } from "./picture-CBRsHLZl.mjs";
2
+ import { defineComponent as te, ref as i, watchEffect as se, computed as le, onMounted as ne, resolveComponent as c, openBlock as w, createElementBlock as U, createElementVNode as n, createVNode as s, unref as o, isRef as ae, withCtx as r, toDisplayString as R, createTextVNode as I, createBlock as A, Fragment as re, renderList as ce, createCommentVNode as ie, withKeys as N, withModifiers as de, withDirectives as pe, vShow as ue, pushScopeId as me, popScopeId as _e } from "vue";
3
+ import { useI18n as ge } from "vue-i18n";
4
+ import { c as D, u as T, l as he, b as fe, _ as ve, S as m, w as we, p as ye, x as ke, y as Ce, r as be, g as Ve } from "./index-Bw3IdFvk.mjs";
5
+ import { ElForm as B } from "element-plus";
6
+ import { useRoute as Se } from "vue-router";
7
+ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login-container" }, $e = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, Re = { class: "text-center relative" }, Ie = { class: "p-2" }, De = { class: "p-2" }, Ee = { class: "p-2" }, Le = { class: "p-2" }, qe = { class: "captcha" }, Ue = { class: "image-slot" }, Ae = { class: "forgot-pwd" }, Ne = { class: "absolute bottom-1 text-[10px] text-center" }, Te = /* @__PURE__ */ F(() => /* @__PURE__ */ n("p", null, " Copyright © 2024 All Rights Reserved. Apache 2.0 协议. ", -1)), Be = /* @__PURE__ */ F(() => /* @__PURE__ */ n("p", null, "备案号: XXXX .", -1)), Fe = [
8
+ Te,
9
+ Be
10
+ ], Ke = 992, Xe = /* @__PURE__ */ te({
11
+ __name: "index",
12
+ setup(_) {
13
+ const y = D(), { title: K, version: X } = y, k = i(y.theme === "dark"), z = (e) => {
14
+ we(e), y.changeSetting({
15
+ key: "theme",
16
+ value: e ? "dark" : "light"
17
+ });
18
+ }, C = T(), { width: j } = he();
19
+ se(() => {
20
+ j.value < Ke ? C.toggleDevice("mobile") : C.toggleDevice("desktop");
21
+ });
22
+ const b = i(!1), E = i(!1), g = i(!1), L = i(), q = i(B), V = i([]), a = i({
23
+ scope: "",
24
+ username: "",
25
+ password: ""
26
+ }), { t: S } = ge(), M = le(() => {
27
+ const e = C.language === "en" ? "Please enter " : "请输入";
28
+ return {
29
+ username: [
30
+ {
31
+ required: !0,
32
+ trigger: "blur",
33
+ message: `${e}${S("login.username")}`
34
+ }
35
+ ],
36
+ password: [
37
+ {
38
+ required: !0,
39
+ trigger: "blur",
40
+ validator: (t, p, d) => {
41
+ p.length < 5 ? d(new Error("The password can not be less than 5 digits")) : d();
42
+ },
43
+ message: `${e}${S("login.password")}`
44
+ }
45
+ ],
46
+ captchaCode: [
47
+ {
48
+ required: !0,
49
+ trigger: "blur",
50
+ message: `${e}${S("login.captchaCode")}`
51
+ }
52
+ ]
53
+ };
54
+ });
55
+ function O(e) {
56
+ const { key: t } = e;
57
+ E.value = t && t.length === 1 && t >= "A" && t <= "Z";
58
+ }
59
+ function h() {
60
+ ye().then(({ data: e }) => {
61
+ a.value.captchaKey = e.captchaId, L.value = e.base64Image;
62
+ });
63
+ }
64
+ function P() {
65
+ ke().then(({ data: e }) => {
66
+ V.value = e.roleList;
67
+ });
68
+ }
69
+ const W = Se(), H = fe();
70
+ function x() {
71
+ q.value.validate((e) => {
72
+ e && (b.value = !0, a.value.password = Ce(a.value.password), H.login(a.value).then(() => {
73
+ const t = W.query, p = t.redirect ?? "/", d = Object.keys(t).reduce(
74
+ (f, u) => (u !== "redirect" && (f[u] = t[u]), f),
75
+ {}
76
+ );
77
+ be.value.push({ path: p, query: d }), h();
78
+ }).catch(() => {
79
+ h();
80
+ }).finally(() => {
81
+ b.value = !1;
82
+ }));
83
+ });
84
+ }
85
+ return ne(() => {
86
+ h(), P();
87
+ const e = D().theme;
88
+ D().changeSetting({ key: "theme", value: e }), e == "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
89
+ }), (e, t) => {
90
+ const p = c("el-switch"), d = c("el-tag"), f = c("el-option"), u = c("el-select"), v = c("el-form-item"), $ = c("el-input"), Q = c("el-tooltip"), Z = oe, G = c("el-image"), J = c("router-link"), Y = c("el-button"), ee = c("el-card");
91
+ return w(), U("div", xe, [
92
+ n("div", $e, [
93
+ s(p, {
94
+ modelValue: o(k),
95
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => ae(k) ? k.value = l : null),
96
+ "inline-prompt": "",
97
+ "active-color": "var(--el-fill-color-dark)",
98
+ "inactive-color": "var(--el-color-primary)",
99
+ onChange: z
100
+ }, null, 8, ["modelValue"]),
101
+ s(ve, { class: "ml-2 cursor-pointer" })
102
+ ]),
103
+ s(ee, { class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83" }, {
104
+ default: r(() => [
105
+ n("div", Re, [
106
+ n("h2", null, R(o(K)), 1),
107
+ s(d, { class: "ml-2 absolute top-0 right-0" }, {
108
+ default: r(() => [
109
+ I(R(o(X)), 1)
110
+ ]),
111
+ _: 1
112
+ })
113
+ ]),
114
+ s(o(B), {
115
+ ref_key: "loginFormRef",
116
+ ref: q,
117
+ model: o(a),
118
+ rules: o(M),
119
+ size: "large",
120
+ class: "login-form"
121
+ }, {
122
+ default: r(() => [
123
+ o(V).length > 0 ? (w(), A(v, {
124
+ key: 0,
125
+ prop: "scope"
126
+ }, {
127
+ default: r(() => [
128
+ n("div", Ie, [
129
+ s(m, { "icon-class": "user" })
130
+ ]),
131
+ s(u, {
132
+ modelValue: o(a).scope,
133
+ "onUpdate:modelValue": t[1] || (t[1] = (l) => o(a).scope = l),
134
+ placeholder: "Select",
135
+ class: "flex-1"
136
+ }, {
137
+ default: r(() => [
138
+ (w(!0), U(re, null, ce(o(V), (l) => (w(), A(f, {
139
+ key: l.roleCode,
140
+ label: l.roleName,
141
+ value: l.roleCode
142
+ }, null, 8, ["label", "value"]))), 128))
143
+ ]),
144
+ _: 1
145
+ }, 8, ["modelValue"])
146
+ ]),
147
+ _: 1
148
+ })) : ie("", !0),
149
+ s(v, { prop: "username" }, {
150
+ default: r(() => [
151
+ n("div", De, [
152
+ s(m, { "icon-class": "user" })
153
+ ]),
154
+ s($, {
155
+ ref: "username",
156
+ modelValue: o(a).username,
157
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => o(a).username = l),
158
+ class: "flex-1",
159
+ placeholder: e.$t("login.username"),
160
+ name: "username"
161
+ }, null, 8, ["modelValue", "placeholder"])
162
+ ]),
163
+ _: 1
164
+ }),
165
+ s(Q, {
166
+ disabled: o(E) === !1,
167
+ content: "Caps lock is On",
168
+ placement: "right"
169
+ }, {
170
+ default: r(() => [
171
+ s(v, { prop: "password" }, {
172
+ default: r(() => [
173
+ n("span", Ee, [
174
+ s(m, { "icon-class": "password" })
175
+ ]),
176
+ s($, {
177
+ modelValue: o(a).password,
178
+ "onUpdate:modelValue": t[3] || (t[3] = (l) => o(a).password = l),
179
+ class: "flex-1",
180
+ placeholder: e.$t("login.password"),
181
+ type: o(g) === !1 ? "password" : "input",
182
+ name: "password",
183
+ onKeyup: [
184
+ O,
185
+ N(x, ["enter"])
186
+ ]
187
+ }, null, 8, ["modelValue", "placeholder", "type"]),
188
+ n("span", {
189
+ class: "mr-2",
190
+ onClick: t[4] || (t[4] = (l) => g.value = !o(g))
191
+ }, [
192
+ s(m, {
193
+ "icon-class": o(g) === !1 ? "eye" : "eye-open",
194
+ class: "cursor-pointer"
195
+ }, null, 8, ["icon-class"])
196
+ ])
197
+ ]),
198
+ _: 1
199
+ })
200
+ ]),
201
+ _: 1
202
+ }, 8, ["disabled"]),
203
+ s(v, { prop: "captchaCode" }, {
204
+ default: r(() => [
205
+ n("span", Le, [
206
+ s(m, { "icon-class": "captcha" })
207
+ ]),
208
+ s($, {
209
+ modelValue: o(a).captchaCode,
210
+ "onUpdate:modelValue": t[5] || (t[5] = (l) => o(a).captchaCode = l),
211
+ "auto-complete": "off",
212
+ placeholder: e.$t("login.captchaCode"),
213
+ class: "w-[60%]",
214
+ onKeyup: N(x, ["enter"])
215
+ }, null, 8, ["modelValue", "placeholder"]),
216
+ n("div", qe, [
217
+ s(G, {
218
+ src: o(L),
219
+ onClick: h,
220
+ class: "w-[130px] h-[50px] cursor-pointer"
221
+ }, {
222
+ error: r(() => [
223
+ n("div", Ue, [
224
+ s(Z)
225
+ ])
226
+ ]),
227
+ _: 1
228
+ }, 8, ["src"])
229
+ ])
230
+ ]),
231
+ _: 1
232
+ }),
233
+ n("div", Ae, [
234
+ s(J, { to: "/secondLogin" }, {
235
+ default: r(() => [
236
+ I("手机号/邮箱登录")
237
+ ]),
238
+ _: 1
239
+ })
240
+ ]),
241
+ s(Y, {
242
+ loading: o(b),
243
+ type: "primary",
244
+ class: "w-full",
245
+ onClick: de(x, ["prevent"])
246
+ }, {
247
+ default: r(() => [
248
+ I(R(e.$t("login.login")), 1)
249
+ ]),
250
+ _: 1
251
+ }, 8, ["loading"])
252
+ ]),
253
+ _: 1
254
+ }, 8, ["model", "rules"])
255
+ ]),
256
+ _: 1
257
+ }),
258
+ pe(n("div", Ne, Fe, 512), [
259
+ [ue, o(T)().device == "desktop"]
260
+ ])
261
+ ]);
262
+ };
263
+ }
264
+ }), He = /* @__PURE__ */ Ve(Xe, [["__scopeId", "data-v-6eeae742"]]);
265
+ export {
266
+ He as default
267
+ };
@@ -0,0 +1,12 @@
1
+ import { defineComponent as c, openBlock as p, createElementBlock as s } from "vue";
2
+ import { useRoute as a, useRouter as u } from "vue-router";
3
+ const d = /* @__PURE__ */ c({
4
+ __name: "index",
5
+ setup(m) {
6
+ const e = a(), t = u(), { params: o, query: r } = e, { path: n } = o;
7
+ return t.replace({ path: "/" + n, query: r }), (_, i) => (p(), s("div"));
8
+ }
9
+ });
10
+ export {
11
+ d as default
12
+ };