Skip to content

Commit

Permalink
Use new GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jun 30, 2020
1 parent cedc011 commit 4c153ff
Show file tree
Hide file tree
Showing 36 changed files with 468 additions and 1,480 deletions.
25 changes: 25 additions & 0 deletions admin/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"files": {
"main.css": "./static/css/main.927b835d.chunk.css",
"main.js": "./static/js/main.5fb01038.chunk.js",
"main.js.map": "./static/js/main.5fb01038.chunk.js.map",
"runtime-main.js": "./static/js/runtime-main.b0af5419.js",
"runtime-main.js.map": "./static/js/runtime-main.b0af5419.js.map",
"static/css/2.9ca9b1ea.chunk.css": "./static/css/2.9ca9b1ea.chunk.css",
"static/js/2.12fc7d2f.chunk.js": "./static/js/2.12fc7d2f.chunk.js",
"static/js/2.12fc7d2f.chunk.js.map": "./static/js/2.12fc7d2f.chunk.js.map",
"index.html": "./index.html",
"precache-manifest.bbf0cd4242b62295799a344877c56dc4.js": "./precache-manifest.bbf0cd4242b62295799a344877c56dc4.js",
"service-worker.js": "./service-worker.js",
"static/css/2.9ca9b1ea.chunk.css.map": "./static/css/2.9ca9b1ea.chunk.css.map",
"static/css/main.927b835d.chunk.css.map": "./static/css/main.927b835d.chunk.css.map",
"static/js/2.12fc7d2f.chunk.js.LICENSE.txt": "./static/js/2.12fc7d2f.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.b0af5419.js",
"static/css/2.9ca9b1ea.chunk.css",
"static/js/2.12fc7d2f.chunk.js",
"static/css/main.927b835d.chunk.css",
"static/js/main.5fb01038.chunk.js"
]
}
Binary file added admin/favicon.ico
Binary file not shown.
19 changes: 8 additions & 11 deletions admin/langModel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/* Attention:
This file used in Front-end and in the backend. Originally it is placed in /lib/langModel.js
and will be coped by gulp to src/public/langModel.js
*/
/* jshint -W097 */
/* jshint strict: false */
/* jslint node: true */

// eslint-disable-next-line
'use strict';

Expand Down Expand Up @@ -469,20 +474,11 @@ function findMatched(cmd, _rules) {

// if one of
if (typeof rule.words[j] === 'object') {
let _isFound = false;

for (let u = 0; u < rule.words[j].length; u++) {
if (cmdWords.indexOf(rule.words[j][u]) !== -1) {
_isFound = true;
break;
}
}

if (!_isFound) {
if (!rule.words[j].find(w => cmdWords.includes(w))) {
isFound = false;
break;
}
} else if (cmdWords.indexOf(rule.words[j]) === -1) {
} else if (!cmdWords.includes(rule.words[j])) {
isFound = false;
break;
}
Expand All @@ -496,6 +492,7 @@ function findMatched(cmd, _rules) {
}
}
}

return matchedRules;
}

Expand Down
15 changes: 15 additions & 0 deletions admin/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"short_name": "Consumption",
"name": "ioBroker Consumption Configuration",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
30 changes: 30 additions & 0 deletions admin/precache-manifest.bbf0cd4242b62295799a344877c56dc4.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "dffcc33f9db84a44b8234a704c4234a8",
"url": "./index.html"
},
{
"revision": "12fb39849e495ade8b21",
"url": "./static/css/2.9ca9b1ea.chunk.css"
},
{
"revision": "1c61ede7a2c25cdcfd7a",
"url": "./static/css/main.927b835d.chunk.css"
},
{
"revision": "12fb39849e495ade8b21",
"url": "./static/js/2.12fc7d2f.chunk.js"
},
{
"revision": "799f3d5c27694f0f3c92bbc8286bf099",
"url": "./static/js/2.12fc7d2f.chunk.js.LICENSE.txt"
},
{
"revision": "1c61ede7a2c25cdcfd7a",
"url": "./static/js/main.5fb01038.chunk.js"
},
{
"revision": "23f10709bdd64299b219",
"url": "./static/js/runtime-main.b0af5419.js"
}
]);
39 changes: 39 additions & 0 deletions admin/service-worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo.gl/2aRDsh
*/

importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"./precache-manifest.bbf0cd4242b62295799a344877c56dc4.js"
);

self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});

workbox.core.clientsClaim();

/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});

workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("./index.html"), {

blacklist: [/^\/_/,/\/[^\/?]+\.[^\/]+$/],
});
2 changes: 2 additions & 0 deletions admin/static/css/2.9ca9b1ea.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions admin/static/css/2.9ca9b1ea.chunk.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions admin/static/css/main.927b835d.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions admin/static/css/main.927b835d.chunk.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4c153ff

Please sign in to comment.