Skip to content

Commit

Permalink
🥕 v0.17.0-b19 🌱 ThreeD: Home Design
Browse files Browse the repository at this point in the history
  • Loading branch information
marty-mcgee committed Jan 8, 2025
1 parent 33509cf commit f2a475b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"react": "18.3.1",
"react-dom": "18.3.1",

"next": "14.2.20",
"@next/third-parties": "14.2.20",
"next": "14.2.23",
"@next/third-parties": "14.2.23",
"next-themes": "0.3.0",

"next-auth": "5.0.0-beta.25",
Expand Down
31 changes: 18 additions & 13 deletions src/lib/api/graphql/apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -967,8 +967,8 @@ export const preferencesStore = new (nounStore as any)('preferences')
// console.debug('preferencesStore.store.get(one) #1', preferencesStore.store.get('one').data)
// const initialPreferences = async () => await preferencesStore.actions.loadFromDataSource()
// console.debug('preferencesStore.actions.loadFromDataSource()', initialPreferences())
const initialPreferences = async () => await preferencesStore.store.get('one').data
console.debug('initialPreferences', initialPreferences())
// const initialPreferences = async () => await preferencesStore.store.get('one').data
// console.debug('initialPreferences', initialPreferences())
// console.debug('preferencesStore.store.get(one) #2', preferencesStore.store.get('one').data)
// EXTEND nounStore to become preferencesStoreCustom
// export const preferencesStore = new (preferenceStoreCustom as any)('preferences')
Expand Down Expand Up @@ -1018,26 +1018,29 @@ export const stores = {
// ==============================================================
// ** REACTIVE VARS

export const isPaperCanvasLoadedVar = makeVar(false) // boolean: false | true
console.debug('isPaperCanvasLoadedVar()', isPaperCanvasLoadedVar())
export const isThreeDCanvasLoadedVar = makeVar(false) // boolean: false | true
console.debug('isThreeDCanvasLoadedVar()', isThreeDCanvasLoadedVar())

// ** preferences(s)
export const preferencesDataVar = makeVar(preferencesDataVarDefaults)
console.debug('preferencesDataVar()', preferencesDataVar())
// console.debug('preferencesDataVar()', preferencesDataVar())
export const isPreferencesDataSetVar = makeVar(false) // boolean: false | true
console.debug('isPreferencesDataSetVar()', isPreferencesDataSetVar())
// console.debug('isPreferencesDataSetVar()', isPreferencesDataSetVar())

// ** canvasStatePaper(s)
export const canvasStatePaperVar = makeVar(canvasStatePaperVarDefaults)
console.debug('canvasStatePaperVar()', canvasStatePaperVar())
// console.debug('canvasStatePaperVar()', canvasStatePaperVar())
export const isCanvasStatePaperSetVar = makeVar(false) // boolean: false | true
console.debug('isCanvasStatePaperSetVar()', isCanvasStatePaperSetVar())
// console.debug('isCanvasStatePaperSetVar()', isCanvasStatePaperSetVar())

// ** canvasStateThreeD(s)
export const canvasStateThreeDVar = makeVar(canvasStateThreeDVarDefaults)
console.debug('canvasStateThreeDVar()', canvasStateThreeDVar())
// console.debug('canvasStateThreeDVar()', canvasStateThreeDVar())
export const isCanvasStateThreeDSetVar = makeVar(false) // boolean: false | true
console.debug('isCanvasStatePaperSetVar()', isCanvasStatePaperSetVar())
// console.debug('isCanvasStatePaperSetVar()', isCanvasStatePaperSetVar())

// ** loaded?(s)
export const isPaperCanvasLoadedVar = makeVar(false) // boolean: false | true
// console.debug('isPaperCanvasLoadedVar()', isPaperCanvasLoadedVar())
export const isThreeDCanvasLoadedVar = makeVar(false) // boolean: false | true
// console.debug('isThreeDCanvasLoadedVar()', isThreeDCanvasLoadedVar())

// ** export REACTIVE VARS
export const reactiveVars = {
Expand All @@ -1047,6 +1050,8 @@ export const reactiveVars = {
isCanvasStatePaperSetVar,
canvasStateThreeDVar,
isCanvasStateThreeDSetVar,
isPaperCanvasLoadedVar,
isThreeDCanvasLoadedVar,
}

// export QUERIES
Expand Down
4 changes: 3 additions & 1 deletion src/lib/threed/HomeDesign.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ import {
// reactive state vars:
isPreferencesSetVar,
preferencesDataVar,
isCanvasStateSetVar,
isCanvasStatePaperSetVar,
canvasStatePaperVar,
isCanvasStateThreeDSetVar,
canvasStateThreeDVar,
isPaperCanvasLoadedVar,
isThreeDCanvasLoadedVar,
Expand Down

0 comments on commit f2a475b

Please sign in to comment.