From 053567d2ad81fefbd5e52e3ba15cf7511205a963 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Tue, 28 Jun 2022 11:05:39 +1000 Subject: Add getImagePath() to lib.ts --- backend/README.md | 6 +++--- backend/cgi-bin/data.py | 1 - src/components/SettingsModal.vue | 2 +- src/components/Tile.vue | 6 +++--- src/components/TileInfoModal.vue | 5 +++-- src/lib.ts | 4 ++++ vite.config.js | 1 + 7 files changed, 15 insertions(+), 10 deletions(-) diff --git a/backend/README.md b/backend/README.md index 3efa585..3a56f76 100644 --- a/backend/README.md +++ b/backend/README.md @@ -3,6 +3,6 @@ - data: Contains scripts for generating the tree-of-life database # During development -Having generated the database as data/data.db, and with this as the current -directory, running `python3 -m http.server --cgi 8000` allows the client to access -the CGI script, and hence the database, via `localhost:8000/cgi-bin/data.py`. +Having generated the database as data/data.db, running `python3 -m http.server --cgi 8000`, +in this directory, allows the client to access the CGI script, and hence the database, +via `localhost:8000/cgi-bin/data.py`. diff --git a/backend/cgi-bin/data.py b/backend/cgi-bin/data.py index 05ed81b..b152c14 100755 --- a/backend/cgi-bin/data.py +++ b/backend/cgi-bin/data.py @@ -6,7 +6,6 @@ import sqlite3 import gzip, jsonpickle dbFile = "data/data.db" -imgDir = "data/img/" DEFAULT_SUGG_LIM = 5 MAX_SUGG_LIM = 50 CORS_ANY_ORIGIN = True # Used during development to avoid Cross-Origin Resource Sharing restrictions diff --git a/src/components/SettingsModal.vue b/src/components/SettingsModal.vue index 46433f7..4f9165f 100644 --- a/src/components/SettingsModal.vue +++ b/src/components/SettingsModal.vue @@ -56,7 +56,7 @@ @change="onSettingChg('transitionDuration')" class="my-auto" name="animationTimeInput"/>
{{uiOpts.transitionDuration}} ms
- +
{{uiOpts.autoActionDelay}} ms
diff --git a/src/components/Tile.vue b/src/components/Tile.vue index 15b8a0b..2a59d94 100644 --- a/src/components/Tile.vue +++ b/src/components/Tile.vue @@ -51,7 +51,7 @@