From d895636dab0f966f43491e75cb479ed1b55a20e6 Mon Sep 17 00:00:00 2001 From: Brandon Meeks Date: Wed, 17 Mar 2021 15:54:20 -0400 Subject: [PATCH 1/3] Updated Installation doc --- docs/installation.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index d986642fb..1ce931e83 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -24,6 +24,11 @@ $ npm install --only=prod $ pip3 install -r py/requirements.txt ``` +Create the config file used by micboard +``` +touch config.json +``` + build the micboard frontend and run micboard ``` $ npm run build @@ -37,6 +42,8 @@ $ sudo systemctl start micboard.service $ sudo systemctl enable micboard.service ``` +Visit your instance of Micboard at http://server_ip_address:8058 + Check the [configuration](configuration.md) docs for more information on configuring micboard. ## macOS - Desktop Application From 53a619d0e309d37b6a2376ddc373db17c0ceed33 Mon Sep 17 00:00:00 2001 From: Brandon Meeks Date: Wed, 17 Mar 2021 15:55:32 -0400 Subject: [PATCH 2/3] Update installation.md --- docs/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.md b/docs/installation.md index 1ce931e83..414b5c43d 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -26,7 +26,7 @@ $ pip3 install -r py/requirements.txt Create the config file used by micboard ``` -touch config.json +$ touch config.json ``` build the micboard frontend and run micboard From 88c8476fbe69cd653e32b8041f10e8e2f96211da Mon Sep 17 00:00:00 2001 From: Brandon Meeks Date: Sat, 20 Mar 2021 15:23:59 -0400 Subject: [PATCH 3/3] Added authentication to config actions. --- js/app.js | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/js/app.js b/js/app.js index 1826322e7..0b4c23d37 100644 --- a/js/app.js +++ b/js/app.js @@ -22,6 +22,8 @@ import '../node_modules/@ibm/plex/css/ibm-plex.css'; export const dataURL = 'data.json'; +const adminPass = 'Iccc6430$'; + export const micboard = []; micboard.MIC_MODELS = ['uhfr', 'qlxd', 'ulxd', 'axtd']; micboard.IEM_MODELS = ['p10t']; @@ -108,19 +110,29 @@ export function updateNavLinks() { function mapGroups() { $('a#go-extended').click(() => { - slotEditToggle(); + var promptPass = prompt('Please enter password to proceed.'); + if (promptPass != null && promptPass === adminPass) { + slotEditToggle(); $('.collapse').collapse('hide'); + } }); $('a#go-config').click(() => { - initConfigEditor(); + var promptPass = prompt('Please enter password to proceed.'); + if (promptPass != null && promptPass === adminPass) { + initConfigEditor(); $('.collapse').collapse('hide'); + } + }); $('a#go-groupedit').click(() => { - if (micboard.group !== 0) { - groupEditToggle(); - $('.collapse').collapse('hide'); + var promptPass = prompt('Please enter password to proceed.') + if (promptPass =! null && promptPass === adminPass) { + if (micboard.group !== 0) { + groupEditToggle(); + $('.collapse').collapse('hide'); + } } });