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

2
static

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