Skip to content

Commit

Permalink
MOgrated preview to Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Dec 19, 2024
1 parent d64c569 commit 63891a0
Show file tree
Hide file tree
Showing 95 changed files with 7,990 additions and 2,609 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Lower case `i` indicates that the value was interpolated from the 2-neighbour va

### Data from JSON
You can define the data source from JSON. In this case you can create some custom state of type `json` and store the value like this:
```
```json
[
{"ts": 1675887847000, "val": 45},
{"ts": 1675887848000, "val": 77},
Expand All @@ -52,7 +52,7 @@ The chart will be automatically updated every time the value changes.
### Server side rendering
You can render the presets on the server and get it as base64 URL or save it on disk on in ioBroker DB:

```
```js
sendTo('echarts.0', {
preset: 'echarts.0.myPreset', // the only mandatory attribute

Expand Down
1 change: 0 additions & 1 deletion admin/assets/index-D5BB0j0i.css

This file was deleted.

812 changes: 0 additions & 812 deletions admin/assets/index-DOCyQXdA.js

This file was deleted.

2 changes: 1 addition & 1 deletion admin/chart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
document.head.appendChild(script);
</script>
<title>Echarts [ioBroker]</title>
<script type="module" crossorigin src="./assets/index-CYVHaVbI.js"></script>
<script type="module" crossorigin src="./assets/index-CKL4Oc8s.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-VI9R7d-i.css">
</head>
<body>
Expand Down
185 changes: 0 additions & 185 deletions admin/chart/static/js/main.b6a15844.js

This file was deleted.

Binary file removed admin/echarts.png
Binary file not shown.
File renamed without changes.
6 changes: 3 additions & 3 deletions admin/tab.html → admin/preview/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@

document.head.appendChild(script);
</script>
<title>Echarts [ioBroker]</title>
<script type="module" crossorigin src="./assets/index-DOCyQXdA.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-D5BB0j0i.css">
<title>Echarts preview [ioBroker]</title>
<script type="module" crossorigin src="./assets/index-BK8c2v8X.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>
Expand Down
4 changes: 2 additions & 2 deletions admin/manifest.json → admin/preview/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "EChart-Viewer",
"name": "EChart viewer for ioBroker",
"icons": [
{
"src": "favicon.ico",
Expand Down
4 changes: 0 additions & 4 deletions admin/vendor/socket.io.js

This file was deleted.

Loading

0 comments on commit 63891a0

Please sign in to comment.