From d5336dbf1b68037395a33e87e64966457f94ab08 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sun, 11 Jun 2023 17:02:20 -0600 Subject: [PATCH] docs & comments & labels --- project.task.yaml | 6 ++++++ src/db/index.ts | 7 ++++++- src/views/StatisticsView.vue | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/project.task.yaml b/project.task.yaml index 5e8936f..466b8c5 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -10,6 +10,7 @@ - stats v1 : - 01 show numeric stats - 01 link to world for specific stats + - .5 don't load another instance of a bush if it already exists - contacts v1 : - 01 Import contact info a la QR code. @@ -35,9 +36,14 @@ - .5 customize favicon - .5 make advanced features harder to access; advanced build? +- 40 notifications + - pull, w/ scheduled runs + - push + - Release Minimum Viable Product : - Turn off stats-world or ensure it's usable (eg. cannot zoom out too far and lose world, cannot screenshot). - Add disclaimers. + - Rename DB to TimeSafari. - Switch default server to the public server. - Deploy to a server. - Ensure public server has limits that work for group adoption. diff --git a/src/db/index.ts b/src/db/index.ts index bcb3806..24ca885 100644 --- a/src/db/index.ts +++ b/src/db/index.ts @@ -41,7 +41,12 @@ const NonsensitiveSchemas = Object.assign({}, ContactsSchema, SettingsSchema); * https://stackoverflow.com/questions/72474803/error-the-top-level-await-experiment-is-not-enabled-set-experiments-toplevelaw */ -// create password and place password in localStorage +/** + * Create password and place password in localStorage. + * + * It's good practice to keep the data encrypted at rest, even if the secret + * is stored next to the app. + */ const secret = localStorage.getItem("secret") || Encryption.createRandomEncryptionKey(); diff --git a/src/views/StatisticsView.vue b/src/views/StatisticsView.vue index 1b32a14..6aa730c 100644 --- a/src/views/StatisticsView.vue +++ b/src/views/StatisticsView.vue @@ -75,7 +75,7 @@ {{ worldProperties.endTime }}
- + {{ worldProperties.animationDurationSeconds }} seconds