Sticker CRUD

This commit is contained in:
2024-09-26 21:22:34 +08:00
parent 7151d71463
commit 9e7881745a
7 changed files with 449 additions and 22 deletions

View File

@@ -10,7 +10,7 @@
<v-select
label="Storage pool"
variant="underlined"
variant="solo"
:items="poolOptions"
item-title="label"
item-value="value"
@@ -80,10 +80,21 @@ useHead({
})
const { t } = useI18n()
const route = useRoute()
onMounted(() => {
if (route.query.pool) {
pool.value = atob(decodeURIComponent(route.query.pool.toString()))
if (pool.value == "dedicated") {
pool.value = poolOptions[0].value
}
}
})
const poolOptions = [
{ label: "Interactive", description: "Public indexable, no lifecycle.", value: "interactive" },
{ label: "Messaging", description: "Has lifecycle, will delete after 14 days.", value: "messaging" },
{ label: "Sticker", description: "Public indexable, privilege required.", value: "sticker", disabled: true },
{ label: "Dedicated Pool", description: "Your own configuration, coming soon.", value: "dedicated", disabled: true },
]