Update editor, workspace, Git services, appearance, and project guides

This commit is contained in:
Knotty Wyvern
2026-10-11 09:41:16 -07:00
parent a8b1defb9d
commit 909894b9c8
153 changed files with 7967 additions and 775 deletions
+25
View File
@@ -0,0 +1,25 @@
<script lang="ts">
import { onMount } from 'svelte';
import { APPEARANCE_KEY, applyAppearance, parseAppearance } from './appearance';
import { CUSTOM_THEMES_KEY } from './customThemes';
onMount(() => {
const read = () => {
try {
const raw = localStorage.getItem(APPEARANCE_KEY);
const appearance = parseAppearance(raw);
const canonical = JSON.stringify(appearance);
if (raw !== null && raw !== canonical) localStorage.setItem(APPEARANCE_KEY, canonical);
applyAppearance(appearance);
}
catch { /* Keep the current appearance if storage is unavailable. */ }
};
const sync = (event: StorageEvent) => { if (event.key === APPEARANCE_KEY || event.key === CUSTOM_THEMES_KEY || event.key === null) read(); };
read();
window.addEventListener('storage', sync);
window.addEventListener('focus', read);
return () => { window.removeEventListener('storage', sync); window.removeEventListener('focus', read); };
});
</script>