diff --git a/components.d.ts b/components.d.ts index 266874d..ebbf1d5 100644 --- a/components.d.ts +++ b/components.d.ts @@ -16,6 +16,7 @@ declare module 'vue' { NCheckbox: typeof import('naive-ui')['NCheckbox'] NCollapseTransition: typeof import('naive-ui')['NCollapseTransition'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] + NDatePicker: typeof import('naive-ui')['NDatePicker'] NDialog: typeof import('naive-ui')['NDialog'] NDialogProvider: typeof import('naive-ui')['NDialogProvider'] NDropdown: typeof import('naive-ui')['NDropdown'] @@ -31,6 +32,7 @@ declare module 'vue' { NModalProvider: typeof import('naive-ui')['NModalProvider'] NNotificationProvider: typeof import('naive-ui')['NNotificationProvider'] NPagination: typeof import('naive-ui')['NPagination'] + NPopover: typeof import('naive-ui')['NPopover'] NProgress: typeof import('naive-ui')['NProgress'] NQrCode: typeof import('naive-ui')['NQrCode'] NRadioButton: typeof import('naive-ui')['NRadioButton'] diff --git a/src/App.vue b/src/App.vue index 50aa4b8..48305c1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,6 @@ - + diff --git a/src/AppContent.vue b/src/AppContent.vue index 585e219..3923f2d 100644 --- a/src/AppContent.vue +++ b/src/AppContent.vue @@ -11,6 +11,7 @@ import { PhClock, PhHeart, PhDownload, + PhPlayCircle, } from '@phosphor-icons/vue' import AboutDialog from './dialogs/AboutDialog.vue' import { platform } from '@tauri-apps/plugin-os' @@ -22,8 +23,9 @@ import WatchLaterPane from './panes/WatchLaterPane/WatchLaterPane.vue' import DownloadPane from './panes/DownloadPane/DownloadPane.vue' import { searchPaneRefKey, navDownloadButtonRefKey } from './injection_keys.ts' import BangumiFollowPane from './panes/BangumiFollow/BangumiFollowPane.vue' +import HistoryPane from './panes/HistoryPane/HistoryPane.vue' -export type CurrentNavName = 'search' | 'fav' | 'watch_later' | 'bangumi_follow' | 'download' +export type CurrentNavName = 'search' | 'fav' | 'history' | 'bangumi_follow' | 'watch_later' | 'download' const currentPlatform = platform() @@ -72,7 +74,7 @@ onMounted(() => { - 收藏 + 收藏夹 { - 稍后再看 + 历史记录 - + @click="store.currentNavName = 'history'" + :class="{ 'text-sky-5': store.currentNavName === 'history' }"> + @@ -108,7 +110,19 @@ onMounted(() => { - 下载 + 稍后再看 + + + + + + + + + 下载任务 { - + + + + diff --git a/src/panes/HistoryPane/HistoryPane.vue b/src/panes/HistoryPane/HistoryPane.vue new file mode 100644 index 0000000..94a1121 --- /dev/null +++ b/src/panes/HistoryPane/HistoryPane.vue @@ -0,0 +1,43 @@ + + + + + + + + diff --git a/src/panes/HistoryPane/components/HistoryCard.vue b/src/panes/HistoryPane/components/HistoryCard.vue new file mode 100644 index 0000000..8a1d25e --- /dev/null +++ b/src/panes/HistoryPane/components/HistoryCard.vue @@ -0,0 +1,205 @@ + + + + + + + {{ historyDetail.badge }} + + + + + {{ historyDetail.title }} + + + + + {{ historyDetail.author_name }} + + + {{ subTitle }} + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/panes/HistoryPane/components/HistoryPanel.vue b/src/panes/HistoryPane/components/HistoryPanel.vue new file mode 100644 index 0000000..ea3ed68 --- /dev/null +++ b/src/panes/HistoryPane/components/HistoryPanel.vue @@ -0,0 +1,359 @@ + + + + + + + + + + + + + 全部时长 + 10分钟以下 + 10-30分钟 + 30-60分钟 + 60分钟以上 + + + tabName !== 'date-picker'"> + 全部时间 + 今天 + 昨天 + 近一周 + + + + + + + 全部设备 + PC + 手机 + 平板 + TV + + + + + + + + + + + + + + 左键拖动进行框选,右键打开菜单 + + + + + + + + + + + + + + 下载勾选视频 + + + + + + +