Skip to content

Commit

Permalink
Split sites object
Browse files Browse the repository at this point in the history
Resolves brave#6585

Auditors:
@bbondy, @ayumi, @diracdeltas, @bsclifton

Test Plan:
- everything should work the same as before
  • Loading branch information
NejcZdovc committed Jan 28, 2017
1 parent 3a75059 commit 6be81a4
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions docs/state.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,40 @@ AppStore
}
}
},
sites: {
[siteKey]: { // folder: folderId; bookmark/history: location + partitionNumber + parentFolderId
bookmarks: {
[siteKey]: {
location: string,
title: string,
customTitle: string, // User provided title for bookmark; overrides title
tags: [string], // empty, 'bookmark', 'bookmark-folder', 'pinned', or 'reader'
tags: [string], // 'bookmark' or 'bookmark-folder'
favicon: string, // URL of the favicon
themeColor: string, // css compatible color string
lastAccessedTime: number, // datetime.getTime()
creationTime: number, //creation time of bookmark
partitionNumber: number, // Optionally specifies a specific session
folderId: number, // Set for bookmark folders only
parentFolderId: number // Set for bookmarks and bookmark folders only
folderId: number,
parentFolderId: number
},
},
visitedSites: {
[siteKey]: {
location: string,
title: string,
favicon: string, // URL of the favicon
themeColor: string, // css compatible color string
lastAccessedTime: number, // datetime.getTime()
creationTime: number, //creation time of bookmark
partitionNumber: number // Optionally specifies a specific session
},
},
pinnedSites: {
[siteKey]: {
location: string,
title: string,
favicon: string, // URL of the favicon
themeColor: string, // css compatible color string
lastAccessedTime: number, // datetime.getTime()
creationTime: number, //creation time of bookmark
partitionNumber: number // Optionally specifies a specific session
},
},
downloads: [{
Expand Down

0 comments on commit 6be81a4

Please sign in to comment.