You've already forked pages
forked from didirus/AstralRinth
Add frontend support for Geyser Extension plugin loader (#4735)
This commit is contained in:
@@ -93,6 +93,8 @@ export interface SortType {
|
|||||||
name: string
|
name: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const PLUGIN_PLATFORMS = ['bungeecord', 'waterfall', 'velocity', 'geyser']
|
||||||
|
|
||||||
export function useSearch(
|
export function useSearch(
|
||||||
projectTypes: Ref<ProjectType[]>,
|
projectTypes: Ref<ProjectType[]>,
|
||||||
tags: Ref<Tags>,
|
tags: Ref<Tags>,
|
||||||
@@ -298,7 +300,7 @@ export function useSearch(
|
|||||||
.filter(
|
.filter(
|
||||||
(loader) =>
|
(loader) =>
|
||||||
loader.supported_project_types.includes('plugin') &&
|
loader.supported_project_types.includes('plugin') &&
|
||||||
!['bungeecord', 'waterfall', 'velocity'].includes(loader.name),
|
!PLUGIN_PLATFORMS.includes(loader.name),
|
||||||
)
|
)
|
||||||
.map((loader) => {
|
.map((loader) => {
|
||||||
return {
|
return {
|
||||||
@@ -324,7 +326,7 @@ export function useSearch(
|
|||||||
supports_negative_filter: true,
|
supports_negative_filter: true,
|
||||||
searchable: false,
|
searchable: false,
|
||||||
options: tags.value.loaders
|
options: tags.value.loaders
|
||||||
.filter((loader) => ['bungeecord', 'waterfall', 'velocity'].includes(loader.name))
|
.filter((loader) => PLUGIN_PLATFORMS.includes(loader.name))
|
||||||
.map((loader) => {
|
.map((loader) => {
|
||||||
return {
|
return {
|
||||||
id: loader.name,
|
id: loader.name,
|
||||||
|
|||||||
@@ -191,6 +191,8 @@ export const formatCategory = (name) => {
|
|||||||
return 'Resource Pack'
|
return 'Resource Pack'
|
||||||
} else if (name === 'vanilla') {
|
} else if (name === 'vanilla') {
|
||||||
return 'Vanilla Shader'
|
return 'Vanilla Shader'
|
||||||
|
} else if (name === 'geyser') {
|
||||||
|
return 'Geyser Extension'
|
||||||
}
|
}
|
||||||
return capitalizeString(name)
|
return capitalizeString(name)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user