From 408b3d156d5b523625bf5abb4d5647aae6140d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20K=C3=B6hring?= Date: Sat, 11 Mar 2023 17:43:35 +0100 Subject: [PATCH] loading and saving to localstorage and filesystem --- index.html | 2 +- src/App.vue | 92 +++++++++++++++++--- src/app.css | 17 +++- src/components/AppMenu.vue | 28 ++++++ src/components/Tips.vue | 2 +- src/{example-data.js => example-data/sol.js} | 0 src/useObjects.js | 16 +++- src/useStorage.js | 45 ++++++++++ 8 files changed, 185 insertions(+), 17 deletions(-) create mode 100644 src/components/AppMenu.vue rename src/{example-data.js => example-data/sol.js} (100%) create mode 100644 src/useStorage.js diff --git a/index.html b/index.html index b07b8ee..bfc73e5 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Starsy ̋̄— Star System Generator + Starsy — Star System Generator
diff --git a/src/App.vue b/src/App.vue index e2182fe..e736326 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,13 +8,53 @@
- -
  • Edit planets by clicking directly inside the graphic or in the table below.
  • -
  • Drag planets around to change their distance.
  • -
  • The last removed planet can be restored from the table.
  • -
  • ONLY THE LAST removed planet can be restored.
  • -
  • Click on a planet to get more tips.
  • -
    + + + + + +
    @@ -22,20 +62,52 @@ diff --git a/src/components/Tips.vue b/src/components/Tips.vue index 884d220..e964119 100644 --- a/src/components/Tips.vue +++ b/src/components/Tips.vue @@ -1,5 +1,5 @@