From ad67e2f010148138ef53e5ae2e82a1fd42438bf3 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Mon, 24 Jun 2019 14:31:26 -0400 Subject: [PATCH] Add devices module after refactor --- app/lib/ui/devices.js | 493 +++++++++++++++++++------------------- app/scripts/compile.sh | 1 + app/src/lib/ui/devices.ts | 470 ++++++++++++++++++------------------ 3 files changed, 482 insertions(+), 482 deletions(-) diff --git a/app/lib/ui/devices.js b/app/lib/ui/devices.js index 4856b19..e403de7 100644 --- a/app/lib/ui/devices.js +++ b/app/lib/ui/devices.js @@ -1,252 +1,243 @@ -const devices = {}; - -devices.init = function () { - 'use strict'; - devices.listen(); - devices.profiles(); - gui.overlay(true); - gui.spinner(true, 'Checking for connected devices...'); -}; -devices.profiles = function () { - 'use strict'; - const keys = Object.keys(cfg.profiles); - const elem = $('#profile') - let opt; - elem.empty(); - for (let key of keys) { - opt = $('