From 99b7a6d0f2cab07726c9f00970694f715012c881 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 7 Jul 2023 11:51:20 +0800 Subject: [PATCH] add plugin listview --- src/api/types.ts | 30 +++- src/components/cards/PluginCard.vue | 23 +++ src/pages/plugin.vue | 183 +---------------------- src/views/setting/PluginCardListView.vue | 51 +++++++ 4 files changed, 110 insertions(+), 177 deletions(-) create mode 100644 src/components/cards/PluginCard.vue create mode 100644 src/views/setting/PluginCardListView.vue diff --git a/src/api/types.ts b/src/api/types.ts index d08bebfa..6e50b7d7 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -214,7 +214,7 @@ export interface DownloadingInfo { media: { [key: string]: any } } - +// 缺失剧集信息 export interface NotExistMediaInfo { // 季 season: number @@ -225,3 +225,31 @@ export interface NotExistMediaInfo { // 开始集 start_episode: number } + +// 插件 +export interface Plugin { + id?: string + // 插件名称 + plugin_name?: string + // 插件描述 + plugin_desc?: string + // 插件图标 + plugin_icon?: string + // 主题色 + plugin_color?: string + // 插件版本 + plugin_version?: string + // 插件作者 + plugin_author?: string + // 作者主页 + author_url?: string + // 插件配置项ID前缀 + plugin_config_prefix?: string + // 加载顺序 + plugin_order?: number + // 可使用的用户级别 + auth_level?: number + // 是否已安装 + installed?: boolean + +} diff --git a/src/components/cards/PluginCard.vue b/src/components/cards/PluginCard.vue new file mode 100644 index 00000000..9efc04ac --- /dev/null +++ b/src/components/cards/PluginCard.vue @@ -0,0 +1,23 @@ + + diff --git a/src/pages/plugin.vue b/src/pages/plugin.vue index b333bf3f..21dd63a1 100644 --- a/src/pages/plugin.vue +++ b/src/pages/plugin.vue @@ -1,178 +1,9 @@ + + diff --git a/src/views/setting/PluginCardListView.vue b/src/views/setting/PluginCardListView.vue new file mode 100644 index 00000000..5dde3c46 --- /dev/null +++ b/src/views/setting/PluginCardListView.vue @@ -0,0 +1,51 @@ + + + + +