You've already forked AstralRinth
feat: collapse uncommon plugin loaders behind "Show more" (#6342)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user