From 3fa40bfccff42eec70aa1c4ec4fe74aca35d2fc3 Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Sat, 9 Mar 2019 10:58:28 -0500 Subject: [PATCH] Save and Load Data (#112) * Save options * Add clipboard package * Add methods to fetch and load state * Add save and load data to component --- package.json | 1 + src/components/Settings.vue | 56 ++++++++++++++++++++++++++++++++++--- src/main.js | 2 ++ src/store/index.js | 18 +++++++++++- yarn.lock | 32 +++++++++++++++++++++ 5 files changed, 104 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 6c9a835..f459476 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "node-sass": "^4.7.2", "sass-loader": "^6.0.6", "vue": "^2.5.2", + "vue-clipboard2": "^0.3.0", "vue-router": "^3.0.1", "vuex": "^3.0.1", "vuex-persistedstate": "^2.5.4" diff --git a/src/components/Settings.vue b/src/components/Settings.vue index c91792c..b9618a5 100644 --- a/src/components/Settings.vue +++ b/src/components/Settings.vue @@ -10,7 +10,7 @@

- Displayed Items + Spoilers and Displayed Items

@@ -59,9 +59,39 @@
-
- - +

+ Import and Export Saved Data +

+

+ Use these controls to port data to another device. + Copy the data string from the Export field on the source device and paste it into the Import field + on the target device. +

+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
@@ -70,11 +100,18 @@