beta ember for the sake of the godly glimmer 2 performance
This commit is contained in:
parent
c4556a6503
commit
35f4c3589f
5 changed files with 9 additions and 7 deletions
|
|
@ -4,11 +4,11 @@ Music awesomeness for hue lights.
|
|||
|
||||
It lives at http://www.huegasm.com
|
||||
|
||||
# Current priorities
|
||||
- modernize the app
|
||||
## Current priorities
|
||||
- create a hybrid app with Cardova
|
||||
|
||||
## POSSIBLE FUTURE FEATURES
|
||||
- decode the hue color better
|
||||
- better visualizations
|
||||
- beat settings by interval
|
||||
- auto beat detection mode
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ const {
|
|||
Component,
|
||||
observer,
|
||||
computed,
|
||||
on,
|
||||
$
|
||||
} = Ember;
|
||||
|
||||
|
|
@ -95,7 +96,7 @@ export default Component.extend({
|
|||
}),
|
||||
|
||||
// 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')){
|
||||
let lightsData = this.get('lightsData'), lightsOn = this.get('activeLights').some(function(light) {
|
||||
return lightsData[light].state.on === true;
|
||||
|
|
@ -103,7 +104,7 @@ export default Component.extend({
|
|||
|
||||
this.set('lightsOn', lightsOn);
|
||||
}
|
||||
}),
|
||||
})),
|
||||
|
||||
onLightsOnChange: observer('lightsOn', function(){
|
||||
let lightsData = this.get('lightsData'),
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
}
|
||||
|
||||
#intro-paragraph {
|
||||
margin-bottom: 30px;
|
||||
margin-bottom: 20px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#lights-tab {
|
||||
min-height: 400px;
|
||||
min-height: 350px;
|
||||
.paper-icon {
|
||||
line-height: 0.8 !important;
|
||||
}
|
||||
|
|
@ -104,6 +104,7 @@
|
|||
@media(min-width:767px) {
|
||||
#lights-tab {
|
||||
font-size: 20px;
|
||||
min-height: 450px;
|
||||
.paper-icon {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
"HackTimer": "https://github.com/turuslan/HackTimer.git#~1.0.0",
|
||||
"JavaScript-ID3-Reader": "https://github.com/aadsm/JavaScript-ID3-Reader.git",
|
||||
"bootstrap-sass": "^3.3.5",
|
||||
"ember": "^2.9.0",
|
||||
"ember": "beta",
|
||||
"ember-cli-shims": "^0.1.0",
|
||||
"ember-load-initializers": "0.5.1",
|
||||
"ember-qunit-notifications": "0.1.0",
|
||||
|
|
|
|||
Reference in a new issue