Skip to content

Instantly share code, notes, and snippets.

@heytulsiprasad
Created February 10, 2021 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heytulsiprasad/7a89988dcf57abbdde928b37d9b94403 to your computer and use it in GitHub Desktop.
Save heytulsiprasad/7a89988dcf57abbdde928b37d9b94403 to your computer and use it in GitHub Desktop.
For lazzzy app
///////////////////////////////////////////////////////////////////
/**
* 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