Update 'Tags to ignore' interface

pull/57/merge
neobooru 2026-08-18 23:24:43 +02:00
parent 646241b45f
commit 381dac72d4
2 changed files with 63 additions and 58 deletions

View File

@ -103,7 +103,7 @@ async function importTagCategoriesFromInstance() {
} }
function addTagIgnore() { function addTagIgnore() {
cfg.value.tagIgnores.push(new TagDetails([""])) cfg.value.tagIgnores.push(new TagDetails([""]));
} }
function resetTagIgnores() { function resetTagIgnores() {
@ -152,10 +152,7 @@ wnd.szc_set_config_version = (v = 0) => (cfg.value.version = v);
<input type="checkbox" v-model="cfg.alwaysUploadAsContent" /> <input type="checkbox" v-model="cfg.alwaysUploadAsContent" />
Always upload as content Always upload as content
</label> </label>
<p class="hint"> <p class="hint">This will always upload the image content directly, instead of as an URL</p>
This will always upload the image content directly, instead of
as an URL
</p>
</div> </div>
<div class="col-12 md:col-6"> <div class="col-12 md:col-6">
@ -164,8 +161,8 @@ wnd.szc_set_config_version = (v = 0) => (cfg.value.version = v);
Send browser notifications after uploading Send browser notifications after uploading
</label> </label>
<p class="hint"> <p class="hint">
This will send a browser notification after a successful upload. Clicking the notification will open This will send a browser notification after a successful upload. Clicking the notification will open the
the uploaded post in a new tab. uploaded post in a new tab.
</p> </p>
</div> </div>
@ -279,6 +276,7 @@ wnd.szc_set_config_version = (v = 0) => (cfg.value.version = v);
</TabPanel> </TabPanel>
<TabPanel header="Tags"> <TabPanel header="Tags">
<div class="separated-content">
<div class="grid"> <div class="grid">
<DataTable :value="cfg.tagCategories" table-class="col-12" style="width: 100%"> <DataTable :value="cfg.tagCategories" table-class="col-12" style="width: 100%">
<Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header"> <Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header">
@ -321,7 +319,7 @@ wnd.szc_set_config_version = (v = 0) => (cfg.value.version = v);
<div class="grid"> <div class="grid">
<DataTable :value="cfg.tagIgnores" table-class="col-12" style="width: 100%"> <DataTable :value="cfg.tagIgnores" table-class="col-12" style="width: 100%">
<Column field="names" :header="'Names'"> <Column field="names" header="Tags to ignore">
<template #body="{ data, field }"> <template #body="{ data, field }">
<input type="text" :name="field" v-model="data[field][0]" /> <input type="text" :name="field" v-model="data[field][0]" />
</template> </template>
@ -341,6 +339,7 @@ wnd.szc_set_config_version = (v = 0) => (cfg.value.version = v);
</div> </div>
<!-- TODO: Category ignore list --> <!-- TODO: Category ignore list -->
</div>
</TabPanel> </TabPanel>
<!-- <TabPanel header="About"> <!-- <TabPanel header="About">

View File

@ -268,3 +268,9 @@ a.remove-tag {
.color-primary { .color-primary {
color: var(--primary-color); color: var(--primary-color);
} }
.separated-content > * + * {
padding-top: 1rem;
margin-top: 1.5rem;
border-top: 3px solid #333;
}