Skip to content

Commit

Permalink
chore: remove nsfw filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeraa committed Apr 1, 2024
1 parent 66f183d commit 4d87780
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/components/StoreCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
export default {
name: "StoreCard",
mixins: [PresenceMixin],
props: ["presence", "submit", "nsfw", "hot", "partner", "altnamesSearch"],
props: ["presence", "submit", "hot", "partner", "altnamesSearch"],
data() {
return {
cardHovered: false,
Expand Down
18 changes: 2 additions & 16 deletions src/pages/store/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,6 @@
</label>
</div>

<div class="checkbox-switcher">
<label>
<input type="checkbox" v-model="nsfw" />
<span ref="checkbox" class="checkbox-container"></span>
<span class="title">
{{ $t("store.category.filters.allowAdult") }}
</span>
</label>
</div>

<div class="checkbox-switcher">
<label>
<input type="checkbox" v-model="filterLiked" />
Expand Down Expand Up @@ -263,8 +253,8 @@
head: {
title: "Store"
},
async fetch() {
/* if(process.browser)
async fetch() {
/* if(process.browser)
this.$nuxt.$loading.start(); */
const { presences, partners, science } = await this.$graphql(
Expand Down Expand Up @@ -327,7 +317,6 @@
topPresences: [],
partners: [],
hotPresences: [],
nsfw: false,
mostUsed: true,
showAdded: true,
filterLiked: false,
Expand Down Expand Up @@ -409,9 +398,6 @@
).length > 0)
);
})
.filter(presence =>
this.nsfw ? true : !presence.metadata.tags.includes("nsfw")
)
.filter(presence =>
this.filterLiked &&
this.$store.state.presences.likedPresences.includes(
Expand Down

0 comments on commit 4d87780

Please sign in to comment.