ソースを参照

Make it a cloudron app

Johannes Zellner 9 年 前
親
コミット
1603225254

+ 4 - 0
.dockerignore

@@ -0,0 +1,4 @@
+.git
+.gitignore
+.dockerignore
+node_modules

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+node_modules/

+ 2 - 0
CHANGELOG

@@ -0,0 +1,2 @@
+[0.1.0]
+* Initial version

+ 22 - 0
CloudronManifest.json

@@ -0,0 +1,22 @@
+{
+  "id": "io.cloudron.hue",
+  "title": "HUE",
+  "author": "Johannes Zellner",
+  "description": "file://DESCRIPTION.md",
+  "changelog": "file://CHANGELOG",
+  "tagline": "Philips HUE remote controller",
+  "version": "0.1.0",
+  "healthCheckPath": "/",
+  "httpPort": 3000,
+  "addons": {
+    "localstorage": {}
+  },
+  "manifestVersion": 1,
+  "website": "https://nebulon.de",
+  "contactEmail": "johannes@nebulon.de",
+  "icon": "",
+  "tags": [
+    "hue"
+  ],
+  "mediaLinks": [ ]
+}

+ 1 - 0
DESCRIPTION.md

@@ -0,0 +1 @@
+Please add the appstore description in markdown format here.

+ 15 - 0
Dockerfile

@@ -0,0 +1,15 @@
+FROM cloudron/base:0.10.0
+MAINTAINER Johannes Zellner <johannes@nebulon.de>
+
+ENV PATH /usr/local/node-6.9.5/bin:$PATH
+
+RUN mkdir -p /app/code
+WORKDIR /app/code
+
+COPY frontend /app/code/frontend/
+COPY backend /app/code/backend/
+COPY start.sh app.js package.json /app/code/
+
+RUN npm install --production
+
+CMD [ "/app/code/start.sh" ]

+ 4 - 2
app.js

@@ -2,9 +2,11 @@
 
 'use strict';
 
-var config = require(process.env.HOME + '/.hue.json');
 var server = require('./backend/server.js');
 
-console.log(config)
+var configFile = process.argv[2] || process.env.HOME + '/.hue.json';
+var config = require(configFile);
+
+console.log('Using config: ', config);
 
 server.init(config);

+ 7 - 3
backend/routes.js

@@ -2,6 +2,7 @@
 
 module.exports = {
     init: init,
+    getConfig: getConfig,
     getLights: getLights,
     setLight: setLight
 };
@@ -16,11 +17,14 @@ var api = null;
 function init(hueConfig, callback) {
     api = new HueApi(hueConfig.host, hueConfig.username);
 
+    callback();
+}
+
+function getConfig(req, res) {
     api.config(function (error, result) {
-        if (error) return callback(new Error('Unable to connect', error));
-        if (!result.zigbeechannel) return callback(new Error('Invalid username'));
+        if (error) return res.send(500, 'Unable to connect to bridge');
 
-        callback();
+        res.send(200, result);
     });
 }
 

+ 2 - 0
backend/server.js

@@ -11,8 +11,10 @@ var express = require('express'),
 function init(hueConfig) {
     var app = express();
 
+    app.use(express.static('frontend'));
     app.use(bodyParser.json());
 
+    app.get ('/api/config', routes.getConfig);
     app.get ('/api/lights', routes.getLights);
     app.post('/api/lights/:id', routes.setLight);
 

ファイルの差分が大きいため隠しています
+ 4 - 0
frontend/css/vue-material.css


+ 19 - 0
frontend/img/aura.svg

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<g>
+	<path fill="none" d="M9.9,14.2c2.5,2.3,5,3.6,5.7,2.9c0.6-0.7-0.9-3.1-3.3-5.4c-2.5-2.3-5-3.6-5.7-2.9C5.9,9.5,7.4,11.9,9.9,14.2z"
+		/>
+	<path fill="#010202" d="M2.6,20.6L2.6,20.6c0.2,0.8,0.9,1.3,1.6,1.5c0.6,0.1,1,0,2.6-0.2c1.3-0.2,2.9,0,3.5,0
+		c-3.7-2.1-6.4-5.1-8-7.4c0.1,0.7,0.3,2.1,0.3,3.4C2.6,19.6,2.4,20,2.6,20.6z"/>
+	<path fill="#010202" d="M1.6,11.1c0.2,0.7,4.1,8.2,12.1,11.3l3.9,0.7c-3-1.4-6.5-3.8-9.7-6.8C5,13.5,2.4,10.4,0.8,7.6
+		C1,8.6,1.5,10.6,1.6,11.1z"/>
+	<path fill="#010202" d="M14.9,8.6C7.8,1.9,2.1-0.5,0.4,1.3c-0.9,0.9-0.3,3,1.2,5.6C1.1,5.6,1,4.4,1.7,3.6c0.3-0.4,0.9-0.8,2-0.8
+		c2.6,0,6.6,2.4,10.8,6.3c3.6,3.4,9,9.8,6.8,12.3c-0.3,0.3-0.8,0.7-1.8,0.7c-0.7,0-1.5-0.2-2.5-0.6c3.1,1.6,5.7,2.2,6.6,1.2
+		C25.3,20.9,21.2,14.3,14.9,8.6z"/>
+	<path fill="#010202" d="M9,15.1c4,3.6,8.3,6,10.5,6c0.5,0,0.8-0.1,1.1-0.4c1.2-1.4-2-6.3-6.8-10.9C9.5,5.8,5.8,3.9,3.7,3.9
+		c-0.6,0-1,0.2-1.3,0.4C1.2,5.7,4.2,10.7,9,15.1z M6.5,8.8c0.6-0.7,3.2,0.6,5.7,2.9c2.5,2.3,4,4.7,3.3,5.4c-0.6,0.7-3.2-0.6-5.7-2.9
+		C7.4,11.9,5.9,9.5,6.5,8.8z"/>
+</g>
+</svg>

+ 7 - 0
frontend/img/beyond_ceiling_pendant_table.svg

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path fill="#010202" d="M11.9,6.6c0.1,0,0.2,0,0.2,0c4.8,0.2,7.4,2.6,8.4,3.8H3.6C6.7,6.9,10.7,6.6,11.9,6.6z"/>
+<path fill="#010202" d="M0,17.4c1.2-3.4,4.2-5.5,4.9-5.9h14.3c3,1.9,4.4,4.8,4.9,5.9H0z"/>
+</svg>

+ 12 - 0
frontend/img/bloom.svg

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path fill="#010202" d="M5.8,18.2L5.8,18.2L5.8,18.2c-0.7-0.7-1.3-1.4-1.8-2l-3.8,4.1c0,0-0.5,0.5,0.1,0.7c0.6,0.2,2.5,0.9,7.3,0.6
+	c0.7,0,1.8-0.1,2.3-0.4C8.1,20.2,6.7,19,6,18.4L5.8,18.2z"/>
+<path fill="#010202" d="M1.9,5c-0.7,2.9-0.6,7.5,4.6,12.6c1.2,1.1,5,4.6,10.1,5.1c1.8,0.2,2.8,0,4.3-0.6c0,0,0,0,0,0
+	c-3.3-0.4-8.1-3-11.8-6.6C5.2,11.9,2.6,8,1.9,5"/>
+<path fill="#010202" d="M17,8.1C11.6,2.9,5.3-0.1,3.4,1.8c-2.1,2,0.8,7.8,6.3,13.1c5.5,5.2,11.9,7.4,13.7,5.8
+	C25.3,18.9,22.5,13.3,17,8.1 M20.3,17.6c-1.3,1.1-5.4-0.5-9.1-4c-3.7-3.6-5.9-7.4-4.5-8.9C7.9,3.5,12.2,5.5,16,9
+	S21.6,16.5,20.3,17.6"/>
+</svg>

+ 9 - 0
frontend/img/br30.svg

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path fill="#010202" d="M12,2.6c-7.5,0-9.4,0.7-9.4,0.7C2.8-0.1,12,0,12,0s9.2-0.1,9.4,3.2C21.4,3.2,19.7,2.6,12,2.6"/>
+<path fill="#010202" d="M5,8h14c0,0,1.7-3,2-4H3C3,4,3.8,6.2,5,8"/>
+<path fill="#010202" d="M11,9H6c0,0,3,1.5,3,8l0,1c0,0,0,1,1,1h1h2h1c1,0,1-1,1-1l0-1c0-6.5,3-8,3-8h-5H11z"/>
+<path fill="#010202" d="M12,24c-1,0-1-1-1-1c-1,0-1-1-1-1v-2h4v2c0,0,0,1-1,1C13,23,13,24,12,24"/>
+</svg>

+ 15 - 0
frontend/img/br30_slim.svg

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path d="M19.962,2.085C19.401,0.772,16.511,0,12.003,0C7.492,0,4.6,0.773,4.043,2.089C5.242,2.178,11.851,2.61,19.962,2.085z"/>
+<path d="M12,20.19L12,20.19c-0.233,0-0.486-0.016-0.741-0.034c-0.42-0.018-0.839-0.05-1.258-0.098c0.01,0.741,0.028,2.206,0,2.622
+	c-0.018,0.284,0.518,0.614,1.032,0.745c0.428,0.111,0.569,0.345,0.652,0.485c0.014,0.023,0.033,0.055,0.038,0.06
+	c0.001,0,0.063,0.03,0.277,0.031h0c0.214-0.002,0.276-0.031,0.277-0.031c0.005-0.006,0.024-0.037,0.037-0.06
+	c0.084-0.14,0.224-0.374,0.652-0.485c0.514-0.131,1.05-0.461,1.032-0.745c-0.029-0.415-0.01-1.88,0-2.622
+	c-0.42,0.048-0.84,0.08-1.261,0.098C12.484,20.175,12.231,20.19,12,20.19z"/>
+<path d="M19.996,3.084c-2.953,0.19-5.714,0.257-8.089,0.257c-4.095,0-7.043-0.19-7.898-0.253C3.968,4.201,4.084,4.666,5.32,6.025
+	l0.479,0.526C7.508,8.427,8.483,9.511,8.642,10c0.157,0.481,0.454,2.341,0.454,5.936c0,2.228,0.179,2.777,0.448,3.066
+	c1.629,0.243,3.291,0.243,4.918-0.001c0.268-0.289,0.447-0.84,0.447-3.065c0-3.595,0.297-5.454,0.454-5.936
+	c0.159-0.489,1.134-1.573,2.843-3.449l0.479-0.526C19.923,4.664,20.037,4.2,19.996,3.084z"/>
+</svg>

+ 18 - 0
frontend/img/bridge_v1.svg

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<g>
+	<circle fill="none" cx="12" cy="5.3" r="0.9"/>
+	<path fill="none" d="M12,8.7c-1.8,0-3.3,1.5-3.3,3.3s1.5,3.3,3.3,3.3s3.3-1.5,3.3-3.3S13.8,8.7,12,8.7z M12,14c-1.1,0-2-0.9-2-2
+		s0.9-2,2-2s2,0.9,2,2S13.1,14,12,14z"/>
+	<circle fill="none" cx="7.3" cy="7.3" r="0.9"/>
+	<circle fill="none" cx="5.4" cy="12" r="0.9"/>
+	<circle fill="#010202" cx="12" cy="12" r="2"/>
+	<path fill="#010202" d="M24,12c0-6.6-5.4-12-12-12H12C5.4,0,0,5.4,0,12c0,6.6,5.4,12,12,12h0C18.6,24,24,18.6,24,12L24,12z M12,4.4
+		c0.5,0,0.9,0.4,0.9,0.9c0,0.5-0.4,0.9-0.9,0.9c-0.5,0-0.9-0.4-0.9-0.9C11.1,4.8,11.5,4.4,12,4.4z M5.4,12.9c-0.5,0-0.9-0.4-0.9-0.9
+		c0-0.5,0.4-0.9,0.9-0.9c0.5,0,0.9,0.4,0.9,0.9C6.3,12.5,5.9,12.9,5.4,12.9z M7.3,8.3c-0.5,0-0.9-0.4-0.9-0.9c0-0.5,0.4-0.9,0.9-0.9
+		c0.5,0,0.9,0.4,0.9,0.9C8.2,7.8,7.8,8.3,7.3,8.3z M12,15.3c-1.8,0-3.3-1.5-3.3-3.3s1.5-3.3,3.3-3.3s3.3,1.5,3.3,3.3
+		S13.8,15.3,12,15.3z"/>
+</g>
+</svg>

+ 19 - 0
frontend/img/bridge_v2.svg

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<g>
+	<circle fill="none" cx="6.7" cy="4.2" r="0.9"/>
+	<circle fill="none" cx="11.9" cy="4.2" r="0.9"/>
+	<circle fill="none" cx="17.2" cy="4.2" r="0.9"/>
+	<path fill="none" d="M11.9,7.5c-2.5,0-4.6,2-4.6,4.6c0,2.5,2,4.6,4.6,4.6c2.5,0,4.6-2,4.6-4.6C16.5,9.6,14.5,7.5,11.9,7.5z
+		 M11.9,15.3c-1.8,0-3.3-1.5-3.3-3.3c0-1.8,1.5-3.3,3.3-3.3c1.8,0,3.3,1.5,3.3,3.3C15.2,13.9,13.7,15.3,11.9,15.3z"/>
+	<path fill="#010202" d="M24,18V6c0-0.1,0-1.5-0.7-3C22.6,1.7,21.1,0,18,0H6C6,0,4.5,0,3.1,0.7C1.7,1.4,0,2.9,0,6V18
+		c0,0.1,0,1.5,0.7,3C1.4,22.3,2.9,24,6,24H18c0.1,0,1.5,0,3-0.7C22.3,22.6,24,21.1,24,18z M11.9,3.3c0.5,0,0.9,0.4,0.9,0.9
+		c0,0.5-0.4,0.9-0.9,0.9c-0.5,0-0.9-0.4-0.9-0.9C11,3.7,11.4,3.3,11.9,3.3z M5.8,4.2c0-0.5,0.4-0.9,0.9-0.9c0.5,0,0.9,0.4,0.9,0.9
+		c0,0.5-0.4,0.9-0.9,0.9C6.2,5.1,5.8,4.7,5.8,4.2z M11.9,16.6c-2.5,0-4.6-2-4.6-4.6c0-2.5,2-4.6,4.6-4.6c2.5,0,4.6,2,4.6,4.6
+		C16.5,14.6,14.5,16.6,11.9,16.6z M17.2,5.1c-0.5,0-0.9-0.4-0.9-0.9c0-0.5,0.4-0.9,0.9-0.9c0.5,0,0.9,0.4,0.9,0.9
+		C18.1,4.7,17.7,5.1,17.2,5.1z"/>
+	<circle fill="#010202" cx="11.9" cy="12.1" r="3.3"/>
+</g>
+</svg>

+ 11 - 0
frontend/img/ceiling.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<g>
+	<path d="M24,15.499c-0.002-2.484-4.694-4.497-12-4.497c-7.245,0-12,2.014-12,4.499c0,2.485,5.422,4.499,12,4.499
+		c6.577,0,11.998-2.013,12-4.498V15.499z"/>
+	<path d="M24,11.832V9.117c0-2.826-4.693-5.116-12-5.116c-7.244,0-12,2.29-12,5.116v2.715c2-1.787,6.532-2.836,12-2.836
+		S22,10.045,24,11.832z"/>
+</g>
+</svg>

+ 16 - 0
frontend/img/e14.svg

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24.009 24.009" xml:space="preserve">
+<g>
+	<path d="M10.984,22.993c0,0,0.002,1.003,1.001,1.003l0.047,0.007c0.999,0,0.99-1.007,0.99-1.007c1.021,0,0.983-1.003,0.983-1.003
+		v-2l1-1h-6l1,1v2C10.005,21.993,9.963,22.993,10.984,22.993z"/>
+	<path d="M16.404,13.576c0.015-0.175,0.033-0.484,0.05-0.804c-1.034,0.108-2.826,0.205-4.449,0.205
+		c-1.579,0-3.387-0.108-4.449-0.229c0.016,0.309,0.032,0.606,0.043,0.777c0.002,0.006,0.002,0.017,0.004,0.024
+		c0.186,1.852,0.733,3.363,1.231,4.435l6.344,0.001C15.682,16.92,16.245,15.419,16.404,13.576z"/>
+	<path d="M14.557,2.965c-0.851-1.88-1.782-2.959-2.553-2.959c-0.77,0-1.7,1.079-2.553,2.959C8.587,4.874,7.918,7.371,7.618,9.817
+		c-0.074,0.598-0.113,1.189-0.116,1.802c0,0,0.002,0.049,0.006,0.116c0.915,0.114,2.768,0.242,4.497,0.242
+		c1.636,0,3.557-0.108,4.498-0.216c0.003-0.066,0.005-0.114,0.005-0.114c-0.003-0.614-0.044-1.23-0.116-1.83
+		C16.092,7.371,15.424,4.874,14.557,2.965z"/>
+</g>
+</svg>

+ 14 - 0
frontend/img/e27_waca.svg

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24.004" xml:space="preserve">
+<g>
+	<path d="M15.016,17.984c0,0,0.953-6.403,1.934-9.972c-1.686,0.442-3.859,0.517-5.109,0.517c-1.875,0-3.637-0.157-4.778-0.409
+		C8.03,11.684,8.984,18,8.984,18S9.121,19,10,19h4C14,19,14.74,18.944,15.016,17.984z"/>
+	<path d="M5.817,1.326C4.242,2.329,5.935,5.324,6.674,6.892C6.69,6.928,6.706,6.962,6.721,6.995
+		c1.775,0.625,7.973,0.848,10.629-0.154c0.009-0.018,0.018-0.037,0.027-0.056c0.761-1.594,2.347-4.479,0.806-5.46
+		C16.487,0.246,13.76,0.001,12.013,0h-0.027C10.241,0.001,7.512,0.246,5.817,1.326z"/>
+	<path d="M13.011,23C14.031,23,14,22,14,22v-2h-4v2c0,0-0.042,1,0.979,1c0,0,0.002,1.004,1.001,1.004h0.034
+		C13.013,24.004,13.011,23,13.011,23z"/>
+</g>
+</svg>

+ 10 - 0
frontend/img/e27_white.svg

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path d="M12,24c-1,0-1-1-1-1c-1,0-1-1-1-1v-1h4v1c0,0,0,1-1,1C13,23,13,24,12,24"/>
+<path d="M18.6,8.5C18.9,7.8,19,7.1,19,6.4C19,2,15.9,0,12,0h0C8.1,0,5,2,5,6.4c0,0.7,0.1,1.5,0.4,2.1C7.5,8.2,9.7,8,12,8
+	C14.3,8,16.5,8.2,18.6,8.5z"/>
+<path d="M5.8,9.5c0,0,1.5,3.2,1.9,4.2C8.3,15,8.3,17,8.3,17s-0.1,0.4,0.6,2.2c0.1,0.2,0.3,0.3,0.5,0.3H12h0.1h2.6
+	c0.2,0,0.4-0.1,0.5-0.3c0.6-1.7,0.5-2.2,0.5-2.2s0-1.8,0.6-3c0.4-1,1.9-4.3,1.9-4.4c-2-0.3-4-0.6-6.2-0.6C9.9,9,7.8,9.2,5.8,9.5z"/>
+</svg>

+ 11 - 0
frontend/img/entity.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<g id="Layer_2">
+	<g>
+		<path fill="#010202" d="M12,3.7c-6.4,0-11.7,4.8-12,7.8h24C23.7,8.4,18.4,3.7,12,3.7z"/>
+		<path fill="#010202" d="M12,20.3c6.4,0,11.6-5,12-7.8H0C0.4,15.2,5.6,20.3,12,20.3z"/>
+	</g>
+</g>
+</svg>

+ 14 - 0
frontend/img/floor.svg

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<g>
+	<path d="M16.165,22c0-0.945-1.148-1.731-2.999-1.941v0.893h-2v-0.891C9.335,20.274,8.178,21.058,8.178,22c0,1.105,1.804,2,3.993,2
+		C14.361,24,16.165,23.105,16.165,22z"/>
+	<polygon points="13.167,20.953 13.167,20.059 13.167,10.997 11.167,10.998 11.167,20.062 11.167,20.953 	"/>
+	<path d="M18,7.699V4.875c-1,0.729-3.417,1.129-6,1.129s-4-0.4-6-1.129v2.824c0,1.277,2.362,2.311,6,2.311
+		C15.606,10.01,18,8.976,18,7.699z"/>
+	<path d="M12.167,0c-3.289,0-6,0.896-6,2.002c0,1.106,2.346,2.002,6,2.002c3.622,0,6-0.896,6-2.002C18.167,0.896,15.456,0,12.167,0z
+		"/>
+</g>
+</svg>

+ 10 - 0
frontend/img/go.svg

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path fill="#010202" d="M4.5,22.8c0.6,0.4,1.5,0.4,2.2-0.1c-1-0.6-2-1.4-2.8-2.2C3.7,21.4,3.9,22.3,4.5,22.8"/>
+<path fill="#010202" d="M17.9,7.5c4.4,5.4,6.5,10.9,4.8,12.3c-1.7,1.4-6.7-1.8-11-7.2C7.3,7.2,5.1,1.7,6.9,0.3
+	C8.6-1.1,13.5,2.1,17.9,7.5"/>
+<path fill="#010202" d="M10,13.9c-2.2-2.8-4-5.7-5-8.2C4.2,3.7,4,2.1,4.2,1C1.6,3.9-1.6,9.5,3.1,17.8c2,3.3,6.6,6.1,11.6,6.2
+	c2.5,0,4.8-0.7,6.7-1.8C17.9,22.1,13.2,17.9,10,13.9"/>
+</svg>

+ 19 - 0
frontend/img/gu10.svg

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path d="M10.495,24.005H9.499C9.223,24.005,9,23.78,9,23.504v-0.772c0-0.276,0.223-0.501,0.499-0.501h0.997
+	c0.276,0,0.501,0.225,0.501,0.501v0.772C10.996,23.78,10.771,24.005,10.495,24.005z"/>
+<path d="M14.497,24.005h-0.997c-0.276,0-0.499-0.225-0.499-0.501v-0.772c0-0.276,0.223-0.501,0.499-0.501h0.997
+	c0.276,0,0.501,0.225,0.501,0.501v0.772C14.998,23.78,14.773,24.005,14.497,24.005z"/>
+<g>
+	<path d="M11.995,0.006C7.579,0.006,4,1.351,4,3.011c0,1.66,3.58,3.005,7.995,3.005c4.416,0,7.995-1.345,7.995-3.005
+		C19.99,1.351,16.411,0.006,11.995,0.006z M11.995,4.715c-2.959,0-5.358-0.806-5.358-1.8c0-0.994,2.399-1.8,5.358-1.8
+		c2.959,0,5.358,0.805,5.358,1.8C17.353,3.909,14.954,4.715,11.995,4.715z"/>
+</g>
+<path d="M12,12c-2.754,0-3.221-3.542-3.296-5.293c-1.55-0.262-2.939-0.702-3.91-1.332c0.122,1.703,0.448,5.096,1.191,6.524
+	C6.825,13.515,8,15.216,8,15.216v5.135c0,0,1.229,1.631,4,1.65c2.771-0.019,4-1.65,4-1.65v-5.135c0,0,1.175-1.701,2.015-3.317
+	c0.679-1.304,0.955-4.249,1.065-6.047c-1.048,0.468-2.373,0.785-3.785,0.968C15.215,8.602,14.691,12,12,12z"/>
+<path d="M12,11c0.464,0,0.848-0.152,1.161-0.469c0.791-0.802,1.059-2.424,1.129-3.607c-0.635,0.051-1.658,0.079-2.295,0.079
+	c-0.889,0-1.411-0.052-2.284-0.152c0.071,1.188,0.347,2.855,1.158,3.674C11.186,10.846,11.531,11,12,11z"/>
+</svg>

+ 19 - 0
frontend/img/gu10_perfectfit.svg

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path fill="#010202" d="M10.495,24.005H9.499C9.223,24.005,9,23.78,9,23.504v-0.772c0-0.276,0.223-0.501,0.499-0.501h0.997
+	c0.276,0,0.501,0.225,0.501,0.501v0.772C10.996,23.78,10.771,24.005,10.495,24.005z"/>
+<path fill="#010202" d="M15.495,24.005h-0.997c-0.276,0-0.499-0.225-0.499-0.501v-0.772c0-0.276,0.223-0.501,0.499-0.501h0.997
+	c0.276,0,0.501,0.225,0.501,0.501v0.772C15.996,23.78,15.771,24.005,15.495,24.005z"/>
+<g>
+	<path fill="#010202" d="M12.246-0.029c-5.419,0-9.814,1.411-9.814,3.149s4.394,3.149,9.814,3.149c5.417,0,9.812-1.411,9.812-3.149
+		S17.664-0.029,12.246-0.029z M12.245,4.984c-4.466,0-8.087-0.833-8.087-1.865c0-1.029,3.621-1.864,8.087-1.864
+		c4.468,0,8.089,0.835,8.089,1.864C20.334,4.151,16.713,4.984,12.245,4.984z"/>
+</g>
+<g>
+	<path fill="#010202" d="M2.98,5.396c0.958,5.965,3.812,8.333,3.994,8.504c0.196,0.182,0.775,1.018,0.775,1.771v5.191
+		c0,0.148,2.064,1.22,3.5,1.22h2.487c1.589,0,3.012-1.076,3.012-1.22v-5.191c0-0.871,0.512-1.507,0.766-1.771
+		c0.236-0.247,3.005-2.548,3.926-8.5c-2.026,1.271-5.699,1.869-9.226,1.869C8.683,7.269,5.005,6.67,2.98,5.396z"/>
+</g>
+</svg>

+ 8 - 0
frontend/img/hds.svg

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path fill="#010202" d="M18.9,0H5.1C4.9,0,4.8,0.1,4.8,0.3v23.4c0,0.2,0.1,0.3,0.3,0.3h13.9c0.2,0,0.3-0.1,0.3-0.3V0.3
+	C19.2,0.1,19.1,0,18.9,0z M15,20.9C15,21,15,21,15,20.9l-6,0c0,0,0,0,0,0v-4.4h6V20.9z M15,15.1H9v-2.4h6V15.1z M15,11.3H9V9.1h6
+	V11.3z M15,7.7H9V3.1c0,0,0,0,0,0H15c0,0,0,0,0,0V7.7z"/>
+</svg>

+ 11 - 0
frontend/img/impulse.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<g id="Layer_2">
+	<g>
+		<path fill="#010202" d="M12,18.8c6.4,0,11.7-2.8,12-6.3H0C0.3,16.1,5.6,18.8,12,18.8z"/>
+		<path fill="#010202" d="M12,5.2c-6.4,0-11.7,2.8-12,6.3h24C23.7,7.9,18.4,5.2,12,5.2z"/>
+	</g>
+</g>
+</svg>

+ 14 - 0
frontend/img/iris.svg

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path fill="#010202" d="M10.7,17.4c-1.5,0.8-2.8,2.2-3.4,2.9c0.1,0.3,0.2,0.6-0.1,0.7c-0.6,0.5-1.6,0.2-2.6-0.6
+	c-1-0.8-0.8-1.8-0.5-2.1c0.1-0.1,0.3-0.1,0.5-0.1c1.1-1.1,1.6-2.7,2-4.1c-3.2-3-4.4-5.6-4.8-7.3c-1.2,2.3-2,5-1.7,7.6
+	c0.7,6.3,6.4,9,9.1,9.3c1.7,0.2,3.6,0,5.4-0.7c1.6-0.6,3.1-1.7,4.5-2.9c-0.2,0-0.4,0-0.6,0C16.9,20.3,14.3,19.7,10.7,17.4"/>
+<path fill="#010202" d="M11.2,11.8L11.2,11.8L11.2,11.8C7.5,9,5,5.6,4.3,3C3.8,3.7,3.3,4.4,2.7,5.2C2.7,5.3,2.6,5.5,2.5,5.6
+	c0.1,1,0.6,4.9,6.7,9.6c6,4.6,9.6,4.5,11.2,3.7c0.1-0.1,0.1-0.1,0.2-0.2c0.6-0.6,1.1-1.3,1.6-2c-0.1,0-0.2,0-0.4,0
+	C19.1,16.7,15.5,15.1,11.2,11.8"/>
+<path fill="#010202" d="M18.8,5.3C14.6,1.7,10.7,0,8.4,0C6.2,0,6.1,1.1,6.1,1.8c0.1,2,2.5,5.5,6.2,8.4c7.3,5.5,10.8,5,11.5,3.6
+	C24.6,12.1,22.4,8.4,18.8,5.3 M19.1,11c-0.4,0.7-2.1,0.9-5.7-1.9c-1.9-1.5-2.9-2.9-3-4c0-0.3-0.1-1.1,1-1.1c1.2,0,3.1,0.8,5.2,2.7
+	C17.7,7.5,19.7,9.6,19.1,11"/>
+</svg>

+ 13 - 0
frontend/img/lightstrip.svg

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path fill="#010202" d="M16.6,0H0v5h16.9c0,0,6.1-0.4,7.1,4.7V5.1C24,5.1,24.2,0,16.6,0 M3,3H2V2h1V3z M8,3H7V2h1V3z M13,3h-1V2h1V3
+	z M18,3h-1V2h1V3z M22,4.7L21.3,4L22,3.3L22.7,4L22,4.7z"/>
+<path fill="#010202" d="M7.2,19c0,0-6.2,0.4-7.2-4.7v4.6c0,0-0.1,5.1,7.4,5.1H24v-5H7.2z M2,20.7L1.3,20L2,19.3L2.7,20L2,20.7z
+	 M7,22H6v-1h1V22z M12,22h-1v-1h1V22z M17,22h-1v-1h1V22z M22,22h-1v-1h1V22z"/>
+<path fill="#010202" d="M5.4,15.4c-1.2,0.4-2,0.7-2.4,1.3c0,0-0.1,0.2-0.1,0.4c0,0,0,0,0,0c-0.2-0.1-0.3-0.2-0.5-0.4
+	c-0.8-0.8-1.4-1.8-1.4-3c0-0.2,0-0.5,0.1-0.8c0.1-0.5,0.3-1,0.5-1.4c0,0,0,0,0,0c2.2-1.8,6.2-1.8,6.2-1.8L13,9.3
+	c2.1-0.2,4.3-0.4,5.6-0.7C20,8.3,20.7,7.7,21,7l0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0.1,0.1,0.3,0.3c1,0.8,1.7,2,1.7,3.4
+	c0,0.1,0,0.3,0,0.4c0,0.4-0.1,0.8-0.3,1.2c0,0,0,0,0,0l0,0c-2.2,2-6.5,2-6.5,2S6.2,15.1,5.4,15.4"/>
+</svg>

+ 15 - 0
frontend/img/motion_sensor.svg

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<g>
+	<circle fill="none" cx="12" cy="4.634" r="0.837"/>
+	<path fill="none" d="M12,6.8c-2.867,0-5.2,2.332-5.2,5.2s2.333,5.2,5.2,5.2c2.868,0,5.2-2.332,5.2-5.2S14.868,6.8,12,6.8z
+		 M12,15.275c-1.807,0-3.276-1.469-3.276-3.275c0-1.807,1.469-3.276,3.276-3.276c1.806,0,3.276,1.469,3.276,3.276
+		C15.276,13.806,13.806,15.275,12,15.275z"/>
+	<circle cx="12" cy="12" r="3.276"/>
+	<path d="M24,19V5c0-2.761-2.238-5-5-5H5C2.24,0,0.002,2.237,0,4.996v14.008C0.002,21.763,2.24,24,5,24h14
+		C21.762,24,24,21.761,24,19z M12,3.798c0.462,0,0.837,0.375,0.837,0.836S12.462,5.471,12,5.471c-0.461,0-0.836-0.376-0.836-0.837
+		S11.539,3.798,12,3.798z M12,17.2c-2.867,0-5.2-2.332-5.2-5.2S9.133,6.8,12,6.8c2.868,0,5.2,2.332,5.2,5.2S14.868,17.2,12,17.2z"/>
+</g>
+</svg>

+ 12 - 0
frontend/img/pendant.svg

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<g>
+	<path d="M24,19.499c-0.002-2.484-4.694-4.497-12-4.497c-7.245,0-12,2.014-12,4.499C0,21.986,5.422,24,12,24
+		c6.577,0,11.998-2.013,12-4.498V19.499z"/>
+	<path d="M24,15.832v-2.715c0-2.826-4.693-5.116-12-5.116c-7.244,0-12,2.29-12,5.116v2.715c2-1.787,6.532-2.836,12-2.836
+		S22,14.045,24,15.832z"/>
+	<rect x="11.003" width="1.995" height="6.997"/>
+</g>
+</svg>

+ 7 - 0
frontend/img/phoenix_ceiling_pendant_table_wall.svg

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path fill="#010202" d="M0,11.8h24c-2.4,1.5-7.6,4.2-12,4.2C7.6,16.1,2.4,13.3,0,11.8z"/>
+<path fill="#010202" d="M24,10.9H0c2.4-1,7.6-2.9,12-2.9C16.4,7.9,21.6,9.8,24,10.9z"/>
+</svg>

+ 8 - 0
frontend/img/phoenix_down.svg

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path fill="#010202" d="M12,15.1c-5,0-8.2-0.9-8.7-1.5c0.5-0.6,3.7-1.5,8.7-1.5c5,0,8.2,0.9,8.7,1.5C20.2,14.2,17,15.1,12,15.1z"/>
+<path fill="#010202" d="M22.2,13.8c0,0,0-0.1,0-0.1c0-2.8-9.2-2.9-10.2-2.9S1.8,10.8,1.8,13.6c0,0,0,0.1,0,0.1
+	C0.6,13.3,0,12.7,0,12.2c0-1.3,4.7-3.3,12-3.3c7.3,0,12,1.9,12,3.3C24,12.7,23.4,13.3,22.2,13.8z"/>
+</svg>

+ 23 - 0
frontend/img/pushlink_bridgev1.svg

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 345.5 335.5" xml:space="preserve">
+<path d="M164.7,288.7c8.3-21.9,40.4-18.1,40.4-18.1l-56.2-88.5c-16.7-0.6-30-14.3-30-31.1c0-17.2,13.9-31.2,31.2-31.2
+	c17.2,0,31.2,13.9,31.2,31.2c0,5.2-1.3,10.1-3.5,14.4c3.6,5.8,10.6,17.1,18.1,29.3l6,9.8c-7.2-11.8-0.9-20.7,5.3-23.3
+	c14-9.1,21.4,5.1,21.4,5.1l5.3,8.7c-5.3-8.7-4.8-16.3,2.8-20.7c0,0,4.8-3.4,9.4-2.7c5.1,0.8,11.8,6.2,19.6,19.7
+	c0.3,0.6,0.6,1.1,0.9,1.6c-2.4-5.9-6-19.8,6.4-25.9c12.2-5.2,18.8,3.1,18.8,3.1s2.2,3.2,5.6,8.4c1.8-9.3,2.7-18.8,2.7-28.6
+	C300,67.1,232.8,0,150,0C67.1,0,0,67.1,0,150s67.1,150,150,150c4.6,0,9.1-0.2,13.6-0.6C162.2,295.5,163.5,290.9,164.7,288.7z
+	 M150,66.6c6.5,0,11.8,5.3,11.8,11.8c0,6.5-5.3,11.8-11.8,11.8c-6.5,0-11.8-5.3-11.8-11.8C138.2,71.9,143.5,66.6,150,66.6z
+	 M79.7,161.8c-6.5,0-11.8-5.3-11.8-11.8c0-6.5,5.3-11.8,11.8-11.8c6.5,0,11.8,5.3,11.8,11.8C91.5,156.5,86.2,161.8,79.7,161.8z
+	 M98.3,110c-6.5,0-11.8-5.3-11.8-11.8c0-6.5,5.3-11.8,11.8-11.8c6.5,0,11.8,5.3,11.8,11.8C110.1,104.7,104.8,110,98.3,110z"/>
+<path d="M150.8,154.6c10.6-6.4,16.8-2.8,20.4,1.2c0.3-1.5,0.5-3.1,0.5-4.7c0-12-9.7-21.8-21.8-21.8c-12,0-21.8,9.7-21.8,21.8
+	c0,9.7,6.4,17.9,15.1,20.7C141.8,166.6,142.2,159.8,150.8,154.6z"/>
+<path fill="none" stroke="#000000" stroke-width="7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
+	M265.5,191.4c8.9,15.5-12.7-14.5,7.2-24.3c12.2-5.2,18.8,3.1,18.8,3.1s34.7,51.1,47.6,79.2c9.6,35.8-7,57.4-32.7,74
+	c-25.7,16.6-46,6.2-65.4-4.8c-19.4-11-47-13.6-64.2-12.8c-17.2,0.8-14.5-12.8-12.2-17.1c8.3-21.9,40.4-18.1,40.4-18.1L147.6,180
+	c0,0-12.9-15.6,3.2-25.4c16.1-9.7,22.2,3.7,24.3,6.6c0.9,1.3,10.2,16.4,20.6,33.3l6,9.8c-7.2-11.8-0.9-20.7,5.3-23.3
+	c14-9.1,21.4,5.1,21.4,5.1l5.3,8.7c-5.3-8.7-4.8-16.3,2.8-20.7c0,0,4.8-3.4,9.4-2.7C251,172.4,257.8,177.8,265.5,191.4z"/>
+<line fill="none" stroke="#000000" stroke-width="7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="266.9" y1="194.1" x2="278.3" y2="213.9"/>
+<line fill="none" stroke="#000000" stroke-width="7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="233.1" y1="194.1" x2="252.9" y2="227"/>
+<line fill="none" stroke="#000000" stroke-width="7" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="200.6" y1="203" x2="226" y2="241.6"/>
+</svg>

+ 13 - 0
frontend/img/recessed.svg

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<g>
+	<path fill="none" d="M17.915,11.634c0.051,0.152,0.084,0.307,0.084,0.465c0,1.601-2.686,2.899-5.999,2.899
+		c-3.314,0-6-1.298-6-2.899c0-0.158,0.034-0.313,0.084-0.465C5.401,12.175,5,12.813,5,13.5c0,1.933,3.134,3.498,7,3.498
+		s7-1.565,7-3.498C19,12.813,18.598,12.175,17.915,11.634z"/>
+	<path d="M12,6C5.373,6,0,8.686,0,12s5.373,6,12,6s12-2.686,12-6S18.627,6,12,6z M12,16.998c-3.866,0-7-1.565-7-3.498
+		c0-0.687,0.401-1.325,1.084-1.866C6.034,11.786,6,11.941,6,12.099c0,1.601,2.686,2.899,6,2.899c3.313,0,5.999-1.298,5.999-2.899
+		c0-0.158-0.033-0.313-0.084-0.465C18.598,12.175,19,12.813,19,13.5C19,15.433,15.866,16.998,12,16.998z"/>
+</g>
+</svg>

+ 14 - 0
frontend/img/storylight.svg

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path fill="#010202" d="M9.3,18.5c-0.5,0.4-0.9,0.9-1,1c-0.1,0.1-0.8,0.6-0.2,1c0.6,0.4,1.6,0.8,3.6,0.8c0.1,0,0.1,0,0.2,0
+	c-0.4-0.3-0.7-0.6-1.1-0.9C10.3,19.7,9.7,19.1,9.3,18.5"/>
+<path fill="#010202" d="M22.3,13.1c-2-2.7-3.5-3.8-4.3-4.3c-0.1-0.1-0.4-0.3-0.1-0.3c0.3,0,1.8,0.2,1.8-1.5c0-1.7-2-3.9-4-4.9
+	c-2-0.9-3.7-0.3-3.4,1.3C12.6,5,14,6.4,14.7,7c0.1,0.1,0.3,0.3-0.1,0.2c-0.4-0.1-2.1-0.5-3.4-0.1C10,7.4,9.6,8.1,9.5,8.3
+	c0,0.1-0.1,0.2-0.3-0.1C9.1,8,8.4,5.8,5.7,4.3C4.2,3.4,1.8,2.7,0.5,4S1,8.3,2.1,9.2C3.3,10.1,5.9,12,8.3,11l0,0
+	c-0.1,1.1-0.7,4.8,3.3,8.6c4,3.8,9.6,3.2,11.6,0.8l0,0C24.9,18.7,23.6,14.8,22.3,13.1 M22.6,20.1c-2.8,2.3-7.3-0.6-9.2-2.3
+	C7,11.5,9.9,8,11.3,7.6c1.7-0.7,4.4,0.1,6.3,1.4c2,1.3,3.3,3,3.6,3.4C21.8,13,25.3,17.8,22.6,20.1"/>
+<path fill="#010202" d="M12.1,9.2c-1.1,0.4-3.4,3.2,1.7,8.3c1.5,1.3,5.2,3.6,7.4,1.8c2.2-1.8-0.6-5.7-1-6.3
+	c-0.2-0.3-1.3-1.7-2.9-2.7C15.6,9.3,13.5,8.7,12.1,9.2"/>
+</svg>

+ 14 - 0
frontend/img/table.svg

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<g>
+	<path d="M11.167,20.953v-1.908c-3.047,0.188-4.999,1.212-4.999,2.458c0,1.379,2.713,2.497,6.004,2.497
+		c3.292,0,6.005-1.118,6.005-2.497c0-1.248-1.934-2.273-5.01-2.458v1.909H11.167z"/>
+	<polygon points="11.167,15.99 11.167,19.045 11.167,20.953 13.167,20.953 13.167,19.044 13.167,15.989 	"/>
+	<path d="M12,15.189c5.433,0,9-1.551,9-3.464V6.342c-2,1.174-4.942,1.828-9,1.828S5,7.516,3,6.342v5.383
+		C3,13.638,6.52,15.189,12,15.189z"/>
+	<path d="M3.167,3.005c0,1.66,3.52,3.005,9,3.005c5.433,0,8.999-1.345,8.999-3.005C21.166,1.346,17.1,0,12.167,0
+		C7.233,0,3.167,1.346,3.167,3.005z"/>
+</g>
+</svg>

+ 10 - 0
frontend/img/tap.svg

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.2" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+	 x="0px" y="0px" viewBox="0 0 24 24" xml:space="preserve">
+<path fill="#010202" d="M12,0C5.4,0,0,5.4,0,12c0,6.6,5.4,12,12,12s12-5.4,12-12C24,5.4,18.6,0,12,0z M5.5,15.1
+	c-1.7,0-3.1-1.4-3.1-3.1s1.4-3.1,3.1-3.1s3.1,1.4,3.1,3.1S7.3,15.1,5.5,15.1z M12,21.4c-1.7,0-3.1-1.4-3.1-3.1
+	c0-1.7,1.4-3.1,3.1-3.1c1.7,0,3.1,1.4,3.1,3.1C15.1,20,13.7,21.4,12,21.4z M17.6,15c-1.1-0.3-2.1-1.2-2.3-2.3
+	c-0.2-0.9,0-1.9,0.6-2.7c0.6-0.7,1.5-1.2,2.4-1.2c0.2,0,0.5,0,0.7,0.1c1.1,0.3,2.1,1.2,2.3,2.3c0.2,0.9,0,1.9-0.6,2.7
+	C20,14.9,18.8,15.3,17.6,15z"/>
+</svg>

+ 1 - 1
frontend/index.html

@@ -3,7 +3,7 @@
 
     <title>Cloudron HUE</title>
 
-    <link rel="stylesheet" href="../node_modules/vue-material/dist/vue-material.css">
+    <link rel="stylesheet" href="./css/vue-material.css">
     <link rel="stylesheet" href="./css/material-icons.css">
     <link rel="stylesheet" href="./css/index.css">
 

+ 3 - 1
package.json

@@ -12,7 +12,9 @@
     "body-parser": "^1.17.2",
     "color": "^1.0.3",
     "express": "^4.15.3",
-    "node-hue-api": "^2.4.2",
+    "node-hue-api": "^2.4.2"
+  },
+  "devDependencies": {
     "vue-material": "^0.7.1"
   },
   "browser": {

+ 7 - 0
start.sh

@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -eu
+
+export NODE_ENV=production
+
+exec /usr/local/bin/gosu cloudron:cloudron node /app/code/app.js /app/data/hue.json

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません