Created
February 10, 2021 11:23
-
-
Save heytulsiprasad/7a89988dcf57abbdde928b37d9b94403 to your computer and use it in GitHub Desktop.
For lazzzy app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////// | |
/** | |
* currentPages is an array of objects which holds each active page | |
* on the browser. | |
* | |
* page: { | |
* id: <string>, | |
* url: <string>, | |
* author: <string>, | |
* favorite: <bool>, | |
* metaImage: <string>, | |
* isShown: <boolean>, | |
* content: <array>, | |
* progress: <progress>, | |
* } | |
* | |
* progress: { | |
* percentLeft: <number>, | |
* currentPosition: <number>, | |
* timeRemaining: <number> | |
* lastActive: <timestamp>, | |
* } | |
* | |
* content: { | |
* id: <string>, | |
* type: <string>, // bookmark || comment | |
* title: <string>, | |
* createdAt: <timestamp>, | |
* progress: <progress> | |
* } | |
* | |
* We'll check for each page (by id) on page load, | |
* if available we'll show the bookmarks (isShown: true), | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment