mirror of
https://github.com/modrinth/code.git
synced 2026-08-28 02:24:56 +00:00
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 { defineMessage, useVIntl } from '../composables/i18n'
|
||||||
import {
|
import {
|
||||||
DEFAULT_MOD_LOADERS,
|
DEFAULT_MOD_LOADERS,
|
||||||
|
DEFAULT_PLUGIN_LOADERS,
|
||||||
DEFAULT_SHADER_LOADERS,
|
DEFAULT_SHADER_LOADERS,
|
||||||
formatCategory,
|
formatCategory,
|
||||||
formatCategoryHeader,
|
formatCategoryHeader,
|
||||||
@@ -311,7 +312,8 @@ export function useSearch(
|
|||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
supported_project_types: ['plugin'],
|
supported_project_types: ['plugin'],
|
||||||
display: 'all',
|
display: 'expandable',
|
||||||
|
default_values: DEFAULT_PLUGIN_LOADERS,
|
||||||
query_param: 'g',
|
query_param: 'g',
|
||||||
supports_negative_filter: true,
|
supports_negative_filter: true,
|
||||||
searchable: false,
|
searchable: false,
|
||||||
|
|||||||
@@ -573,6 +573,7 @@ export const categoryMessages = defineMessages({
|
|||||||
})
|
})
|
||||||
|
|
||||||
export const DEFAULT_MOD_LOADERS: string[] = ['fabric', 'forge', 'neoforge']
|
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']
|
export const DEFAULT_SHADER_LOADERS: string[] = ['iris', 'optifine', 'vanilla']
|
||||||
|
|
||||||
const DEFAULT_LOADER_NAMES = new Set([...DEFAULT_MOD_LOADERS, ...DEFAULT_SHADER_LOADERS])
|
const DEFAULT_LOADER_NAMES = new Set([...DEFAULT_MOD_LOADERS, ...DEFAULT_SHADER_LOADERS])
|
||||||
|
|||||||
Reference in New Issue
Block a user