@duxweb/dvha-pro 0.0.7 → 1.0.14
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/cjs/component.cjs +1 -1
- package/dist/cjs/components/card/card.cjs +1 -1
- package/dist/cjs/components/card/store.cjs +1 -0
- package/dist/cjs/components/chart/echart.cjs +1 -1
- package/dist/cjs/components/crop/imageCrop.cjs +1 -0
- package/dist/cjs/components/crop/imageCropModal.cjs +1 -0
- package/dist/cjs/components/dashboard/helloBig.cjs +1 -1
- package/dist/cjs/components/data/dynamicData.cjs +1 -0
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -0
- package/dist/cjs/components/data/selectModal.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/editor/aiEditor.cjs +1 -0
- 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/level/level.cjs +1 -0
- package/dist/cjs/components/media/media.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/panel/setting.cjs +1 -1
- package/dist/cjs/components/stats/number.cjs +1 -0
- package/dist/cjs/components/stats/realTime.cjs +1 -0
- package/dist/cjs/components/status/blockEmpty.cjs +1 -1
- package/dist/cjs/components/upload/file.cjs +1 -0
- package/dist/cjs/components/upload/image.cjs +1 -0
- package/dist/cjs/components/upload/manage/item.cjs +1 -0
- package/dist/cjs/components/upload/manager.cjs +1 -0
- package/dist/cjs/components/widget/avatar.cjs +1 -0
- package/dist/cjs/components/widget/connect.cjs +1 -1
- package/dist/cjs/components/widget/image.cjs +1 -0
- package/dist/cjs/components/widget/placeholder.cjs +1 -0
- package/dist/cjs/config/uno.cjs +1 -1
- package/dist/cjs/config/validate.cjs +1 -1
- package/dist/cjs/hooks/action.cjs +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/download.cjs +1 -0
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/echart.cjs +1 -1
- package/dist/cjs/hooks/image.cjs +1 -0
- package/dist/cjs/hooks/level.cjs +1 -0
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/copy.cjs +1 -1
- package/dist/cjs/hooks/table/image.cjs +1 -1
- package/dist/cjs/hooks/table/input.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/langs/en-US.json.cjs +1 -1
- package/dist/cjs/langs/zh-CN.json.cjs +1 -1
- package/dist/cjs/main.cjs +1 -1
- 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/static/images/icon/audio.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/excel.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/file.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/folder.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/pdf.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/ppt.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/video.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/word.svg.cjs +1 -0
- package/dist/cjs/stores/ui.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +108 -12
- package/dist/esm/component.js +64 -47
- package/dist/esm/components/card/card.js +22 -21
- package/dist/esm/components/card/store.js +64 -0
- package/dist/esm/components/chart/echart.js +29 -16
- package/dist/esm/components/crop/imageCrop.js +105 -0
- package/dist/esm/components/crop/imageCropModal.js +118 -0
- package/dist/esm/components/dashboard/helloBig.js +3 -2
- package/dist/esm/components/data/dynamicData.js +145 -0
- package/dist/esm/components/data/dynamicSelect.js +109 -0
- package/dist/esm/components/data/selectModal.js +135 -0
- package/dist/esm/components/dialog/dialog.js +50 -38
- package/dist/esm/components/drawer/drawer.js +14 -12
- package/dist/esm/components/editor/aiEditor.js +127 -0
- package/dist/esm/components/form/modalForm.js +66 -40
- package/dist/esm/components/form/pageForm.js +31 -21
- package/dist/esm/components/form/settingForm.js +31 -21
- package/dist/esm/components/layout/list.js +67 -57
- package/dist/esm/components/layout/table.js +59 -49
- package/dist/esm/components/level/level.js +103 -0
- package/dist/esm/components/media/media.js +18 -16
- package/dist/esm/components/modal/modal.js +27 -21
- package/dist/esm/components/modal/modalPage.js +7 -7
- package/dist/esm/components/panel/setting.js +9 -6
- package/dist/esm/components/stats/number.js +49 -0
- package/dist/esm/components/stats/realTime.js +99 -0
- package/dist/esm/components/status/blockEmpty.js +136 -57
- package/dist/esm/components/upload/file.js +258 -0
- package/dist/esm/components/upload/image.js +189 -0
- package/dist/esm/components/upload/manage/item.js +178 -0
- package/dist/esm/components/upload/manager.js +378 -0
- package/dist/esm/components/widget/avatar.js +59 -0
- package/dist/esm/components/widget/connect.js +6 -4
- package/dist/esm/components/widget/image.js +67 -0
- package/dist/esm/components/widget/placeholder.js +83 -0
- package/dist/esm/config/uno.js +6 -6
- package/dist/esm/config/validate.js +2 -2
- package/dist/esm/hooks/action.js +34 -34
- package/dist/esm/hooks/dialog.js +13 -3
- package/dist/esm/hooks/download.js +100 -0
- package/dist/esm/hooks/drawer.js +13 -3
- package/dist/esm/hooks/echart.js +292 -246
- package/dist/esm/hooks/image.js +23 -0
- package/dist/esm/hooks/level.js +75 -0
- package/dist/esm/hooks/modal.js +14 -4
- package/dist/esm/hooks/table/copy.js +14 -11
- package/dist/esm/hooks/table/image.js +55 -17
- package/dist/esm/hooks/table/input.js +35 -33
- package/dist/esm/hooks/table/media.js +17 -7
- package/dist/esm/hooks/table.js +41 -25
- package/dist/esm/index.js +198 -160
- package/dist/esm/langs/en-US.json.js +6 -4
- package/dist/esm/langs/zh-CN.json.js +5 -3
- package/dist/esm/main.js +8 -6
- package/dist/esm/pages/authLayout.js +24 -18
- package/dist/esm/pages/layout/global.js +29 -23
- package/dist/esm/pages/layout/page.js +26 -16
- package/dist/esm/pages/login.js +33 -23
- package/dist/esm/pages/menu/avatar.js +122 -93
- package/dist/esm/pages/menu/button.js +23 -13
- package/dist/esm/pages/menu/cmd.js +41 -31
- package/dist/esm/pages/menu/main.js +38 -28
- package/dist/esm/pages/menu/mobile.js +20 -10
- package/dist/esm/pages/page.js +21 -14
- package/dist/esm/pages/page404.js +15 -5
- package/dist/esm/pages/pageStatus.js +22 -12
- package/dist/esm/static/images/icon/audio.svg.js +4 -0
- package/dist/esm/static/images/icon/excel.svg.js +4 -0
- package/dist/esm/static/images/icon/file.svg.js +4 -0
- package/dist/esm/static/images/icon/folder.svg.js +4 -0
- package/dist/esm/static/images/icon/pdf.svg.js +4 -0
- package/dist/esm/static/images/icon/ppt.svg.js +4 -0
- package/dist/esm/static/images/icon/video.svg.js +4 -0
- package/dist/esm/static/images/icon/word.svg.js +4 -0
- package/dist/esm/stores/ui.js +10 -10
- package/dist/esm/theme/uno.css.js +108 -12
- package/dist/types/components/card/index.d.ts +1 -0
- package/dist/types/components/card/store.d.ts +16 -0
- package/dist/types/components/chart/echart.d.ts +2 -2
- package/dist/types/components/crop/imageCrop.d.ts +40 -0
- package/dist/types/components/crop/imageCropModal.d.ts +7 -0
- package/dist/types/components/crop/index.d.ts +2 -0
- package/dist/types/components/data/dynamicData.d.ts +56 -0
- package/dist/types/components/data/dynamicSelect.d.ts +49 -0
- package/dist/types/components/data/index.d.ts +3 -0
- package/dist/types/components/data/selectModal.d.ts +61 -0
- package/dist/types/components/dialog/dialog.d.ts +2 -0
- package/dist/types/components/editor/aiEditor.d.ts +26 -0
- package/dist/types/components/editor/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +7 -0
- package/dist/types/components/level/index.d.ts +1 -0
- package/dist/types/components/level/level.d.ts +60 -0
- package/dist/types/components/modal/index.d.ts +2 -2
- package/dist/types/components/modal/modal.d.ts +1 -4
- package/dist/types/components/stats/index.d.ts +2 -0
- package/dist/types/components/stats/number.d.ts +50 -0
- package/dist/types/components/stats/realTime.d.ts +56 -0
- package/dist/types/components/upload/file.d.ts +9 -0
- package/dist/types/components/upload/image.d.ts +99 -0
- package/dist/types/components/upload/index.d.ts +4 -0
- package/dist/types/components/upload/manage/item.d.ts +22 -0
- package/dist/types/components/upload/manager.d.ts +37 -0
- package/dist/types/components/widget/avatar.d.ts +159 -0
- package/dist/types/components/widget/image.d.ts +257 -0
- package/dist/types/components/widget/index.d.ts +2 -0
- package/dist/types/components/widget/placeholder.d.ts +22 -0
- package/dist/types/hooks/dialog.d.ts +1 -0
- package/dist/types/hooks/download.d.ts +31 -0
- package/dist/types/hooks/echart.d.ts +14 -0
- package/dist/types/hooks/image.d.ts +3 -0
- package/dist/types/hooks/index.d.ts +3 -0
- package/dist/types/hooks/level.d.ts +19 -0
- package/dist/types/main.d.ts +12 -0
- package/dist/types/static/images/icon/index.d.ts +8 -0
- package/package.json +9 -3
- package/dist/cjs/_virtual/_commonjsHelpers.cjs +0 -1
- package/dist/cjs/_virtual/browser.cjs +0 -1
- package/dist/cjs/_virtual/browser2.cjs +0 -1
- package/dist/cjs/_virtual/sourcemap-codec.umd.cjs +0 -1
- package/dist/cjs/_virtual/sourcemap-codec.umd2.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json/tabler/icons.json.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.cjs +0 -391
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/en.json.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.cjs +0 -10
- package/dist/cjs/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.cjs +0 -1
- package/dist/cjs/static/images/placeholder.png.cjs +0 -1
- package/dist/esm/_virtual/_commonjsHelpers.js +0 -6
- package/dist/esm/_virtual/browser.js +0 -7
- package/dist/esm/_virtual/browser2.js +0 -4
- package/dist/esm/_virtual/sourcemap-codec.umd.js +0 -5
- package/dist/esm/_virtual/sourcemap-codec.umd2.js +0 -4
- package/dist/esm/node_modules/.pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json/tabler/icons.json.js +0 -17
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -14
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.js +0 -25
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.js +0 -11
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.js +0 -9
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -23
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -17
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.js +0 -40
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.js +0 -46
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.js +0 -55
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.js +0 -38
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.js +0 -69
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.js +0 -29
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +0 -14
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.js +0 -27
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.js +0 -6
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.js +0 -6
- package/dist/esm/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +0 -255
- package/dist/esm/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.js +0 -88
- package/dist/esm/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.js +0 -51
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.js +0 -17
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.js +0 -151
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.js +0 -8
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.js +0 -322
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.js +0 -547
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.js +0 -32
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.js +0 -2307
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.js +0 -627
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.js +0 -7
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.js +0 -588
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.js +0 -51
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.js +0 -553
- package/dist/esm/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.js +0 -632
- package/dist/esm/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/en.json.js +0 -9
- package/dist/esm/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.js +0 -9
- package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js +0 -146
- package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js +0 -97
- package/dist/esm/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.js +0 -56
- package/dist/esm/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js +0 -608
- package/dist/esm/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js +0 -85
- package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.js +0 -23
- package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.js +0 -219
- package/dist/esm/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.js +0 -153
- package/dist/esm/static/images/placeholder.png.js +0 -4
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineComponent as c, createVNode as e, h as n, mergeProps as u } from "vue";
|
|
2
|
+
import { NImage as i } from "naive-ui";
|
|
3
|
+
import { DuxPlaceholder as l } from "./placeholder.js";
|
|
4
|
+
const g = /* @__PURE__ */ c({
|
|
5
|
+
name: "DuxImage",
|
|
6
|
+
props: {},
|
|
7
|
+
extends: i,
|
|
8
|
+
setup(r) {
|
|
9
|
+
return () => {
|
|
10
|
+
const t = `size-${r.height}px`, a = e("svg", {
|
|
11
|
+
viewBox: "0 0 100 100",
|
|
12
|
+
class: t
|
|
13
|
+
}, [e("circle", {
|
|
14
|
+
cx: "50",
|
|
15
|
+
cy: "50",
|
|
16
|
+
r: "50",
|
|
17
|
+
fill: "rgb(var(--ui-color-primary))",
|
|
18
|
+
"fill-opacity": "0.1"
|
|
19
|
+
}, null), e("g", {
|
|
20
|
+
fill: "rgb(var(--ui-color-primary))",
|
|
21
|
+
"fill-opacity": "0.65"
|
|
22
|
+
}, [e("circle", {
|
|
23
|
+
cx: "50",
|
|
24
|
+
cy: "36",
|
|
25
|
+
r: "14"
|
|
26
|
+
}, null), e("path", {
|
|
27
|
+
d: "M 50 54 C 30 54 15 69 15 87 L 15 100 L 85 100 L 85 87 C 85 69 70 54 50 54 Z"
|
|
28
|
+
}, null)]), e("g", {
|
|
29
|
+
fill: "rgb(var(--ui-color-primary))",
|
|
30
|
+
"fill-opacity": "0.3"
|
|
31
|
+
}, [e("circle", {
|
|
32
|
+
cx: "20",
|
|
33
|
+
cy: "20",
|
|
34
|
+
r: "1.5"
|
|
35
|
+
}, [e("animate", {
|
|
36
|
+
attributeName: "r",
|
|
37
|
+
values: "1.5;2.5;1.5",
|
|
38
|
+
dur: "3s",
|
|
39
|
+
repeatCount: "indefinite"
|
|
40
|
+
}, null)]), e("circle", {
|
|
41
|
+
cx: "80",
|
|
42
|
+
cy: "25",
|
|
43
|
+
r: "1"
|
|
44
|
+
}, [e("animate", {
|
|
45
|
+
attributeName: "r",
|
|
46
|
+
values: "1;2;1",
|
|
47
|
+
dur: "4s",
|
|
48
|
+
repeatCount: "indefinite"
|
|
49
|
+
}, null)])])]);
|
|
50
|
+
return r.src ? e(i, u(r, {
|
|
51
|
+
src: r.src
|
|
52
|
+
}), {
|
|
53
|
+
placeholder: () => e(l, {
|
|
54
|
+
width: r.width,
|
|
55
|
+
height: r.height
|
|
56
|
+
}, null),
|
|
57
|
+
error: () => e(l, {
|
|
58
|
+
width: r.width,
|
|
59
|
+
height: r.height
|
|
60
|
+
}, null)
|
|
61
|
+
}) : n(a);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
export {
|
|
66
|
+
g as DuxImage
|
|
67
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { defineComponent as i, createVNode as t } from "vue";
|
|
2
|
+
const o = /* @__PURE__ */ i({
|
|
3
|
+
name: "DuxPlaceholder",
|
|
4
|
+
props: {
|
|
5
|
+
width: {
|
|
6
|
+
type: [Number, String],
|
|
7
|
+
default: "auto"
|
|
8
|
+
},
|
|
9
|
+
height: {
|
|
10
|
+
type: [Number, String],
|
|
11
|
+
default: 100
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(e) {
|
|
15
|
+
return () => {
|
|
16
|
+
const l = {
|
|
17
|
+
width: typeof e.width == "number" ? `${e.width}px` : e.width,
|
|
18
|
+
height: typeof e.height == "number" ? `${e.height}px` : e.height
|
|
19
|
+
};
|
|
20
|
+
return t("svg", {
|
|
21
|
+
viewBox: "0 0 200 120",
|
|
22
|
+
style: l
|
|
23
|
+
}, [t("defs", null, [t("linearGradient", {
|
|
24
|
+
id: "placeholderBg",
|
|
25
|
+
x1: "0%",
|
|
26
|
+
y1: "0%",
|
|
27
|
+
x2: "100%",
|
|
28
|
+
y2: "100%"
|
|
29
|
+
}, [t("stop", {
|
|
30
|
+
offset: "0%",
|
|
31
|
+
style: "stop-color:rgb(var(--ui-color-primary));stop-opacity:0.08"
|
|
32
|
+
}, null), t("stop", {
|
|
33
|
+
offset: "100%",
|
|
34
|
+
style: "stop-color:rgb(var(--ui-color-primary));stop-opacity:0.03"
|
|
35
|
+
}, null)])]), t("rect", {
|
|
36
|
+
width: "200",
|
|
37
|
+
height: "120",
|
|
38
|
+
fill: "url(#placeholderBg)",
|
|
39
|
+
rx: "8"
|
|
40
|
+
}, null), t("g", {
|
|
41
|
+
fill: "rgb(var(--ui-color-primary))",
|
|
42
|
+
"fill-opacity": "0.4"
|
|
43
|
+
}, [t("circle", {
|
|
44
|
+
cx: "60",
|
|
45
|
+
cy: "40",
|
|
46
|
+
r: "12"
|
|
47
|
+
}, null), t("path", {
|
|
48
|
+
d: "M 40 70 L 80 70 L 100 50 L 140 70 L 160 50 L 200 70 L 200 120 L 40 120 Z"
|
|
49
|
+
}, null)]), t("g", {
|
|
50
|
+
fill: "rgb(var(--ui-color-primary))",
|
|
51
|
+
"fill-opacity": "0.25"
|
|
52
|
+
}, [t("circle", {
|
|
53
|
+
cx: "150",
|
|
54
|
+
cy: "25",
|
|
55
|
+
r: "1.5"
|
|
56
|
+
}, [t("animate", {
|
|
57
|
+
attributeName: "opacity",
|
|
58
|
+
values: "0.25;0.5;0.25",
|
|
59
|
+
dur: "3s",
|
|
60
|
+
repeatCount: "indefinite"
|
|
61
|
+
}, null)]), t("circle", {
|
|
62
|
+
cx: "170",
|
|
63
|
+
cy: "35",
|
|
64
|
+
r: "1"
|
|
65
|
+
}, [t("animate", {
|
|
66
|
+
attributeName: "opacity",
|
|
67
|
+
values: "0.2;0.4;0.2",
|
|
68
|
+
dur: "4s",
|
|
69
|
+
repeatCount: "indefinite"
|
|
70
|
+
}, null)])]), t("rect", {
|
|
71
|
+
x: "40",
|
|
72
|
+
y: "40",
|
|
73
|
+
width: "120",
|
|
74
|
+
height: "1",
|
|
75
|
+
fill: "rgb(var(--ui-color-primary))",
|
|
76
|
+
"fill-opacity": "0.15"
|
|
77
|
+
}, null)]);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export {
|
|
82
|
+
o as DuxPlaceholder
|
|
83
|
+
};
|
package/dist/esm/config/uno.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import o from "
|
|
1
|
+
import o from "@unocss/preset-icons/browser";
|
|
2
2
|
import p from "@unocss/preset-typography";
|
|
3
|
+
import { presetWind4 as i } from "unocss/preset-wind4";
|
|
3
4
|
import "@duxweb/dvha-core";
|
|
4
5
|
import "colorizr";
|
|
5
6
|
import "lodash-es";
|
|
6
7
|
import "vue";
|
|
7
|
-
import { presetTheme as
|
|
8
|
-
import m from "../node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.js";
|
|
8
|
+
import { presetTheme as m } from "../theme/presetTheme.js";
|
|
9
9
|
function u(t) {
|
|
10
10
|
const r = {
|
|
11
11
|
presets: [
|
|
12
|
-
|
|
12
|
+
i({
|
|
13
13
|
preflights: {
|
|
14
14
|
reset: t,
|
|
15
15
|
theme: t
|
|
@@ -17,11 +17,11 @@ function u(t) {
|
|
|
17
17
|
}),
|
|
18
18
|
o({
|
|
19
19
|
collections: {
|
|
20
|
-
tabler: () => import("
|
|
20
|
+
tabler: () => import("@iconify-json/tabler/icons.json").then((e) => e.default)
|
|
21
21
|
}
|
|
22
22
|
}),
|
|
23
23
|
p(),
|
|
24
|
-
|
|
24
|
+
m()
|
|
25
25
|
]
|
|
26
26
|
};
|
|
27
27
|
return t || (r.preflights = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { localize as e } from "@vee-validate/i18n";
|
|
2
|
-
import o from "
|
|
3
|
-
import r from "
|
|
2
|
+
import o from "@vee-validate/i18n/dist/locale/en.json";
|
|
3
|
+
import r from "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
4
4
|
import { configure as i } from "vee-validate";
|
|
5
5
|
function a() {
|
|
6
6
|
i({
|
package/dist/esm/hooks/action.js
CHANGED
|
@@ -6,29 +6,29 @@ import { useDialog as B } from "./dialog.js";
|
|
|
6
6
|
import { useDrawer as E } from "./drawer.js";
|
|
7
7
|
import { useModal as T } from "./modal.js";
|
|
8
8
|
function U(n) {
|
|
9
|
-
const y = T(), d = E(),
|
|
9
|
+
const y = T(), d = E(), m = B(), {
|
|
10
10
|
t: c
|
|
11
11
|
} = x(), l = I(), a = S(), u = $(), v = D({
|
|
12
12
|
onSuccess: (e) => {
|
|
13
|
-
l.success(e.message || "
|
|
13
|
+
l.success(e.message || c("common.success"));
|
|
14
14
|
},
|
|
15
15
|
onError: (e) => {
|
|
16
|
-
l.error(e.message || "
|
|
16
|
+
l.error(e.message || c("common.error"));
|
|
17
17
|
}
|
|
18
18
|
}), A = C({
|
|
19
19
|
onSuccess: (e) => {
|
|
20
|
-
l.success(e.message || "
|
|
20
|
+
l.success(e.message || c("common.success"));
|
|
21
21
|
},
|
|
22
22
|
onError: (e) => {
|
|
23
|
-
l.error(e.message || "
|
|
23
|
+
l.error(e.message || c("common.error"));
|
|
24
24
|
}
|
|
25
|
-
}),
|
|
26
|
-
var
|
|
27
|
-
const i = c(e.item.title || "", {}, e.item.title),
|
|
25
|
+
}), g = (n == null ? void 0 : n.path) || a.getPath(), b = (e) => {
|
|
26
|
+
var f, P;
|
|
27
|
+
const i = c(e.item.title || "", {}, e.item.title), s = c(e.item.label || "", {}, e.item.label);
|
|
28
28
|
if (e.item.type === "modal") {
|
|
29
29
|
const t = e.item;
|
|
30
30
|
y.show({
|
|
31
|
-
title: i ||
|
|
31
|
+
title: i || s,
|
|
32
32
|
component: t.component,
|
|
33
33
|
componentProps: {
|
|
34
34
|
id: e.id,
|
|
@@ -41,7 +41,7 @@ function U(n) {
|
|
|
41
41
|
if (e.item.type === "drawer") {
|
|
42
42
|
const t = e.item;
|
|
43
43
|
d.show({
|
|
44
|
-
title: i ||
|
|
44
|
+
title: i || s,
|
|
45
45
|
component: t.component,
|
|
46
46
|
componentProps: {
|
|
47
47
|
id: e.id,
|
|
@@ -52,43 +52,43 @@ function U(n) {
|
|
|
52
52
|
}
|
|
53
53
|
if (e.item.type === "confirm") {
|
|
54
54
|
const t = e.item;
|
|
55
|
-
|
|
56
|
-
title: i ||
|
|
55
|
+
m.confirm({
|
|
56
|
+
title: i || s,
|
|
57
57
|
content: t.content
|
|
58
|
-
}).then((
|
|
59
|
-
var
|
|
60
|
-
|
|
58
|
+
}).then((o) => {
|
|
59
|
+
var h;
|
|
60
|
+
o && ((h = t.callback) == null || h.call(t, e.id, e.data));
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
if (e.item.type === "request") {
|
|
64
64
|
const t = e.item;
|
|
65
|
-
|
|
66
|
-
title: i ||
|
|
65
|
+
m.confirm({
|
|
66
|
+
title: i || s,
|
|
67
67
|
content: t.content
|
|
68
68
|
}).then(() => {
|
|
69
|
-
const
|
|
69
|
+
const o = typeof t.data == "function" ? t.data(e.id, e.data) : t.data, h = (t.method || "post").toLowerCase(), M = t.path || g;
|
|
70
70
|
v.mutate({
|
|
71
71
|
path: M,
|
|
72
|
-
method:
|
|
73
|
-
payload:
|
|
72
|
+
method: h,
|
|
73
|
+
payload: o
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
if (e.item.type === "delete") {
|
|
78
78
|
const t = e.item;
|
|
79
|
-
|
|
80
|
-
title: i ||
|
|
79
|
+
m.confirm({
|
|
80
|
+
title: i || s,
|
|
81
81
|
content: t.content
|
|
82
82
|
}).then(() => {
|
|
83
83
|
A.mutate({
|
|
84
84
|
id: e.id,
|
|
85
|
-
path: t.path ||
|
|
85
|
+
path: t.path || g
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
if (e.item.type === "link") {
|
|
90
|
-
const t = e.item,
|
|
91
|
-
u.push(
|
|
90
|
+
const t = e.item, o = typeof t.path == "function" ? (f = t.path) == null ? void 0 : f.call(t, e.id, e.data) : a.getRoutePath(e.id ? `${t.path || g}${e.data === void 0 ? "" : `/${e.id}`}` : t.path || g);
|
|
91
|
+
u.push(o);
|
|
92
92
|
}
|
|
93
93
|
if (e.item.type === "callback") {
|
|
94
94
|
const t = e.item;
|
|
@@ -97,20 +97,20 @@ function U(n) {
|
|
|
97
97
|
}, w = q(), k = L();
|
|
98
98
|
return {
|
|
99
99
|
target: b,
|
|
100
|
-
renderTable: (e) => (i,
|
|
101
|
-
const
|
|
100
|
+
renderTable: (e) => (i, s) => {
|
|
101
|
+
const f = {
|
|
102
102
|
id: i[e.key || (n == null ? void 0 : n.key) || "id"],
|
|
103
103
|
data: i,
|
|
104
|
-
index:
|
|
104
|
+
index: s,
|
|
105
105
|
target: b,
|
|
106
106
|
text: e.text !== void 0 ? e.text : (n == null ? void 0 : n.text) || !1,
|
|
107
107
|
align: e.align !== void 0 ? e.align : (n == null ? void 0 : n.align) || "left"
|
|
108
108
|
};
|
|
109
109
|
return (e.type || (n == null ? void 0 : n.type)) === "button" ? w.render({
|
|
110
|
-
...
|
|
110
|
+
...f,
|
|
111
111
|
action: e || n
|
|
112
112
|
}) : k.render({
|
|
113
|
-
...
|
|
113
|
+
...f,
|
|
114
114
|
action: e || n
|
|
115
115
|
});
|
|
116
116
|
},
|
|
@@ -137,7 +137,7 @@ function q() {
|
|
|
137
137
|
return {
|
|
138
138
|
render: (d) => {
|
|
139
139
|
var c;
|
|
140
|
-
const
|
|
140
|
+
const m = (c = d.action.items) == null ? void 0 : c.filter((l) => {
|
|
141
141
|
var a;
|
|
142
142
|
return !l.show || ((a = l.show) == null ? void 0 : a.call(l, d.data, d.index));
|
|
143
143
|
}).map((l, a) => r(j, {
|
|
@@ -158,7 +158,7 @@ function q() {
|
|
|
158
158
|
}, () => n(l.label || "", {}, l.label)));
|
|
159
159
|
return r("div", {
|
|
160
160
|
class: ["flex gap-2 flex-wrap items-center", d.align === "right" ? "justify-end" : d.align === "center" ? "justify-center" : "justify-start"]
|
|
161
|
-
},
|
|
161
|
+
}, m);
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
}
|
|
@@ -169,7 +169,7 @@ function L() {
|
|
|
169
169
|
return {
|
|
170
170
|
render: (d) => {
|
|
171
171
|
var c;
|
|
172
|
-
const
|
|
172
|
+
const m = (c = d.action.items) == null ? void 0 : c.filter((l) => {
|
|
173
173
|
var a;
|
|
174
174
|
return !l.show || ((a = l.show) == null ? void 0 : a.call(l, d.data, d.index));
|
|
175
175
|
}).map((l, a) => ({
|
|
@@ -189,7 +189,7 @@ function L() {
|
|
|
189
189
|
}));
|
|
190
190
|
return r(N, {
|
|
191
191
|
trigger: "click",
|
|
192
|
-
options:
|
|
192
|
+
options: m,
|
|
193
193
|
onSelect: (l, a) => {
|
|
194
194
|
var u;
|
|
195
195
|
(u = a == null ? void 0 : a.onSelect) == null || u.call(a);
|
package/dist/esm/hooks/dialog.js
CHANGED
|
@@ -1,25 +1,35 @@
|
|
|
1
1
|
import { useOverlayInject as p } from "@overlastic/vue";
|
|
2
2
|
import "vue";
|
|
3
|
+
import "clsx";
|
|
3
4
|
import "naive-ui";
|
|
4
5
|
import "vue-echarts";
|
|
5
6
|
import "@duxweb/dvha-core";
|
|
6
7
|
import "vue-router";
|
|
8
|
+
import "dayjs";
|
|
9
|
+
import "mime";
|
|
7
10
|
import "lodash-es";
|
|
11
|
+
import "@tanstack/vue-query";
|
|
8
12
|
import "@duxweb/dvha-naiveui";
|
|
9
13
|
import "@vueuse/core";
|
|
10
14
|
import "pinia";
|
|
11
|
-
import "
|
|
15
|
+
import "vue-cropper";
|
|
12
16
|
import "jinrishici";
|
|
17
|
+
import "vue-draggable-plus";
|
|
13
18
|
import m from "../components/dialog/dialog.js";
|
|
19
|
+
import "aieditor";
|
|
14
20
|
import "vee-validate";
|
|
15
21
|
import "@vee-validate/i18n";
|
|
16
22
|
import "colorizr";
|
|
17
23
|
import "echarts";
|
|
18
24
|
import "@ant-design/colors";
|
|
25
|
+
import "@unocss/preset-icons/browser";
|
|
19
26
|
import "@unocss/preset-typography";
|
|
27
|
+
import "unocss/preset-wind4";
|
|
28
|
+
import "@vee-validate/i18n/dist/locale/en.json";
|
|
29
|
+
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
20
30
|
import "vue-command-palette";
|
|
21
31
|
import "../pages/page404.js";
|
|
22
|
-
function
|
|
32
|
+
function P() {
|
|
23
33
|
const t = p(m), o = (r) => t(r);
|
|
24
34
|
return {
|
|
25
35
|
confirm: (r) => o({
|
|
@@ -45,5 +55,5 @@ function C() {
|
|
|
45
55
|
};
|
|
46
56
|
}
|
|
47
57
|
export {
|
|
48
|
-
|
|
58
|
+
P as useDialog
|
|
49
59
|
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { useI18n as g, useClient as x } from "@duxweb/dvha-core";
|
|
2
|
+
import C from "dayjs";
|
|
3
|
+
import k from "mime";
|
|
4
|
+
import { useMessage as U } from "naive-ui";
|
|
5
|
+
import { ref as B } from "vue";
|
|
6
|
+
function q() {
|
|
7
|
+
const { t: y } = g(), M = x(), f = B(!1), c = B({
|
|
8
|
+
loaded: 0,
|
|
9
|
+
total: 0,
|
|
10
|
+
percent: 0,
|
|
11
|
+
speed: 0,
|
|
12
|
+
speedText: "0 B/s",
|
|
13
|
+
remainingTime: 0
|
|
14
|
+
}), T = U(), v = (n) => {
|
|
15
|
+
if (n === 0)
|
|
16
|
+
return "0 B/s";
|
|
17
|
+
const a = ["B/s", "KB/s", "MB/s", "GB/s"], e = Math.floor(Math.log(n) / Math.log(1024));
|
|
18
|
+
return `${(n / 1024 ** e).toFixed(1)} ${a[e]}`;
|
|
19
|
+
}, r = (n, a) => {
|
|
20
|
+
const e = window.URL || window.webkitURL, d = e.createObjectURL(n), o = document.createElement("a");
|
|
21
|
+
o.href = d, o.download = a || "", document.body.appendChild(o), o.click(), document.body.removeChild(o), e.revokeObjectURL(d);
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
file: (n, a, e, d, o) => {
|
|
25
|
+
f.value = !0, c.value = {
|
|
26
|
+
loaded: 0,
|
|
27
|
+
total: 0,
|
|
28
|
+
percent: 0,
|
|
29
|
+
speed: 0,
|
|
30
|
+
speedText: "0 B/s",
|
|
31
|
+
remainingTime: 0
|
|
32
|
+
};
|
|
33
|
+
const b = Date.now();
|
|
34
|
+
M.request({
|
|
35
|
+
path: n,
|
|
36
|
+
method: "GET",
|
|
37
|
+
query: a,
|
|
38
|
+
onDownloadProgress: (t) => {
|
|
39
|
+
const p = (Date.now() - b) / 1e3, l = p > 0 ? t.loaded / p : 0, u = (t.total || 0) - t.loaded, h = l > 0 ? u / l : 0, i = {
|
|
40
|
+
loaded: t.loaded,
|
|
41
|
+
total: t.total,
|
|
42
|
+
percent: t.percent || 0,
|
|
43
|
+
speed: Math.round(l),
|
|
44
|
+
speedText: v(l),
|
|
45
|
+
remainingTime: Math.round(h)
|
|
46
|
+
};
|
|
47
|
+
c.value = i, o == null || o(i);
|
|
48
|
+
}
|
|
49
|
+
}).then((t) => {
|
|
50
|
+
var u, h, i;
|
|
51
|
+
const m = e || t.data.headers["content-type"], w = t.data.headers["content-disposition"];
|
|
52
|
+
if (d || (d = C().format("YYYY-MM-DD-HH:mm:ss"), m && (d = `${d}.${k.getExtension(m)}`)), w) {
|
|
53
|
+
const s = /filename=["']?([^"']+)/.exec(w);
|
|
54
|
+
s && (s == null ? void 0 : s.length) > 1 && (d = decodeURIComponent(s[1]));
|
|
55
|
+
}
|
|
56
|
+
const p = ((u = t.data) == null ? void 0 : u.data) instanceof Blob ? (h = t.data) == null ? void 0 : h.data : new Blob([(i = t.data) == null ? void 0 : i.data], { type: m || "application/octet-stream" });
|
|
57
|
+
r(p, d);
|
|
58
|
+
const l = {
|
|
59
|
+
loaded: c.value.total || c.value.loaded,
|
|
60
|
+
total: c.value.total || c.value.loaded,
|
|
61
|
+
percent: 100,
|
|
62
|
+
speed: 0,
|
|
63
|
+
speedText: v(0),
|
|
64
|
+
remainingTime: 0
|
|
65
|
+
};
|
|
66
|
+
c.value = l, o == null || o(l);
|
|
67
|
+
}).catch((t) => {
|
|
68
|
+
T.error(t.error || y("hooks.download.failed"));
|
|
69
|
+
}).finally(() => {
|
|
70
|
+
f.value = !1;
|
|
71
|
+
});
|
|
72
|
+
},
|
|
73
|
+
url: (n, a) => {
|
|
74
|
+
const e = document.createElement("a");
|
|
75
|
+
e.href = n, e.download = a || "", document.body.appendChild(e), e.click(), document.body.removeChild(e);
|
|
76
|
+
},
|
|
77
|
+
blob: r,
|
|
78
|
+
base64: (n, a) => {
|
|
79
|
+
const e = atob(n.split(",")[1]), d = Array.from({ length: e.length });
|
|
80
|
+
for (let t = 0; t < e.length; t++)
|
|
81
|
+
d[t] = e.charCodeAt(t);
|
|
82
|
+
const o = new Uint8Array(d), b = new Blob([o], { type: "application/octet-stream" });
|
|
83
|
+
r(b, a);
|
|
84
|
+
},
|
|
85
|
+
loading: f,
|
|
86
|
+
progress: c,
|
|
87
|
+
image: (n) => {
|
|
88
|
+
fetch(n).then((a) => {
|
|
89
|
+
a.blob().then((e) => {
|
|
90
|
+
r(e);
|
|
91
|
+
});
|
|
92
|
+
}).catch((a) => {
|
|
93
|
+
T.error(a.error || y("hooks.download.failed"));
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
export {
|
|
99
|
+
q as useDownload
|
|
100
|
+
};
|
package/dist/esm/hooks/drawer.js
CHANGED
|
@@ -1,30 +1,40 @@
|
|
|
1
1
|
import { useOverlayInject as t } from "@overlastic/vue";
|
|
2
2
|
import "vue";
|
|
3
|
+
import "clsx";
|
|
3
4
|
import "naive-ui";
|
|
4
5
|
import "vue-echarts";
|
|
5
6
|
import "@duxweb/dvha-core";
|
|
6
7
|
import "vue-router";
|
|
8
|
+
import "dayjs";
|
|
9
|
+
import "mime";
|
|
7
10
|
import "lodash-es";
|
|
11
|
+
import "@tanstack/vue-query";
|
|
8
12
|
import "@duxweb/dvha-naiveui";
|
|
9
13
|
import "@vueuse/core";
|
|
10
14
|
import "pinia";
|
|
11
|
-
import "
|
|
15
|
+
import "vue-cropper";
|
|
12
16
|
import "jinrishici";
|
|
17
|
+
import "vue-draggable-plus";
|
|
13
18
|
import m from "../components/drawer/drawer.js";
|
|
19
|
+
import "aieditor";
|
|
14
20
|
import "vee-validate";
|
|
15
21
|
import "@vee-validate/i18n";
|
|
16
22
|
import "colorizr";
|
|
17
23
|
import "echarts";
|
|
18
24
|
import "@ant-design/colors";
|
|
25
|
+
import "@unocss/preset-icons/browser";
|
|
19
26
|
import "@unocss/preset-typography";
|
|
27
|
+
import "unocss/preset-wind4";
|
|
28
|
+
import "@vee-validate/i18n/dist/locale/en.json";
|
|
29
|
+
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
20
30
|
import "vue-command-palette";
|
|
21
31
|
import "../pages/page404.js";
|
|
22
|
-
function
|
|
32
|
+
function J() {
|
|
23
33
|
const r = t(m);
|
|
24
34
|
return {
|
|
25
35
|
show: (o) => r(o)
|
|
26
36
|
};
|
|
27
37
|
}
|
|
28
38
|
export {
|
|
29
|
-
|
|
39
|
+
J as useDrawer
|
|
30
40
|
};
|