Added BTS and VR to tag filter settings.

This commit is contained in:
DebaucheryLibrarian 2024-08-22 02:16:02 +02:00
parent 333df9c141
commit 8226742aab
2 changed files with 18 additions and 14 deletions

View File

@ -8,16 +8,17 @@
<ul class="tags nolist">
<li
v-for="tag in tags"
:key="`tag-${tag}`"
v-for="(label, slug) in tags"
:key="`tag-${slug}`"
class="tags-item"
>
<label class="tag noselect">
<Checkbox
:checked="checkedTags.has(tag)"
:value="slug"
:checked="checkedTags.has(slug)"
class="minus"
@change="(checked) => toggleTag(tag, checked)"
/>{{ tag }}
@change="(checked) => toggleTag(slug, checked)"
/>{{ label }}
</label>
</li>
</ul>
@ -37,14 +38,16 @@ const cookies = Cookies.withConverter({
write: (value) => value,
});
const tags = [
'anal',
'anal prolapse',
'bisexual',
'gay',
'pissing',
'transsexual',
];
const tags = {
anal: 'anal',
'anal-prolapse': 'anal prolapse',
pissing: 'pissing',
gay: 'gay',
transsexual: 'transsexual',
bisexual: 'bisexual',
bts: 'behind the scenes',
vr: 'virtual reality',
};
const storedTags = cookies.get('tags');
const checkedTags = ref(new Set(storedTags ? JSON.parse(storedTags) : []));
@ -65,6 +68,7 @@ function toggleTag(tag, isChecked) {
padding: 1rem;
width: 30rem;
max-width: 100%;
overflow-y: auto;
}
.tags-item {

2
static

@ -1 +1 @@
Subproject commit c89bb13c5235d509dc628c67875af301cb100c7d
Subproject commit 6b062200fb4080aa9aeb3aa831623c6257f98c45