]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - app.js
Deps update & minor UI adjustments
[github/bastienwirtz/homer.git] / app.js
diff --git a/app.js b/app.js
index ffb50076897bbc6cea23abac1d47d0533e26c7c0..fda16b2f21b3842808fec7fd0d9ad08cad4f5c26 100644 (file)
--- a/app.js
+++ b/app.js
@@ -4,13 +4,12 @@ var app = new Vue({
         config: null,
         filter: ''
     },
-    beforeCreate () {
+    beforeCreate() {
         let that = this;
 
         return getConfig().then(function (config) {
-            console.log(config);
             const size = 3;
-            config.services.forEach(function(service) {
+            config.services.forEach(function (service) {
                 service.rows = [];
                 items = service.items;
                 while (items.length) {
@@ -18,7 +17,7 @@ var app = new Vue({
                 }
 
                 if (service.rows.length) {
-                    let last = service.rows.length-1;
+                    let last = service.rows.length - 1;
                     service.rows[last] = service.rows[last].concat(Array(size - service.rows[last].length));
                 }
             });
@@ -31,13 +30,13 @@ var app = new Vue({
 
 
 function getConfig() {
-    return fetch('config.yml').then(function(response) {
+    return fetch('config.yml').then(function (response) {
         if (response.status !== 200) {
             return;
         }
 
-        return response.text().then(function(body){
+        return response.text().then(function (body) {
             return jsyaml.load(body);
         });
     });
-}
\ No newline at end of file
+}