From b063e1507c6343014fd7f945f0cc5d283e25d23f Mon Sep 17 00:00:00 2001
From: Bauke
Date: Mon, 11 Nov 2019 15:40:30 +0100
Subject: [PATCH] Feature: Add import and export settings buttons (fixes #2)
---
package.json | 2 +
source/assets/manifest.json | 1 +
source/html/options.html | 10 ++++
source/scss/_options.scss | 22 ++++++++
source/ts/import-export.ts | 108 ++++++++++++++++++++++++++++++++++++
source/ts/options.ts | 18 ++++++
6 files changed, 161 insertions(+)
create mode 100644 source/ts/import-export.ts
diff --git a/package.json b/package.json
index c5836c4..036edf8 100644
--- a/package.json
+++ b/package.json
@@ -74,8 +74,10 @@
"ts"
],
"global": [
+ "Blob",
"confirm",
"document",
+ "FileReader",
"performance",
"window"
],
diff --git a/source/assets/manifest.json b/source/assets/manifest.json
index bc7f6b8..91396fe 100644
--- a/source/assets/manifest.json
+++ b/source/assets/manifest.json
@@ -5,6 +5,7 @@
"description": "An updated and reimagined recreation of Tildes Extended to enhance and improve the experience of Tildes.net.",
"version": "0.1.1",
"permissions": [
+ "downloads",
"storage",
"*://tildes.net/*"
],
diff --git a/source/html/options.html b/source/html/options.html
index 86e33c8..4b0b775 100644
--- a/source/html/options.html
+++ b/source/html/options.html
@@ -157,6 +157,16 @@
please use the "Copy Bug Template" button below and fill out
the template in your message.
+
+
+ When importing settings, note that your current settings will be
+ deleted and overwritten with the new ones.
+