From 257d409b66a2b8ade00406382340333fd40d514a Mon Sep 17 00:00:00 2001 From: XLor Date: Thu, 22 Feb 2024 15:21:00 +0800 Subject: [PATCH 01/10] feat: add tabs --- components/SearchResult.vue | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/components/SearchResult.vue b/components/SearchResult.vue index f5476e4..4ac59a3 100644 --- a/components/SearchResult.vue +++ b/components/SearchResult.vue @@ -3,20 +3,28 @@ import type { Detail } from 'get-bonus'; const props = defineProps<{ details: Record }>(); -const detailEntries = computed(() => { - return Object.entries(props.details).filter((d) => d[1].length > 0); -}); +const platforms = [`Melonbooks`, `Animate`, `虎穴`, `Comic Zin`, `漫画王`]; From 08834b0203b0a54e32ed12ea3b63852aaca1e553 Mon Sep 17 00:00:00 2001 From: XLor Date: Thu, 22 Feb 2024 15:41:48 +0800 Subject: [PATCH 02/10] fix: not margin top --- components/ResultItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ResultItem.vue b/components/ResultItem.vue index 2d78a95..b47da56 100644 --- a/components/ResultItem.vue +++ b/components/ResultItem.vue @@ -24,7 +24,7 @@ async function copyUrl() { {{ data.title }} - From de778ef94ef354bfc74f45ab424a2edae09dc7ca Mon Sep 17 00:00:00 2001 From: XLor Date: Thu, 22 Feb 2024 15:56:28 +0800 Subject: [PATCH 03/10] chore: some styles --- components/ResultItem.vue | 12 ++++++------ components/SearchResult.vue | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/ResultItem.vue b/components/ResultItem.vue index b47da56..4dccc57 100644 --- a/components/ResultItem.vue +++ b/components/ResultItem.vue @@ -35,13 +35,13 @@ async function copyUrl() { {{ data.provider }} - - 发售日:{{ data.date }} + 发售日:{{ data.date }} - - {{ data.price }} + {{ data.price }}
    diff --git a/components/SearchResult.vue b/components/SearchResult.vue index 4ac59a3..7d85cb1 100644 --- a/components/SearchResult.vue +++ b/components/SearchResult.vue @@ -15,7 +15,7 @@ const platforms = [`Melonbooks`, `Animate`, `虎穴`, `Comic Zin`, `漫画王`]; {{ id }} -
      +
      From d14c21f566610d4e58c91ac634c36464a7f42c05 Mon Sep 17 00:00:00 2001 From: XLor Date: Thu, 22 Feb 2024 16:25:38 +0800 Subject: [PATCH 04/10] feat: add scroll area --- components/ui/scroll-area/ScrollArea.vue | 29 +++++++++++++++++++++++ components/ui/scroll-area/ScrollBar.vue | 30 ++++++++++++++++++++++++ components/ui/scroll-area/index.ts | 2 ++ 3 files changed, 61 insertions(+) create mode 100644 components/ui/scroll-area/ScrollArea.vue create mode 100644 components/ui/scroll-area/ScrollBar.vue create mode 100644 components/ui/scroll-area/index.ts diff --git a/components/ui/scroll-area/ScrollArea.vue b/components/ui/scroll-area/ScrollArea.vue new file mode 100644 index 0000000..8243c54 --- /dev/null +++ b/components/ui/scroll-area/ScrollArea.vue @@ -0,0 +1,29 @@ + + + diff --git a/components/ui/scroll-area/ScrollBar.vue b/components/ui/scroll-area/ScrollBar.vue new file mode 100644 index 0000000..efaaee2 --- /dev/null +++ b/components/ui/scroll-area/ScrollBar.vue @@ -0,0 +1,30 @@ + + + diff --git a/components/ui/scroll-area/index.ts b/components/ui/scroll-area/index.ts new file mode 100644 index 0000000..2bd4fae --- /dev/null +++ b/components/ui/scroll-area/index.ts @@ -0,0 +1,2 @@ +export { default as ScrollArea } from './ScrollArea.vue' +export { default as ScrollBar } from './ScrollBar.vue' From 1e32d798f584063b44b841d5c7739d329528fda1 Mon Sep 17 00:00:00 2001 From: arcHarico Date: Fri, 23 Feb 2024 12:09:00 +0800 Subject: [PATCH 05/10] fix: add missing platform --- components/SearchResult.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/SearchResult.vue b/components/SearchResult.vue index 7d85cb1..b0e45b0 100644 --- a/components/SearchResult.vue +++ b/components/SearchResult.vue @@ -3,7 +3,7 @@ import type { Detail } from 'get-bonus'; const props = defineProps<{ details: Record }>(); -const platforms = [`Melonbooks`, `Animate`, `虎穴`, `Comic Zin`, `漫画王`]; +const platforms = [`Melonbooks`, `Animate`, `虎穴`, `Gamers`, `Comic Zin`, `漫画王`];