Root page override

This commit is contained in:
Magnus Åhall 2026-06-10 20:03:31 +02:00
parent 31eee4ede5
commit b3ca0d29d0
6 changed files with 70 additions and 29 deletions

View file

@ -471,27 +471,6 @@ class NodeHistoryStore extends SimpleNodeStore {
}
})
}// }}}
test() {
const uuid = '019ead99-984c-72b6-98f0-814991473ad6'
const lowerBound = [uuid, '']
const upperBound = [uuid, 'z']
const range = IDBKeyRange.bound(lowerBound, upperBound)
const cursor = this.db
.transaction(['nodes', this.storeName], 'readonly')
.objectStore(this.storeName)
.openCursor(range, 'prev')
cursor.onsuccess = (event) => {
const cursor = event.target.result
if (!cursor)
return
console.log(cursor.value)
cursor.continue()
}
}
retrievePage(uuid, perPage, page) {// {{{
return new Promise((resolve, _reject) => {