From a533ccbeba0d085389027607d9e96ac9780faf11 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Tue, 2 Jul 2019 12:21:26 -0600 Subject: [PATCH] Add some tweaks to help with upgrades --- package.json | 2 +- src/php/router.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6a42d1b..a1297cc 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "watch-js": "parcel watch template-index.html offline.html template-view.html template-passwordreset.html --no-hmr --public-url /lexiconga/", "watch-php": "cpx \"src/php/**/{*,.*}\" dist -v -w", "bundle": "npm run process-images && npm run bundle-js && npm run copy-files && npm run copy-php", - "bundle-js": "parcel build template-index.html offline.html template-view.html template-passwordreset.html", + "bundle-js": "parcel build template-index.html offline.html template-view.html template-passwordreset.html --no-source-maps", "copy-files": "cpx \"node_modules/upup/dist/*.min.js\" dist -v", "copy-php": "cpx \"src/php/**/{*,.*}\" dist", "process-images": "node dev/resize-images.js", diff --git a/src/php/router.php b/src/php/router.php index f18213d..de81048 100644 --- a/src/php/router.php +++ b/src/php/router.php @@ -1,5 +1,12 @@ Code Update in Progress

Please refresh the page in 10 minutes.

'; + return Response::html($html); +} + $view = isset($_GET['view']) ? $_GET['view'] : false; switch ($view) {