From 11ad26fdbdea7190e43c9d6e58fddbafccec0a0c Mon Sep 17 00:00:00 2001 From: Egor Date: Sat, 26 Nov 2016 21:14:40 -0800 Subject: [PATCH] minor improvements --- README.md | 5 +-- .../pods/components/hue-controls/component.js | 5 ++- .../pods/components/hue-controls/template.hbs | 6 +++- .../pods/components/music-tab/component.js | 16 ---------- mobile/app/styles/dimmer.scss | 31 ++++++++++-------- mobile/app/styles/hue-controls.scss | 7 ++++ mobile/bower.json | 1 - mobile/config/environment.js | 2 +- mobile/ember-cli-build.js | 4 --- mobile/ember-cordova/cordova/config.xml | 1 - .../pods/components/hue-controls/component.js | 4 ++- .../pods/components/hue-controls/template.hbs | 8 +++-- web/app/styles/bootstrap.scss | 2 +- web/app/styles/dimmer.scss | 32 ++++++++++--------- web/app/styles/hue-controls.scss | 7 ++++ web/bower.json | 1 - web/ember-cli-build.js | 3 -- 17 files changed, 71 insertions(+), 64 deletions(-) diff --git a/README.md b/README.md index 402b8b1..752863c 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,9 @@ It lives at http://www.huegasm.com ## Current priorities - create a hybrid app with Cardova -## Bugs -- HackTimer not working? Slowness when switching to another browser tab, etc... +## WTF +Cordova disables the volume buttons for some reason. Monkey patching that shit ( must be a better way :( ). +Comment out: webView.setButtonPlumbedToJs lines from its source code. ## POSSIBLE FUTURE FEATURES - decode the hue color better diff --git a/mobile/app/pods/components/hue-controls/component.js b/mobile/app/pods/components/hue-controls/component.js index d4c6dce..bd72712 100644 --- a/mobile/app/pods/components/hue-controls/component.js +++ b/mobile/app/pods/components/hue-controls/component.js @@ -83,6 +83,7 @@ export default Component.extend({ if (!isNone(storage.get('huegasm.dimmerOn'))) { this.set('dimmerOn', storage.get('huegasm.dimmerOn')); + this.get('dimmerOnClass'); } if (!isNone(this.get('storage').get('huegasm.selectedTab'))) { @@ -106,7 +107,9 @@ export default Component.extend({ updateLightData(){ let fail = ()=>{ - if(this.get('displayFailure')){ + if(isNone(this.get('lightsData'))) { + this.send('clearBridge'); + } else if(this.get('displayFailure')) { this.get('notify').warning({html: ''}); this.set('displayFailure', false); diff --git a/mobile/app/pods/components/hue-controls/template.hbs b/mobile/app/pods/components/hue-controls/template.hbs index e301a39..aab6af7 100644 --- a/mobile/app/pods/components/hue-controls/template.hbs +++ b/mobile/app/pods/components/hue-controls/template.hbs @@ -1,7 +1,9 @@ {{#if ready}}