-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e494ab
commit 1744125
Showing
6 changed files
with
590 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link | ||
rel="shortcut icon" | ||
href="favicon.ico" | ||
/> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
<meta | ||
name="theme-color" | ||
content="#000000" | ||
/> | ||
<link | ||
rel="manifest" | ||
href="manifest.json" | ||
/> | ||
<script> | ||
var script = document.createElement('script'); | ||
window.registerSocketOnLoad = function (cb) { | ||
window.socketLoadedHandler = cb; | ||
}; | ||
const parts = (window.location.search || '').replace(/^\?/, '').split('&'); | ||
const query = {}; | ||
parts.forEach(item => { | ||
const [name, val] = item.split('='); | ||
query[decodeURIComponent(name)] = val !== undefined ? decodeURIComponent(val) : true; | ||
}); | ||
script.onload = function () { | ||
typeof window.socketLoadedHandler === 'function' && window.socketLoadedHandler(); | ||
}; | ||
script.src = | ||
parseInt(window.location.port) >= 3000 && parseInt(window.location.port) <= 3020 | ||
? window.location.protocol + | ||
'//' + | ||
(query.host || window.location.hostname) + | ||
':' + | ||
(query.port || 8081) + | ||
'/lib/js/socket.io.js' | ||
: '../../lib/js/socket.io.js'; | ||
|
||
document.head.appendChild(script); | ||
</script> | ||
<title>Echarts preview [ioBroker]</title> | ||
<script type="module" crossorigin src="./assets/index-CgqD6xas.js"></script> | ||
<link rel="stylesheet" crossorigin href="./assets/index-VI9R7d-i.css"> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"short_name": "EChart-Viewer", | ||
"name": "EChart viewer for ioBroker", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |