feat(redesign): re-skin plugin-config editors + Loot Builder to DS (Phase D batch 3)
All checks were successful
Test Asgard Runner / test (push) Successful in 2s
All checks were successful
Test Asgard Runner / test (push) Successful in 2s
10 plugin-config views (LootBuilder, RaidableBases, Teleport, Kits, Gather, AutoDoors, FurnaceSplitter, BetterChat, TimedExecute, PluginConfigs landing) + 5 child components (loot sidebar/item-editor/group-editor/item-picker, teleport PermissionGroupEditor) re-skinned onto DS components + tokens. All config logic preserved (path-traversal get/set, apply-to-server, import-from-server, CRUD, multiplier logic, per-store status derivation). Presentation-only. Build green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { useFurnaceSplitterStore } from '@/stores/furnacesplitter'
|
||||
import {
|
||||
Save,
|
||||
Play,
|
||||
Download,
|
||||
Plus,
|
||||
Trash2,
|
||||
Flame,
|
||||
Settings as SettingsIcon,
|
||||
} from 'lucide-vue-next'
|
||||
import Panel from '@/components/ds/data/Panel.vue'
|
||||
import Button from '@/components/ds/core/Button.vue'
|
||||
import Icon from '@/components/ds/core/Icon.vue'
|
||||
import Switch from '@/components/ds/forms/Switch.vue'
|
||||
import EmptyState from '@/components/ds/feedback/EmptyState.vue'
|
||||
|
||||
const store = useFurnaceSplitterStore()
|
||||
|
||||
@@ -57,13 +53,13 @@ function setConfigValue(path: string, value: any) {
|
||||
|
||||
// Furnace types with display names
|
||||
const furnaceTypes = [
|
||||
{ key: 'furnace', label: 'Small Furnace', description: 'Standard furnace for smelting ores' },
|
||||
{ key: 'furnace.large', label: 'Large Furnace', description: 'Large furnace with more slots' },
|
||||
{ key: 'furnace', label: 'Small furnace', description: 'Standard furnace for smelting ores' },
|
||||
{ key: 'furnace.large', label: 'Large furnace', description: 'Large furnace with more slots' },
|
||||
{ key: 'campfire', label: 'Campfire', description: 'Basic campfire for cooking' },
|
||||
{ key: 'refinery_small_deployed', label: 'Small Oil Refinery', description: 'Refines crude oil into low grade fuel' },
|
||||
{ key: 'skull_fire_pit', label: 'Skull Fire Pit', description: 'Decorative fire pit for cooking' },
|
||||
{ key: 'hobobarrel_static', label: 'Hobo Barrel', description: 'Barrel fire for cooking' },
|
||||
{ key: 'electricfurnace.deployed', label: 'Electric Furnace', description: 'Electricity-powered furnace' },
|
||||
{ key: 'refinery_small_deployed', label: 'Small oil refinery', description: 'Refines crude oil into low grade fuel' },
|
||||
{ key: 'skull_fire_pit', label: 'Skull fire pit', description: 'Decorative fire pit for cooking' },
|
||||
{ key: 'hobobarrel_static', label: 'Hobo barrel', description: 'Barrel fire for cooking' },
|
||||
{ key: 'electricfurnace.deployed', label: 'Electric furnace', description: 'Electricity-powered furnace' },
|
||||
]
|
||||
|
||||
// --- Action handlers ---
|
||||
@@ -111,261 +107,334 @@ async function handleImport() {
|
||||
importConfigName.value = ''
|
||||
}
|
||||
}
|
||||
|
||||
// Helper: coerce getConfigValue result to boolean for Switch
|
||||
function getBool(path: string, def: boolean): boolean {
|
||||
return !!getConfigValue(path, def)
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="p-6 space-y-6">
|
||||
<!-- Header -->
|
||||
<div class="flex items-center justify-between">
|
||||
<h1 class="text-2xl font-bold text-white">Furnace Splitter Config</h1>
|
||||
<div class="flex items-center gap-3">
|
||||
<button
|
||||
@click="showCreateModal = true"
|
||||
class="flex items-center gap-2 px-3 py-2 bg-neutral-800 text-neutral-300 rounded-lg hover:bg-neutral-700 text-sm"
|
||||
>
|
||||
<Plus class="w-4 h-4" />
|
||||
New Config
|
||||
</button>
|
||||
<div class="fsv">
|
||||
<!-- Page head -->
|
||||
<div class="fsv__head">
|
||||
<div class="fsv__head-id">
|
||||
<div class="fsv__head-chip">
|
||||
<Icon name="flame" :size="20" :stroke-width="2" />
|
||||
</div>
|
||||
<div>
|
||||
<div class="t-eyebrow">Plugin config</div>
|
||||
<h1 class="fsv__title">Furnace splitter</h1>
|
||||
</div>
|
||||
</div>
|
||||
<Button size="sm" icon="plus" @click="showCreateModal = true">New config</Button>
|
||||
</div>
|
||||
|
||||
<!-- Config Selector + Action Bar -->
|
||||
<div class="bg-neutral-900 border border-neutral-800 rounded-xl p-4">
|
||||
<div class="flex items-center gap-3 flex-wrap">
|
||||
<!-- Config Selector -->
|
||||
<!-- Config action bar -->
|
||||
<Panel>
|
||||
<div class="fsv__bar">
|
||||
<select
|
||||
v-if="store.configs.length > 0"
|
||||
:value="store.currentConfig?.id || ''"
|
||||
:value="store.currentConfig?.id ?? ''"
|
||||
class="fsv__config-select"
|
||||
@change="handleConfigChange(($event.target as HTMLSelectElement).value)"
|
||||
class="bg-neutral-800 border border-neutral-700 text-neutral-200 rounded-lg px-3 py-2 text-sm min-w-[200px]"
|
||||
>
|
||||
<option v-for="c in store.configs" :key="c.id" :value="c.id">
|
||||
{{ c.config_name }}
|
||||
<template v-if="c.is_active"> (Active)</template>
|
||||
{{ c.config_name }}{{ c.is_active ? ' (Active)' : '' }}
|
||||
</option>
|
||||
</select>
|
||||
<span v-else class="text-neutral-500 text-sm">No configs yet</span>
|
||||
<span v-else class="fsv__no-configs">No configs yet</span>
|
||||
|
||||
<!-- Save -->
|
||||
<button
|
||||
@click="store.saveCurrentConfig()"
|
||||
<Button
|
||||
icon="save"
|
||||
size="sm"
|
||||
:disabled="!store.currentConfig || !store.isDirty || store.isSaving"
|
||||
class="flex items-center gap-2 px-3 py-2 bg-oxide-500 text-white rounded-lg hover:bg-oxide-600 disabled:opacity-50 disabled:cursor-not-allowed text-sm"
|
||||
>
|
||||
<Save class="w-4 h-4" />
|
||||
{{ store.isSaving ? 'Saving...' : 'Save' }}
|
||||
</button>
|
||||
:loading="store.isSaving"
|
||||
@click="store.saveCurrentConfig()"
|
||||
>{{ store.isSaving ? 'Saving…' : 'Save' }}</Button>
|
||||
|
||||
<!-- Apply to Server -->
|
||||
<button
|
||||
@click="handleApply"
|
||||
<Button
|
||||
variant="outline"
|
||||
icon="play"
|
||||
size="sm"
|
||||
:disabled="!store.currentConfig || store.isApplying"
|
||||
class="flex items-center gap-2 px-3 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 disabled:opacity-50 disabled:cursor-not-allowed text-sm"
|
||||
>
|
||||
<Play class="w-4 h-4" />
|
||||
{{ store.isApplying ? 'Applying...' : 'Apply to Server' }}
|
||||
</button>
|
||||
:loading="store.isApplying"
|
||||
@click="handleApply"
|
||||
>{{ store.isApplying ? 'Applying…' : 'Apply to server' }}</Button>
|
||||
|
||||
<!-- Import from Server -->
|
||||
<button
|
||||
<Button
|
||||
variant="secondary"
|
||||
icon="download"
|
||||
size="sm"
|
||||
@click="showImportModal = true"
|
||||
class="flex items-center gap-2 px-3 py-2 bg-neutral-800 text-neutral-300 rounded-lg hover:bg-neutral-700 text-sm"
|
||||
>
|
||||
<Download class="w-4 h-4" />
|
||||
Import from Server
|
||||
</button>
|
||||
>Import from server</Button>
|
||||
|
||||
<!-- Delete -->
|
||||
<button
|
||||
@click="handleDeleteConfig"
|
||||
<Button
|
||||
variant="danger-soft"
|
||||
icon="trash-2"
|
||||
size="sm"
|
||||
:disabled="!store.currentConfig"
|
||||
class="flex items-center gap-2 px-3 py-2 bg-red-500/10 text-red-400 rounded-lg hover:bg-red-500/20 disabled:opacity-50 text-sm ml-auto"
|
||||
>
|
||||
<Trash2 class="w-4 h-4" />
|
||||
Delete
|
||||
</button>
|
||||
class="fsv__bar-delete"
|
||||
@click="handleDeleteConfig"
|
||||
>Delete</Button>
|
||||
</div>
|
||||
</Panel>
|
||||
|
||||
<!-- Loading -->
|
||||
<div v-if="store.isLoading" class="fsv__loading">
|
||||
<span class="fsv__spinner" />
|
||||
</div>
|
||||
|
||||
<!-- Loading State -->
|
||||
<div v-if="store.isLoading" class="flex items-center justify-center py-20">
|
||||
<div class="animate-spin w-8 h-8 border-2 border-oxide-500 border-t-transparent rounded-full" />
|
||||
</div>
|
||||
|
||||
<!-- No Config Selected -->
|
||||
<div v-else-if="!store.currentConfig" class="bg-neutral-900 border border-neutral-800 rounded-xl p-12 text-center">
|
||||
<Flame class="w-12 h-12 text-neutral-600 mx-auto mb-4" />
|
||||
<h2 class="text-lg font-semibold text-neutral-300 mb-2">No FurnaceSplitter Config Selected</h2>
|
||||
<p class="text-neutral-500 mb-4">Create a new config, import from server, or select one from the dropdown above.</p>
|
||||
<button
|
||||
@click="showCreateModal = true"
|
||||
class="px-4 py-2 bg-oxide-500 text-white rounded-lg hover:bg-oxide-600"
|
||||
<!-- Empty state -->
|
||||
<Panel v-else-if="!store.currentConfig">
|
||||
<EmptyState
|
||||
icon="flame"
|
||||
title="No FurnaceSplitter config selected"
|
||||
description="Create a new config, import from server, or select one from the dropdown above."
|
||||
>
|
||||
Create First Config
|
||||
</button>
|
||||
</div>
|
||||
<template #action>
|
||||
<Button icon="plus" @click="showCreateModal = true">Create first config</Button>
|
||||
</template>
|
||||
</EmptyState>
|
||||
</Panel>
|
||||
|
||||
<!-- Config Editor -->
|
||||
<div v-else class="space-y-6">
|
||||
<!-- Furnace Splitter Settings -->
|
||||
<div class="bg-neutral-900 border border-neutral-800 rounded-xl p-6 space-y-6">
|
||||
<div class="flex items-center gap-2">
|
||||
<SettingsIcon class="w-5 h-5 text-neutral-400" />
|
||||
<h3 class="text-sm font-semibold text-neutral-300 uppercase tracking-wider">Splitter Settings</h3>
|
||||
</div>
|
||||
|
||||
<!-- Global enabled -->
|
||||
<div class="flex items-center justify-between">
|
||||
<div>
|
||||
<label class="text-sm text-neutral-200">Enabled</label>
|
||||
<p class="text-xs text-neutral-500">Globally enable or disable furnace splitting</p>
|
||||
</div>
|
||||
<button
|
||||
@click="setConfigValue('Enabled', !getConfigValue('Enabled', true))"
|
||||
class="relative w-11 h-6 rounded-full transition-colors"
|
||||
:class="getConfigValue('Enabled', true) ? 'bg-oxide-500' : 'bg-neutral-700'"
|
||||
>
|
||||
<span
|
||||
class="absolute top-0.5 left-0.5 w-5 h-5 bg-white rounded-full transition-transform"
|
||||
:class="getConfigValue('Enabled', true) ? 'translate-x-5' : 'translate-x-0'"
|
||||
<!-- Config editor -->
|
||||
<template v-else>
|
||||
<!-- Splitter settings -->
|
||||
<Panel title="Splitter settings">
|
||||
<div class="fsv__toggles">
|
||||
<div class="fsv__toggle-row">
|
||||
<div>
|
||||
<div class="fsv__toggle-label">Enabled</div>
|
||||
<div class="fsv__toggle-sub">Globally enable or disable furnace splitting</div>
|
||||
</div>
|
||||
<Switch
|
||||
:model-value="getBool('Enabled', true)"
|
||||
@update:model-value="v => setConfigValue('Enabled', v)"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Panel>
|
||||
|
||||
<!-- Per-Furnace Type Settings -->
|
||||
<div class="bg-neutral-900 border border-neutral-800 rounded-xl p-6 space-y-6">
|
||||
<div class="flex items-center gap-2">
|
||||
<Flame class="w-5 h-5 text-neutral-400" />
|
||||
<h3 class="text-sm font-semibold text-neutral-300 uppercase tracking-wider">Furnace Type Settings</h3>
|
||||
</div>
|
||||
|
||||
<div class="space-y-4">
|
||||
<!-- Per-furnace type settings -->
|
||||
<Panel title="Furnace type settings">
|
||||
<div class="fsv__furnace-list">
|
||||
<div
|
||||
v-for="furnace in furnaceTypes"
|
||||
:key="furnace.key"
|
||||
class="bg-neutral-800/50 border border-neutral-700/50 rounded-lg p-4"
|
||||
class="fsv__furnace-card"
|
||||
>
|
||||
<div class="flex items-center justify-between mb-3">
|
||||
<div class="fsv__furnace-head">
|
||||
<div>
|
||||
<h4 class="text-sm font-medium text-neutral-200">{{ furnace.label }}</h4>
|
||||
<p class="text-xs text-neutral-500">{{ furnace.description }}</p>
|
||||
<div class="fsv__furnace-name">{{ furnace.label }}</div>
|
||||
<div class="fsv__furnace-desc">{{ furnace.description }}</div>
|
||||
</div>
|
||||
<button
|
||||
@click="setConfigValue(`Furnaces.${furnace.key}.Enabled`, !getConfigValue(`Furnaces.${furnace.key}.Enabled`, true))"
|
||||
class="relative w-11 h-6 rounded-full transition-colors"
|
||||
:class="getConfigValue(`Furnaces.${furnace.key}.Enabled`, true) ? 'bg-oxide-500' : 'bg-neutral-700'"
|
||||
>
|
||||
<span
|
||||
class="absolute top-0.5 left-0.5 w-5 h-5 bg-white rounded-full transition-transform"
|
||||
:class="getConfigValue(`Furnaces.${furnace.key}.Enabled`, true) ? 'translate-x-5' : 'translate-x-0'"
|
||||
/>
|
||||
</button>
|
||||
<Switch
|
||||
:model-value="getBool(`Furnaces.${furnace.key}.Enabled`, true)"
|
||||
@update:model-value="v => setConfigValue(`Furnaces.${furnace.key}.Enabled`, v)"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label class="block text-xs text-neutral-500 mb-1">Default Split Stacks</label>
|
||||
<div class="fsv__furnace-fields">
|
||||
<div class="fsv__field">
|
||||
<label class="fsv__field-label">Default split stacks</label>
|
||||
<input
|
||||
type="number"
|
||||
class="cc-num-input"
|
||||
:value="getConfigValue(`Furnaces.${furnace.key}.DefaultSplitCount`, 0)"
|
||||
@input="setConfigValue(`Furnaces.${furnace.key}.DefaultSplitCount`, Number(($event.target as HTMLInputElement).value))"
|
||||
min="0"
|
||||
class="w-full bg-neutral-800 border border-neutral-700 rounded px-3 py-2 text-neutral-200 text-sm"
|
||||
placeholder="0 = fill all slots"
|
||||
@input="setConfigValue(`Furnaces.${furnace.key}.DefaultSplitCount`, Number(($event.target as HTMLInputElement).value))"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-xs text-neutral-500 mb-1">Fuel Multiplier</label>
|
||||
<div class="fsv__field">
|
||||
<label class="fsv__field-label">Fuel multiplier</label>
|
||||
<input
|
||||
type="number"
|
||||
step="0.1"
|
||||
class="cc-num-input fsv__mono"
|
||||
:value="getConfigValue(`Furnaces.${furnace.key}.FuelMultiplier`, 1.0)"
|
||||
@input="setConfigValue(`Furnaces.${furnace.key}.FuelMultiplier`, Number(($event.target as HTMLInputElement).value))"
|
||||
min="0"
|
||||
class="w-full bg-neutral-800 border border-neutral-700 rounded px-3 py-2 text-neutral-200 text-sm"
|
||||
@input="setConfigValue(`Furnaces.${furnace.key}.FuelMultiplier`, Number(($event.target as HTMLInputElement).value))"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Panel>
|
||||
|
||||
<!-- Permission Groups -->
|
||||
<div class="bg-neutral-900 border border-neutral-800 rounded-xl p-6 space-y-4">
|
||||
<h3 class="text-sm font-semibold text-neutral-300 uppercase tracking-wider">Permission</h3>
|
||||
<p class="text-xs text-neutral-500">
|
||||
The permission <code class="text-neutral-300 bg-neutral-800 px-1 rounded">furnacesplitter.use</code> controls which players can use the furnace splitting feature. Assign this permission via your Oxide permission system.
|
||||
<!-- Permission -->
|
||||
<Panel title="Permission">
|
||||
<p class="fsv__perm-text">
|
||||
The permission <code class="fsv__code">furnacesplitter.use</code> controls which players can use the furnace splitting feature. Assign this permission via your Oxide permission system.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</Panel>
|
||||
</template>
|
||||
|
||||
<!-- Create Config Modal -->
|
||||
<div v-if="showCreateModal" class="fixed inset-0 bg-black/60 z-50 flex items-center justify-center p-4" @click.self="showCreateModal = false">
|
||||
<div class="bg-neutral-900 border border-neutral-800 rounded-xl p-6 w-full max-w-md">
|
||||
<h2 class="text-lg font-semibold text-neutral-100 mb-4">New FurnaceSplitter Config</h2>
|
||||
<div class="space-y-4">
|
||||
<div>
|
||||
<label class="block text-sm text-neutral-400 mb-1">Config Name</label>
|
||||
<!-- Create config modal -->
|
||||
<div v-if="showCreateModal" class="fsv__modal-backdrop" @click.self="showCreateModal = false">
|
||||
<div class="fsv__modal">
|
||||
<h2 class="fsv__modal-title">New FurnaceSplitter config</h2>
|
||||
<div class="fsv__modal-body">
|
||||
<div class="fsv__field">
|
||||
<label class="fsv__field-label">Config name</label>
|
||||
<input
|
||||
v-model="newConfigName"
|
||||
placeholder="e.g. Default Furnace Settings"
|
||||
class="w-full bg-neutral-800 border border-neutral-700 rounded-lg px-3 py-2 text-neutral-200 text-sm"
|
||||
type="text"
|
||||
class="cc-text-input"
|
||||
placeholder="e.g. Default furnace settings"
|
||||
@keydown.enter="handleCreateConfig"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-sm text-neutral-400 mb-1">Description (optional)</label>
|
||||
<div class="fsv__field">
|
||||
<label class="fsv__field-label">Description (optional)</label>
|
||||
<textarea
|
||||
v-model="newConfigDesc"
|
||||
rows="2"
|
||||
class="cc-textarea"
|
||||
placeholder="What is this config for?"
|
||||
class="w-full bg-neutral-800 border border-neutral-700 rounded-lg px-3 py-2 text-neutral-200 text-sm resize-none"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex justify-end gap-2">
|
||||
<button @click="showCreateModal = false" class="px-4 py-2 text-sm text-neutral-400 hover:text-neutral-200">Cancel</button>
|
||||
<button
|
||||
@click="handleCreateConfig"
|
||||
:disabled="!newConfigName.trim()"
|
||||
class="px-4 py-2 bg-oxide-500 text-white rounded-lg hover:bg-oxide-600 disabled:opacity-50 text-sm"
|
||||
>
|
||||
Create
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fsv__modal-footer">
|
||||
<Button variant="ghost" @click="showCreateModal = false">Cancel</Button>
|
||||
<Button :disabled="!newConfigName.trim()" @click="handleCreateConfig">Create</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Import from Server Modal -->
|
||||
<div v-if="showImportModal" class="fixed inset-0 bg-black/60 z-50 flex items-center justify-center p-4" @click.self="showImportModal = false">
|
||||
<div class="bg-neutral-900 border border-neutral-800 rounded-xl p-6 w-full max-w-md">
|
||||
<h2 class="text-lg font-semibold text-neutral-100 mb-4">Import from Server</h2>
|
||||
<p class="text-sm text-neutral-400 mb-4">
|
||||
Import the current FurnaceSplitter config from your live server. This will create a new config profile.
|
||||
</p>
|
||||
<div class="space-y-4">
|
||||
<div>
|
||||
<label class="block text-sm text-neutral-400 mb-1">Config Name</label>
|
||||
<!-- Import from server modal -->
|
||||
<div v-if="showImportModal" class="fsv__modal-backdrop" @click.self="showImportModal = false">
|
||||
<div class="fsv__modal">
|
||||
<h2 class="fsv__modal-title">Import from server</h2>
|
||||
<p class="fsv__modal-desc">Import the current FurnaceSplitter config from your live server. This will create a new config profile.</p>
|
||||
<div class="fsv__modal-body">
|
||||
<div class="fsv__field">
|
||||
<label class="fsv__field-label">Config name</label>
|
||||
<input
|
||||
v-model="importConfigName"
|
||||
placeholder="e.g. Imported Server Config"
|
||||
class="w-full bg-neutral-800 border border-neutral-700 rounded-lg px-3 py-2 text-neutral-200 text-sm"
|
||||
type="text"
|
||||
class="cc-text-input"
|
||||
placeholder="e.g. Imported server config"
|
||||
@keydown.enter="handleImport"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex justify-end gap-2">
|
||||
<button @click="showImportModal = false" class="px-4 py-2 text-sm text-neutral-400 hover:text-neutral-200">Cancel</button>
|
||||
<button
|
||||
@click="handleImport"
|
||||
:disabled="!importConfigName.trim()"
|
||||
class="px-4 py-2 bg-oxide-500 text-white rounded-lg hover:bg-oxide-600 disabled:opacity-50 text-sm"
|
||||
>
|
||||
Import
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fsv__modal-footer">
|
||||
<Button variant="ghost" @click="showImportModal = false">Cancel</Button>
|
||||
<Button :disabled="!importConfigName.trim()" @click="handleImport">Import</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.fsv { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
|
||||
|
||||
/* Page head */
|
||||
.fsv__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
|
||||
.fsv__head-id { display: flex; align-items: center; gap: 12px; }
|
||||
.fsv__head-chip {
|
||||
width: 40px; height: 40px; flex: none; border-radius: var(--radius-md);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
color: var(--accent); background: var(--accent-soft);
|
||||
box-shadow: inset 0 0 0 1px var(--accent-border);
|
||||
}
|
||||
.fsv__title {
|
||||
font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em;
|
||||
color: var(--text-primary); margin-top: 3px;
|
||||
}
|
||||
|
||||
/* Config action bar */
|
||||
.fsv__bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
||||
.fsv__config-select {
|
||||
appearance: none; height: var(--control-h-md); padding: 0 11px;
|
||||
background: var(--surface-inset); color: var(--text-primary); border: 0;
|
||||
border-radius: var(--radius-md); box-shadow: var(--ring-default);
|
||||
font-family: var(--font-sans); font-size: var(--text-sm); cursor: pointer;
|
||||
min-width: 200px;
|
||||
}
|
||||
.fsv__config-select:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--accent), var(--glow-accent-sm); }
|
||||
.fsv__no-configs { font-size: var(--text-sm); color: var(--text-muted); }
|
||||
.fsv__bar-delete { margin-left: auto; }
|
||||
|
||||
/* Loading */
|
||||
.fsv__loading { display: flex; align-items: center; justify-content: center; padding: 60px; }
|
||||
.fsv__spinner {
|
||||
width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--accent);
|
||||
border-top-color: transparent; animation: fsv-spin 0.6s linear infinite;
|
||||
}
|
||||
@keyframes fsv-spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* Toggles */
|
||||
.fsv__toggles { display: flex; flex-direction: column; }
|
||||
.fsv__toggle-row {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle);
|
||||
}
|
||||
.fsv__toggle-row:last-child { border-bottom: 0; padding-bottom: 0; }
|
||||
.fsv__toggle-row:first-child { padding-top: 0; }
|
||||
.fsv__toggle-label { font-size: var(--text-sm); font-weight: 500; color: var(--text-primary); }
|
||||
.fsv__toggle-sub { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: 2px; }
|
||||
|
||||
/* Furnace cards */
|
||||
.fsv__furnace-list { display: flex; flex-direction: column; gap: 12px; }
|
||||
.fsv__furnace-card {
|
||||
background: var(--surface-raised-2); border-radius: var(--radius-md);
|
||||
box-shadow: var(--ring-default); padding: 14px; display: flex; flex-direction: column; gap: 12px;
|
||||
}
|
||||
.fsv__furnace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
|
||||
.fsv__furnace-name { font-size: var(--text-sm); font-weight: 500; color: var(--text-primary); }
|
||||
.fsv__furnace-desc { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: 2px; }
|
||||
.fsv__furnace-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
||||
@media (max-width: 500px) { .fsv__furnace-fields { grid-template-columns: 1fr; } }
|
||||
|
||||
/* Fields */
|
||||
.fsv__field { display: flex; flex-direction: column; gap: 6px; }
|
||||
.fsv__field-label { font-size: var(--text-xs); font-weight: 600; color: var(--text-secondary); }
|
||||
|
||||
/* Permission text */
|
||||
.fsv__perm-text { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }
|
||||
.fsv__code {
|
||||
font-family: var(--font-mono); font-size: var(--text-xs); font-variant-numeric: tabular-nums;
|
||||
background: var(--surface-raised-2); color: var(--text-primary); padding: 1px 6px;
|
||||
border-radius: var(--radius-sm); box-shadow: var(--ring-default);
|
||||
}
|
||||
.fsv__mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
|
||||
|
||||
/* Shared token inputs */
|
||||
.cc-textarea {
|
||||
width: 100%; background: var(--surface-inset); color: var(--text-primary);
|
||||
border: 0; border-radius: var(--radius-md); box-shadow: var(--ring-default);
|
||||
padding: 9px 11px; font-family: var(--font-sans); font-size: var(--text-sm);
|
||||
resize: none; outline: 0; line-height: 1.5;
|
||||
}
|
||||
.cc-textarea:focus-visible { box-shadow: inset 0 0 0 1px var(--accent), var(--glow-accent-sm); }
|
||||
.cc-text-input {
|
||||
width: 100%; height: var(--control-h-md); background: var(--surface-inset); color: var(--text-primary);
|
||||
border: 0; border-radius: var(--radius-md); box-shadow: var(--ring-default);
|
||||
padding: 0 11px; font-family: var(--font-sans); font-size: var(--text-sm); outline: 0;
|
||||
}
|
||||
.cc-text-input:focus-visible { box-shadow: inset 0 0 0 1px var(--accent), var(--glow-accent-sm); }
|
||||
.cc-num-input {
|
||||
width: 100%; height: var(--control-h-md); background: var(--surface-inset); color: var(--text-primary);
|
||||
border: 0; border-radius: var(--radius-md); box-shadow: var(--ring-default);
|
||||
padding: 0 11px; font-family: var(--font-sans); font-size: var(--text-sm); outline: 0;
|
||||
}
|
||||
.cc-num-input:focus-visible { box-shadow: inset 0 0 0 1px var(--accent), var(--glow-accent-sm); }
|
||||
|
||||
/* Modal */
|
||||
.fsv__modal-backdrop {
|
||||
position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 50;
|
||||
display: flex; align-items: center; justify-content: center; padding: 16px;
|
||||
}
|
||||
.fsv__modal {
|
||||
background: var(--surface-base); border-radius: var(--radius-lg); box-shadow: var(--ring-default);
|
||||
width: 100%; max-width: 440px; padding: 24px; display: flex; flex-direction: column; gap: 16px;
|
||||
}
|
||||
.fsv__modal-title { font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); }
|
||||
.fsv__modal-desc { font-size: var(--text-sm); color: var(--text-tertiary); line-height: 1.5; }
|
||||
.fsv__modal-body { display: flex; flex-direction: column; gap: 12px; }
|
||||
.fsv__modal-footer { display: flex; justify-content: flex-end; gap: 8px; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user