diff --git a/src/api/types.ts b/src/api/types.ts index 04ef8cff..2cb740ab 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -1244,3 +1244,11 @@ export interface DiscoverSource { // 过滤参数UI配置 filter_ui: RenderProps[] } + +// 推荐的数据源 +export interface RecommendSource { + // 数据源名称 + name: string + // 媒体数据源API地址 + api_path: string +} diff --git a/src/layouts/components/Footer.vue b/src/layouts/components/Footer.vue index 3781ca3c..8f2dbb7c 100644 --- a/src/layouts/components/Footer.vue +++ b/src/layouts/components/Footer.vue @@ -10,7 +10,7 @@ const route = useRoute() const activeState = computed(() => { return { home: route.path === '/dashboard', - ranking: route.path === '/ranking', + recommend: route.path === '/recommend', movie: route.path === '/subscribe/movie', tv: route.path === '/subscribe/tv', apps: route.path === '/apps', @@ -31,8 +31,8 @@ const activeState = computed(() => { mdi-home mdi-home-outline - - mdi-star + + mdi-star mdi-star-outline diff --git a/src/pages/ranking.vue b/src/pages/ranking.vue deleted file mode 100644 index cad04ff0..00000000 --- a/src/pages/ranking.vue +++ /dev/null @@ -1,77 +0,0 @@ - - - diff --git a/src/pages/recommend.vue b/src/pages/recommend.vue new file mode 100644 index 00000000..2483400a --- /dev/null +++ b/src/pages/recommend.vue @@ -0,0 +1,192 @@ + + + diff --git a/src/router/index.ts b/src/router/index.ts index 12b549cb..b1f8860d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -28,8 +28,8 @@ const router = createRouter({ }, }, { - path: '/ranking', - component: () => import('../pages/ranking.vue'), + path: '/recommend', + component: () => import('../pages/recommend.vue'), meta: { keepAlive: true, requiresAuth: true, diff --git a/src/router/menu.ts b/src/router/menu.ts index ef95b980..e92505f0 100644 --- a/src/router/menu.ts +++ b/src/router/menu.ts @@ -18,7 +18,7 @@ export const SystemNavMenus = [ { title: '推荐', icon: 'mdi-star-outline', - to: '/ranking', + to: '/recommend', header: '发现', admin: false, footer: true, diff --git a/src/views/discover/BangumiView.vue b/src/views/discover/BangumiView.vue index ae544509..4a062b09 100644 --- a/src/views/discover/BangumiView.vue +++ b/src/views/discover/BangumiView.vue @@ -102,6 +102,6 @@ watch([filterParams], () => {
- +
diff --git a/src/views/discover/DoubanView.vue b/src/views/discover/DoubanView.vue index d180d6da..0000b1fa 100644 --- a/src/views/discover/DoubanView.vue +++ b/src/views/discover/DoubanView.vue @@ -197,6 +197,6 @@ watch([type, filterParams], () => {
- +
diff --git a/src/views/discover/TheMovieDbView.vue b/src/views/discover/TheMovieDbView.vue index c91abc43..af356395 100644 --- a/src/views/discover/TheMovieDbView.vue +++ b/src/views/discover/TheMovieDbView.vue @@ -173,6 +173,6 @@ watch([type, filterParams], () => {
- +
diff --git a/vite.config.ts b/vite.config.ts index 42bdd9b3..350d279a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -101,7 +101,7 @@ export default defineConfig({ 'shortcuts': [ { 'name': '推荐', - 'url': './ranking', + 'url': './recommend', 'icons': [ { 'src': './sparkles-icon-192x192.png',