From 3db84fe9b9b9804b1e6259b15ff72cd5b70b7c13 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 2 Jul 2023 17:53:13 +0800 Subject: [PATCH] downloading --- .env.development | 2 +- src/api/types.ts | 16 ++++ src/components/cards/DownloadingCard.vue | 77 +++++++++++++++++ src/pages/downloading.vue | 90 +------------------- src/views/reorganize/DownloadingListView.vue | 46 ++++++++++ 5 files changed, 143 insertions(+), 88 deletions(-) create mode 100644 src/components/cards/DownloadingCard.vue create mode 100644 src/views/reorganize/DownloadingListView.vue diff --git a/.env.development b/.env.development index 64c2bdd4..d78c77aa 100644 --- a/.env.development +++ b/.env.development @@ -1 +1 @@ -VITE_API_BASE_URL=http://10.10.10.10:3001/api/v1/ +VITE_API_BASE_URL=http://10.10.10.105:3001/api/v1/ diff --git a/src/api/types.ts b/src/api/types.ts index 9e60d3f3..eb359107 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -154,3 +154,19 @@ export interface Site { // 是否启用 is_active: boolean } + + +// 正在下载 +export interface DownloadingInfo { + hash?: string + title?: string + name?: string + year?: string + season_episode?: string + size?: number + progress?: number + state?: string + dlspeed?: string + upspeed?: string + media: {[key: string]: any} + } diff --git a/src/components/cards/DownloadingCard.vue b/src/components/cards/DownloadingCard.vue new file mode 100644 index 00000000..6053f152 --- /dev/null +++ b/src/components/cards/DownloadingCard.vue @@ -0,0 +1,77 @@ + + + diff --git a/src/pages/downloading.vue b/src/pages/downloading.vue index de26debc..dc021376 100644 --- a/src/pages/downloading.vue +++ b/src/pages/downloading.vue @@ -1,93 +1,9 @@ - diff --git a/src/views/reorganize/DownloadingListView.vue b/src/views/reorganize/DownloadingListView.vue new file mode 100644 index 00000000..f188d044 --- /dev/null +++ b/src/views/reorganize/DownloadingListView.vue @@ -0,0 +1,46 @@ + + + + +