beta ember for the sake of the godly glimmer 2 performance

This commit is contained in:
Egor 2016-10-18 10:06:00 -07:00
parent c4556a6503
commit 35f4c3589f
5 changed files with 9 additions and 7 deletions

View file

@ -4,11 +4,11 @@ Music awesomeness for hue lights.
It lives at http://www.huegasm.com It lives at http://www.huegasm.com
# Current priorities ## Current priorities
- modernize the app
- create a hybrid app with Cardova - create a hybrid app with Cardova
## POSSIBLE FUTURE FEATURES ## POSSIBLE FUTURE FEATURES
- decode the hue color better
- better visualizations - better visualizations
- beat settings by interval - beat settings by interval
- auto beat detection mode - auto beat detection mode

View file

@ -4,6 +4,7 @@ const {
Component, Component,
observer, observer,
computed, computed,
on,
$ $
} = Ember; } = Ember;
@ -95,7 +96,7 @@ export default Component.extend({
}), }),
// determines whether the lights are on/off for the lights switch // determines whether the lights are on/off for the lights switch
lightsOnChange: observer('lightsData.@each.state.on', 'activeLights.[]', function(){ lightsOnChange: on('init', observer('lightsData.@each.state.on', 'activeLights.[]', function(){
if(!this.get('strobeOn')){ if(!this.get('strobeOn')){
let lightsData = this.get('lightsData'), lightsOn = this.get('activeLights').some(function(light) { let lightsData = this.get('lightsData'), lightsOn = this.get('activeLights').some(function(light) {
return lightsData[light].state.on === true; return lightsData[light].state.on === true;
@ -103,7 +104,7 @@ export default Component.extend({
this.set('lightsOn', lightsOn); this.set('lightsOn', lightsOn);
} }
}), })),
onLightsOnChange: observer('lightsOn', function(){ onLightsOnChange: observer('lightsOn', function(){
let lightsData = this.get('lightsData'), let lightsData = this.get('lightsData'),

View file

@ -20,7 +20,7 @@
} }
#intro-paragraph { #intro-paragraph {
margin-bottom: 30px; margin-bottom: 20px;
font-size: 16px; font-size: 16px;
} }

View file

@ -1,5 +1,5 @@
#lights-tab { #lights-tab {
min-height: 400px; min-height: 350px;
.paper-icon { .paper-icon {
line-height: 0.8 !important; line-height: 0.8 !important;
} }
@ -104,6 +104,7 @@
@media(min-width:767px) { @media(min-width:767px) {
#lights-tab { #lights-tab {
font-size: 20px; font-size: 20px;
min-height: 450px;
.paper-icon { .paper-icon {
font-size: 24px; font-size: 24px;
} }

View file

@ -4,7 +4,7 @@
"HackTimer": "https://github.com/turuslan/HackTimer.git#~1.0.0", "HackTimer": "https://github.com/turuslan/HackTimer.git#~1.0.0",
"JavaScript-ID3-Reader": "https://github.com/aadsm/JavaScript-ID3-Reader.git", "JavaScript-ID3-Reader": "https://github.com/aadsm/JavaScript-ID3-Reader.git",
"bootstrap-sass": "^3.3.5", "bootstrap-sass": "^3.3.5",
"ember": "^2.9.0", "ember": "beta",
"ember-cli-shims": "^0.1.0", "ember-cli-shims": "^0.1.0",
"ember-load-initializers": "0.5.1", "ember-load-initializers": "0.5.1",
"ember-qunit-notifications": "0.1.0", "ember-qunit-notifications": "0.1.0",