Added dark and SFW modes.

This commit is contained in:
2020-03-23 01:43:49 +01:00
parent fdb2b132f6
commit 58ead7b426
288 changed files with 1316 additions and 156 deletions

View File

@@ -31,6 +31,12 @@ function initTagsActions(store, _router) {
thumbnail
path
comment
sfw: sfwMedia {
id
thumbnail
path
comment
}
}
}
photos: tagsPhotos {
@@ -39,6 +45,12 @@ function initTagsActions(store, _router) {
thumbnail
path
comment
sfw: sfwMedia {
id
thumbnail
path
comment
}
}
}
releases: releasesTags(
@@ -81,7 +93,7 @@ function initTagsActions(store, _router) {
exclude: store.state.ui.filter,
});
return curateTag(tagBySlug);
return curateTag(tagBySlug, store);
}
async function fetchTags({ _commit }, {
@@ -110,6 +122,9 @@ function initTagsActions(store, _router) {
poster: tagsPosterByTagId {
media {
thumbnail
sfw: sfwMedia {
thumbnail
}
}
}
group {
@@ -123,7 +138,7 @@ function initTagsActions(store, _router) {
limit,
});
return tags.map(tag => curateTag(tag));
return tags.map(tag => curateTag(tag, store.state.ui.sfw));
}
async function fetchTagReleases({ _commit }, tagId) {