feat(redesign): re-skin admin-ops/platform-admin/public views to DS (Phase D batch 4 — panel re-skin complete)
All checks were successful
Test Asgard Runner / test (push) Successful in 3s

Final re-skin batch: admin ops (Console/FileManager[VueFinder preserved]/WipeCalendar/WipeHistory/Changelog/Migration), platform-admin (Dashboard/Licenses/Servers/Subscriptions/Users), public product pages (ServerInfo/StatusPage/StoreView) + PublicLayout, WarpEditor, ErrorBoundary. All logic/store/router/WebSocket/handlers preserved. Marketing views (Landing/Pricing/FAQ/HowItWorks/Roadmap/EarlyAccess + MarketingLayout) intentionally deferred to the dedicated marketing-site redesign. Build green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Vantz Stockwell
2026-06-11 02:55:02 -04:00
parent 376ed9a98d
commit 29615cb4f3
17 changed files with 2843 additions and 1301 deletions

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { ref } from 'vue'
import { Plus, Trash2 } from 'lucide-vue-next'
import Icon from '@/components/ds/core/Icon.vue'
import Button from '@/components/ds/core/Button.vue'
import Input from '@/components/ds/forms/Input.vue'
const props = defineProps<{
warps: Record<string, { x: number; y: number; z: number }>
@@ -28,49 +30,139 @@ function removeWarp(name: string) {
</script>
<template>
<div class="space-y-4">
<h3 class="text-sm font-semibold text-neutral-300 uppercase tracking-wider">Warps</h3>
<div class="warp-editor">
<div class="warp-editor__label">Warps</div>
<!-- Add Warp -->
<div class="flex gap-2">
<input
<!-- Add warp row -->
<div class="warp-editor__add">
<Input
v-model="newWarpName"
placeholder="Warp name..."
class="flex-1 bg-neutral-800 border border-neutral-700 rounded-lg px-3 py-2 text-sm text-neutral-200"
:mono="true"
style="flex: 1"
@keydown.enter="addWarp"
/>
<button
@click="addWarp"
<Button
size="sm"
icon="plus"
:disabled="!newWarpName.trim()"
class="flex items-center gap-1 px-3 py-2 bg-oxide-500 text-white rounded-lg hover:bg-oxide-600 disabled:opacity-50 text-sm"
>
<Plus class="w-4 h-4" />
Add
</button>
@click="addWarp"
>Add</Button>
</div>
<!-- Warp List -->
<div v-if="Object.keys(warps).length === 0" class="text-neutral-500 text-sm text-center py-4">
<!-- Empty state -->
<div v-if="Object.keys(warps).length === 0" class="warp-editor__empty">
No warps defined. Add warps here and set coordinates in-game.
</div>
<!-- Warp list -->
<div
v-for="(coords, name) in warps"
:key="name"
class="flex items-center justify-between bg-neutral-800/50 border border-neutral-700/50 rounded-lg px-4 py-3"
class="warp-row"
>
<div>
<span class="text-neutral-200 font-medium">{{ name }}</span>
<span class="text-neutral-500 text-xs ml-3">
{{ coords.x.toFixed(1) }}, {{ coords.y.toFixed(1) }}, {{ coords.z.toFixed(1) }}
<div class="warp-row__id">
<span class="warp-row__name">{{ name }}</span>
<span class="warp-row__coords">
{{ (coords as { x: number; y: number; z: number }).x.toFixed(1) }},
{{ (coords as { x: number; y: number; z: number }).y.toFixed(1) }},
{{ (coords as { x: number; y: number; z: number }).z.toFixed(1) }}
</span>
</div>
<button
class="warp-row__remove"
type="button"
:aria-label="`Remove warp ${name}`"
@click="removeWarp(name as string)"
class="text-neutral-600 hover:text-red-400 transition-colors p-1"
>
<Trash2 class="w-4 h-4" />
<Icon name="trash-2" :size="14" :stroke-width="2" />
</button>
</div>
</div>
</template>
<style scoped>
.warp-editor {
display: flex;
flex-direction: column;
gap: var(--space-3);
}
.warp-editor__label {
font-size: var(--text-xs);
font-weight: 600;
color: var(--text-secondary);
letter-spacing: 0.06em;
text-transform: uppercase;
}
.warp-editor__add {
display: flex;
align-items: flex-end;
gap: var(--space-2);
}
.warp-editor__empty {
font-size: var(--text-xs);
color: var(--text-muted);
text-align: center;
padding: var(--space-4) 0;
}
.warp-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-3);
padding: var(--space-2-5) var(--space-3);
background: var(--surface-raised);
box-shadow: var(--ring-default);
border-radius: var(--radius-md);
}
.warp-row__id {
display: flex;
align-items: baseline;
gap: var(--space-3);
min-width: 0;
}
.warp-row__name {
font-size: var(--text-sm);
font-weight: 500;
color: var(--text-primary);
}
.warp-row__coords {
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-muted);
font-variant-numeric: tabular-nums;
}
.warp-row__remove {
flex: none;
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: var(--radius-sm);
border: none;
cursor: pointer;
background: transparent;
color: var(--text-muted);
transition: background var(--dur-fast) var(--ease-standard),
color var(--dur-fast) var(--ease-standard);
}
.warp-row__remove:hover {
background: var(--status-offline-soft);
color: var(--status-offline);
}
.warp-row__remove:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}
</style>