Safety backup before Path A fixes - fixing function mismatches and missing functions

This commit is contained in:
2026-03-11 11:01:43 -04:00
parent 0a5042e130
commit 083f152b35
62 changed files with 202 additions and 261 deletions
+12 -12
View File
@@ -70,7 +70,7 @@ templ Header(user User, currentPath string) {
<h3 class="text-sm font-semibold mb-3" style="color: var(--text-primary)">Select Theme</h3>
<div class="space-y-2">
<button
@click="header.changeThemeTo('tokyo-night'); themeDropdownOpen = false"
@click="$store.theme.changeTheme('tokyo-night'); themeDropdownOpen = false"
class="w-full text-left px-3 py-2 rounded hover:opacity-80 transition-opacity"
style="color: var(--text-primary); background-color: var(--bg-primary);"
>
@@ -78,7 +78,7 @@ templ Header(user User, currentPath string) {
Tokyo Night
</button>
<button
@click="header.changeThemeTo('dracula'); themeDropdownOpen = false"
@click="$store.theme.changeTheme('dracula'); themeDropdownOpen = false"
class="w-full text-left px-3 py-2 rounded hover:opacity-80 transition-opacity"
style="color: var(--text-primary); background-color: var(--bg-primary);"
>
@@ -86,7 +86,7 @@ templ Header(user User, currentPath string) {
Dracula
</button>
<button
@click="header.changeThemeTo('nord'); themeDropdownOpen = false"
@click="$store.theme.changeTheme('nord'); themeDropdownOpen = false"
class="w-full text-left px-3 py-2 rounded hover:opacity-80 transition-opacity"
style="color: var(--text-primary); background-color: var(--bg-primary);"
>
@@ -94,7 +94,7 @@ templ Header(user User, currentPath string) {
Nord
</button>
<button
@click="header.changeThemeTo('solarized-dark'); themeDropdownOpen = false"
@click="$store.theme.changeTheme('solarized-dark'); themeDropdownOpen = false"
class="w-full text-left px-3 py-2 rounded hover:opacity-80 transition-opacity"
style="color: var(--text-primary); background-color: var(--bg-primary);"
>
@@ -102,7 +102,7 @@ templ Header(user User, currentPath string) {
Solarized Dark
</button>
<button
@click="header.changeThemeTo('monokai'); themeDropdownOpen = false"
@click="$store.theme.changeTheme('monokai'); themeDropdownOpen = false"
class="w-full text-left px-3 py-2 rounded hover:opacity-80 transition-opacity"
style="color: var(--text-primary); background-color: var(--bg-primary);"
>
@@ -110,7 +110,7 @@ templ Header(user User, currentPath string) {
Monokai
</button>
<button
@click="header.changeThemeTo('one-dark-pro'); themeDropdownOpen = false"
@click="$store.theme.changeTheme('one-dark-pro'); themeDropdownOpen = false"
class="w-full text-left px-3 py-2 rounded hover:opacity-80 transition-opacity"
style="color: var(--text-primary); background-color: var(--bg-primary);"
>
@@ -118,7 +118,7 @@ templ Header(user User, currentPath string) {
One Dark Pro
</button>
<button
@click="header.changeThemeTo('material-dark'); themeDropdownOpen = false"
@click="$store.theme.changeTheme('material-dark'); themeDropdownOpen = false"
class="w-full text-left px-3 py-2 rounded hover:opacity-80 transition-opacity"
style="color: var(--text-primary); background-color: var(--bg-primary);"
>
@@ -128,7 +128,7 @@ templ Header(user User, currentPath string) {
<div class="border-t pt-2 mt-2" style="border-color: var(--border);">
<p class="text-xs mb-2" style="color: var(--text-secondary)">Bookshelf Background</p>
<button
@click="woodPaneling.change('none'); themeDropdownOpen = false"
@click="$store.theme.changeWoodPaneling('none'); themeDropdownOpen = false"
class="wood-paneling-btn w-full text-left px-3 py-2 rounded hover:opacity-80 transition-opacity"
style="color: var(--text-primary);"
data-wood="none"
@@ -136,7 +136,7 @@ templ Header(user User, currentPath string) {
None
</button>
<button
@click="woodPaneling.change('wood-light'); themeDropdownOpen = false"
@click="$store.theme.changeWoodPaneling('wood-light'); themeDropdownOpen = false"
class="wood-paneling-btn w-full text-left px-3 py-2 rounded hover:opacity-80 transition-opacity"
style="color: var(--text-primary);"
data-wood="wood-light"
@@ -148,7 +148,7 @@ templ Header(user User, currentPath string) {
Wood Light
</button>
<button
@click="woodPaneling.change('wood-dark'); themeDropdownOpen = false"
@click="$store.theme.changeWoodPaneling('wood-dark'); themeDropdownOpen = false"
class="wood-paneling-btn w-full text-left px-3 py-2 rounded hover:opacity-80 transition-opacity"
style="color: var(--text-primary);"
data-wood="wood-dark"
@@ -160,7 +160,7 @@ templ Header(user User, currentPath string) {
Wood Dark
</button>
<button
@click="woodPaneling.change('wood-mahogany'); themeDropdownOpen = false"
@click="$store.theme.changeWoodPaneling('wood-mahogany'); themeDropdownOpen = false"
class="wood-paneling-btn w-full text-left px-3 py-2 rounded hover:opacity-80 transition-opacity"
style="color: var(--text-primary);"
data-wood="wood-mahogany"
@@ -208,7 +208,7 @@ templ Header(user User, currentPath string) {
}
<div class="border-t my-1" style="border-color: var(--border);"></div>
<button
@click="header.logout(); userMenuOpen = false"
@click="$store.header.logout(); userMenuOpen = false"
class="block w-full text-left px-4 py-2 text-sm hover:opacity-80"
style="color: var(--text-primary); background-color: var(--bg-secondary);"
>