Skip to content

Commit 9c70a12

Browse files
committed
Correct state to work with NAV_STYLE
1 parent bb28496 commit 9c70a12

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/core/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
});

src/core/state.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
* Project Axiom: State Singleton
33
* A Proxy-wrapped singleton that broadcasts changes via EventTarget.
44
*/
5+
import { config } from './config.js';
6+
57
const bus = new EventTarget();
68

79
export 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: [],

0 commit comments

Comments
 (0)