mobile download

This commit is contained in:
Macbook
2026-05-28 14:44:19 +09:00
parent e2816b037f
commit 3503ef33f5
152 changed files with 11021 additions and 687 deletions
@@ -1,20 +1,12 @@
import { getUiPreferences, patchUiPreferences } from './uiPreferencesDb';
export type StrategyEditorMode = 'graph' | 'list';
const STORAGE_KEY = 'gc_se_editor_mode';
export function loadEditorMode(): StrategyEditorMode {
try {
const raw = localStorage.getItem(STORAGE_KEY);
return raw === 'list' ? 'list' : 'graph';
} catch {
return 'graph';
}
const mode = getUiPreferences().strategyEditor?.editorMode;
return mode === 'list' ? 'list' : 'graph';
}
export function saveEditorMode(mode: StrategyEditorMode): void {
try {
localStorage.setItem(STORAGE_KEY, mode);
} catch {
/* ignore */
}
patchUiPreferences({ strategyEditor: { editorMode: mode } });
}