File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ export const config = Object.freeze({
1010 API_BASE : isLocal ? 'http://localhost:3000' : 'https://api.yourdomain.com' ,
1111 BASE_PATH : new URL ( document . baseURI ) . pathname ,
1212 VERSION : '1.0.0-axiom' ,
13- NAV_STYLE : 'dock'
13+ NAV_STYLE : 'dock' // or 'sidebar'
1414} ) ;
Original file line number Diff line number Diff line change 22 * Project Axiom: State Singleton
33 * A Proxy-wrapped singleton that broadcasts changes via EventTarget.
44 */
5+ import { config } from './config.js' ;
6+
57const bus = new EventTarget ( ) ;
68
79export const state = {
810 data : new Proxy ( {
911 route : null , // Start at null so 'home' triggers the Proxy
10- navStyle : 'dock' ,
12+ navStyle : config . NAV_STYLE ,
1113 transition : { type : 'fade' , direction : 'forward' } ,
1214 theme : localStorage . getItem ( 'axiom-theme' ) || 'dark' ,
1315 items : [ ] ,
You can’t perform that action at this time.
0 commit comments