From 9cf25e707fbd49d357cf295ad62f83d805c59c2c Mon Sep 17 00:00:00 2001 From: Naeem Model Date: Sun, 26 May 2024 02:38:19 +0000 Subject: Update Shiny app - Refactor data upload and sample data - Create custom data upload button - Create script.js - Change Shiny notification colour - Bug fix: ensure the case counts in bulk data that have only one row are treated as a data frame, by wrapping them in 'data.frame' before passing to 'apply' --- inst/app/index.html | 7 +- inst/app/scripts/data.R | 183 ++++++++++++++------- inst/app/templates/content/data/enter-data.html | 6 +- .../content/data/enter-data/bulk-entry.html | 33 ++-- .../content/data/enter-data/load-samples.html | 17 ++ inst/app/www/script.js | 21 +++ inst/app/www/styles.css | 6 +- 7 files changed, 195 insertions(+), 78 deletions(-) create mode 100644 inst/app/templates/content/data/enter-data/load-samples.html create mode 100644 inst/app/www/script.js (limited to 'inst/app') diff --git a/inst/app/index.html b/inst/app/index.html index b0f1245..504918d 100644 --- a/inst/app/index.html +++ b/inst/app/index.html @@ -5,12 +5,7 @@ {{ headContent() }} Rnaught Web - - +