Import the 2026-10-09 source release, Fastify/SQLite backend, restored source assets, and analytics-enabled server build. Replace files from the previous release while retaining the existing repository history. Make builds portable across Windows and Linux, configure local startup, normalize Windows static asset paths, and fix test fixture cleanup and file URL handling. Exclude local environment settings, databases, dependencies, validation output, and TypeScript build cache from version control. Validation: npm ci, static and server builds, 106 arrival tests, and actual local HTTP checks passed. The full suite passed 467 of 470 tests; three tests still require QA fixtures omitted from the supplied release, documented in README-서버실행.md.
10 lines
588 B
TypeScript
10 lines
588 B
TypeScript
/** Device-local, reversible camera experiment. Photos and optical settings are untouched. */
|
|
export type CameraComposition = 'wall' | 'legacy';
|
|
const KEY = 'behind-glass-camera-composition-v32';
|
|
export function readCameraComposition(storage?:Pick<Storage,'getItem'>):CameraComposition {
|
|
try {return storage?.getItem(KEY)==='legacy'?'legacy':'wall';} catch {return 'wall';}
|
|
}
|
|
export function saveCameraComposition(storage:Pick<Storage,'setItem'>|undefined,mode:CameraComposition):boolean {
|
|
try {if(!storage)return false;storage.setItem(KEY,mode);return true;} catch {return false;}
|
|
}
|