- {{/if}}
+ {{else}}
+ You failed to press the button in time. RETRY
+ {{/if}}
+
{{/if}}
{{else}}
{{#unless bridgeFindStatus}}
diff --git a/mobile/app/pods/components/hue-controls/component.js b/mobile/app/pods/components/hue-controls/component.js
index edfd701..87bec2d 100644
--- a/mobile/app/pods/components/hue-controls/component.js
+++ b/mobile/app/pods/components/hue-controls/component.js
@@ -16,7 +16,7 @@ export default Component.extend({
lightsData: null,
activeLights: A(),
tabList: ["Lights", "Music"],
- selectedTab: 1,
+ selectedTab: 0,
pauseLightUpdates: false,
lightsTabSelected: computed.equal('selectedTab', 0),
@@ -176,32 +176,24 @@ export default Component.extend({
'You may toggle a light\'s state by clicking on it.'
},
{
- element: '#settings',
+ element: $('#navigation .ember-basic-dropdown-trigger')[0],
intro: 'A few miscellaneous settings can be found here.
' +
'WARNING: clearing application settings will restore the application to its original state. This will even delete your playlist and any saved song beat preferences.',
- position: 'bottom'
+ position: 'left'
},
{
- element: '#dimmer',
intro: 'And that\'s it...Hope you enjoy the application. ;)
diff --git a/mobile/app/styles/app.scss b/mobile/app/styles/app.scss
index 727f6ce..fd8f669 100644
--- a/mobile/app/styles/app.scss
+++ b/mobile/app/styles/app.scss
@@ -53,32 +53,8 @@ div.ember-modal-dialog {
}
.title {
- margin-bottom: 30px;
+ margin-bottom: 50px;
img {
width: 200px;
}
}
-
-// fancy webkit scrollbars
-::-webkit-scrollbar {
- -webkit-appearance: none;
-}
-
-::-webkit-scrollbar:vertical {
- width: 12px;
-}
-
-::-webkit-scrollbar:horizontal {
- height: 12px;
-}
-
-::-webkit-scrollbar-thumb {
- background-color: rgba(0, 0, 0, .5);
- border-radius: 10px;
- border: 2px solid #ffffff;
- -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
-}
-
-::-webkit-scrollbar-track {
- background-color: #ffffff;
-}
diff --git a/mobile/app/styles/bridge-finder.scss b/mobile/app/styles/bridge-finder.scss
index 1ef813c..b71547b 100644
--- a/mobile/app/styles/bridge-finder.scss
+++ b/mobile/app/styles/bridge-finder.scss
@@ -17,10 +17,16 @@
#bridge-finder {
text-align: center;
- padding: 10px 15px 0;
+ padding: 20px 15px 0;
font-size: 16px;
}
#bridge-finder .md-bar {
background-color: $secondaryThemeColor !important;
}
+
+.bridge-finder-bottom {
+ margin-top: 30px;
+ width: 100%;
+ font-size: 18px;
+}
diff --git a/mobile/app/styles/dimmer.scss b/mobile/app/styles/dimmer.scss
index 4ae1155..a24ede1 100644
--- a/mobile/app/styles/dimmer.scss
+++ b/mobile/app/styles/dimmer.scss
@@ -59,15 +59,26 @@ body.dimmerOn {
}
.paper-icon.dimmerOn {
- color: inherit !important;
text-shadow: $glowingText;
opacity: 0.9 !important;
}
#dimmer {
+ background: url(images/lightswitch.png) !important;
+ width: 14px;
+ height: 34px;
+ display: inline-block;
float: left;
- width: 30px;
- height: 30px;
- background: url(images/huegasm.png) center center no-repeat !important;
- background-size: 30px 30px !important;
+ margin-left: 15px;
+ &.dimmerOn #dimmer-switch {
+ opacity: 0;
+ }
+ #dimmer-switch {
+ background: url(images/lightswitch.png) -14px 0px;
+ width: 14px;
+ height: 34px;
+ transition: opacity 0.4s;
+ float: left;
+ opacity: 1;
+ }
}
diff --git a/mobile/app/styles/hue-controls.scss b/mobile/app/styles/hue-controls.scss
index 09328c4..2406df9 100644
--- a/mobile/app/styles/hue-controls.scss
+++ b/mobile/app/styles/hue-controls.scss
@@ -1,4 +1,6 @@
#lights-tab {
+ margin-top: 4vh;
+ padding: 0;
.paper-icon {
line-height: 0.8 !important;
}
@@ -19,12 +21,12 @@
}
#navigation {
- padding: 15px 0;
+ padding: 15px 0 20px;
text-align: center;
}
.navigation-item {
- font-size: 18px;
+ font-size: 20px;
padding: 0 10px 0 10px;
&.active {
font-weight: bold;
@@ -64,7 +66,7 @@
position: absolute;
left: 33px;
top: 15px;
- font-size: 16px;
+ font-size: 16px !important;
}
#navigation .ember-basic-dropdown-trigger {
@@ -72,4 +74,6 @@
text-align: right;
float: right;
position: relative;
+ bottom: 10px;
+ transform: scale(1.1);
}
diff --git a/mobile/app/styles/light-group.scss b/mobile/app/styles/light-group.scss
index 5019857..260985f 100644
--- a/mobile/app/styles/light-group.scss
+++ b/mobile/app/styles/light-group.scss
@@ -18,7 +18,7 @@
left: 5px;
font-size: 40px;
color: rgba(255, 0, 0, 0.37);
- font-family: cursive;
+ font-family: Tahoma, Geneva, sans-serif;
}
.horizontal-light-group {
diff --git a/mobile/app/styles/music-tab.scss b/mobile/app/styles/music-tab.scss
index 5cdc20b..e573417 100644
--- a/mobile/app/styles/music-tab.scss
+++ b/mobile/app/styles/music-tab.scss
@@ -305,7 +305,7 @@
position: absolute;
top: 3px;
z-index: 1000;
- right: 5px;
+ left: 5px;
md-icon {
color: $secondaryThemeColor !important;
font-size: 25px;
diff --git a/mobile/app/styles/paper.scss b/mobile/app/styles/paper.scss
index f5cbeef..7e03213 100644
--- a/mobile/app/styles/paper.scss
+++ b/mobile/app/styles/paper.scss
@@ -10,6 +10,7 @@ md-checkbox.md-default-theme.md-checked .md-icon {
md-checkbox .md-label {
width: 125px;
+ text-align: left;
}
.md-button {
diff --git a/mobile/config/environment.js b/mobile/config/environment.js
index d96978c..22f5364 100644
--- a/mobile/config/environment.js
+++ b/mobile/config/environment.js
@@ -22,7 +22,7 @@ module.exports = function(environment) {
};
if (environment === 'development') {
- ENV.ignoreFailures = true;
+ // ENV.ignoreFailures = true;
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true;
diff --git a/mobile/ember-cordova/cordova/config.xml b/mobile/ember-cordova/cordova/config.xml
index 0d2daf8..ea3bcf1 100644
--- a/mobile/ember-cordova/cordova/config.xml
+++ b/mobile/ember-cordova/cordova/config.xml
@@ -1,13 +1,14 @@
- huegasm_mobile
+ Huegasm
- A sample Apache Cordova application that responds to the deviceready event.
-
-
- Apache Cordova Team
-
+ Huegasm is a free web application for managing and synchronizing your Philips Hue lights with the beat of your music.
+
+
+ Egor Philippov
+
+
@@ -17,6 +18,7 @@
+
@@ -24,36 +26,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -67,5 +39,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mobile/ember-cordova/cordova/platforms/.gitkeep b/mobile/ember-cordova/cordova/platforms/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/mobile/ember-cordova/cordova/res/screen/android/land-hdpi.png b/mobile/ember-cordova/cordova/res/screen/android/land-hdpi.png
new file mode 100644
index 0000000..b56e6d3
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/android/land-hdpi.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/android/land-ldpi.png b/mobile/ember-cordova/cordova/res/screen/android/land-ldpi.png
new file mode 100644
index 0000000..bb03611
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/android/land-ldpi.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/android/land-mdpi.png b/mobile/ember-cordova/cordova/res/screen/android/land-mdpi.png
new file mode 100644
index 0000000..58bb386
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/android/land-mdpi.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/android/land-xhdpi.png b/mobile/ember-cordova/cordova/res/screen/android/land-xhdpi.png
new file mode 100644
index 0000000..58a1720
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/android/land-xhdpi.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/android/land-xxhdpi.png b/mobile/ember-cordova/cordova/res/screen/android/land-xxhdpi.png
new file mode 100644
index 0000000..cd8c961
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/android/land-xxhdpi.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/android/land-xxxhdpi.png b/mobile/ember-cordova/cordova/res/screen/android/land-xxxhdpi.png
new file mode 100644
index 0000000..222c301
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/android/land-xxxhdpi.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/android/port-hdpi.png b/mobile/ember-cordova/cordova/res/screen/android/port-hdpi.png
new file mode 100644
index 0000000..ea8de11
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/android/port-hdpi.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/android/port-ldpi.png b/mobile/ember-cordova/cordova/res/screen/android/port-ldpi.png
new file mode 100644
index 0000000..3bb8f22
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/android/port-ldpi.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/android/port-mdpi.png b/mobile/ember-cordova/cordova/res/screen/android/port-mdpi.png
new file mode 100644
index 0000000..b6da1e4
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/android/port-mdpi.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/android/port-xhdpi.png b/mobile/ember-cordova/cordova/res/screen/android/port-xhdpi.png
new file mode 100644
index 0000000..2a97841
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/android/port-xhdpi.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/android/port-xxhdpi.png b/mobile/ember-cordova/cordova/res/screen/android/port-xxhdpi.png
new file mode 100644
index 0000000..e939934
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/android/port-xxhdpi.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/android/port-xxxhdpi.png b/mobile/ember-cordova/cordova/res/screen/android/port-xxxhdpi.png
new file mode 100644
index 0000000..3f3b0cf
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/android/port-xxxhdpi.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/1024-768.png b/mobile/ember-cordova/cordova/res/screen/ios/1024-768.png
new file mode 100644
index 0000000..c6cd93b
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/1024-768.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/1136-640.png b/mobile/ember-cordova/cordova/res/screen/ios/1136-640.png
new file mode 100644
index 0000000..087f3c0
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/1136-640.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/1242-2208.png b/mobile/ember-cordova/cordova/res/screen/ios/1242-2208.png
new file mode 100644
index 0000000..5d399d9
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/1242-2208.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/1334-750.png b/mobile/ember-cordova/cordova/res/screen/ios/1334-750.png
new file mode 100644
index 0000000..9a0dec2
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/1334-750.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/1536-2048.png b/mobile/ember-cordova/cordova/res/screen/ios/1536-2048.png
new file mode 100644
index 0000000..23ab2b4
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/1536-2048.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/2048-1536.png b/mobile/ember-cordova/cordova/res/screen/ios/2048-1536.png
new file mode 100644
index 0000000..3bbd242
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/2048-1536.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/2048-2732.png b/mobile/ember-cordova/cordova/res/screen/ios/2048-2732.png
new file mode 100644
index 0000000..6d7a718
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/2048-2732.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/2208-1242.png b/mobile/ember-cordova/cordova/res/screen/ios/2208-1242.png
new file mode 100644
index 0000000..60984b0
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/2208-1242.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/2732-2048.png b/mobile/ember-cordova/cordova/res/screen/ios/2732-2048.png
new file mode 100644
index 0000000..1859d2d
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/2732-2048.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/640-1136.png b/mobile/ember-cordova/cordova/res/screen/ios/640-1136.png
new file mode 100644
index 0000000..4a9886e
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/640-1136.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/640-960.png b/mobile/ember-cordova/cordova/res/screen/ios/640-960.png
new file mode 100644
index 0000000..7dc43ea
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/640-960.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/750-1334.png b/mobile/ember-cordova/cordova/res/screen/ios/750-1334.png
new file mode 100644
index 0000000..43c016f
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/750-1334.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/768-1024.png b/mobile/ember-cordova/cordova/res/screen/ios/768-1024.png
new file mode 100644
index 0000000..a56ccf4
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/768-1024.png differ
diff --git a/mobile/ember-cordova/cordova/res/screen/ios/960-640.png b/mobile/ember-cordova/cordova/res/screen/ios/960-640.png
new file mode 100644
index 0000000..92eb9ae
Binary files /dev/null and b/mobile/ember-cordova/cordova/res/screen/ios/960-640.png differ
diff --git a/mobile/ember-cordova/splash.svg b/mobile/ember-cordova/splash.svg
new file mode 100644
index 0000000..2d5dc65
--- /dev/null
+++ b/mobile/ember-cordova/splash.svg
@@ -0,0 +1,228 @@
+
+
+
diff --git a/mobile/package.json b/mobile/package.json
index 7c3d885..904136f 100644
--- a/mobile/package.json
+++ b/mobile/package.json
@@ -9,8 +9,9 @@
},
"scripts": {
"start": "ember server",
- "build": "ember build",
+ "build": "ember cordova:build --platform=android --environment=production --release",
"test": "ember test",
+ "cordova": "ember cdv:serve --platform=android"
},
"engines": {
"node": ">= 0.10.0"
@@ -35,6 +36,7 @@
"ember-cli-test-loader": "^1.1.0",
"ember-cli-uglify": "^1.2.0",
"ember-cordova": "^0.3.5",
+ "ember-cordova-keyboard": "0.0.1",
"ember-export-application-global": "^1.0.4",
"ember-load-initializers": "^0.5.0",
"ember-modal-dialog": "^0.9.0",
diff --git a/mobile/public/assets/images/lightswitch.png b/mobile/public/assets/images/lightswitch.png
new file mode 100644
index 0000000..1be38d5
Binary files /dev/null and b/mobile/public/assets/images/lightswitch.png differ
diff --git a/mobile/public/crossdomain.xml b/mobile/public/crossdomain.xml
deleted file mode 100644
index 0c16a7a..0000000
--- a/mobile/public/crossdomain.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mobile/public/humans.txt b/mobile/public/humans.txt
deleted file mode 100644
index 2112c33..0000000
--- a/mobile/public/humans.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-/* TEAM */
-Your title: Egor Philippov
-Site: https://www.linkedin.com/pub/egor-philippov/7b/220/148
-Location: Vancouver, Canada.
-
-/* THANKS */
-Edmond Cheung - favicons + huegasm logo
-Liviu Antonescu - filming + video editing of the intro
-Olamide Omorodion - business consultation
-
-/* SITE */
-Last update: 2015
-Standards: HTML5, CSS3
-Components: ember, jQuery, bootstrap, font-awesome, intro.js, locallyjs, nouislider, dancer.js, ember paper, ember notify, JavaScript-ID3-Reader
diff --git a/mobile/public/robots.txt b/mobile/public/robots.txt
deleted file mode 100644
index f591645..0000000
--- a/mobile/public/robots.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# http://www.robotstxt.org
-User-agent: *
-Disallow:
diff --git a/mobile/tests/unit/pods/application/route-test.js b/mobile/tests/unit/pods/application/route-test.js
new file mode 100644
index 0000000..9808c43
--- /dev/null
+++ b/mobile/tests/unit/pods/application/route-test.js
@@ -0,0 +1,11 @@
+import { moduleFor, test } from 'ember-qunit';
+
+moduleFor('route:application', 'Unit | Route | application', {
+ // Specify the other units that are required for this test.
+ // needs: ['controller:foo']
+});
+
+test('it exists', function(assert) {
+ let route = this.subject();
+ assert.ok(route);
+});
diff --git a/web/app/templates/application.hbs b/web/app/pods/application/template.hbs
similarity index 100%
rename from web/app/templates/application.hbs
rename to web/app/pods/application/template.hbs
diff --git a/web/app/pods/components/hue-controls/component.js b/web/app/pods/components/hue-controls/component.js
index b94879e..d0106ef 100644
--- a/web/app/pods/components/hue-controls/component.js
+++ b/web/app/pods/components/hue-controls/component.js
@@ -114,6 +114,9 @@ export default Component.extend({
storage.remove('huegasm.bridgeIp');
location.reload();
},
+ toggleDimmer() {
+ this.sendAction("toggleDimmer");
+ },
clearAllSettings() {
this.get('storage').clear();
location.reload();
@@ -173,32 +176,23 @@ export default Component.extend({
'You may toggle a light\'s state by clicking on it.'
},
{
- element: '#settings',
+ element: $('#navigation .ember-basic-dropdown-trigger')[0],
intro: 'A few miscellaneous settings can be found here.
' +
'WARNING: clearing application settings will restore the application to its original state. This will even delete your playlist and any saved song beat preferences.',
position: 'bottom'
},
{
- element: '#dimmer',
intro: 'And that\'s it...Hope you enjoy the application. ;)
' +
- 'TIP: click on the icon to switch to a darker theme.',
- position: 'top'
+ 'TIP: click on the lightswitch to switch to a darker theme.'
}
]
});
- // it's VERY ugly but it works... the jQuery massacre :'(
intro.onchange((element) => {
if(element.id === 'music-tab' || element.id === 'playlist' || element.id === 'player-area' || element.id === 'beat-option-row' || element.id === 'beat-option-button-group' || element.id === 'beat-container' || element.id === 'using-mic-audio-tooltip'){
- $('#music-tab').removeClass('hidden');
- $('#lights-tab').addClass('hidden');
- $('.navigation-item').eq(0).removeClass('active');
- $('.navigation-item').eq(1).addClass('active');
+ $('.navigation-item').eq(0).click();
} else {
- $('#lights-tab').removeClass('hidden');
- $('#music-tab').addClass('hidden');
- $('.navigation-item').eq(1).removeClass('active');
- $('.navigation-item').eq(0).addClass('active');
+ $('.navigation-item').eq(1).click();
}
if(element.id === 'music-tab' || element.id === 'playlist' || element.id === 'player-area'){
@@ -210,27 +204,6 @@ export default Component.extend({
}
});
- let onFinish = ()=>{
- this.set('activeTab', 1);
- $('#music-tab').removeClass('hidden');
- $('#lights-tab').addClass('hidden');
- $('.navigation-item').eq(0).removeClass('active');
- $('.navigation-item').eq(1).addClass('active');
- }, onExit = ()=>{
- let dimmer = $('#dimmer');
-
- onFinish();
- dimmer.popover({
- trigger: 'manual',
- placement: 'top',
- content: 'Click on this icon to toggle the dark theme.'
- }).popover('show');
-
- setTimeout(()=>{
- dimmer.popover('hide');
- }, 5000);
- };
-
// skip hidden/missing elements
intro.onafterchange((element)=>{
let elem = $(element);
@@ -241,7 +214,7 @@ export default Component.extend({
run.later(this, function() {
$('.introjs-tooltip').velocity('scroll');
}, 500);
- }).onexit(onExit).oncomplete(onFinish).start();
+ }).start();
}
}
});
diff --git a/web/app/pods/components/hue-controls/template.hbs b/web/app/pods/components/hue-controls/template.hbs
index fd415e5..fa2f318 100644
--- a/web/app/pods/components/hue-controls/template.hbs
+++ b/web/app/pods/components/hue-controls/template.hbs
@@ -1,5 +1,9 @@
{{#if ready}}