Root page override
This commit is contained in:
parent
31eee4ede5
commit
b3ca0d29d0
6 changed files with 70 additions and 29 deletions
|
|
@ -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) => {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue