mirror of
https://github.com/modrinth/code.git
synced 2026-08-30 19:46:33 +00:00
move loaders up
This commit is contained in:
+9
-9
@@ -347,6 +347,15 @@ export const backgroundOptions = [
|
||||
] as const
|
||||
|
||||
export const symbolOptions = [
|
||||
/////////////////////////
|
||||
// loaders
|
||||
/////////////////////////
|
||||
|
||||
{ id: 'fabric', name: names.fabric, asset: fabric, category: 'loader' },
|
||||
{ id: 'forge', name: names.forge, asset: forge, category: 'loader' },
|
||||
{ id: 'neoforge', name: names.neoForge, asset: neoForge, category: 'loader' },
|
||||
{ id: 'quilt', name: names.quilt, asset: quilt, category: 'loader' },
|
||||
|
||||
// Cobblemon: Poké Ball
|
||||
{ id: 'poke_ball', name: names.pokeBall, asset: pokeBall, category: 'modded' },
|
||||
|
||||
@@ -446,15 +455,6 @@ export const symbolOptions = [
|
||||
{ id: 'lantern', name: names.lantern, asset: lantern, category: 'vanilla' },
|
||||
{ id: 'tnt', name: names.tnt, asset: tnt, category: 'vanilla' },
|
||||
{ id: 'command_block', name: names.commandBlock, asset: commandBlock, category: 'vanilla' },
|
||||
|
||||
/////////////////////////
|
||||
// loaders
|
||||
/////////////////////////
|
||||
|
||||
{ id: 'fabric', name: names.fabric, asset: fabric, category: 'loader' },
|
||||
{ id: 'forge', name: names.forge, asset: forge, category: 'loader' },
|
||||
{ id: 'neoforge', name: names.neoForge, asset: neoForge, category: 'loader' },
|
||||
{ id: 'quilt', name: names.quilt, asset: quilt, category: 'loader' },
|
||||
] as const
|
||||
|
||||
export type BackgroundId = (typeof backgroundOptions)[number]['id']
|
||||
|
||||
@@ -67,7 +67,6 @@ const selectedSymbolOption = computed(
|
||||
() => symbolOptions.find((option) => option.id === selectedSymbol.value)!,
|
||||
)
|
||||
const vanillaSymbolStartIndex = symbolOptions.findIndex((option) => option.category === 'vanilla')
|
||||
const loaderSymbolStartIndex = symbolOptions.findIndex((option) => option.category === 'loader')
|
||||
const selectedConfig = computed<InstanceIconConfig>(() => ({
|
||||
background: { ...selectedBackgroundOption.value.background },
|
||||
symbol: selectedSymbol.value,
|
||||
@@ -454,7 +453,7 @@ const messages = defineMessages({
|
||||
<div class="grid grid-cols-6 gap-2.5">
|
||||
<template v-for="(option, index) in symbolOptions" :key="option.id">
|
||||
<hr
|
||||
v-if="index === vanillaSymbolStartIndex || index === loaderSymbolStartIndex"
|
||||
v-if="index === vanillaSymbolStartIndex"
|
||||
class="col-span-6 my-2.5 mx-1 w-full border-0 border-t border-solid border-surface-5"
|
||||
/>
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user