webui: add rss manage function.

This commit is contained in:
EstrellaXD
2023-09-05 00:37:36 +08:00
parent 20c3c42f8a
commit fdd67697bd
17 changed files with 185 additions and 107 deletions

View File

@@ -65,6 +65,7 @@ defineEmits(['click']);
<div text-h3 truncate>{{ name }}</div>
<ab-tag
:title="`Season ${season}`"
type="primary"
/>
</div>
</div>
@@ -90,6 +91,7 @@ defineEmits(['click']);
<div flex space-x-8px>
<ab-tag
:title="`Season ${season}`"
type="primary"
/>
<ab-tag
v-if="group !== ''"
@@ -99,7 +101,7 @@ defineEmits(['click']);
</div>
</div>
</div>
<ab-add round="true" type="medium" @click="()=> $emit('click')"/>
<ab-add :round="true" type="medium" @click="()=> $emit('click')"/>
</div>
</div>
</template>

View File

@@ -10,11 +10,13 @@ withDefaults(
parser: string;
}>(),
{
enable: false,
aggregate: false,
}
);
const select = ref(false);
defineEmits(['on-select']);
const checked = ref(false);
</script>
<template>
@@ -22,8 +24,9 @@ const select = ref(false);
<div class="left-side" flex space-x-40px>
<ab-checkbox
small
:model-value="select"
@update:model-value="select = $event"
:model-value="checked"
@update:model-value="checked = $event"
@click="() => $emit('on-select')"
/>
<div w-200px text-h3 truncate>{{ name }}</div>
<div w-300px text-h3 truncate>{{ url }}</div>

View File

@@ -14,8 +14,8 @@ const props = withDefaults(
);
const emit = defineEmits(['update:value', 'click-search']);
const { site, providers, bangumiInfo$} = storeToRefs(useSearchStore());
const { getProviders, onInput } = useSearchStore();
const {site, providers } = storeToRefs(useSearchStore());
const {getProviders} = useSearchStore();
onMounted(() => {
getProviders();
@@ -60,8 +60,7 @@ function onSearch() {
:value="value"
:placeholder="placeholder"
input-reset
@keyup.enter="onInput"
@input="onInput"
@keyup.enter="onSearch"
/>
<div
h-full
@@ -104,15 +103,18 @@ function onSearch() {
</div>
</div>
</div>
<div abs top-84px left-200px z-98>
<ab-bangumi-card
name="name"
season=1
poster=""
group="Lilith-Raws"
type="search"
/>
</div>
<!-- <div -->
<!-- v-if="bangumiInfo$" -->
<!-- abs top-84px left-200px z-98> -->
<!-- <ab-bangumi-card-->
<!-- v-for="i in bangumiInfo$" -->
<!-- :key="i.id"-->
<!-- :poster="i.poster_link ?? ''" -->
<!-- :name="i.official_title" -->
<!-- :season="i.season" -->
<!-- :group="i.group_name" -->
<!-- /> -->
<!-- </div> -->
</template>
<style lang="scss" scoped>

View File

@@ -15,7 +15,6 @@ const props = withDefaults(
items: Array<SelectItem | string>;
}>(),
{
items: ['test1', 'test2'],
}
);

View File

@@ -58,6 +58,8 @@ const items = [
},
];
const onSearchFocus = ref(false);
onBeforeMount(() => {
onUpdate();
});
@@ -68,14 +70,14 @@ onUnmounted(() => {
</script>
<template>
<div h-60px bg-theme-row text-white rounded-12px fx-cer px-24px>
<div h-60px bg-theme-row text-white rounded-16px fx-cer px-24px>
<div flex space-x-16px>
<div fx-cer space-x-16px>
<img src="/images/logo-light.svg" alt="favicon" wh-24px/>
<img src="/images/AutoBangumi.svg" alt="AutoBangumi" h-24px rel top-2px/>
<img v-show="onSearchFocus === false" src="/images/AutoBangumi.svg" alt="AutoBangumi" h-24px rel top-2px/>
</div>
<ab-search v-model:value="search"/>
<ab-search/>
</div>
<div ml-auto>