refactor(ui): standardize button types and migrate file operations to V3 Action API

This commit is contained in:
Scott Idem
2026-02-03 22:54:22 -05:00
parent e8f92b818a
commit 49f0a888b0
81 changed files with 393 additions and 653 deletions

View File

@@ -66,7 +66,7 @@
Launcher Configuration
</h2>
<button
<button type="button"
onclick={() => ($events_loc.launcher.hide_drawer__cfg = true)}
class="btn btn-icon dark:text-white hover:bg-surface-500/10 transition-colors"
>
@@ -77,7 +77,7 @@
<!-- Category Tabs -->
<div class="w-full grid grid-cols-3 gap-1 bg-surface-500/10 p-1 rounded-lg">
<button
<button type="button"
onclick={() => active_tab = 'system'}
class="btn btn-sm text-[10px] uppercase font-bold transition-all"
class:preset-filled-primary-500={active_tab === 'system'}
@@ -85,7 +85,7 @@
>
<span class="fas fa-microchip mr-1"></span> System
</button>
<button
<button type="button"
onclick={() => active_tab = 'sync'}
class="btn btn-sm text-[10px] uppercase font-bold transition-all"
class:preset-filled-primary-500={active_tab === 'sync'}
@@ -93,7 +93,7 @@
>
<span class="fas fa-sync mr-1"></span> Sync
</button>
<button
<button type="button"
onclick={() => active_tab = 'general'}
class="btn btn-sm text-[10px] uppercase font-bold transition-all"
class:preset-filled-primary-500={active_tab === 'general'}
@@ -140,8 +140,7 @@
<!-- Global Actions Footer -->
<div class="w-full flex flex-col gap-2 border-t border-surface-500/20 pt-4 mt-auto">
<div class="grid grid-cols-2 gap-2">
<button
type="button"
<button type="button"
onclick={() => ($events_loc.launcher.hide_drawer__debug = false)}
class="btn btn-sm preset-tonal-error hover:preset-filled-error-500 transition-all"
>
@@ -149,8 +148,7 @@
Open Debug
</button>
<button
type="button"
<button type="button"
onclick={() => location.reload()}
class="btn btn-sm preset-tonal-secondary hover:preset-filled-secondary-500 transition-all"
>