feat: collapse uncommon plugin loaders behind "Show more" (#6342)

This commit is contained in:
Prospector
2026-06-08 15:53:42 -07:00
committed by GitHub
parent 1cedbe5fda
commit b5d1aeda85
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -7,6 +7,7 @@ import { type LocationQueryRaw, type LocationQueryValue, useRoute } from 'vue-ro
import { defineMessage, useVIntl } from '../composables/i18n'
import {
DEFAULT_MOD_LOADERS,
DEFAULT_PLUGIN_LOADERS,
DEFAULT_SHADER_LOADERS,
formatCategory,
formatCategoryHeader,
@@ -311,7 +312,8 @@ export function useSearch(
}),
),
supported_project_types: ['plugin'],
display: 'all',
display: 'expandable',
default_values: DEFAULT_PLUGIN_LOADERS,
query_param: 'g',
supports_negative_filter: true,
searchable: false,
+1
View File
@@ -573,6 +573,7 @@ export const categoryMessages = defineMessages({
})
export const DEFAULT_MOD_LOADERS: string[] = ['fabric', 'forge', 'neoforge']
export const DEFAULT_PLUGIN_LOADERS: string[] = ['paper', 'spigot']
export const DEFAULT_SHADER_LOADERS: string[] = ['iris', 'optifine', 'vanilla']
const DEFAULT_LOADER_NAMES = new Set([...DEFAULT_MOD_LOADERS, ...DEFAULT_SHADER_LOADERS])