From b3f6255768956174f18eac375bebd59f5c56f925 Mon Sep 17 00:00:00 2001 From: Rewrite0 Date: Thu, 7 Mar 2024 20:28:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9RSS=E6=9D=A1=E7=9B=AE?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webui/src/App.vue | 11 +++ webui/src/components/ab-rss-item.vue | 46 ----------- webui/src/i18n/zh-CN.json | 2 +- webui/src/pages/index/rss.vue | 111 ++++++++++++++++----------- webui/src/store/rss.ts | 3 +- webui/unocss.config.ts | 1 + 6 files changed, 81 insertions(+), 93 deletions(-) delete mode 100644 webui/src/components/ab-rss-item.vue diff --git a/webui/src/App.vue b/webui/src/App.vue index bdd2062c..318a6f94 100644 --- a/webui/src/App.vue +++ b/webui/src/App.vue @@ -5,6 +5,17 @@ const theme: GlobalThemeOverrides = { Spin: { color: '#fff', }, + DataTable: { + thColor: 'rgba(255, 255, 255, 0)', + thColorHover: 'rgba(255, 255, 255, 0)', + tdColorHover: 'rgba(255, 255, 255, 0)', + }, + Checkbox: { + colorChecked: '#4e3c94', + borderFocus: '#4e3c94', + boxShadowFocus: '0 0 0 2px rgba(78, 60, 148, 0.2)', + borderChecked: '1px solid #4e3c94', + }, }; const { refresh, isLoggedIn } = useAuth(); diff --git a/webui/src/components/ab-rss-item.vue b/webui/src/components/ab-rss-item.vue deleted file mode 100644 index 4dcda943..00000000 --- a/webui/src/components/ab-rss-item.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - diff --git a/webui/src/i18n/zh-CN.json b/webui/src/i18n/zh-CN.json index bde31b3d..a8efc40b 100644 --- a/webui/src/i18n/zh-CN.json +++ b/webui/src/i18n/zh-CN.json @@ -129,7 +129,7 @@ "selectbox": "选择", "status": "状态", "title": "RSS 条目", - "url": "Url" + "url": "链接" }, "sidebar": { "calendar": "番剧日历", diff --git a/webui/src/pages/index/rss.vue b/webui/src/pages/index/rss.vue index bbb93a7c..860a0959 100644 --- a/webui/src/pages/index/rss.vue +++ b/webui/src/pages/index/rss.vue @@ -1,8 +1,12 @@ - - - diff --git a/webui/src/store/rss.ts b/webui/src/store/rss.ts index cfba9874..8c645d3e 100644 --- a/webui/src/store/rss.ts +++ b/webui/src/store/rss.ts @@ -1,7 +1,7 @@ import type { RSS } from '#/rss'; export const useRSSStore = defineStore('rss', () => { - const rss = ref(); + const rss = ref([]); const selectedRSS = ref([]); async function getAll() { @@ -21,6 +21,7 @@ export const useRSSStore = defineStore('rss', () => { showMessage: true, onSuccess() { getAll(); + selectedRSS.value = []; }, }; diff --git a/webui/unocss.config.ts b/webui/unocss.config.ts index 2288715c..2719559e 100644 --- a/webui/unocss.config.ts +++ b/webui/unocss.config.ts @@ -61,6 +61,7 @@ export default defineConfig({ ], shortcuts: [ [/^wh-(.*)$/, ([, t]) => `w-${t} h-${t}`], + [/^text-limit-(\d{0,})$/, ([, n]) => `line-clamp-${n}`], // position {