4 changed files with 59 additions and 123 deletions
@ -1,45 +1,13 @@ |
|||||||
import { versionedStoreBuilder } from 'utils/storage'; |
import { versionedStoreBuilder } from 'utils/storage'; |
||||||
|
|
||||||
/* |
|
||||||
version 0 |
|
||||||
{ |
|
||||||
[{scraperid}]: { |
|
||||||
movie: { |
|
||||||
[{movie-id}]: { |
|
||||||
full: { |
|
||||||
currentlyAt: number, |
|
||||||
totalDuration: number, |
|
||||||
updatedAt: number, // unix timestamp in ms
|
|
||||||
meta: FullMetaObject, // no idea whats in here
|
|
||||||
} |
|
||||||
} |
|
||||||
}, |
|
||||||
show: { |
|
||||||
[{show-id}]: { |
|
||||||
[{season}-{episode}]: { |
|
||||||
currentlyAt: number, |
|
||||||
totalDuration: number, |
|
||||||
updatedAt: number, // unix timestamp in ms
|
|
||||||
show: { |
|
||||||
episode: string, |
|
||||||
season: string, |
|
||||||
}, |
|
||||||
meta: FullMetaObject, // no idea whats in here
|
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
*/ |
|
||||||
|
|
||||||
export const BookmarkStore = versionedStoreBuilder() |
export const BookmarkStore = versionedStoreBuilder() |
||||||
.setKey('mw-bookmarks') |
.setKey('mw-bookmarks') |
||||||
.addVersion({ |
.addVersion({ |
||||||
version: 0, |
version: 0, |
||||||
create() { |
create() { |
||||||
return { |
return { |
||||||
bookmarks: [] |
bookmarks: [] |
||||||
} |
|
||||||
} |
} |
||||||
}) |
} |
||||||
.build() |
}) |
||||||
|
.build() |
||||||
|
Loading…
Reference in new issue