Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite #772

Merged
merged 13 commits into from
Jan 5, 2025
Prev Previous commit
Next Next commit
Working on layout
GermanBluefox committed Jan 5, 2025
commit 23c0f3e64306d04ca71e621bc0a82e23c44ce1d1
328 changes: 207 additions & 121 deletions README.md

Large diffs are not rendered by default.

823 changes: 823 additions & 0 deletions admin/assets/index-CgvZfgDV.js

Large diffs are not rendered by default.

826 changes: 0 additions & 826 deletions admin/assets/index-yuN5Rmp7.js

This file was deleted.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion admin/chart/index.html
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@
document.head.appendChild(script);
</script>
<title>Echarts [ioBroker]</title>
<script type="module" crossorigin src="./assets/index-FjTTAiav.js"></script>
<script type="module" crossorigin src="./assets/index-WdepKgeu.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-VI9R7d-i.css">
</head>
<body>
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.

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-CZHXnHpJ.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"
}
2 changes: 1 addition & 1 deletion admin/tab.html
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@
document.head.appendChild(script);
</script>
<title>Echarts [ioBroker]</title>
<script type="module" crossorigin src="./assets/index-yuN5Rmp7.js"></script>
<script type="module" crossorigin src="./assets/index-CgvZfgDV.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-D5BB0j0i.css">
</head>
<body>
Loading