Skip to content

Add functionality to import and export settings - #20

Open
Crote wants to merge 1 commit into
raicem:masterfrom
Crote:settings-export
Open

Add functionality to import and export settings#20
Crote wants to merge 1 commit into
raicem:masterfrom
Crote:settings-export

Conversation

@Crote

@Crote Crote commented Mar 16, 2018

Copy link
Copy Markdown
Contributor

Closes #9

The settings page could probably use a prettier UI, but it's good enough for now.

@raicem

raicem commented Mar 25, 2018

Copy link
Copy Markdown
Owner

This is great work! This will be such a cool feature. While it works just fine now, I think it may use a little polish in the UI. Maybe we can hide the big textarea for users not interested in it and show it when user clicks import or export. I can do that myself, so I'm not expecting that from you. But you can tackle it if you'd like.

I created a new branch (export-import) with this feature on the main repo. If we could go on from there that would be perfect. (I could not manage to merge this pull request to a new branch therefore I created it manually and merged it from the git command line). That's why it looks like it is not merged.

@pkonneker

Copy link
Copy Markdown
Contributor

Nice! I was thinking of doing this. Can't wait to play with it.

@qheaden

qheaden commented Jul 26, 2021

Copy link
Copy Markdown

Hi! I just installed this extension from the Firefox addons page, and it works great. I really would like the ability to import / export across machines though. I see that this PR adds that functionality, but it hasn't been touched since 2018. What needs to be done to get this available for release? Is there any development that still needs to be done? I can try and help there.

Thanks!

Comment thread options/options.js

function importSettings(event) {
try {
var data = JSON.parse(settingsArea.value);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var data = JSON.parse(settingsArea.value);
const data = JSON.parse(settingsArea.value);

Comment thread options/options.js

function exportSettings(event) {
getSites.then((storage) => {
var data = {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var data = {
const data = {

Comment thread options/options.html
.blocked-sites button {
margin-left: 0.5em;
}
#settings-area {

@jardondiego jardondiego Jul 28, 2021

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't it better to use css classes as selectors by default?

@Mladia

Mladia commented Jan 15, 2022

Copy link
Copy Markdown

I would like to draw some attention to this issue. This functionality is still needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add import / export function

6 participants