@chenghongyu/xpt-file-viewer 1.1.0
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/.vscode/extensions.json +3 -0
- package/README.md +5 -0
- package/auto-imports.d.ts +12 -0
- package/components.d.ts +45 -0
- package/dist.zip +0 -0
- package/index.html +13 -0
- package/package.json +100 -0
- package/presets/eslint/.eslintrc-auto-import.json +462 -0
- package/presets/plugins/html.ts +14 -0
- package/presets/shared/env.ts +46 -0
- package/presets/shared/resolvers.ts +29 -0
- package/presets/tov.ts +132 -0
- package/presets/types/auto-imports.d.ts +806 -0
- package/presets/types/components.d.ts +164 -0
- package/presets/types/env.d.ts +17 -0
- package/public/favicon.svg +1 -0
- package/public/icons.svg +24 -0
- package/public/testfile/README.md +5 -0
- package/public/testfile/useFileContextMenu.js +74 -0
- package/public/testfile//345/217/221/347/245/250.pdf +0 -0
- package/public/testfile//346/216/245/346/224/266/345/207/275.docx +0 -0
- package/public/testfile//350/247/204/346/240/274/345/236/213/345/217/2671.txt +263 -0
- package/public/testfile//350/247/206/351/242/2211.mp4 +0 -0
- package/public/testfile//351/237/263/351/242/2211.mp3 +0 -0
- package/src/App.vue +8 -0
- package/src/api/admin/admin-2fa.js +18 -0
- package/src/api/admin/admin-download-log.js +37 -0
- package/src/api/admin/admin-login-log.js +9 -0
- package/src/api/admin/admin-permission.js +9 -0
- package/src/api/admin/admin-setting.js +121 -0
- package/src/api/admin/admin-share.js +20 -0
- package/src/api/admin/admin-short-link.js +49 -0
- package/src/api/admin/admin-sso.js +38 -0
- package/src/api/admin/admin-storage.js +189 -0
- package/src/api/admin/admin-user.js +61 -0
- package/src/api/home/common.js +9 -0
- package/src/api/home/file-operator.js +89 -0
- package/src/api/home/home.js +87 -0
- package/src/api/home/install.js +18 -0
- package/src/api/home/login.js +9 -0
- package/src/api/home/only-office.js +10 -0
- package/src/api/home/share.js +115 -0
- package/src/api/home/user.js +74 -0
- package/src/api/tools/tools-115.js +17 -0
- package/src/api/tools/tools-gd.js +13 -0
- package/src/api/tools/tools-s3.js +25 -0
- package/src/api/tools/tools-sharepoint.js +19 -0
- package/src/assets/hero.png +0 -0
- package/src/assets/icons/401.svg +1 -0
- package/src/assets/icons/403.svg +45 -0
- package/src/assets/icons/404.svg +1 -0
- package/src/assets/icons/500.svg +1 -0
- package/src/assets/icons/admin-login.svg +1 -0
- package/src/assets/icons/document.svg +1 -0
- package/src/assets/icons/empty.svg +145 -0
- package/src/assets/icons/file-type-apk.svg +1 -0
- package/src/assets/icons/file-type-archive.svg +1 -0
- package/src/assets/icons/file-type-audio.svg +1 -0
- package/src/assets/icons/file-type-back.svg +1 -0
- package/src/assets/icons/file-type-css.svg +1 -0
- package/src/assets/icons/file-type-deb.svg +1 -0
- package/src/assets/icons/file-type-dll.svg +1 -0
- package/src/assets/icons/file-type-doc.svg +1 -0
- package/src/assets/icons/file-type-document.svg +1 -0
- package/src/assets/icons/file-type-docx.svg +1 -0
- package/src/assets/icons/file-type-exe.svg +1 -0
- package/src/assets/icons/file-type-expression.svg +1 -0
- package/src/assets/icons/file-type-file.svg +1 -0
- package/src/assets/icons/file-type-folder.svg +1 -0
- package/src/assets/icons/file-type-html.svg +1 -0
- package/src/assets/icons/file-type-image.svg +1 -0
- package/src/assets/icons/file-type-java.svg +1 -0
- package/src/assets/icons/file-type-js.svg +1 -0
- package/src/assets/icons/file-type-less.svg +1 -0
- package/src/assets/icons/file-type-md.svg +1 -0
- package/src/assets/icons/file-type-office.svg +1 -0
- package/src/assets/icons/file-type-pdf.svg +1 -0
- package/src/assets/icons/file-type-php.svg +1 -0
- package/src/assets/icons/file-type-ppt.svg +1 -0
- package/src/assets/icons/file-type-pptx.svg +1 -0
- package/src/assets/icons/file-type-py.svg +1 -0
- package/src/assets/icons/file-type-rb.svg +1 -0
- package/src/assets/icons/file-type-root.svg +1 -0
- package/src/assets/icons/file-type-rpm.svg +1 -0
- package/src/assets/icons/file-type-rust.svg +1 -0
- package/src/assets/icons/file-type-script.svg +1 -0
- package/src/assets/icons/file-type-text.svg +1 -0
- package/src/assets/icons/file-type-three3d.svg +5 -0
- package/src/assets/icons/file-type-vbs.svg +1 -0
- package/src/assets/icons/file-type-video.svg +1 -0
- package/src/assets/icons/file-type-xls.svg +1 -0
- package/src/assets/icons/file-type-xlsx.svg +1 -0
- package/src/assets/icons/file-type-xml.svg +1 -0
- package/src/assets/icons/file-type-yaml.svg +1 -0
- package/src/assets/icons/file-upload.svg +1 -0
- package/src/assets/icons/github.svg +1 -0
- package/src/assets/icons/install-step.svg +40 -0
- package/src/assets/icons/reset-password.svg +1 -0
- package/src/assets/icons/storage-aliyun.svg +1 -0
- package/src/assets/icons/storage-baidu.svg +1 -0
- package/src/assets/icons/storage-doge-cloud.svg +207 -0
- package/src/assets/icons/storage-ftp.svg +13 -0
- package/src/assets/icons/storage-google-drive.svg +8 -0
- package/src/assets/icons/storage-huawei.svg +1 -0
- package/src/assets/icons/storage-local.svg +11 -0
- package/src/assets/icons/storage-minio.svg +1 -0
- package/src/assets/icons/storage-onedrive-china.svg +18 -0
- package/src/assets/icons/storage-onedrive.svg +4 -0
- package/src/assets/icons/storage-open115.svg +23 -0
- package/src/assets/icons/storage-qiniu.svg +1 -0
- package/src/assets/icons/storage-s3.svg +5 -0
- package/src/assets/icons/storage-sftp.svg +13 -0
- package/src/assets/icons/storage-sharepoint-china.svg +23 -0
- package/src/assets/icons/storage-sharepoint.svg +1 -0
- package/src/assets/icons/storage-tencent.svg +9 -0
- package/src/assets/icons/storage-ufile.svg +14 -0
- package/src/assets/icons/storage-upyun.svg +1 -0
- package/src/assets/icons/storage-webdav.svg +1 -0
- package/src/assets/icons/upload.svg +50 -0
- package/src/assets/icons/zfile-basic.svg +17 -0
- package/src/assets/icons/zfile-horizontal.svg +16 -0
- package/src/assets/icons/zfile.svg +1 -0
- package/src/assets/vite.svg +1 -0
- package/src/assets/vue.svg +1 -0
- package/src/components/HelloWorld.vue +319 -0
- package/src/components/common/QrCodePreview.vue +118 -0
- package/src/components/common/dialog/ZDialog.vue +171 -0
- package/src/components/common/dialog/types.ts +19 -0
- package/src/components/common/dialog/useDialog.ts +18 -0
- package/src/components/common/dialog/useDialogWithForm.ts +21 -0
- package/src/components/copy.vue +133 -0
- package/src/components/file/preview/AudioPlayer.vue +333 -0
- package/src/components/file/preview/CopyCode.vue +47 -0
- package/src/components/file/preview/FileGallery.vue +199 -0
- package/src/components/file/preview/ImageViewer.vue +432 -0
- package/src/components/file/preview/KkFileViewer.vue +86 -0
- package/src/components/file/preview/KkFileViewerDialog.vue +42 -0
- package/src/components/file/preview/MarkdownViewer.vue +102 -0
- package/src/components/file/preview/MarkdownViewerAsyncLoading.vue +17 -0
- package/src/components/file/preview/MarkdownViewerDialogAsyncLoading.vue +12 -0
- package/src/components/file/preview/OfficeViewer.vue +76 -0
- package/src/components/file/preview/OfficeViewerDialog.vue +55 -0
- package/src/components/file/preview/PdfViewer.vue +157 -0
- package/src/components/file/preview/PdfViewerDialog.vue +41 -0
- package/src/components/file/preview/TextViewer.vue +232 -0
- package/src/components/file/preview/TextViewerAsyncLoading.vue +22 -0
- package/src/components/file/preview/TextViewerDialog.vue +53 -0
- package/src/components/file/preview/Three3dPreview.vue +114 -0
- package/src/components/file/preview/Three3dPreviewDialog.vue +50 -0
- package/src/components/file/preview/VideoPlayer.vue +341 -0
- package/src/components/file/preview/VideoPlayerAsyncLoading.vue +45 -0
- package/src/components/file/preview/VideoPlayerDialog.vue +51 -0
- package/src/components/file/selectFolder/SelectFolder.vue +208 -0
- package/src/components/file/selectFolder/index.ts +50 -0
- package/src/components/file/selectFolder/types.ts +5 -0
- package/src/components/fileReview/AudioPlayer-copy.vue +333 -0
- package/src/components/fileReview/PdfViewer-copy.vue +157 -0
- package/src/components/fileReview/TextViewer-copy.vue +44 -0
- package/src/components/fileReview/VideoPlayer-copy.vue +341 -0
- package/src/components/messageBox/confirm/confirm.vue +137 -0
- package/src/components/messageBox/confirm/index.ts +27 -0
- package/src/components/messageBox/confirm/types.ts +15 -0
- package/src/components/messageBox/messageBox.ts +9 -0
- package/src/components/messageBox/prompt/index.ts +27 -0
- package/src/components/messageBox/prompt/prompt.vue +178 -0
- package/src/components/messageBox/prompt/types.ts +24 -0
- package/src/components/vue-codemirror/editor.vue +212 -0
- package/src/components/vue-codemirror/encodings.ts +27 -0
- package/src/components/vue-codemirror/index.vue +380 -0
- package/src/components/vue-codemirror/lang-code/cpp/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/css/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/dockerfile/index.ts +5 -0
- package/src/components/vue-codemirror/lang-code/erlang/index.ts +6 -0
- package/src/components/vue-codemirror/lang-code/go/index.ts +5 -0
- package/src/components/vue-codemirror/lang-code/html/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/java/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/javascript/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/json/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/jsx/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/lua/index.ts +6 -0
- package/src/components/vue-codemirror/lang-code/markdown/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/mysql/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/nginx/index.ts +6 -0
- package/src/components/vue-codemirror/lang-code/perl/index.ts +5 -0
- package/src/components/vue-codemirror/lang-code/pgsql/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/php/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/powershell/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/python/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/r/index.ts +5 -0
- package/src/components/vue-codemirror/lang-code/ruby/index.ts +5 -0
- package/src/components/vue-codemirror/lang-code/rust/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/shell/index.ts +5 -0
- package/src/components/vue-codemirror/lang-code/sql/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/stylus/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/swift/index.ts +4 -0
- package/src/components/vue-codemirror/lang-code/toml/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/tsx/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/typescript/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/vb/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/vbscript/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/xml/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/yaml/index.ts +3 -0
- package/src/components/vue-codemirror/languages.ts +8 -0
- package/src/components/vue-codemirror/themes.ts +5 -0
- package/src/components/vue-codemirror/toolbar.vue +183 -0
- package/src/components/vue-codemirror/types.ts +12 -0
- package/src/components.d.ts +49 -0
- package/src/composables/admin/layout/admin-layout.js +53 -0
- package/src/composables/admin/link/useLinkSetting.js +16 -0
- package/src/composables/admin/sso/baseSsoConfig.js +54 -0
- package/src/composables/admin/sso/useSsoConfig.js +176 -0
- package/src/composables/admin/storage/storage-copy.js +89 -0
- package/src/composables/admin/storage/storage-filter.js +64 -0
- package/src/composables/admin/storage/storage-list.js +202 -0
- package/src/composables/admin/storage/storage-password.js +101 -0
- package/src/composables/admin/storage/storage-readme.js +102 -0
- package/src/composables/admin/storage/utils/open115-util.js +61 -0
- package/src/composables/admin/useAdminSetting.js +60 -0
- package/src/composables/admin/useClientInfo.js +20 -0
- package/src/composables/admin/user/user-copy.js +79 -0
- package/src/composables/file/useBatchOperatorResult.js +19 -0
- package/src/composables/file/useFileContextMenu.js +74 -0
- package/src/composables/file/useFileData.js +243 -0
- package/src/composables/file/useFileLink.js +175 -0
- package/src/composables/file/useFileLoading.js +41 -0
- package/src/composables/file/useFileLongPressEvent.js +71 -0
- package/src/composables/file/useFileOperator.js +347 -0
- package/src/composables/file/useFilePreview.js +99 -0
- package/src/composables/file/useFilePwd.js +138 -0
- package/src/composables/file/useFileSelect.js +105 -0
- package/src/composables/file/useFileShare.js +39 -0
- package/src/composables/file/useFileUpload.js +1045 -0
- package/src/composables/file/useKkFileViewDialog.js +24 -0
- package/src/composables/file/useOfficeViewerDialog.js +20 -0
- package/src/composables/file/usePdfViewerDialog.js +22 -0
- package/src/composables/file/useShareActions.js +94 -0
- package/src/composables/file/useShareTableOperator.js +84 -0
- package/src/composables/file/useTableOperator.js +211 -0
- package/src/composables/file/useTextViewerDialog.js +22 -0
- package/src/composables/file/useThree3dPreviewDialog.js +23 -0
- package/src/composables/file/useVideoPlayerDialog.js +19 -0
- package/src/composables/header/useHeaderBreadcrumb.js +111 -0
- package/src/composables/header/useHeaderStorageList.js +150 -0
- package/src/composables/header/useSetting.js +58 -0
- package/src/composables/share/useShareData.js +178 -0
- package/src/composables/useDarks.ts +4 -0
- package/src/composables/useRouterData.js +41 -0
- package/src/constant/index.js +193 -0
- package/src/http/index.js +153 -0
- package/src/http/request.js +31 -0
- package/src/main.ts +23 -0
- package/src/stores/file-data.ts +108 -0
- package/src/stores/global-config.ts +115 -0
- package/src/stores/storage-config.ts +123 -0
- package/src/style.css +296 -0
- package/src/styles/admin.scss +91 -0
- package/src/styles/code-editor-variables.scss +52 -0
- package/src/styles/element-plus.scss +22 -0
- package/src/styles/error-page.css +26 -0
- package/src/styles/main.css +142 -0
- package/src/styles/tailwind/index.scss +33 -0
- package/src/utils/index.ts +7 -0
- package/src/utils/models/base.ts +34 -0
- package/src/utils/models/file.ts +95 -0
- package/src/utils/models/path.ts +117 -0
- package/src/utils/models/qrcode.ts +21 -0
- package/src/utils/models/time.ts +132 -0
- package/src/utils/models/util.ts +42 -0
- package/src/utils/models/window.ts +14 -0
- package/stats.html +4950 -0
- package/tsconfig.app.json +16 -0
- package/tsconfig.json +7 -0
- package/tsconfig.node.json +26 -0
- package/vite.config.ts +57 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
// Generated by unplugin-vue-components
|
|
4
|
+
// Read more: https://github.com/vuejs/core/pull/3399
|
|
5
|
+
// biome-ignore lint: disable
|
|
6
|
+
export {}
|
|
7
|
+
|
|
8
|
+
/* prettier-ignore */
|
|
9
|
+
declare module 'vue' {
|
|
10
|
+
export interface GlobalComponents {
|
|
11
|
+
AdminFormHeader: typeof import('./../../src/components/admin-form-header.vue')['default']
|
|
12
|
+
AudioPlayer: typeof import('./../../src/components/file/preview/AudioPlayer.vue')['default']
|
|
13
|
+
AutoIcon: typeof import('./../../src/components/AutoIcon.vue')['default']
|
|
14
|
+
BackTop: typeof import('./../../src/components/BackTop.vue')['default']
|
|
15
|
+
BatchOperatorResult: typeof import('./../../src/components/file/BatchOperatorResult.vue')['default']
|
|
16
|
+
Breadcrumb: typeof import('./../../src/components/file/Breadcrumb.vue')['default']
|
|
17
|
+
Cancel: typeof import('./../../src/components/Cancel.vue')['default']
|
|
18
|
+
CardFileView: typeof import('./../../src/components/file/view/CardFileView.vue')['default']
|
|
19
|
+
CardReadme: typeof import('./../../src/components/file/readme/CardReadme.vue')['default']
|
|
20
|
+
Confirm: typeof import('./../../src/components/messageBox/confirm/confirm.vue')['default']
|
|
21
|
+
CopyCode: typeof import('./../../src/components/file/preview/CopyCode.vue')['default']
|
|
22
|
+
Cors: typeof import('./../../src/components/Cors.vue')['default']
|
|
23
|
+
CreateShareDialog: typeof import('./../../src/components/file/CreateShareDialog.vue')['default']
|
|
24
|
+
DialogReadme: typeof import('./../../src/components/file/readme/DialogReadme.vue')['default']
|
|
25
|
+
Editor: typeof import('./../../src/components/vue-codemirror/editor.vue')['default']
|
|
26
|
+
ElAlert: typeof import('element-plus/es')['ElAlert']
|
|
27
|
+
ElBacktop: typeof import('element-plus/es')['ElBacktop']
|
|
28
|
+
ElBadge: typeof import('element-plus/es')['ElBadge']
|
|
29
|
+
ElButton: typeof import('element-plus/es')['ElButton']
|
|
30
|
+
ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup']
|
|
31
|
+
ElCard: typeof import('element-plus/es')['ElCard']
|
|
32
|
+
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
|
33
|
+
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
|
|
34
|
+
ElCol: typeof import('element-plus/es')['ElCol']
|
|
35
|
+
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
|
36
|
+
ElContainer: typeof import('element-plus/es')['ElContainer']
|
|
37
|
+
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
|
38
|
+
ElDatePickerPlus: typeof import('./../../src/components/date-picker/el-date-picker-plus.vue')['default']
|
|
39
|
+
ElDialog: typeof import('element-plus/es')['ElDialog']
|
|
40
|
+
ElDrawer: typeof import('element-plus/es')['ElDrawer']
|
|
41
|
+
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
|
42
|
+
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
|
|
43
|
+
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
|
|
44
|
+
ElEmpty: typeof import('element-plus/es')['ElEmpty']
|
|
45
|
+
ElFooter: typeof import('element-plus/es')['ElFooter']
|
|
46
|
+
ElForm: typeof import('element-plus/es')['ElForm']
|
|
47
|
+
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
|
48
|
+
ElHeader: typeof import('element-plus/es')['ElHeader']
|
|
49
|
+
ElImage: typeof import('element-plus/es')['ElImage']
|
|
50
|
+
ElInput: typeof import('element-plus/es')['ElInput']
|
|
51
|
+
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
|
|
52
|
+
ElLink: typeof import('element-plus/es')['ElLink']
|
|
53
|
+
ElMain: typeof import('element-plus/es')['ElMain']
|
|
54
|
+
ElOption: typeof import('element-plus/es')['ElOption']
|
|
55
|
+
ElPagination: typeof import('element-plus/es')['ElPagination']
|
|
56
|
+
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
|
|
57
|
+
ElPopover: typeof import('element-plus/es')['ElPopover']
|
|
58
|
+
ElProgress: typeof import('element-plus/es')['ElProgress']
|
|
59
|
+
ElRadio: typeof import('element-plus/es')['ElRadio']
|
|
60
|
+
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
|
61
|
+
ElRow: typeof import('element-plus/es')['ElRow']
|
|
62
|
+
ElSelect: typeof import('element-plus/es')['ElSelect']
|
|
63
|
+
ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
|
|
64
|
+
ElSkeletonItem: typeof import('element-plus/es')['ElSkeletonItem']
|
|
65
|
+
ElSlider: typeof import('element-plus/es')['ElSlider']
|
|
66
|
+
ElSwitch: typeof import('element-plus/es')['ElSwitch']
|
|
67
|
+
ElTable: typeof import('element-plus/es')['ElTable']
|
|
68
|
+
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
|
69
|
+
ElTableColumnPlus: typeof import('./../../src/components/table/el-table-column-plus.vue')['default']
|
|
70
|
+
ElTablePlus: typeof import('./../../src/components/table/el-table-plus.vue')['default']
|
|
71
|
+
ElTabPane: typeof import('element-plus/es')['ElTabPane']
|
|
72
|
+
ElTabs: typeof import('element-plus/es')['ElTabs']
|
|
73
|
+
ElTag: typeof import('element-plus/es')['ElTag']
|
|
74
|
+
ElTooltip: typeof import('element-plus/es')['ElTooltip']
|
|
75
|
+
ElUpload: typeof import('element-plus/es')['ElUpload']
|
|
76
|
+
FileGallery: typeof import('./../../src/components/file/preview/FileGallery.vue')['default']
|
|
77
|
+
Footer: typeof import('./../../src/components/layout/Footer.vue')['default']
|
|
78
|
+
GenerateLink: typeof import('./../../src/components/file/GenerateLink.vue')['default']
|
|
79
|
+
GenerateLinkResult: typeof import('./../../src/components/file/GenerateLinkResult.vue')['default']
|
|
80
|
+
Header: typeof import('./../../src/components/layout/Header.vue')['default']
|
|
81
|
+
HeaderLogo: typeof import('./../../src/components/file/HeaderLogo.vue')['default']
|
|
82
|
+
HelloWorld: typeof import('./../../src/components/HelloWorld.vue')['default']
|
|
83
|
+
ICiFileUpload: typeof import('~icons/ci/file-upload')['default']
|
|
84
|
+
ICiFolderUpload: typeof import('~icons/ci/folder-upload')['default']
|
|
85
|
+
IClarityErrorStandardSolid: typeof import('~icons/clarity/error-standard-solid')['default']
|
|
86
|
+
IClaritySuccessStandardSolid: typeof import('~icons/clarity/success-standard-solid')['default']
|
|
87
|
+
ICustomEmpty: typeof import('~icons/custom/empty')['default']
|
|
88
|
+
ICustomFileTypeFolder: typeof import('~icons/custom/file-type-folder')['default']
|
|
89
|
+
ICustomFileTypeVideo: typeof import('~icons/custom/file-type-video')['default']
|
|
90
|
+
ICustomUpload: typeof import('~icons/custom/upload')['default']
|
|
91
|
+
IIcBaselineContentCopy: typeof import('~icons/ic/baseline-content-copy')['default']
|
|
92
|
+
ILucideFolderPlus: typeof import('~icons/lucide/folder-plus')['default']
|
|
93
|
+
IMaterialSymbolsMoreHoriz: typeof import('~icons/material-symbols/more-horiz')['default']
|
|
94
|
+
IMaterialSymbolsOpenInNew: typeof import('~icons/material-symbols/open-in-new')['default']
|
|
95
|
+
IMdiAccountCircleOutline: typeof import('~icons/mdi/account-circle-outline')['default']
|
|
96
|
+
IMdiAccountSettingsVariant: typeof import('~icons/mdi/account-settings-variant')['default']
|
|
97
|
+
IMdiArrowLeft: typeof import('~icons/mdi/arrow-left')['default']
|
|
98
|
+
IMdiBroom: typeof import('~icons/mdi/broom')['default']
|
|
99
|
+
IMdiCheckCircle: typeof import('~icons/mdi/check-circle')['default']
|
|
100
|
+
IMdiCloseCircle: typeof import('~icons/mdi/close-circle')['default']
|
|
101
|
+
IMdiContentCopy: typeof import('~icons/mdi/content-copy')['default']
|
|
102
|
+
IMdiDeleteOutline: typeof import('~icons/mdi/delete-outline')['default']
|
|
103
|
+
IMdiDownload: typeof import('~icons/mdi/download')['default']
|
|
104
|
+
IMdiDownloadOutline: typeof import('~icons/mdi/download-outline')['default']
|
|
105
|
+
IMdiEyeOutline: typeof import('~icons/mdi/eye-outline')['default']
|
|
106
|
+
IMdiFolderMoveOutline: typeof import('~icons/mdi/folder-move-outline')['default']
|
|
107
|
+
IMdiFolderOpenOutline: typeof import('~icons/mdi/folder-open-outline')['default']
|
|
108
|
+
IMdiInformationOutline: typeof import('~icons/mdi/information-outline')['default']
|
|
109
|
+
IMdiKey: typeof import('~icons/mdi/key')['default']
|
|
110
|
+
IMdiLinkPlus: typeof import('~icons/mdi/link-plus')['default']
|
|
111
|
+
IMdiLock: typeof import('~icons/mdi/lock')['default']
|
|
112
|
+
IMdiLoginVariant: typeof import('~icons/mdi/login-variant')['default']
|
|
113
|
+
IMdiLogout: typeof import('~icons/mdi/logout')['default']
|
|
114
|
+
IMdiMagnify: typeof import('~icons/mdi/magnify')['default']
|
|
115
|
+
IMdiOpenInNew: typeof import('~icons/mdi/open-in-new')['default']
|
|
116
|
+
IMdiReload: typeof import('~icons/mdi/reload')['default']
|
|
117
|
+
IMdiRenameOutline: typeof import('~icons/mdi/rename-outline')['default']
|
|
118
|
+
IMdiShareVariant: typeof import('~icons/mdi/share-variant')['default']
|
|
119
|
+
IMdiShuffleVariant: typeof import('~icons/mdi/shuffle-variant')['default']
|
|
120
|
+
IndexCopy: typeof import('./../../src/components/index-copy.vue')['default']
|
|
121
|
+
IRiImageLine: typeof import('~icons/ri/image-line')['default']
|
|
122
|
+
ISolarGalleryWideLinear: typeof import('~icons/solar/gallery-wide-linear')['default']
|
|
123
|
+
ISolarTrashBinMinimalisticBold: typeof import('~icons/solar/trash-bin-minimalistic-bold')['default']
|
|
124
|
+
KkFileViewer: typeof import('./../../src/components/file/preview/KkFileViewer.vue')['default']
|
|
125
|
+
KkFileViewerDialog: typeof import('./../../src/components/file/preview/KkFileViewerDialog.vue')['default']
|
|
126
|
+
LoadMoreFile: typeof import('./../../src/components/file/LoadMoreFile.vue')['default']
|
|
127
|
+
MarkdownViewer: typeof import('./../../src/components/file/preview/MarkdownViewer.vue')['default']
|
|
128
|
+
MarkdownViewerAsyncLoading: typeof import('./../../src/components/file/preview/MarkdownViewerAsyncLoading.vue')['default']
|
|
129
|
+
MarkdownViewerDialogAsyncLoading: typeof import('./../../src/components/file/preview/MarkdownViewerDialogAsyncLoading.vue')['default']
|
|
130
|
+
MyShareDialog: typeof import('./../../src/components/share/MyShareDialog.vue')['default']
|
|
131
|
+
OfficeViewer: typeof import('./../../src/components/file/preview/OfficeViewer.vue')['default']
|
|
132
|
+
OfficeViewerDialog: typeof import('./../../src/components/file/preview/OfficeViewerDialog.vue')['default']
|
|
133
|
+
Open115Login: typeof import('./../../src/components/admin/Open115Login.vue')['default']
|
|
134
|
+
PdfViewer: typeof import('./../../src/components/file/preview/PdfViewer.vue')['default']
|
|
135
|
+
PdfViewerDialog: typeof import('./../../src/components/file/preview/PdfViewerDialog.vue')['default']
|
|
136
|
+
Prompt: typeof import('./../../src/components/messageBox/prompt/prompt.vue')['default']
|
|
137
|
+
QrCodePreview: typeof import('./../../src/components/common/QrCodePreview.vue')['default']
|
|
138
|
+
RouterLink: typeof import('vue-router')['RouterLink']
|
|
139
|
+
RouterView: typeof import('vue-router')['RouterView']
|
|
140
|
+
SelectFolder: typeof import('./../../src/components/file/selectFolder/SelectFolder.vue')['default']
|
|
141
|
+
Setting: typeof import('./../../src/components/file/Setting.vue')['default']
|
|
142
|
+
ShareContextmenu: typeof import('./../../src/components/file/ShareContextmenu.vue')['default']
|
|
143
|
+
ShareListTable: typeof import('./../../src/components/share/ShareListTable.vue')['default']
|
|
144
|
+
SvgIcon: typeof import('./../../src/components/SvgIcon.vue')['default']
|
|
145
|
+
TableFileView: typeof import('./../../src/components/file/view/TableFileView.vue')['default']
|
|
146
|
+
TextViewer: typeof import('./../../src/components/file/preview/TextViewer.vue')['default']
|
|
147
|
+
TextViewerAsyncLoading: typeof import('./../../src/components/file/preview/TextViewerAsyncLoading.vue')['default']
|
|
148
|
+
TextViewerDialog: typeof import('./../../src/components/file/preview/TextViewerDialog.vue')['default']
|
|
149
|
+
Three3dPreview: typeof import('./../../src/components/file/preview/Three3dPreview.vue')['default']
|
|
150
|
+
Three3dPreviewDialog: typeof import('./../../src/components/file/preview/Three3dPreviewDialog.vue')['default']
|
|
151
|
+
TimePicker: typeof import('./../../src/components/TimePicker.vue')['default']
|
|
152
|
+
Toolbar: typeof import('./../../src/components/vue-codemirror/toolbar.vue')['default']
|
|
153
|
+
UpdatePwd: typeof import('./../../src/components/user/UpdatePwd.vue')['default']
|
|
154
|
+
UpdateUserNameAndPwd: typeof import('./../../src/components/user/UpdateUserNameAndPwd.vue')['default']
|
|
155
|
+
VideoPlayer: typeof import('./../../src/components/file/preview/VideoPlayer.vue')['default']
|
|
156
|
+
VideoPlayerAsyncLoading: typeof import('./../../src/components/file/preview/VideoPlayerAsyncLoading.vue')['default']
|
|
157
|
+
VideoPlayerDialog: typeof import('./../../src/components/file/preview/VideoPlayerDialog.vue')['default']
|
|
158
|
+
VMdPreview: typeof import('./../../src/components/md-preview/v-md-preview.vue')['default']
|
|
159
|
+
VueCodemirror: typeof import('./../../src/components/vue-codemirror/index.vue')['default']
|
|
160
|
+
ZContextmenu: typeof import('./../../src/components/file/ZContextmenu.vue')['default']
|
|
161
|
+
ZDialog: typeof import('./../../src/components/common/dialog/ZDialog.vue')['default']
|
|
162
|
+
ZUpload: typeof import('./../../src/components/file/ZUpload.vue')['default']
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
/// <reference types="vite-plugin-pages/client" />
|
|
3
|
+
/// <reference types="vite-plugin-use-modules/client" />
|
|
4
|
+
/// <reference types="vite-plugin-vue-meta-layouts/client" />
|
|
5
|
+
/// <reference types="@intlify/vite-plugin-vue-i18n/client" />
|
|
6
|
+
|
|
7
|
+
declare module '*.vue' {
|
|
8
|
+
import type { DefineComponent } from 'vue'
|
|
9
|
+
const component: DefineComponent<{}, {}, any>
|
|
10
|
+
export default component
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare module '*.md' {
|
|
14
|
+
import { ComponentOptions } from 'vue'
|
|
15
|
+
const Component: ComponentOptions
|
|
16
|
+
export default Component
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="46" fill="none" viewBox="0 0 48 46"><path fill="#863bff" d="M25.946 44.938c-.664.845-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.287c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.497 0-3.578-1.842-3.578H1.237c-.92 0-1.456-1.04-.92-1.788L10.013.474c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.579 1.842 3.579h11.377c.943 0 1.473 1.088.89 1.83L25.947 44.94z" style="fill:#863bff;fill:color(display-p3 .5252 .23 1);fill-opacity:1"/><mask id="a" width="48" height="46" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M25.842 44.938c-.664.844-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.183c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.498 0-3.579-1.842-3.579H1.133c-.92 0-1.456-1.04-.92-1.787L9.91.473c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.578 1.842 3.578h11.377c.943 0 1.473 1.088.89 1.832L25.843 44.94z" style="fill:#000;fill-opacity:1"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#ede6ff" rx="5.508" ry="14.704" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -4.47 31.516)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#ede6ff" rx="10.399" ry="29.851" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -39.328 7.883)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#7e14ff" rx="5.508" ry="30.487" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -25.913 -14.639)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -32.644 -3.334)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -34.34 30.47)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#ede6ff" rx="14.072" ry="22.078" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="rotate(93.35 24.506 48.493)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx=".387" cy="8.972" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(39.51 .387 8.972)"/></g><g filter="url(#k)"><ellipse cx="47.523" cy="-6.092" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 47.523 -6.092)"/></g><g filter="url(#l)"><ellipse cx="41.412" cy="6.333" fill="#47bfff" rx="5.971" ry="9.665" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 41.412 6.333)"/></g><g filter="url(#m)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#n)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#o)"><ellipse cx="35.651" cy="29.907" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 35.651 29.907)"/></g><g filter="url(#p)"><ellipse cx="38.418" cy="32.4" fill="#47bfff" rx="5.971" ry="15.297" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 38.418 32.4)"/></g></g><defs><filter id="b" width="60.045" height="41.654" x="-19.77" y="16.149" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-54.613" y="-7.533" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="d" width="79.355" height="29.4" x="-49.64" y="2.03" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="e" width="79.579" height="29.4" x="-45.045" y="20.029" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="f" width="79.579" height="29.4" x="-43.513" y="21.178" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="g" width="74.749" height="58.852" x="15.756" y="-17.901" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="h" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="i" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="j" width="56.045" height="63.649" x="-27.636" y="-22.853" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="k" width="54.814" height="64.646" x="20.116" y="-38.415" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="l" width="33.541" height="35.313" x="24.641" y="-11.323" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="m" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="n" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="o" width="54.814" height="64.646" x="8.244" y="-2.416" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="p" width="39.409" height="43.623" x="18.713" y="10.588" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter></defs></svg>
|
package/public/icons.svg
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<symbol id="bluesky-icon" viewBox="0 0 16 17">
|
|
3
|
+
<g clip-path="url(#bluesky-clip)"><path fill="#08060d" d="M7.75 7.735c-.693-1.348-2.58-3.86-4.334-5.097-1.68-1.187-2.32-.981-2.74-.79C.188 2.065.1 2.812.1 3.251s.241 3.602.398 4.13c.52 1.744 2.367 2.333 4.07 2.145-2.495.37-4.71 1.278-1.805 4.512 3.196 3.309 4.38-.71 4.987-2.746.608 2.036 1.307 5.91 4.93 2.746 2.72-2.746.747-4.143-1.747-4.512 1.702.189 3.55-.4 4.07-2.145.156-.528.397-3.691.397-4.13s-.088-1.186-.575-1.406c-.42-.19-1.06-.395-2.741.79-1.755 1.24-3.64 3.752-4.334 5.099"/></g>
|
|
4
|
+
<defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
|
|
5
|
+
</symbol>
|
|
6
|
+
<symbol id="discord-icon" viewBox="0 0 20 19">
|
|
7
|
+
<path fill="#08060d" d="M16.224 3.768a14.5 14.5 0 0 0-3.67-1.153c-.158.286-.343.67-.47.976a13.5 13.5 0 0 0-4.067 0c-.128-.306-.317-.69-.476-.976A14.4 14.4 0 0 0 3.868 3.77C1.546 7.28.916 10.703 1.231 14.077a14.7 14.7 0 0 0 4.5 2.306q.545-.748.965-1.587a9.5 9.5 0 0 1-1.518-.74q.191-.14.372-.293c2.927 1.369 6.107 1.369 8.999 0q.183.152.372.294-.723.437-1.52.74.418.838.963 1.588a14.6 14.6 0 0 0 4.504-2.308c.37-3.911-.63-7.302-2.644-10.309m-9.13 8.234c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.894 0 1.614.82 1.599 1.82.001 1-.705 1.82-1.6 1.82m5.91 0c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.893 0 1.614.82 1.599 1.82 0 1-.706 1.82-1.6 1.82"/>
|
|
8
|
+
</symbol>
|
|
9
|
+
<symbol id="documentation-icon" viewBox="0 0 21 20">
|
|
10
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="m15.5 13.333 1.533 1.322c.645.555.967.833.967 1.178s-.322.623-.967 1.179L15.5 18.333m-3.333-5-1.534 1.322c-.644.555-.966.833-.966 1.178s.322.623.966 1.179l1.534 1.321"/>
|
|
11
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M17.167 10.836v-4.32c0-1.41 0-2.117-.224-2.68-.359-.906-1.118-1.621-2.08-1.96-.599-.21-1.349-.21-2.848-.21-2.623 0-3.935 0-4.983.369-1.684.591-3.013 1.842-3.641 3.428C3 6.449 3 7.684 3 10.154v2.122c0 2.558 0 3.838.706 4.726q.306.383.713.671c.76.536 1.79.64 3.581.66"/>
|
|
12
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M3 10a2.78 2.78 0 0 1 2.778-2.778c.555 0 1.209.097 1.748-.047.48-.129.854-.503.982-.982.145-.54.048-1.194.048-1.749a2.78 2.78 0 0 1 2.777-2.777"/>
|
|
13
|
+
</symbol>
|
|
14
|
+
<symbol id="github-icon" viewBox="0 0 19 19">
|
|
15
|
+
<path fill="#08060d" fill-rule="evenodd" d="M9.356 1.85C5.05 1.85 1.57 5.356 1.57 9.694a7.84 7.84 0 0 0 5.324 7.44c.387.079.528-.168.528-.376 0-.182-.013-.805-.013-1.454-2.165.467-2.616-.935-2.616-.935-.349-.91-.864-1.143-.864-1.143-.71-.48.051-.48.051-.48.787.051 1.2.805 1.2.805.695 1.194 1.817.857 2.268.649.064-.507.27-.857.49-1.052-1.728-.182-3.545-.857-3.545-3.87 0-.857.31-1.558.8-2.104-.078-.195-.349-1 .077-2.078 0 0 .657-.208 2.14.805a7.5 7.5 0 0 1 1.946-.26c.657 0 1.328.092 1.946.26 1.483-1.013 2.14-.805 2.14-.805.426 1.078.155 1.883.078 2.078.502.546.799 1.247.799 2.104 0 3.013-1.818 3.675-3.558 3.87.284.247.528.714.528 1.454 0 1.052-.012 1.896-.012 2.156 0 .208.142.455.528.377a7.84 7.84 0 0 0 5.324-7.441c.013-4.338-3.48-7.844-7.773-7.844" clip-rule="evenodd"/>
|
|
16
|
+
</symbol>
|
|
17
|
+
<symbol id="social-icon" viewBox="0 0 20 20">
|
|
18
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M12.5 6.667a4.167 4.167 0 1 0-8.334 0 4.167 4.167 0 0 0 8.334 0"/>
|
|
19
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M2.5 16.667a5.833 5.833 0 0 1 8.75-5.053m3.837.474.513 1.035c.07.144.257.282.414.309l.93.155c.596.1.736.536.307.965l-.723.73a.64.64 0 0 0-.152.531l.207.903c.164.715-.213.991-.84.618l-.872-.52a.63.63 0 0 0-.577 0l-.872.52c-.624.373-1.003.094-.84-.618l.207-.903a.64.64 0 0 0-.152-.532l-.723-.729c-.426-.43-.289-.864.306-.964l.93-.156a.64.64 0 0 0 .412-.31l.513-1.034c.28-.562.735-.562 1.012 0"/>
|
|
20
|
+
</symbol>
|
|
21
|
+
<symbol id="x-icon" viewBox="0 0 19 19">
|
|
22
|
+
<path fill="#08060d" fill-rule="evenodd" d="M1.893 1.98c.052.072 1.245 1.769 2.653 3.77l2.892 4.114c.183.261.333.48.333.486s-.068.089-.152.183l-.522.593-.765.867-3.597 4.087c-.375.426-.734.834-.798.905a1 1 0 0 0-.118.148c0 .01.236.017.664.017h.663l.729-.83c.4-.457.796-.906.879-.999a692 692 0 0 0 1.794-2.038c.034-.037.301-.34.594-.675l.551-.624.345-.392a7 7 0 0 1 .34-.374c.006 0 .93 1.306 2.052 2.903l2.084 2.965.045.063h2.275c1.87 0 2.273-.003 2.266-.021-.008-.02-1.098-1.572-3.894-5.547-2.013-2.862-2.28-3.246-2.273-3.266.008-.019.282-.332 2.085-2.38l2-2.274 1.567-1.782c.022-.028-.016-.03-.65-.03h-.674l-.3.342a871 871 0 0 1-1.782 2.025c-.067.075-.405.458-.75.852a100 100 0 0 1-.803.91c-.148.172-.299.344-.99 1.127-.304.343-.32.358-.345.327-.015-.019-.904-1.282-1.976-2.808L6.365 1.85H1.8zm1.782.91 8.078 11.294c.772 1.08 1.413 1.973 1.425 1.984.016.017.241.02 1.05.017l1.03-.004-2.694-3.766L7.796 5.75 5.722 2.852l-1.039-.004-1.039-.004z" clip-rule="evenodd"/>
|
|
23
|
+
</symbol>
|
|
24
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
import "v-contextmenu/dist/themes/default.css";
|
|
3
|
+
|
|
4
|
+
import useFileSelect from "~/composables/file/useFileSelect";
|
|
5
|
+
const { selectRows, clearSelection, toggleRowSelection } = useFileSelect();
|
|
6
|
+
|
|
7
|
+
import useRouterData from "~/composables/useRouterData";
|
|
8
|
+
let { storageKey, routeRef } = useRouterData();
|
|
9
|
+
|
|
10
|
+
import useFileDataStore from "~/stores/file-data";
|
|
11
|
+
let fileDataStore = useFileDataStore();
|
|
12
|
+
|
|
13
|
+
const contextMenuTargetFile = ref(false);
|
|
14
|
+
const contextMenuTargetBlank = ref(false);
|
|
15
|
+
|
|
16
|
+
let contextmenuRef;
|
|
17
|
+
|
|
18
|
+
export default function useFileContextMenu() {
|
|
19
|
+
|
|
20
|
+
const showFileMenu = (row, column, event) => {
|
|
21
|
+
// 在文件页需要存储源 key;在分享页(/share/:shareKey)允许无 storageKey
|
|
22
|
+
const inShare = !!routeRef.value.params?.shareKey;
|
|
23
|
+
if (!inShare && !storageKey.value) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 如果右键的不是空白区域,则不显示菜单
|
|
28
|
+
if (row instanceof Event) {
|
|
29
|
+
event = row;
|
|
30
|
+
let parentDom = document.querySelector(".zfile-index-body");
|
|
31
|
+
let ignoreDom = document.querySelector(".el-dialog");
|
|
32
|
+
if (!parentDom.contains(event.target) || ignoreDom?.contains(event.target)) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
contextMenuTargetBlank.value = true;
|
|
36
|
+
} else {
|
|
37
|
+
if (row.type === 'BACK') {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
fileDataStore.updateCurrentRightClickRow(row);
|
|
41
|
+
|
|
42
|
+
if (!selectRows.value.includes(row)) {
|
|
43
|
+
clearSelection();
|
|
44
|
+
toggleRowSelection(row, true);
|
|
45
|
+
}
|
|
46
|
+
contextMenuTargetFile.value = true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
event.preventDefault();
|
|
50
|
+
event.stopPropagation();
|
|
51
|
+
|
|
52
|
+
contextmenuRef.show({
|
|
53
|
+
top: event.clientY,
|
|
54
|
+
left: event.clientX
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
window.onclick = () => {
|
|
58
|
+
contextmenuRef.hide();
|
|
59
|
+
contextMenuTargetBlank.value = false;
|
|
60
|
+
contextMenuTargetFile.value = false;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
contextmenuRef.$el.hidden = false;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const initContextMenu = (ref) => {
|
|
67
|
+
contextmenuRef = ref.value;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
initContextMenu, showFileMenu, contextMenuTargetFile, contextMenuTargetBlank
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": 1,
|
|
3
|
+
"msg": "",
|
|
4
|
+
"data": {
|
|
5
|
+
"categories": [
|
|
6
|
+
{
|
|
7
|
+
"attrKey": "62346",
|
|
8
|
+
"attrName": "办公环境"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"attrKey": "62355",
|
|
12
|
+
"attrName": "室温调节"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"attrKey": "62426",
|
|
16
|
+
"attrName": "空调"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"sup": {
|
|
20
|
+
"id": "7320266293897113604",
|
|
21
|
+
"name": "测试供应商",
|
|
22
|
+
"shortName": "测试",
|
|
23
|
+
"contact": "测试",
|
|
24
|
+
"mobile": "18035129594",
|
|
25
|
+
"logo": "",
|
|
26
|
+
"address": "",
|
|
27
|
+
"province": "",
|
|
28
|
+
"city": "",
|
|
29
|
+
"area": "",
|
|
30
|
+
"street": "",
|
|
31
|
+
"registerNum": "",
|
|
32
|
+
"registerMoney": "",
|
|
33
|
+
"economicNature": "",
|
|
34
|
+
"checkCompany": "",
|
|
35
|
+
"legalPerson": "",
|
|
36
|
+
"businessScope": "",
|
|
37
|
+
"shortIntroduce": "",
|
|
38
|
+
"companySize": ""
|
|
39
|
+
},
|
|
40
|
+
"brandName": "测试",
|
|
41
|
+
"errors": [],
|
|
42
|
+
"isError": false,
|
|
43
|
+
"spuId": "7340635033994052297",
|
|
44
|
+
"info": {
|
|
45
|
+
"typeId": 62426,
|
|
46
|
+
"brandId": "14381",
|
|
47
|
+
"templateId": "7320267900902752323",
|
|
48
|
+
"supId": "0",
|
|
49
|
+
"name": "测试商品",
|
|
50
|
+
"sn": "",
|
|
51
|
+
"model": "",
|
|
52
|
+
"modelValue": "",
|
|
53
|
+
"images": []
|
|
54
|
+
},
|
|
55
|
+
"specs": [
|
|
56
|
+
{
|
|
57
|
+
"attrKey": "颜色",
|
|
58
|
+
"specs": [
|
|
59
|
+
{
|
|
60
|
+
"id": "7340635034145047246",
|
|
61
|
+
"spec": "60ef813b5b2c76888eceab50768d2dd0",
|
|
62
|
+
"attrKey": "颜色",
|
|
63
|
+
"attrVal": "黑色"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"id": "7340635034145047247",
|
|
67
|
+
"spec": "99a291ee4ead1118fe853017b4976314",
|
|
68
|
+
"attrKey": "颜色",
|
|
69
|
+
"attrVal": "白色"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"attrKey": "型号",
|
|
75
|
+
"specs": [
|
|
76
|
+
{
|
|
77
|
+
"id": "7340635034145047248",
|
|
78
|
+
"spec": "6b58509a44337393e380f529efaf86cf",
|
|
79
|
+
"attrKey": "型号",
|
|
80
|
+
"attrVal": "M"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "7340635034145047249",
|
|
84
|
+
"spec": "90d1aa705c4fbc9b545c58b085b65d19",
|
|
85
|
+
"attrKey": "型号",
|
|
86
|
+
"attrVal": "S"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"skus": [
|
|
92
|
+
{
|
|
93
|
+
"spuId": "7340635033994052297",
|
|
94
|
+
"skuId": "7340635033994052298",
|
|
95
|
+
"info": {
|
|
96
|
+
"fullName": "测试 空调 测试商品 颜色:黑色,型号:M ",
|
|
97
|
+
"typeId": 62426,
|
|
98
|
+
"brandId": "14381",
|
|
99
|
+
"templateId": "7320267900902752323",
|
|
100
|
+
"supId": "0",
|
|
101
|
+
"name": "测试商品",
|
|
102
|
+
"sn": "",
|
|
103
|
+
"model": "颜色:黑色,型号:M",
|
|
104
|
+
"modelValue": "f5d91692637a38ab3aaea099040e9fe4",
|
|
105
|
+
"images": []
|
|
106
|
+
},
|
|
107
|
+
"attrs": [],
|
|
108
|
+
"sku": {
|
|
109
|
+
"skuId": "7340635033994052298",
|
|
110
|
+
"tpn": "",
|
|
111
|
+
"tags": "",
|
|
112
|
+
"name": "测试 空调 测试商品 颜色:黑色,型号:M ",
|
|
113
|
+
"sn": "",
|
|
114
|
+
"model": "颜色:黑色,型号:M",
|
|
115
|
+
"modelValue": "f5d91692637a38ab3aaea099040e9fe4",
|
|
116
|
+
"barcode": "1",
|
|
117
|
+
"isEnable": true,
|
|
118
|
+
"isList": true,
|
|
119
|
+
"marketPrice": 10.00,
|
|
120
|
+
"stock": 1,
|
|
121
|
+
"salesNumber": 0,
|
|
122
|
+
"unit": "个",
|
|
123
|
+
"volume": 0.00,
|
|
124
|
+
"weight": 0.000,
|
|
125
|
+
"specs": [
|
|
126
|
+
"60ef813b5b2c76888eceab50768d2dd0",
|
|
127
|
+
"6b58509a44337393e380f529efaf86cf"
|
|
128
|
+
],
|
|
129
|
+
"isCollect": false
|
|
130
|
+
},
|
|
131
|
+
"projectItem": []
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"spuId": "7340635033994052297",
|
|
135
|
+
"skuId": "7340635034031801035",
|
|
136
|
+
"info": {
|
|
137
|
+
"fullName": "测试 空调 测试商品 颜色:黑色,型号:M ",
|
|
138
|
+
"typeId": 62426,
|
|
139
|
+
"brandId": "14381",
|
|
140
|
+
"templateId": "7320267900902752323",
|
|
141
|
+
"supId": "0",
|
|
142
|
+
"name": "测试商品",
|
|
143
|
+
"sn": "",
|
|
144
|
+
"model": "颜色:黑色,型号:M",
|
|
145
|
+
"modelValue": "f5d91692637a38ab3aaea099040e9fe4",
|
|
146
|
+
"images": []
|
|
147
|
+
},
|
|
148
|
+
"attrs": [],
|
|
149
|
+
"sku": {
|
|
150
|
+
"skuId": "7340635034031801035",
|
|
151
|
+
"tpn": "",
|
|
152
|
+
"tags": "",
|
|
153
|
+
"name": "测试 空调 测试商品 型号:M,颜色:白色 ",
|
|
154
|
+
"sn": "",
|
|
155
|
+
"model": "型号:M,颜色:白色",
|
|
156
|
+
"modelValue": "db32a3d53407f5b1f109242b62f8ddf5",
|
|
157
|
+
"barcode": "1",
|
|
158
|
+
"isEnable": true,
|
|
159
|
+
"isList": true,
|
|
160
|
+
"marketPrice": 20.00,
|
|
161
|
+
"stock": 1,
|
|
162
|
+
"salesNumber": 0,
|
|
163
|
+
"unit": "个",
|
|
164
|
+
"volume": 0.00,
|
|
165
|
+
"weight": 0.000,
|
|
166
|
+
"specs": [
|
|
167
|
+
"99a291ee4ead1118fe853017b4976314",
|
|
168
|
+
"6b58509a44337393e380f529efaf86cf"
|
|
169
|
+
],
|
|
170
|
+
"isCollect": false
|
|
171
|
+
},
|
|
172
|
+
"projectItem": []
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"spuId": "7340635033994052297",
|
|
176
|
+
"skuId": "7340635034069549772",
|
|
177
|
+
"info": {
|
|
178
|
+
"fullName": "测试 空调 测试商品 颜色:黑色,型号:M ",
|
|
179
|
+
"typeId": 62426,
|
|
180
|
+
"brandId": "14381",
|
|
181
|
+
"templateId": "7320267900902752323",
|
|
182
|
+
"supId": "0",
|
|
183
|
+
"name": "测试商品",
|
|
184
|
+
"sn": "",
|
|
185
|
+
"model": "颜色:黑色,型号:M",
|
|
186
|
+
"modelValue": "f5d91692637a38ab3aaea099040e9fe4",
|
|
187
|
+
"images": []
|
|
188
|
+
},
|
|
189
|
+
"attrs": [],
|
|
190
|
+
"sku": {
|
|
191
|
+
"skuId": "7340635034069549772",
|
|
192
|
+
"tpn": "",
|
|
193
|
+
"tags": "",
|
|
194
|
+
"name": "测试 空调 测试商品 颜色:黑色,型号:S ",
|
|
195
|
+
"sn": "",
|
|
196
|
+
"model": "颜色:黑色,型号:S",
|
|
197
|
+
"modelValue": "4133e440b06f8d3aa1d6dab98df8eda2",
|
|
198
|
+
"barcode": "1",
|
|
199
|
+
"isEnable": true,
|
|
200
|
+
"isList": true,
|
|
201
|
+
"marketPrice": 30.00,
|
|
202
|
+
"stock": 1,
|
|
203
|
+
"salesNumber": 0,
|
|
204
|
+
"unit": "个",
|
|
205
|
+
"volume": 0.00,
|
|
206
|
+
"weight": 0.000,
|
|
207
|
+
"specs": [
|
|
208
|
+
"60ef813b5b2c76888eceab50768d2dd0",
|
|
209
|
+
"90d1aa705c4fbc9b545c58b085b65d19"
|
|
210
|
+
],
|
|
211
|
+
"isCollect": false
|
|
212
|
+
},
|
|
213
|
+
"projectItem": []
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"spuId": "7340635033994052297",
|
|
217
|
+
"skuId": "7340635034107298509",
|
|
218
|
+
"info": {
|
|
219
|
+
"fullName": "测试 空调 测试商品 颜色:黑色,型号:M ",
|
|
220
|
+
"typeId": 62426,
|
|
221
|
+
"brandId": "14381",
|
|
222
|
+
"templateId": "7320267900902752323",
|
|
223
|
+
"supId": "0",
|
|
224
|
+
"name": "测试商品",
|
|
225
|
+
"sn": "",
|
|
226
|
+
"model": "颜色:黑色,型号:M",
|
|
227
|
+
"modelValue": "f5d91692637a38ab3aaea099040e9fe4",
|
|
228
|
+
"images": []
|
|
229
|
+
},
|
|
230
|
+
"attrs": [],
|
|
231
|
+
"sku": {
|
|
232
|
+
"skuId": "7340635034107298509",
|
|
233
|
+
"tpn": "",
|
|
234
|
+
"tags": "",
|
|
235
|
+
"name": "测试 空调 测试商品 型号:S,颜色:白色 ",
|
|
236
|
+
"sn": "",
|
|
237
|
+
"model": "型号:S,颜色:白色",
|
|
238
|
+
"modelValue": "18a515492b99bfeaeab77878ed2cad6d",
|
|
239
|
+
"barcode": "1",
|
|
240
|
+
"isEnable": true,
|
|
241
|
+
"isList": true,
|
|
242
|
+
"marketPrice": 40.00,
|
|
243
|
+
"stock": 1,
|
|
244
|
+
"salesNumber": 0,
|
|
245
|
+
"unit": "个",
|
|
246
|
+
"volume": 0.00,
|
|
247
|
+
"weight": 0.000,
|
|
248
|
+
"specs": [
|
|
249
|
+
"99a291ee4ead1118fe853017b4976314",
|
|
250
|
+
"90d1aa705c4fbc9b545c58b085b65d19"
|
|
251
|
+
],
|
|
252
|
+
"isCollect": false
|
|
253
|
+
},
|
|
254
|
+
"projectItem": []
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"attrs": [],
|
|
258
|
+
"payments": [
|
|
259
|
+
"支付宝"
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
"isSucceed": true
|
|
263
|
+
}
|
|
Binary file
|
|
Binary file
|
package/src/App.vue
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import axios from "~/http/request";
|
|
2
|
+
|
|
3
|
+
// 生成 2FA 认证信息
|
|
4
|
+
export const generator2FAInfoReq = () => {
|
|
5
|
+
return axios({
|
|
6
|
+
url: "/admin/2fa/setup",
|
|
7
|
+
method: "get"
|
|
8
|
+
})
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// 确认 2FA 认证信息
|
|
12
|
+
export const verify2FAInfoReq = (data) => {
|
|
13
|
+
return axios({
|
|
14
|
+
url: "/admin/2fa/verify",
|
|
15
|
+
method: "post",
|
|
16
|
+
data
|
|
17
|
+
})
|
|
18
|
+
}
|