@duxweb/dvha-pro 0.0.5 → 0.0.7
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/LICENSE +21 -0
- package/dist/cjs/_virtual/_commonjsHelpers.cjs +1 -0
- package/dist/cjs/_virtual/browser.cjs +1 -0
- package/dist/cjs/_virtual/browser2.cjs +1 -0
- package/dist/cjs/_virtual/sourcemap-codec.umd.cjs +1 -0
- package/dist/cjs/_virtual/sourcemap-codec.umd2.cjs +1 -0
- package/dist/cjs/component.cjs +1 -1
- package/dist/cjs/components/card/card.cjs +1 -1
- package/dist/cjs/components/chart/echart.cjs +1 -0
- package/dist/cjs/components/dialog/dialog.cjs +1 -1
- package/dist/cjs/components/drawer/drawer.cjs +1 -1
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/form/settingForm.cjs +1 -1
- package/dist/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/list/card.cjs +1 -1
- package/dist/cjs/components/list/list.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/modal/modalPage.cjs +1 -1
- package/dist/cjs/components/modal/modalTab.cjs +1 -1
- package/dist/cjs/components/select/cardSelect.cjs +1 -0
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/config/echart.cjs +1 -0
- package/dist/cjs/config/uno.cjs +1 -1
- package/dist/cjs/config/validate.cjs +1 -1
- package/dist/cjs/dvha-pro.css +1 -1
- package/dist/cjs/hooks/action.cjs +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/echart.cjs +1 -0
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/main.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.cjs +391 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.cjs +10 -0
- package/dist/cjs/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.cjs +1 -0
- package/dist/cjs/pages/authLayout.cjs +1 -1
- package/dist/cjs/pages/layout/global.cjs +1 -1
- package/dist/cjs/pages/layout/page.cjs +1 -1
- package/dist/cjs/pages/login.cjs +1 -1
- package/dist/cjs/pages/menu/avatar.cjs +1 -1
- package/dist/cjs/pages/menu/button.cjs +1 -1
- package/dist/cjs/pages/menu/cmd.cjs +1 -1
- package/dist/cjs/pages/menu/main.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/page.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/theme/naiveTheme.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +28 -6
- package/dist/esm/_virtual/_commonjsHelpers.js +6 -0
- package/dist/esm/_virtual/browser.js +7 -0
- package/dist/esm/_virtual/browser2.js +4 -0
- package/dist/esm/_virtual/sourcemap-codec.umd.js +5 -0
- package/dist/esm/_virtual/sourcemap-codec.umd2.js +4 -0
- package/dist/esm/component.js +44 -42
- package/dist/esm/components/card/card.js +1 -1
- package/dist/esm/components/chart/echart.js +75 -0
- package/dist/esm/components/dialog/dialog.js +87 -93
- package/dist/esm/components/drawer/drawer.js +34 -32
- package/dist/esm/components/form/modalForm.js +1 -1
- package/dist/esm/components/form/pageForm.js +25 -20
- package/dist/esm/components/form/settingForm.js +27 -22
- package/dist/esm/components/layout/list.js +204 -142
- package/dist/esm/components/layout/table.js +211 -145
- package/dist/esm/components/list/card.js +42 -32
- package/dist/esm/components/list/list.js +27 -16
- package/dist/esm/components/modal/modal.js +46 -86
- package/dist/esm/components/modal/modalPage.js +23 -18
- package/dist/esm/components/modal/modalTab.js +11 -11
- package/dist/esm/components/select/cardSelect.js +103 -0
- package/dist/esm/components/table/tablePage.js +21 -18
- package/dist/esm/config/echart.js +456 -0
- package/dist/esm/config/uno.js +16 -13
- package/dist/esm/config/validate.js +2 -2
- package/dist/esm/dvha-pro.css +1 -1
- package/dist/esm/hooks/action.js +46 -45
- package/dist/esm/hooks/dialog.js +24 -7
- package/dist/esm/hooks/drawer.js +14 -9
- package/dist/esm/hooks/echart.js +469 -0
- package/dist/esm/hooks/modal.js +25 -9
- package/dist/esm/hooks/table/media.js +19 -14
- package/dist/esm/index.js +158 -135
- package/dist/esm/main.js +11 -8
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.js +14 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.js +11 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.js +9 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.js +23 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.js +17 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.js +40 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.js +46 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.js +55 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.js +38 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.js +69 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.js +29 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +14 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.js +27 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.js +6 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.js +6 -0
- package/dist/esm/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +255 -0
- package/dist/esm/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.js +88 -0
- package/dist/esm/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.js +51 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.js +17 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.js +151 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.js +8 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.js +322 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.js +547 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.js +32 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.js +2307 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.js +627 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.js +7 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.js +588 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.js +51 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.js +553 -0
- package/dist/esm/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.js +632 -0
- package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js +146 -0
- package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js +97 -0
- package/dist/esm/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.js +56 -0
- package/dist/esm/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js +608 -0
- package/dist/esm/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js +85 -0
- package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.js +23 -0
- package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.js +219 -0
- package/dist/esm/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.js +153 -0
- package/dist/esm/pages/authLayout.js +4 -3
- package/dist/esm/pages/layout/global.js +46 -33
- package/dist/esm/pages/layout/page.js +15 -10
- package/dist/esm/pages/login.js +26 -21
- package/dist/esm/pages/menu/avatar.js +14 -14
- package/dist/esm/pages/menu/button.js +19 -14
- package/dist/esm/pages/menu/cmd.js +29 -24
- package/dist/esm/pages/menu/main.js +26 -21
- package/dist/esm/pages/menu/mobile.js +19 -14
- package/dist/esm/pages/page.js +16 -16
- package/dist/esm/pages/page404.js +25 -20
- package/dist/esm/pages/pageStatus.js +13 -8
- package/dist/esm/theme/naiveTheme.js +57 -51
- package/dist/esm/theme/uno.css.js +28 -6
- package/dist/types/components/chart/echart.d.ts +284 -0
- package/dist/types/components/chart/index.d.ts +1 -0
- package/dist/types/components/dialog/dialog.d.ts +1 -20
- package/dist/types/components/drawer/drawer.d.ts +14 -4
- package/dist/types/components/form/formLayout.d.ts +1 -1
- package/dist/types/components/form/modalForm.d.ts +1 -1
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/layout/list.d.ts +22 -1
- package/dist/types/components/layout/table.d.ts +22 -1
- package/dist/types/components/list/card.d.ts +41 -3
- package/dist/types/components/list/list.d.ts +46 -5
- package/dist/types/components/modal/modal.d.ts +13 -31
- package/dist/types/components/modal/modalPage.d.ts +3 -6
- package/dist/types/components/panel/alert.d.ts +1 -1
- package/dist/types/components/select/cardSelect.d.ts +88 -0
- package/dist/types/components/select/index.d.ts +1 -0
- package/dist/types/components/table/tablePage.d.ts +28 -2
- package/dist/types/config/echart.d.ts +4 -0
- package/dist/types/config/index.d.ts +1 -0
- package/dist/types/hooks/drawer.d.ts +3 -2
- package/dist/types/hooks/echart.d.ts +166 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/modal.d.ts +10 -5
- package/dist/types/hooks/table/types.d.ts +1 -0
- package/dist/types/main.d.ts +1 -0
- package/dist/types/pages/layout/global.d.ts +1 -0
- package/dist/types/pages/menu/avatar.d.ts +3 -3
- package/dist/types/pages/menu/button.d.ts +3 -3
- package/dist/types/pages/menu/main.d.ts +3 -3
- package/dist/types/pages/page.d.ts +1 -1
- package/package.json +22 -16
- package/dist/cjs/node_modules/@overlastic/core/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/@overlastic/vue/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/@vueuse/integrations/useFocusTrap.cjs +0 -1
- package/dist/cjs/node_modules/@vueuse/shared/index.cjs +0 -1
- package/dist/cjs/node_modules/colorizr/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/focus-trap/dist/focus-trap.esm.cjs +0 -5
- package/dist/cjs/node_modules/lower-case/dist.es2015/index.cjs +0 -1
- package/dist/cjs/node_modules/no-case/dist.es2015/index.cjs +0 -1
- package/dist/cjs/node_modules/pascal-case/dist.es2015/index.cjs +0 -1
- package/dist/cjs/node_modules/tabbable/dist/index.esm.cjs +0 -4
- package/dist/cjs/node_modules/tslib/tslib.es6.cjs +0 -1
- package/dist/esm/node_modules/@overlastic/core/dist/index.js +0 -76
- package/dist/esm/node_modules/@overlastic/vue/dist/index.js +0 -122
- package/dist/esm/node_modules/@vueuse/integrations/useFocusTrap.js +0 -43
- package/dist/esm/node_modules/@vueuse/shared/index.js +0 -6
- package/dist/esm/node_modules/colorizr/dist/index.js +0 -318
- package/dist/esm/node_modules/focus-trap/dist/focus-trap.esm.js +0 -473
- package/dist/esm/node_modules/lower-case/dist.es2015/index.js +0 -6
- package/dist/esm/node_modules/no-case/dist.es2015/index.js +0 -18
- package/dist/esm/node_modules/pascal-case/dist.es2015/index.js +0 -13
- package/dist/esm/node_modules/tabbable/dist/index.esm.js +0 -202
- package/dist/esm/node_modules/tslib/tslib.es6.js +0 -12
- /package/dist/cjs/node_modules/{@iconify-json → .pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json}/tabler/icons.json.cjs +0 -0
- /package/dist/cjs/node_modules/{@vee-validate → .pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate}/i18n/dist/locale/en.json.cjs +0 -0
- /package/dist/cjs/node_modules/{@vee-validate → .pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate}/i18n/dist/locale/zh_CN.json.cjs +0 -0
- /package/dist/esm/node_modules/{@iconify-json → .pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json}/tabler/icons.json.js +0 -0
- /package/dist/esm/node_modules/{@vee-validate → .pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate}/i18n/dist/locale/en.json.js +0 -0
- /package/dist/esm/node_modules/{@vee-validate → .pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate}/i18n/dist/locale/zh_CN.json.js +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { c as t } from "./shared/ofetch.03887fc3.js";
|
|
2
|
+
import { F as h, a as d } from "./shared/ofetch.03887fc3.js";
|
|
3
|
+
const e = function() {
|
|
4
|
+
if (typeof globalThis < "u")
|
|
5
|
+
return globalThis;
|
|
6
|
+
if (typeof self < "u")
|
|
7
|
+
return self;
|
|
8
|
+
if (typeof window < "u")
|
|
9
|
+
return window;
|
|
10
|
+
if (typeof global < "u")
|
|
11
|
+
return global;
|
|
12
|
+
throw new Error("unable to locate global object");
|
|
13
|
+
}(), r = e.fetch ? (...o) => e.fetch(...o) : () => Promise.reject(new Error("[ofetch] global.fetch is not supported!")), n = e.Headers, f = e.AbortController, c = t({ fetch: r, Headers: n, AbortController: f }), s = c;
|
|
14
|
+
export {
|
|
15
|
+
s as $fetch,
|
|
16
|
+
f as AbortController,
|
|
17
|
+
h as FetchError,
|
|
18
|
+
n as Headers,
|
|
19
|
+
t as createFetch,
|
|
20
|
+
d as createFetchError,
|
|
21
|
+
r as fetch,
|
|
22
|
+
c as ofetch
|
|
23
|
+
};
|
package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.js
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import l from "../../../../../destr@2.0.5/node_modules/destr/dist/index.js";
|
|
2
|
+
import { withBase as T, withQuery as E } from "../../../../../ufo@1.6.1/node_modules/ufo/dist/index.js";
|
|
3
|
+
class q extends Error {
|
|
4
|
+
constructor(r, s) {
|
|
5
|
+
super(r, s), this.name = "FetchError", s != null && s.cause && !this.cause && (this.cause = s.cause);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
function g(o) {
|
|
9
|
+
var a, p, e, c, d;
|
|
10
|
+
const r = ((a = o.error) == null ? void 0 : a.message) || ((p = o.error) == null ? void 0 : p.toString()) || "", s = ((e = o.request) == null ? void 0 : e.method) || ((c = o.options) == null ? void 0 : c.method) || "GET", y = ((d = o.request) == null ? void 0 : d.url) || String(o.request) || "/", f = `[${s}] ${JSON.stringify(y)}`, i = o.response ? `${o.response.status} ${o.response.statusText}` : "<no response>", u = `${f}: ${i}${r ? ` ${r}` : ""}`, t = new q(
|
|
11
|
+
u,
|
|
12
|
+
o.error ? { cause: o.error } : void 0
|
|
13
|
+
);
|
|
14
|
+
for (const n of ["request", "options", "response"])
|
|
15
|
+
Object.defineProperty(t, n, {
|
|
16
|
+
get() {
|
|
17
|
+
return o[n];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
for (const [n, h] of [
|
|
21
|
+
["data", "_data"],
|
|
22
|
+
["status", "status"],
|
|
23
|
+
["statusCode", "status"],
|
|
24
|
+
["statusText", "statusText"],
|
|
25
|
+
["statusMessage", "statusText"]
|
|
26
|
+
])
|
|
27
|
+
Object.defineProperty(t, n, {
|
|
28
|
+
get() {
|
|
29
|
+
return o.response && o.response[h];
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
return t;
|
|
33
|
+
}
|
|
34
|
+
const S = new Set(
|
|
35
|
+
Object.freeze(["PATCH", "POST", "PUT", "DELETE"])
|
|
36
|
+
);
|
|
37
|
+
function b(o = "GET") {
|
|
38
|
+
return S.has(o.toUpperCase());
|
|
39
|
+
}
|
|
40
|
+
function R(o) {
|
|
41
|
+
if (o === void 0)
|
|
42
|
+
return !1;
|
|
43
|
+
const r = typeof o;
|
|
44
|
+
return r === "string" || r === "number" || r === "boolean" || r === null ? !0 : r !== "object" ? !1 : Array.isArray(o) ? !0 : o.buffer ? !1 : o.constructor && o.constructor.name === "Object" || typeof o.toJSON == "function";
|
|
45
|
+
}
|
|
46
|
+
const A = /* @__PURE__ */ new Set([
|
|
47
|
+
"image/svg",
|
|
48
|
+
"application/xml",
|
|
49
|
+
"application/xhtml",
|
|
50
|
+
"application/html"
|
|
51
|
+
]), $ = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
|
|
52
|
+
function j(o = "") {
|
|
53
|
+
if (!o)
|
|
54
|
+
return "json";
|
|
55
|
+
const r = o.split(";").shift() || "";
|
|
56
|
+
return $.test(r) ? "json" : A.has(r) || r.startsWith("text/") ? "text" : "blob";
|
|
57
|
+
}
|
|
58
|
+
function C(o, r, s, y) {
|
|
59
|
+
const f = F(
|
|
60
|
+
(r == null ? void 0 : r.headers) ?? (o == null ? void 0 : o.headers),
|
|
61
|
+
s == null ? void 0 : s.headers,
|
|
62
|
+
y
|
|
63
|
+
);
|
|
64
|
+
let i;
|
|
65
|
+
return (s != null && s.query || s != null && s.params || r != null && r.params || r != null && r.query) && (i = {
|
|
66
|
+
...s == null ? void 0 : s.params,
|
|
67
|
+
...s == null ? void 0 : s.query,
|
|
68
|
+
...r == null ? void 0 : r.params,
|
|
69
|
+
...r == null ? void 0 : r.query
|
|
70
|
+
}), {
|
|
71
|
+
...s,
|
|
72
|
+
...r,
|
|
73
|
+
query: i,
|
|
74
|
+
params: i,
|
|
75
|
+
headers: f
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function F(o, r, s) {
|
|
79
|
+
if (!r)
|
|
80
|
+
return new s(o);
|
|
81
|
+
const y = new s(r);
|
|
82
|
+
if (o)
|
|
83
|
+
for (const [f, i] of Symbol.iterator in o || Array.isArray(o) ? o : new s(o))
|
|
84
|
+
y.set(f, i);
|
|
85
|
+
return y;
|
|
86
|
+
}
|
|
87
|
+
async function m(o, r) {
|
|
88
|
+
if (r)
|
|
89
|
+
if (Array.isArray(r))
|
|
90
|
+
for (const s of r)
|
|
91
|
+
await s(o);
|
|
92
|
+
else
|
|
93
|
+
await r(o);
|
|
94
|
+
}
|
|
95
|
+
const O = /* @__PURE__ */ new Set([
|
|
96
|
+
408,
|
|
97
|
+
// Request Timeout
|
|
98
|
+
409,
|
|
99
|
+
// Conflict
|
|
100
|
+
425,
|
|
101
|
+
// Too Early (Experimental)
|
|
102
|
+
429,
|
|
103
|
+
// Too Many Requests
|
|
104
|
+
500,
|
|
105
|
+
// Internal Server Error
|
|
106
|
+
502,
|
|
107
|
+
// Bad Gateway
|
|
108
|
+
503,
|
|
109
|
+
// Service Unavailable
|
|
110
|
+
504
|
|
111
|
+
// Gateway Timeout
|
|
112
|
+
]), P = /* @__PURE__ */ new Set([101, 204, 205, 304]);
|
|
113
|
+
function k(o = {}) {
|
|
114
|
+
const {
|
|
115
|
+
fetch: r = globalThis.fetch,
|
|
116
|
+
Headers: s = globalThis.Headers,
|
|
117
|
+
AbortController: y = globalThis.AbortController
|
|
118
|
+
} = o;
|
|
119
|
+
async function f(t) {
|
|
120
|
+
const a = t.error && t.error.name === "AbortError" && !t.options.timeout || !1;
|
|
121
|
+
if (t.options.retry !== !1 && !a) {
|
|
122
|
+
let e;
|
|
123
|
+
typeof t.options.retry == "number" ? e = t.options.retry : e = b(t.options.method) ? 0 : 1;
|
|
124
|
+
const c = t.response && t.response.status || 500;
|
|
125
|
+
if (e > 0 && (Array.isArray(t.options.retryStatusCodes) ? t.options.retryStatusCodes.includes(c) : O.has(c))) {
|
|
126
|
+
const d = typeof t.options.retryDelay == "function" ? t.options.retryDelay(t) : t.options.retryDelay || 0;
|
|
127
|
+
return d > 0 && await new Promise((n) => setTimeout(n, d)), i(t.request, {
|
|
128
|
+
...t.options,
|
|
129
|
+
retry: e - 1
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
const p = g(t);
|
|
134
|
+
throw Error.captureStackTrace && Error.captureStackTrace(p, i), p;
|
|
135
|
+
}
|
|
136
|
+
const i = async function(a, p = {}) {
|
|
137
|
+
const e = {
|
|
138
|
+
request: a,
|
|
139
|
+
options: C(
|
|
140
|
+
a,
|
|
141
|
+
p,
|
|
142
|
+
o.defaults,
|
|
143
|
+
s
|
|
144
|
+
),
|
|
145
|
+
response: void 0,
|
|
146
|
+
error: void 0
|
|
147
|
+
};
|
|
148
|
+
e.options.method && (e.options.method = e.options.method.toUpperCase()), e.options.onRequest && await m(e, e.options.onRequest), typeof e.request == "string" && (e.options.baseURL && (e.request = T(e.request, e.options.baseURL)), e.options.query && (e.request = E(e.request, e.options.query), delete e.options.query), "query" in e.options && delete e.options.query, "params" in e.options && delete e.options.params), e.options.body && b(e.options.method) && (R(e.options.body) ? (e.options.body = typeof e.options.body == "string" ? e.options.body : JSON.stringify(e.options.body), e.options.headers = new s(e.options.headers || {}), e.options.headers.has("content-type") || e.options.headers.set("content-type", "application/json"), e.options.headers.has("accept") || e.options.headers.set("accept", "application/json")) : (
|
|
149
|
+
// ReadableStream Body
|
|
150
|
+
("pipeTo" in e.options.body && typeof e.options.body.pipeTo == "function" || // Node.js Stream Body
|
|
151
|
+
typeof e.options.body.pipe == "function") && ("duplex" in e.options || (e.options.duplex = "half"))
|
|
152
|
+
));
|
|
153
|
+
let c;
|
|
154
|
+
if (!e.options.signal && e.options.timeout) {
|
|
155
|
+
const n = new y();
|
|
156
|
+
c = setTimeout(() => {
|
|
157
|
+
const h = new Error(
|
|
158
|
+
"[TimeoutError]: The operation was aborted due to timeout"
|
|
159
|
+
);
|
|
160
|
+
h.name = "TimeoutError", h.code = 23, n.abort(h);
|
|
161
|
+
}, e.options.timeout), e.options.signal = n.signal;
|
|
162
|
+
}
|
|
163
|
+
try {
|
|
164
|
+
e.response = await r(
|
|
165
|
+
e.request,
|
|
166
|
+
e.options
|
|
167
|
+
);
|
|
168
|
+
} catch (n) {
|
|
169
|
+
return e.error = n, e.options.onRequestError && await m(
|
|
170
|
+
e,
|
|
171
|
+
e.options.onRequestError
|
|
172
|
+
), await f(e);
|
|
173
|
+
} finally {
|
|
174
|
+
c && clearTimeout(c);
|
|
175
|
+
}
|
|
176
|
+
if ((e.response.body || // https://github.com/unjs/ofetch/issues/324
|
|
177
|
+
// https://github.com/unjs/ofetch/issues/294
|
|
178
|
+
// https://github.com/JakeChampion/fetch/issues/1454
|
|
179
|
+
e.response._bodyInit) && !P.has(e.response.status) && e.options.method !== "HEAD") {
|
|
180
|
+
const n = (e.options.parseResponse ? "json" : e.options.responseType) || j(e.response.headers.get("content-type") || "");
|
|
181
|
+
switch (n) {
|
|
182
|
+
case "json": {
|
|
183
|
+
const h = await e.response.text(), w = e.options.parseResponse || l;
|
|
184
|
+
e.response._data = w(h);
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
case "stream": {
|
|
188
|
+
e.response._data = e.response.body || e.response._bodyInit;
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
default:
|
|
192
|
+
e.response._data = await e.response[n]();
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return e.options.onResponse && await m(
|
|
196
|
+
e,
|
|
197
|
+
e.options.onResponse
|
|
198
|
+
), !e.options.ignoreResponseError && e.response.status >= 400 && e.response.status < 600 ? (e.options.onResponseError && await m(
|
|
199
|
+
e,
|
|
200
|
+
e.options.onResponseError
|
|
201
|
+
), await f(e)) : e.response;
|
|
202
|
+
}, u = async function(a, p) {
|
|
203
|
+
return (await i(a, p))._data;
|
|
204
|
+
};
|
|
205
|
+
return u.raw = i, u.native = (...t) => r(...t), u.create = (t = {}, a = {}) => k({
|
|
206
|
+
...o,
|
|
207
|
+
...a,
|
|
208
|
+
defaults: {
|
|
209
|
+
...o.defaults,
|
|
210
|
+
...a.defaults,
|
|
211
|
+
...t
|
|
212
|
+
}
|
|
213
|
+
}), u;
|
|
214
|
+
}
|
|
215
|
+
export {
|
|
216
|
+
q as F,
|
|
217
|
+
g as a,
|
|
218
|
+
k as c
|
|
219
|
+
};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
const A = /#/g, d = /&/g, L = /\//g, C = /=/g, h = /\+/g, P = /%5e/gi, O = /%60/gi, Q = /%7c/gi, T = /%20/gi;
|
|
2
|
+
function b(t) {
|
|
3
|
+
return encodeURI("" + t).replace(Q, "|");
|
|
4
|
+
}
|
|
5
|
+
function i(t) {
|
|
6
|
+
return b(typeof t == "string" ? t : JSON.stringify(t)).replace(h, "%2B").replace(T, "+").replace(A, "%23").replace(d, "%26").replace(O, "`").replace(P, "^").replace(L, "%2F");
|
|
7
|
+
}
|
|
8
|
+
function a(t) {
|
|
9
|
+
return i(t).replace(C, "%3D");
|
|
10
|
+
}
|
|
11
|
+
function E(t = "") {
|
|
12
|
+
try {
|
|
13
|
+
return decodeURIComponent("" + t);
|
|
14
|
+
} catch {
|
|
15
|
+
return "" + t;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function S(t) {
|
|
19
|
+
return E(t.replace(h, " "));
|
|
20
|
+
}
|
|
21
|
+
function w(t) {
|
|
22
|
+
return E(t.replace(h, " "));
|
|
23
|
+
}
|
|
24
|
+
function I(t = "") {
|
|
25
|
+
const e = /* @__PURE__ */ Object.create(null);
|
|
26
|
+
t[0] === "?" && (t = t.slice(1));
|
|
27
|
+
for (const o of t.split("&")) {
|
|
28
|
+
const r = o.match(/([^=]+)=?(.*)/) || [];
|
|
29
|
+
if (r.length < 2)
|
|
30
|
+
continue;
|
|
31
|
+
const n = S(r[1]);
|
|
32
|
+
if (n === "__proto__" || n === "constructor")
|
|
33
|
+
continue;
|
|
34
|
+
const c = w(r[2] || "");
|
|
35
|
+
e[n] === void 0 ? e[n] = c : Array.isArray(e[n]) ? e[n].push(c) : e[n] = [e[n], c];
|
|
36
|
+
}
|
|
37
|
+
return e;
|
|
38
|
+
}
|
|
39
|
+
function N(t, e) {
|
|
40
|
+
return (typeof e == "number" || typeof e == "boolean") && (e = String(e)), e ? Array.isArray(e) ? e.map(
|
|
41
|
+
(o) => `${a(t)}=${i(o)}`
|
|
42
|
+
).join("&") : `${a(t)}=${i(e)}` : a(t);
|
|
43
|
+
}
|
|
44
|
+
function U(t) {
|
|
45
|
+
return Object.keys(t).filter((e) => t[e] !== void 0).map((e) => N(e, t[e])).filter(Boolean).join("&");
|
|
46
|
+
}
|
|
47
|
+
const j = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/, B = /^[\s\w\0+.-]{2,}:([/\\]{2})?/, F = /^([/\\]\s*){2,}[^/\\]/, G = /^\.?\//;
|
|
48
|
+
function _(t, e = {}) {
|
|
49
|
+
return typeof e == "boolean" && (e = { acceptRelative: e }), e.strict ? j.test(t) : B.test(t) || (e.acceptRelative ? F.test(t) : !1);
|
|
50
|
+
}
|
|
51
|
+
function H(t = "", e) {
|
|
52
|
+
return t.endsWith("/");
|
|
53
|
+
}
|
|
54
|
+
function K(t = "", e) {
|
|
55
|
+
return (H(t) ? t.slice(0, -1) : t) || "/";
|
|
56
|
+
}
|
|
57
|
+
function W(t = "", e) {
|
|
58
|
+
return t.endsWith("/") ? t : t + "/";
|
|
59
|
+
}
|
|
60
|
+
function X(t, e) {
|
|
61
|
+
if ($(e) || _(t))
|
|
62
|
+
return t;
|
|
63
|
+
const o = K(e);
|
|
64
|
+
return t.startsWith(o) ? t : D(o, t);
|
|
65
|
+
}
|
|
66
|
+
function J(t, e) {
|
|
67
|
+
const o = M(t), r = { ...I(o.search), ...e };
|
|
68
|
+
return o.search = U(r), V(o);
|
|
69
|
+
}
|
|
70
|
+
function $(t) {
|
|
71
|
+
return !t || t === "/";
|
|
72
|
+
}
|
|
73
|
+
function v(t) {
|
|
74
|
+
return t && t !== "/";
|
|
75
|
+
}
|
|
76
|
+
function D(t, ...e) {
|
|
77
|
+
let o = t || "";
|
|
78
|
+
for (const r of e.filter((n) => v(n)))
|
|
79
|
+
if (o) {
|
|
80
|
+
const n = r.replace(G, "");
|
|
81
|
+
o = W(o) + n;
|
|
82
|
+
} else
|
|
83
|
+
o = r;
|
|
84
|
+
return o;
|
|
85
|
+
}
|
|
86
|
+
const p = Symbol.for("ufo:protocolRelative");
|
|
87
|
+
function M(t = "", e) {
|
|
88
|
+
const o = t.match(
|
|
89
|
+
/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i
|
|
90
|
+
);
|
|
91
|
+
if (o) {
|
|
92
|
+
const [, u, l = ""] = o;
|
|
93
|
+
return {
|
|
94
|
+
protocol: u.toLowerCase(),
|
|
95
|
+
pathname: l,
|
|
96
|
+
href: u + l,
|
|
97
|
+
auth: "",
|
|
98
|
+
host: "",
|
|
99
|
+
search: "",
|
|
100
|
+
hash: ""
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
if (!_(t, { acceptRelative: !0 }))
|
|
104
|
+
return R(t);
|
|
105
|
+
const [, r = "", n, c = ""] = t.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [];
|
|
106
|
+
let [, f = "", s = ""] = c.match(/([^#/?]*)(.*)?/) || [];
|
|
107
|
+
r === "file:" && (s = s.replace(/\/(?=[A-Za-z]:)/, ""));
|
|
108
|
+
const { pathname: y, search: m, hash: g } = R(s);
|
|
109
|
+
return {
|
|
110
|
+
protocol: r.toLowerCase(),
|
|
111
|
+
auth: n ? n.slice(0, Math.max(0, n.length - 1)) : "",
|
|
112
|
+
host: f,
|
|
113
|
+
pathname: y,
|
|
114
|
+
search: m,
|
|
115
|
+
hash: g,
|
|
116
|
+
[p]: !r
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function R(t = "") {
|
|
120
|
+
const [e = "", o = "", r = ""] = (t.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1);
|
|
121
|
+
return {
|
|
122
|
+
pathname: e,
|
|
123
|
+
search: o,
|
|
124
|
+
hash: r
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function V(t) {
|
|
128
|
+
const e = t.pathname || "", o = t.search ? (t.search.startsWith("?") ? "" : "?") + t.search : "", r = t.hash || "", n = t.auth ? t.auth + "@" : "", c = t.host || "";
|
|
129
|
+
return (t.protocol || t[p] ? (t.protocol || "") + "//" : "") + n + c + e + o + r;
|
|
130
|
+
}
|
|
131
|
+
export {
|
|
132
|
+
E as decode,
|
|
133
|
+
S as decodeQueryKey,
|
|
134
|
+
w as decodeQueryValue,
|
|
135
|
+
b as encode,
|
|
136
|
+
N as encodeQueryItem,
|
|
137
|
+
a as encodeQueryKey,
|
|
138
|
+
i as encodeQueryValue,
|
|
139
|
+
_ as hasProtocol,
|
|
140
|
+
H as hasTrailingSlash,
|
|
141
|
+
$ as isEmptyURL,
|
|
142
|
+
v as isNonEmptyURL,
|
|
143
|
+
D as joinURL,
|
|
144
|
+
R as parsePath,
|
|
145
|
+
I as parseQuery,
|
|
146
|
+
M as parseURL,
|
|
147
|
+
V as stringifyParsedURL,
|
|
148
|
+
U as stringifyQuery,
|
|
149
|
+
X as withBase,
|
|
150
|
+
J as withQuery,
|
|
151
|
+
W as withTrailingSlash,
|
|
152
|
+
K as withoutTrailingSlash
|
|
153
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent as r, createVNode as o } from "vue";
|
|
2
|
-
import { OverlaysProvider as t } from "
|
|
2
|
+
import { OverlaysProvider as t } from "@overlastic/vue";
|
|
3
3
|
import "@duxweb/dvha-core";
|
|
4
4
|
import "naive-ui";
|
|
5
5
|
import "vue-router";
|
|
6
|
+
import "vue-echarts";
|
|
6
7
|
import "clsx";
|
|
7
8
|
import "jinrishici";
|
|
8
9
|
import "lodash-es";
|
|
@@ -16,7 +17,7 @@ import { DuxMobileMenu as i } from "./menu/mobile.js";
|
|
|
16
17
|
import "./page404.js";
|
|
17
18
|
import "@duxweb/dvha-naiveui";
|
|
18
19
|
import { useUI as p } from "../hooks/ui.js";
|
|
19
|
-
const
|
|
20
|
+
const G = /* @__PURE__ */ r({
|
|
20
21
|
name: "DuxAuthLayout",
|
|
21
22
|
setup() {
|
|
22
23
|
const {
|
|
@@ -34,5 +35,5 @@ const k = /* @__PURE__ */ r({
|
|
|
34
35
|
}
|
|
35
36
|
});
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
G as DuxAuthLayout
|
|
38
39
|
};
|
|
@@ -1,51 +1,64 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import { setLocale as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { defineComponent as N, inject as T, onBeforeMount as L, computed as n, watch as i, onMounted as y, createVNode as o } from "vue";
|
|
2
|
+
import { useTheme as b, useI18n as k } from "@duxweb/dvha-core";
|
|
3
|
+
import { setLocale as x } from "@vee-validate/i18n";
|
|
4
|
+
import { hex2hsl as M } from "colorizr";
|
|
5
|
+
import { registerTheme as O } from "echarts";
|
|
6
|
+
import { useLoadingBar as P, zhCN as w, enUS as z, dateZhCN as B, dateEnUS as D, NConfigProvider as S, darkTheme as G, lightTheme as I, NModalProvider as U, NNotificationProvider as j, NMessageProvider as E } from "naive-ui";
|
|
7
|
+
import { generateRainbowFromColor as F, getTheme as R } from "../../config/echart.js";
|
|
8
|
+
import "@unocss/preset-typography";
|
|
9
|
+
import { themeOverrides as V } from "../../theme/naiveTheme.js";
|
|
10
|
+
import "vee-validate";
|
|
11
|
+
const $ = /* @__PURE__ */ N({
|
|
7
12
|
name: "DuxGlobalLayout",
|
|
8
|
-
setup(
|
|
9
|
-
slots:
|
|
13
|
+
setup(Z, {
|
|
14
|
+
slots: r
|
|
10
15
|
}) {
|
|
11
16
|
const {
|
|
12
|
-
isDark:
|
|
13
|
-
cssInit:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
isDark: t,
|
|
18
|
+
cssInit: l,
|
|
19
|
+
getSceneColor: m
|
|
20
|
+
} = b(), u = T("pageLoading"), d = P(), {
|
|
21
|
+
lightTheme: c,
|
|
22
|
+
darkTheme: s
|
|
23
|
+
} = V();
|
|
24
|
+
L(() => {
|
|
25
|
+
l();
|
|
20
26
|
});
|
|
21
27
|
const {
|
|
22
28
|
getLocale: a
|
|
23
|
-
} =
|
|
24
|
-
return
|
|
25
|
-
|
|
29
|
+
} = k(), h = n(() => a() === "zh-CN" ? w : z), f = n(() => a() === "zh-CN" ? B : D);
|
|
30
|
+
return i(a, (e) => {
|
|
31
|
+
x(e);
|
|
26
32
|
}, {
|
|
27
33
|
immediate: !0
|
|
28
|
-
}),
|
|
34
|
+
}), y(async () => {
|
|
29
35
|
setTimeout(() => {
|
|
30
|
-
|
|
36
|
+
d.finish(), u.value = !1;
|
|
31
37
|
}, 500);
|
|
32
|
-
}), () =>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
theme: r.value ? B : D,
|
|
36
|
-
themeOverrides: r.value ? m.value : d.value
|
|
38
|
+
}), i(t, (e) => {
|
|
39
|
+
const g = m("primary"), p = M(g), v = F(p, 10), C = R(v, e);
|
|
40
|
+
O("default", C);
|
|
37
41
|
}, {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
immediate: !0
|
|
43
|
+
}), () => o(S, {
|
|
44
|
+
locale: h.value,
|
|
45
|
+
dateLocale: f.value,
|
|
46
|
+
theme: t.value ? G : I,
|
|
47
|
+
themeOverrides: t.value ? s.value : c.value
|
|
48
|
+
}, {
|
|
49
|
+
default: () => [o(U, null, {
|
|
50
|
+
default: () => [o(j, null, {
|
|
51
|
+
default: () => [o(E, null, {
|
|
52
|
+
default: () => {
|
|
53
|
+
var e;
|
|
54
|
+
return [(e = r.default) == null ? void 0 : e.call(r)];
|
|
55
|
+
}
|
|
56
|
+
})]
|
|
44
57
|
})]
|
|
45
58
|
})]
|
|
46
59
|
});
|
|
47
60
|
}
|
|
48
61
|
});
|
|
49
62
|
export {
|
|
50
|
-
|
|
63
|
+
$ as DuxGlobalLayout
|
|
51
64
|
};
|
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
import { defineComponent as i, createVNode as e } from "vue";
|
|
2
|
-
import { useManage as r, DuxTabRouterView as
|
|
2
|
+
import { useManage as r, DuxTabRouterView as m } from "@duxweb/dvha-core";
|
|
3
3
|
import { NButton as s } from "naive-ui";
|
|
4
4
|
import "vue-router";
|
|
5
|
-
import "
|
|
5
|
+
import "@overlastic/vue";
|
|
6
|
+
import "vue-echarts";
|
|
6
7
|
import "clsx";
|
|
7
8
|
import "jinrishici";
|
|
8
9
|
import "lodash-es";
|
|
9
10
|
import "@vueuse/core";
|
|
10
11
|
import "vee-validate";
|
|
11
12
|
import "@vee-validate/i18n";
|
|
12
|
-
import
|
|
13
|
+
import "colorizr";
|
|
14
|
+
import "echarts";
|
|
15
|
+
import "@ant-design/colors";
|
|
16
|
+
import "@unocss/preset-typography";
|
|
17
|
+
import n from "../menu/avatar.js";
|
|
13
18
|
import "vue-command-palette";
|
|
14
19
|
import "@duxweb/dvha-naiveui";
|
|
15
20
|
import { DuxPageTab as u } from "./tab.js";
|
|
16
21
|
import "../page404.js";
|
|
17
|
-
import { useUI as
|
|
18
|
-
const
|
|
22
|
+
import { useUI as p } from "../../hooks/ui.js";
|
|
23
|
+
const A = /* @__PURE__ */ i({
|
|
19
24
|
name: "DuxLayoutPage",
|
|
20
25
|
props: {},
|
|
21
26
|
setup() {
|
|
22
27
|
const {
|
|
23
28
|
menuMobileCollapsed: t,
|
|
24
29
|
setMenuMobileCollapsed: l
|
|
25
|
-
} =
|
|
30
|
+
} = p(), {
|
|
26
31
|
config: o
|
|
27
32
|
} = r();
|
|
28
33
|
return () => e("div", {
|
|
@@ -40,15 +45,15 @@ const L = /* @__PURE__ */ i({
|
|
|
40
45
|
}, null)]
|
|
41
46
|
}), e("div", {
|
|
42
47
|
class: "w-full absolute inset-0 flex items-center justify-center text-base pointer-events-none"
|
|
43
|
-
}, [o.title]), e("div", null, [e(
|
|
44
|
-
|
|
48
|
+
}, [o.title]), e("div", null, [e(n, {
|
|
49
|
+
collapsed: !0
|
|
45
50
|
}, null)])]), e("div", {
|
|
46
51
|
class: "flex-1 py-2"
|
|
47
52
|
}, [e(u, null, null)])]), e("div", {
|
|
48
53
|
class: "flex-1 min-h-0 mr-2 ml-2 mb-2 lg:ml-0"
|
|
49
|
-
}, [e(
|
|
54
|
+
}, [e(m, null, null)])]);
|
|
50
55
|
}
|
|
51
56
|
});
|
|
52
57
|
export {
|
|
53
|
-
|
|
58
|
+
A as DuxLayoutPage
|
|
54
59
|
};
|