diff --git a/website/src/.vitepress/theme/components/Extensions/ExtensionFilters.vue b/website/src/.vitepress/theme/components/Extensions/ExtensionFilters.vue index cc655a6c..229ada21 100644 --- a/website/src/.vitepress/theme/components/Extensions/ExtensionFilters.vue +++ b/website/src/.vitepress/theme/components/Extensions/ExtensionFilters.vue @@ -15,21 +15,18 @@ import { import { langName, simpleLangName } from '../../../config/scripts/languages' import type { Extension } from '../../queries/useExtensionsRepositoryQuery' -export type Nsfw = 'Show all' | 'NSFW' | 'SFW' export type Sort = 'Ascending' | 'Descending' const props = defineProps<{ extensions: Extension[][] search: string lang: string[] - nsfw: Nsfw sort: Sort }>() defineEmits<{ (e: 'update:search', search: string): void (e: 'update:lang', lang: string[]): void - (e: 'update:nsfw', nsfw: Nsfw): void (e: 'update:sort', sort: Sort): void }>() @@ -76,16 +73,6 @@ const labelPosition = computed(() => isSmallScreen.value ? 'top' : 'right') - - - - - - - diff --git a/website/src/.vitepress/theme/components/Extensions/ExtensionItem.vue b/website/src/.vitepress/theme/components/Extensions/ExtensionItem.vue index 9e6bcdb8..fad0bbf2 100644 --- a/website/src/.vitepress/theme/components/Extensions/ExtensionItem.vue +++ b/website/src/.vitepress/theme/components/Extensions/ExtensionItem.vue @@ -12,7 +12,6 @@ const pkgId = computed(() => { }) const pkgName = computed(() => item.value.name.split(': ')[1]) -const pkgIsNsfw = computed(() => item.value.nsfw === 1) const iconUrl = computed(() => { return `https://raw.githubusercontent.com/tachiyomiorg/extensions/repo/icon/${item.value.pkg}.png` @@ -43,8 +42,7 @@ function handleAnalytics() { {{ pkgId }} - - + { @@ -22,7 +22,6 @@ const { data: extensions, isLoading } = useExtensionsRepositoryQuery({ const filters = reactive({ search: '', lang: [] as string[], - nsfw: 'Show all' as Nsfw, sort: 'Ascending' as Sort, }) @@ -65,9 +64,6 @@ const filteredExtensions = computed(() => { || ext.sources.some(source => source.id.includes(filters.search)), ) } - filteredGroup = filteredGroup.filter(ext => - filters.nsfw === 'Show all' ? true : ext.nsfw === (filters.nsfw === 'NSFW' ? 1 : 0), - ) if (filters.sort && filters.sort === 'Descending') filteredGroup = filteredGroup.reverse() @@ -109,7 +105,6 @@ watch([isLoading, loadingInstance], async ([newIsLoading]) => { diff --git a/website/src/.vitepress/theme/queries/useExtensionsRepositoryQuery.ts b/website/src/.vitepress/theme/queries/useExtensionsRepositoryQuery.ts index 1e6e9028..4c17a56b 100644 --- a/website/src/.vitepress/theme/queries/useExtensionsRepositoryQuery.ts +++ b/website/src/.vitepress/theme/queries/useExtensionsRepositoryQuery.ts @@ -12,9 +12,6 @@ export interface Extension { lang: string code: number version: string - nsfw: number - hasReadme: number - hasChangelog: number sources: Source[] }