ademilter / Frame

New-tab extension for Chrome and Firefox
90 stars 12 forks source link

Export Notes and Tasks #7

Open aligoren opened 6 years ago

aligoren commented 6 years ago

I think there should be an export feature. It could be download to desktop or save to Dropbox-like systems. In this way the notes and tasks are will be portable.

ademilter commented 6 years ago

import/export ✅

aligoren commented 6 years ago

Hi, @ademilter thanks for the label.

There is an example of export data from localStorage. In this case, we have to create an anchor tag to download data.

const exportData = () => {
    const data = localStorage.getItem( "vuex" );
    const blob = new Blob([data], {type: "application/json"});
    const url = URL.createObjectURL(blob);
    const a = document.querySelector("#download");
    a.href = url;
    a.download = "file.json";
}
VictorTomaili commented 6 years ago

It's possible sync data with google drive api or firebase. When any changes applied, it's can automatically synced.