Removed channel ID from Gamma update query to prevent duplicate scenes. Added sexuality tags with covers to overview.

This commit is contained in:
DebaucheryLibrarian
2022-02-08 00:19:34 +01:00
parent 03d96d4dec
commit 9b7879bff7
8 changed files with 37 additions and 6 deletions

View File

@@ -50,6 +50,7 @@ const tagSlugsByCategory = {
'facial',
'creampie',
'squirting',
'transsexual',
],
appearance: [
'asian',
@@ -64,6 +65,11 @@ const tagSlugsByCategory = {
'tattoos',
'piercings',
],
sexuality: [
'gay',
'bisexual',
'transsexual',
],
oral: [
'blowjob',
'pussy-eating',
@@ -162,10 +168,18 @@ async function fetchTags() {
const tagsBySlug = tags.reduce((acc, tag) => ({ ...acc, [tag.slug]: tag }), {});
this.categories = Object.entries(tagSlugsByCategory).reduce((acc, [category, tagSlugs]) => ({
...acc,
[category]: tagSlugs.map(tagSlug => tagsBySlug[tagSlug]),
}), {});
this.categories = Object.entries(tagSlugsByCategory).reduce((acc, [category, tagSlugs]) => {
const categoryTags = tagSlugs.map((tagSlug) => tagsBySlug[tagSlug]).filter(Boolean);
if (categoryTags.length === 0) {
return acc;
}
return {
...acc,
[category]: categoryTags,
};
}, {});
}
async function searchTags() {
@@ -202,6 +216,7 @@ export default {
},
watch: {
$route: fetchTags,
'$store.state.ui.tagFilter': fetchTags,
},
mounted,
methods: {

View File

@@ -210,9 +210,15 @@ function initTagsActions(store, _router) {
query Tags(
$slugs: [String!] = [],
$limit: Int = 100
$exclude: [String!]
) {
tags(
filter: { slug: { in: $slugs } },
filter: {
slug: {
in: $slugs
notIn: $exclude
}
},
first: $limit
) {
id
@@ -257,6 +263,7 @@ function initTagsActions(store, _router) {
`, {
slugs,
limit,
exclude: store.state.ui.tagFilter,
});
return tags.map((tag) => curateTag(tag, store.state.ui.sfw));