forked from MarSeventh/CloudFlare-ImgBed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
270.4a5f4a24.js.map
1 lines (1 loc) · 27 KB
/
270.4a5f4a24.js.map
1
{"version":3,"file":"js/270.4a5f4a24.js","mappings":"2WACA,MAAMA,EAAa,CACjBC,MAAO,aAEHC,EAAa,CACjBD,MAAO,kBAEHE,EAAa,CACjBF,MAAO,eAEHG,EAAa,CACjBH,MAAO,SAEHI,EAAa,CACjBJ,MAAO,WAEHK,EAAa,CACjBL,MAAO,oBAEHM,EAAa,CACjBN,MAAO,WAEHO,EAAa,CAAC,OACdC,EAAa,CACjBR,MAAO,iBAEHS,EAAc,CAClBT,MAAO,mBAEHU,EAAc,CAClBV,MAAO,aAEHW,EAAc,CAClBX,MAAO,wBAEF,SAASY,EAAOC,EAAMC,EAAQC,EAAQC,EAAQC,EAAOC,GAC1D,MAAMC,EAAsB,KACtBC,GAA+B,QAAkB,qBACjDC,EAA8B,KAC9BC,EAA8B,KAC9BC,EAAyB,KACzBC,EAAwB,KACxBC,EAAuB,KACvBC,EAAyB,KACzBC,EAAsB,KACtBC,EAAuB,KACvBC,EAAqB,KACrBC,EAA2B,KAC3BC,EAAqB,KACrBC,EAA0B,KAChC,OAAO,WAAc,QAAoB,MAAOjC,EAAY,EAAC,QAAaiC,EAAyB,KAAM,CACvGC,SAAS,SAAS,IAAM,EAAC,QAAaR,EAAsB,KAAM,CAChEQ,SAAS,SAAS,IAAM,EAAC,QAAoB,MAAOhC,EAAY,EAAC,QAAoB,OAAQ,CAC3FD,MAAO,QACPkC,QAASpB,EAAO,KAAOA,EAAO,GAAK,IAAIqB,IAASjB,EAASkB,kBAAoBlB,EAASkB,oBAAoBD,KACzG,cAAc,QAAoB,MAAOjC,EAAY,EAAC,QAAaiB,EAAqB,CACzFkB,WAAYpB,EAAMqB,OAClB,sBAAuBxB,EAAO,KAAOA,EAAO,GAAKyB,GAAUtB,EAAMqB,OAASC,GAC1EC,KAAM,OACNC,YAAa,WACZ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AEjBK,KAAKqB,cAAc,mBAAoB,CAC5Ce,OAAQ,SAES,yBAAVqD,EACFzF,KAAKqB,cAAc,mBAAoB,CAC5Ce,OAAQ,QAIHE,QAAQC,WAEhBJ,MAAKT,GAAYA,EAASgE,SAAQvD,MAAKsD,IACxCzF,KAAKJ,UAAY6F,EAAO/E,KAAID,IAAQ,IAC/BA,EACHxC,UAAU,MAEZ+B,KAAK2C,cACL,MAAMgD,EAAkB3E,aAAa4E,QAAQ,cACzCD,IACF3F,KAAKH,WAAa8F,GAEpB3F,KAAKI,SAASJ,KAAKJ,UAAU,IAC5BkD,OAAM,IAAM9C,KAAK4C,SAASG,MAAM,oBACrC,G,UCtMF,MAAM8C,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAAS/K,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://sanyue_imghub/./src/views/AdminDashBoard.vue?5647","webpack://sanyue_imghub/./src/views/AdminDashBoard.vue","webpack://sanyue_imghub/./src/views/AdminDashBoard.vue?40d2"],"sourcesContent":["import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, normalizeClass as _normalizeClass, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, withModifiers as _withModifiers } from \"vue\";\nconst _hoisted_1 = {\n class: \"container\"\n};\nconst _hoisted_2 = {\n class: \"header-content\"\n};\nconst _hoisted_3 = {\n class: \"search-card\"\n};\nconst _hoisted_4 = {\n class: \"stats\"\n};\nconst _hoisted_5 = {\n class: \"actions\"\n};\nconst _hoisted_6 = {\n class: \"el-dropdown-link\"\n};\nconst _hoisted_7 = {\n class: \"content\"\n};\nconst _hoisted_8 = [\"src\"];\nconst _hoisted_9 = {\n class: \"image-overlay\"\n};\nconst _hoisted_10 = {\n class: \"overlay-buttons\"\n};\nconst _hoisted_11 = {\n class: \"file-info\"\n};\nconst _hoisted_12 = {\n class: \"pagination-container\"\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_input = _resolveComponent(\"el-input\");\n const _component_font_awesome_icon = _resolveComponent(\"font-awesome-icon\");\n const _component_el_dropdown_item = _resolveComponent(\"el-dropdown-item\");\n const _component_el_dropdown_menu = _resolveComponent(\"el-dropdown-menu\");\n const _component_el_dropdown = _resolveComponent(\"el-dropdown\");\n const _component_el_tooltip = _resolveComponent(\"el-tooltip\");\n const _component_el_header = _resolveComponent(\"el-header\");\n const _component_el_checkbox = _resolveComponent(\"el-checkbox\");\n const _component_el_image = _resolveComponent(\"el-image\");\n const _component_el_button = _resolveComponent(\"el-button\");\n const _component_el_card = _resolveComponent(\"el-card\");\n const _component_el_pagination = _resolveComponent(\"el-pagination\");\n const _component_el_main = _resolveComponent(\"el-main\");\n const _component_el_container = _resolveComponent(\"el-container\");\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createVNode(_component_el_container, null, {\n default: _withCtx(() => [_createVNode(_component_el_header, null, {\n default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_2, [_createElementVNode(\"span\", {\n class: \"title\",\n onClick: _cache[0] || (_cache[0] = (...args) => $options.refreshDashboard && $options.refreshDashboard(...args))\n }, \"Dashboard\"), _createElementVNode(\"div\", _hoisted_3, [_createVNode(_component_el_input, {\n modelValue: $data.search,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => $data.search = $event),\n size: \"mini\",\n placeholder: \"输入关键字搜索\"\n }, null, 8, [\"modelValue\"])]), _createElementVNode(\"span\", _hoisted_4, [_createVNode(_component_font_awesome_icon, {\n icon: \"database\",\n class: \"fa-database\"\n }), _createTextVNode(\" 记录总数量: \" + _toDisplayString($data.Number), 1)]), _createElementVNode(\"div\", _hoisted_5, [_createVNode(_component_el_tooltip, {\n content: \"排序\",\n placement: \"bottom\"\n }, {\n default: _withCtx(() => [_createVNode(_component_el_dropdown, {\n onCommand: $options.sort,\n \"hide-on-click\": false\n }, {\n dropdown: _withCtx(() => [_createVNode(_component_el_dropdown_menu, null, {\n default: _withCtx(() => [_createVNode(_component_el_dropdown_item, {\n command: \"dateDesc\"\n }, {\n default: _withCtx(() => _cache[3] || (_cache[3] = [_createTextVNode(\"按时间倒序\")])),\n _: 1\n }), _createVNode(_component_el_dropdown_item, {\n command: \"nameAsc\"\n }, {\n default: _withCtx(() => _cache[4] || (_cache[4] = [_createTextVNode(\"按名称升序\")])),\n _: 1\n })]),\n _: 1\n })]),\n default: _withCtx(() => [_createElementVNode(\"span\", _hoisted_6, [_createVNode(_component_font_awesome_icon, {\n icon: $options.sortIcon,\n class: \"header-icon\"\n }, null, 8, [\"icon\"])])]),\n _: 1\n }, 8, [\"onCommand\"])]),\n _: 1\n }), _createVNode(_component_el_tooltip, {\n content: \"批量复制\",\n placement: \"bottom\"\n }, {\n default: _withCtx(() => [_createVNode(_component_font_awesome_icon, {\n icon: \"link\",\n class: _normalizeClass([\"header-icon\", {\n disabled: $data.selectedFiles.length === 0\n }]),\n onClick: $options.handleBatchCopy\n }, null, 8, [\"class\", \"onClick\"])]),\n _: 1\n }), _createVNode(_component_el_tooltip, {\n content: \"批量删除\",\n placement: \"bottom\"\n }, {\n default: _withCtx(() => [_createVNode(_component_font_awesome_icon, {\n icon: \"trash-alt\",\n class: _normalizeClass([\"header-icon\", {\n disabled: $data.selectedFiles.length === 0\n }]),\n onClick: $options.handleBatchDelete\n }, null, 8, [\"class\", \"onClick\"])]),\n _: 1\n }), _createVNode(_component_el_tooltip, {\n content: \"黑白名单管理\",\n placement: \"bottom\"\n }, {\n default: _withCtx(() => [_createVNode(_component_font_awesome_icon, {\n icon: \"user-cog\",\n class: \"header-icon\",\n onClick: $options.handleGoToAdmin\n }, null, 8, [\"onClick\"])]),\n _: 1\n }), _createVNode(_component_el_tooltip, {\n content: \"返回上传页\",\n placement: \"bottom\"\n }, {\n default: _withCtx(() => [_createVNode(_component_font_awesome_icon, {\n icon: \"home\",\n class: \"header-icon\",\n onClick: $options.handleLogout\n }, null, 8, [\"onClick\"])]),\n _: 1\n })])])]),\n _: 1\n }), _createVNode(_component_el_main, {\n class: \"main-container\"\n }, {\n default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_7, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList($options.paginatedTableData, (item, index) => {\n return _openBlock(), _createBlock(_component_el_card, {\n key: index,\n class: \"img-card\"\n }, {\n default: _withCtx(() => [_createVNode(_component_el_checkbox, {\n modelValue: item.selected,\n \"onUpdate:modelValue\": $event => item.selected = $event\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"]), item.metadata?.FileType?.includes('video') ? (_openBlock(), _createElementBlock(\"video\", {\n key: 0,\n src: '/file/' + item.name,\n autoplay: \"\",\n muted: \"\",\n loop: \"\",\n class: \"video-preview\",\n onClick: _cache[2] || (_cache[2] = (...args) => $options.handleVideoClick && $options.handleVideoClick(...args))\n }, null, 8, _hoisted_8)) : (_openBlock(), _createBlock(_component_el_image, {\n key: 1,\n \"preview-teleported\": true,\n src: '/file/' + item.name,\n \"preview-src-list\": $options.previewSrcList(index),\n fit: \"cover\",\n lazy: \"\",\n class: \"image-preview\"\n }, null, 8, [\"src\", \"preview-src-list\"])), _createElementVNode(\"div\", _hoisted_9, [_createElementVNode(\"div\", _hoisted_10, [_createVNode(_component_el_button, {\n size: \"mini\",\n type: \"primary\",\n onClick: _withModifiers($event => $options.handleCopy(index, item.name), [\"stop\"])\n }, {\n default: _withCtx(() => _cache[5] || (_cache[5] = [_createTextVNode(\"复制地址\")])),\n _: 2\n }, 1032, [\"onClick\"]), _createVNode(_component_el_button, {\n size: \"mini\",\n type: \"danger\",\n onClick: _withModifiers($event => $options.handleDelete(index, item.name), [\"stop\"])\n }, {\n default: _withCtx(() => _cache[6] || (_cache[6] = [_createTextVNode(\"删除\")])),\n _: 2\n }, 1032, [\"onClick\"])])]), _createElementVNode(\"div\", _hoisted_11, _toDisplayString(item.metadata?.FileName || item.name), 1)]),\n _: 2\n }, 1024);\n }), 128))]), _createElementVNode(\"div\", _hoisted_12, [_createVNode(_component_el_pagination, {\n background: \"\",\n layout: \"prev, pager, next\",\n total: $options.filteredTableData.length,\n \"page-size\": $data.pageSize,\n onCurrentChange: $options.handlePageChange,\n \"current-page\": $data.currentPage\n }, null, 8, [\"total\", \"page-size\", \"onCurrentChange\", \"current-page\"])])]),\n _: 1\n })]),\n _: 1\n })]);\n}","import \"core-js/modules/es.array.push.js\";\nimport { mapGetters } from 'vuex';\nexport default {\n data() {\n return {\n Number: 0,\n showLogoutButton: false,\n tableData: [],\n search: '',\n currentPage: 1,\n pageSize: 15,\n selectedFiles: [],\n sortOption: 'dateDesc',\n isUploading: false\n };\n },\n computed: {\n ...mapGetters(['credentials']),\n filteredTableData() {\n return this.tableData.filter(data => !this.search || data.name.toLowerCase().includes(this.search.toLowerCase()));\n },\n paginatedTableData() {\n const sortedData = this.sortData(this.filteredTableData);\n const start = (this.currentPage - 1) * this.pageSize;\n const end = start + this.pageSize;\n return sortedData.slice(start, end);\n },\n sortIcon() {\n return this.sortOption === 'dateDesc' ? 'sort-amount-down' : 'sort-alpha-up';\n },\n previewSrcList(index) {\n // 过滤掉视频文件,保留非视频文件的路径\n let list = this.paginatedTableData.filter(file => !file.metadata?.FileType?.includes('video')) // 过滤出非视频文件\n .map(file => `/file/${file.name}`); // 返回文件路径数组\n // 重新排序,确保当前索引文件在第一个\n list = [...list.slice(index), ...list.slice(0, index)];\n return list;\n }\n },\n watch: {\n tableData: {\n handler(newData) {\n this.selectedFiles = newData.filter(file => file.selected);\n },\n deep: true\n },\n sortOption(newOption) {\n localStorage.setItem('sortOption', newOption);\n }\n },\n methods: {\n refreshDashboard() {\n location.reload();\n },\n async fetchWithAuth(url, options = {}) {\n // 开发环境, url 前面加上 /api\n // url = `/api${url}`;\n if (this.credentials) {\n // 设置 Authorization 头\n options.headers = {\n ...options.headers,\n 'Authorization': `Basic ${this.credentials}`\n };\n // 确保包含凭据,如 cookies\n options.credentials = 'include';\n }\n const response = await fetch(url, options);\n if (response.status === 401) {\n // Redirect to the login page if a 401 Unauthorized is returned\n this.$router.push('/adminLogin');\n throw new Error('Unauthorized');\n }\n return response;\n },\n handleDelete(index, key) {\n this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n this.fetchWithAuth(`/api/manage/delete/${key}`, {\n method: 'GET'\n }).then(response => {\n if (response.ok) {\n const fileIndex = this.tableData.findIndex(file => file.name === key);\n if (fileIndex !== -1) {\n this.tableData.splice(fileIndex, 1);\n }\n } else {\n return Promise.reject('请求失败');\n }\n }).then(() => {\n this.updateStats();\n this.$message.success('删除成功!');\n }).catch(() => this.$message.error('删除失败,请检查网络连接'));\n }).catch(() => this.$message.info('已取消删除'));\n },\n handleBatchDelete() {\n this.$confirm('此操作将永久删除选中的文件, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n const promises = this.selectedFiles.map(file => this.fetchWithAuth(`/api/manage/delete/${file.name}`, {\n method: 'GET'\n }));\n Promise.all(promises).then(results => {\n results.forEach((response, index) => {\n if (response.ok) {\n const fileIndex = this.tableData.findIndex(file => file.name === this.selectedFiles[index].name);\n if (fileIndex !== -1) {\n this.tableData.splice(fileIndex, 1);\n }\n }\n });\n this.selectedFiles = [];\n this.updateStats();\n this.$message.success('批量删除成功!');\n }).catch(() => this.$message.error('批量删除失败,请检查网络连接'));\n }).catch(() => this.$message.info('已取消批量删除'));\n },\n handleBatchCopy() {\n const links = this.selectedFiles.map(file => `${document.location.origin}/file/${file.name}`).join('\\n');\n navigator.clipboard ? navigator.clipboard.writeText(links).then(() => this.$message.success('批量复制链接成功~')) : this.copyToClipboardFallback(links);\n },\n copyToClipboardFallback(text) {\n const textarea = document.createElement('textarea');\n document.body.appendChild(textarea);\n textarea.style.position = 'fixed';\n textarea.style.clip = 'rect(0 0 0 0)';\n textarea.style.top = '10px';\n textarea.value = text;\n textarea.select();\n document.execCommand('copy');\n document.body.removeChild(textarea);\n this.$message.success('批量复制链接成功~');\n },\n handleLogout() {\n this.$router.push('/');\n },\n handleGoToAdmin() {\n window.location.href = '/admin-detail';\n },\n handleCopy(index, key) {\n const text = `${document.location.origin}/file/${key}`;\n navigator.clipboard ? navigator.clipboard.writeText(text).then(() => this.$message.success('复制文件链接成功~')) : this.copyToClipboardFallback(text);\n },\n handlePageChange(page) {\n this.currentPage = page;\n },\n updateStats() {\n this.Number = this.tableData.length;\n },\n sort(command) {\n this.sortOption = command;\n },\n sortData(data) {\n return this.sortOption === 'nameAsc' ? data.sort((a, b) => a.name.localeCompare(b.name)) : data.sort((a, b) => b.metadata.TimeStamp - a.metadata.TimeStamp);\n },\n handleVideoClick(event) {\n const videoElement = event.target;\n if (videoElement.requestFullscreen) {\n videoElement.requestFullscreen();\n } else if (videoElement.webkitRequestFullscreen) {\n // Safari/Old Chrome\n videoElement.webkitRequestFullscreen();\n } else if (videoElement.mozRequestFullScreen) {\n // Firefox\n videoElement.mozRequestFullScreen();\n } else if (videoElement.msRequestFullscreen) {\n // IE/Edge\n videoElement.msRequestFullscreen();\n }\n }\n },\n mounted() {\n this.fetchWithAuth(\"/api/manage/check\", {\n method: 'GET'\n }).then(response => response.text()).then(result => {\n if (result == \"true\") {\n this.showLogoutButton = true;\n // 在 check 成功后再执行 list 的 fetch 请求\n return this.fetchWithAuth(\"/api/manage/list\", {\n method: 'GET'\n });\n } else if (result == \"Not using basic auth.\") {\n return this.fetchWithAuth(\"/api/manage/list\", {\n method: 'GET'\n });\n } else {\n // window.location.reload();\n return Promise.reject();\n }\n }).then(response => response.json()).then(result => {\n this.tableData = result.map(file => ({\n ...file,\n selected: false\n }));\n this.updateStats();\n const savedSortOption = localStorage.getItem('sortOption');\n if (savedSortOption) {\n this.sortOption = savedSortOption;\n }\n this.sortData(this.tableData);\n }).catch(() => this.$message.error('同步数据时出错,请检查网络连接'));\n }\n};","/* unplugin-vue-components disabled */import { render } from \"./AdminDashBoard.vue?vue&type=template&id=797a2fe2&scoped=true\"\nimport script from \"./AdminDashBoard.vue?vue&type=script&lang=js\"\nexport * from \"./AdminDashBoard.vue?vue&type=script&lang=js\"\n\nimport \"./AdminDashBoard.vue?vue&type=style&index=0&id=797a2fe2&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-797a2fe2\"]])\n\nexport default __exports__"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","render","_ctx","_cache","$props","$setup","$data","$options","_component_el_input","_component_font_awesome_icon","_component_el_dropdown_item","_component_el_dropdown_menu","_component_el_dropdown","_component_el_tooltip","_component_el_header","_component_el_checkbox","_component_el_image","_component_el_button","_component_el_card","_component_el_pagination","_component_el_main","_component_el_container","default","onClick","args","refreshDashboard","modelValue","search","$event","size","placeholder","icon","Number","content","placement","onCommand","sort","dropdown","command","_","sortIcon","disabled","selectedFiles","length","handleBatchCopy","handleBatchDelete","handleGoToAdmin","handleLogout","paginatedTableData","item","index","key","selected","metadata","FileType","includes","src","name","autoplay","muted","loop","handleVideoClick","previewSrcList","fit","lazy","type","handleCopy","handleDelete","FileName","background","layout","total","filteredTableData","pageSize","onCurrentChange","handlePageChange","currentPage","data","showLogoutButton","tableData","sortOption","isUploading","computed","this","filter","toLowerCase","sortedData","sortData","start","end","slice","list","file","map","watch","handler","newData","deep","newOption","localStorage","setItem","methods","location","reload","fetchWithAuth","url","options","credentials","headers","response","fetch","status","$router","push","Error","$confirm","confirmButtonText","cancelButtonText","then","method","ok","Promise","reject","fileIndex","findIndex","splice","updateStats","$message","success","catch","error","info","promises","all","results","forEach","links","document","origin","join","navigator","clipboard","writeText","copyToClipboardFallback","text","textarea","createElement","body","appendChild","style","position","clip","top","value","select","execCommand","removeChild","window","href","page","a","b","localeCompare","TimeStamp","event","videoElement","target","requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen","mounted","result","json","savedSortOption","getItem","__exports__"],"sourceRoot":""}