SkylerBurger / new_tab_dialer

A Chrome extension inspired by Speed Dial [FVD].
https://dialer.skybur.io
1 stars 0 forks source link

Export current config to file #15

Closed SkylerBurger closed 1 month ago

SkylerBurger commented 3 months ago

As a user, if I make changes to New Tab Dialer, I'd like to be able to export my current config so it can be backed up or shared.

SkylerBurger commented 2 months ago

Did a little preliminary research. Looks like you'll want to look into the Chrome Downloads API and Blob - Web API. In short it looks like you:

SkylerBurger commented 1 month ago

https://fontawesome.com/icons/file-arrow-down?f=classic&s=solid

SkylerBurger commented 1 month ago

After doing some more research it looks like my React App needs to reach out to a scrip that will handle the Chrome API calls for me due to some limitations on it not being able to call out to the Chrome APIs directly itself. Still looking into this further but very close.

SkylerBurger commented 1 month ago

chrome can be accessed from window.chrome within the React app.

SkylerBurger commented 1 month ago

Videos 1, 2, 5 and 6 in this playlist were incredibly helpful in getting the gist of how Chrome Extensions service workers operate separately from the extension itself. Testing this functionality is a little more time consuming because I have to install the Chrome Extension in order to get access to the chrome methods that are only available at runtime while the app is operating as an extension (not even available while running via live server or similar).

SkylerBurger commented 1 month ago

This Issue was addressed in PR #56