cleaning up console.logs
This commit is contained in:
parent
9374b0e290
commit
19fdc1e74c
4 changed files with 1 additions and 7 deletions
|
|
@ -27,7 +27,6 @@ export default {
|
||||||
},
|
},
|
||||||
emits: ['update:modelValue'],
|
emits: ['update:modelValue'],
|
||||||
data() {
|
data() {
|
||||||
console.log(this.fallback)
|
|
||||||
return {
|
return {
|
||||||
manualEntry: false,
|
manualEntry: false,
|
||||||
availableOptions: [
|
availableOptions: [
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,6 @@ const DEFAULT_STATE = {
|
||||||
...LOCAL_DEFAULT_CONFIG,
|
...LOCAL_DEFAULT_CONFIG,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
console.log('===', ROOT_STATE_DEFINITIONS)
|
|
||||||
|
|
||||||
export const useInstanceStore = defineStore('instance', {
|
export const useInstanceStore = defineStore('instance', {
|
||||||
state: () => ({ ...DEFAULT_STATE }),
|
state: () => ({ ...DEFAULT_STATE }),
|
||||||
|
|
|
||||||
|
|
@ -307,8 +307,6 @@ export const _mergePrefs = (recent, stale) => {
|
||||||
defaultState: ROOT_CONFIG,
|
defaultState: ROOT_CONFIG,
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(path, args[0])
|
|
||||||
|
|
||||||
return finalValue !== undefined
|
return finalValue !== undefined
|
||||||
})
|
})
|
||||||
.forEach(({ path, operation, args }) => {
|
.forEach(({ path, operation, args }) => {
|
||||||
|
|
@ -773,7 +771,7 @@ export const useSyncConfigStore = defineStore('sync_config', {
|
||||||
},
|
},
|
||||||
persist: {
|
persist: {
|
||||||
afterLoad(state) {
|
afterLoad(state) {
|
||||||
console.log('Validating persisted state of SyncConfig')
|
console.debug('Validating persisted state of SyncConfig')
|
||||||
const newState = { ...state }
|
const newState = { ...state }
|
||||||
const newEntries = Object.entries(newState.prefsStorage.simple).map(
|
const newEntries = Object.entries(newState.prefsStorage.simple).map(
|
||||||
([path, value]) => {
|
([path, value]) => {
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,6 @@ export const _mergeHighlights = (recent, stale) => {
|
||||||
if (!recent) return stale
|
if (!recent) return stale
|
||||||
const { _journal: recentJournal, ...recentHighlight } = recent
|
const { _journal: recentJournal, ...recentHighlight } = recent
|
||||||
const { _journal: staleJournal } = stale
|
const { _journal: staleJournal } = stale
|
||||||
console.log(recentHighlight)
|
|
||||||
/** Journal entry format:
|
/** Journal entry format:
|
||||||
* user: user to entry in highlight storage
|
* user: user to entry in highlight storage
|
||||||
* timestamp: timestamp of the change
|
* timestamp: timestamp of the change
|
||||||
|
|
@ -333,7 +332,6 @@ export const useUserHighlightStore = defineStore('user_highlight', {
|
||||||
if (stale && recent && !this.dirty) {
|
if (stale && recent && !this.dirty) {
|
||||||
this.cache._timestamp = Math.min(stale._timestamp, recent._timestamp)
|
this.cache._timestamp = Math.min(stale._timestamp, recent._timestamp)
|
||||||
}
|
}
|
||||||
console.log('CACHE', this.cache)
|
|
||||||
this.highlight = this.cache.highlight
|
this.highlight = this.cache.highlight
|
||||||
},
|
},
|
||||||
pushHighlight({ force = false } = {}) {
|
pushHighlight({ force = false } = {}) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue