diff --git a/front/components/AboutChartTooltip.vue b/front/components/AboutChartTooltip.vue new file mode 100644 index 0000000..49c3a7d --- /dev/null +++ b/front/components/AboutChartTooltip.vue @@ -0,0 +1,38 @@ + + + + + {{ title }} + + + + + {{ dataKeyMap?.[item.name as keyof typeof dataKeyMap] ?? item.name }} + + + {{ + ["file_size"]?.includes(item?.name) + ? filesize(item.value) + : item.value + }} + + + + + diff --git a/front/components/Result/ImageCompressResult.vue b/front/components/Result/ImageCompressResult.vue new file mode 100644 index 0000000..52c988f --- /dev/null +++ b/front/components/Result/ImageCompressResult.vue @@ -0,0 +1,146 @@ + + + + 上传成功 + + + + + + + + + + + + {{ props?.data?.file?.name }} + + {{ + filesize(item.new_file.size ?? 0) + }} + + + {{ + ((1 - item.new_file.size / item.old_file.size) * 100).toFixed( + 2, + ) + }}% + + + + { + const data = await createFileShare({ + file_id: item.new_file.id, + config: { + download_nums: 1, + expire_time: 60, + has_pickup_code: false, + has_password: false, + }, + file_name: props?.data?.file?.name, + }); + const { id } = data?.data || {}; + if (!id) { + return; + } + await downloadFile(id); + } + " + > + + + + + + + + + diff --git a/front/pages/about.vue b/front/pages/about.vue new file mode 100644 index 0000000..dff3442 --- /dev/null +++ b/front/pages/about.vue @@ -0,0 +1,233 @@ + + + + + 关于 + + + 015 + + 015 + 是一个开源的临时文件分享平台项目,支持临时大文件切片上传,临时文本上传、下载、分享 + + + 系统信息 + + + + + + + + + 系统版本 + + {{ data?.version }} + + + + 存储空间 + + {{ + filesize(currentFileSize ?? 0) + }} + / {{ filesize(data?.max_limit?.file_size ?? 0) }} + + + + + + + + 分析 + + + + + + + + + { + currentChartTab = tab.value as 'storage' | 'queue'; + } + " + > + {{ tab.label }} + {{ tab.total }} + + + + + + + + + + + + + + {{ user.title }} + { + handleUserClick(user); + } + " + > + + + + {{ user.name }} + + + + + +