deep-foundation / deep-memo-app

The Unlicense
11 stars 8 forks source link

Extension for google chrome, mozilla, safari #24

Closed FreePhoenix888 closed 1 year ago

FreePhoenix888 commented 1 year ago
Romanxz commented 1 year ago

Run

.env

NEXT_PUBLIC_GQL_PATH=<gql-client-path>/gql     
NEXT_PUBLIC_GQL_SSL=0/1 for local/remote

Make sure to use nodejs version 14.15.0

npm ci
npm run bbel    // build-browser-extension-linux
npm run bbem    // build-browser-extension-mac

Use

Init

Go to chrome://extensions/ and load extension folder via "Load unpacked" button:

Image

Then open extension page in extensions list:

Image

You will see this menu:

Image

Press ADMIN to login as your admin link. Button turns green on success.

Image

I don't know why but first deep.id() call always fails with an error "id not found by ..."

Image

So press twice. Then INITIALIZE PACKAGE button.

Inside your deep:

Image

There is BrowserHistory link serving as a container for history pages. You can delete down from its contain link to flush all uploaded history in one click and create new container with CREATE NEW BROWSER HISTORY LINK button. That is for utility purposes only.

MAKE SURE YOU HAVE ONLY ONE CONTAINER LINK AT A TIME!

Tabs

Image

This subscription fires update cycle with chrome.tabs() api call inside and custom delay function.

You will see your active tabs as nice cards:

Image

And you can inject

with INJECT DIV button.

History

UPLOAD HISTORY button uploads 10 last pages of your chrome history as Page links inside BrowserHistory container.

Image

FreePhoenix888 commented 1 year ago

@Romanxz , link your pull request to this issue