Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jan 7, 2025
1 parent 2e494ab commit 1744125
Show file tree
Hide file tree
Showing 6 changed files with 590 additions and 0 deletions.
Binary file added admin/preview/assets/echarts-BDq-rBJC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
519 changes: 519 additions & 0 deletions admin/preview/assets/index-CgqD6xas.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions admin/preview/assets/index-VI9R7d-i.css

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

Binary file added admin/preview/favicon.ico
Binary file not shown.
55 changes: 55 additions & 0 deletions admin/preview/index.html
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>
15 changes: 15 additions & 0 deletions admin/preview/manifest.json
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"
}

0 comments on commit 1744125

Please sign in to comment.