Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianromero committed Nov 22, 2023
1 parent 6544c83 commit cd5a7b0
Show file tree
Hide file tree
Showing 5 changed files with 315 additions and 339 deletions.
532 changes: 266 additions & 266 deletions assets/index-326fc11c.js → assets/index-81c941e3.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="description" content="MYHELLOIOT MQTT Dashboard" />
<link rel="apple-touch-icon" href="/myhelloiot/logo192.png" />
<title>MYHELLOIOT</title>
<script type="module" crossorigin src="/myhelloiot/assets/index-326fc11c.js"></script>
<script type="module" crossorigin src="/myhelloiot/assets/index-81c941e3.js"></script>
<link rel="stylesheet" href="/myhelloiot/assets/index-b901b94b.css">
<link rel="manifest" href="/myhelloiot/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/myhelloiot/registerSW.js"></script></head>
<body>
Expand Down
42 changes: 24 additions & 18 deletions resources/basic/connectinfo.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
{
"url": "ws://localhost:9001",
"keepalive": 60,
"protocolVersion": 4,
"clean": true,
"connectTimeout": 30000,
"reconnectPeriod": 1000,
"will": false,
"willtopic": "",
"willqos": 0,
"willretain": false,
"willpayload": "",
"dashboard": {
"name": "dashboard.jsx",
"type": "text/jsx"
},
"dashboardcss": {
"name": "dashboard.css",
"type": "text/css"
"type": "REMOTE",
"mqtt": {
"username": "",
"password": "",
"clientId": "",
"url": "ws://localhost:9001",
"keepalive": 60,
"protocolVersion": 4,
"clean": true,
"connectTimeout": 30000,
"reconnectPeriod": 1000,
"will": false,
"willtopic": "",
"willqos": 0,
"willretain": false,
"willpayload": "",
"dashboard": {
"name": "dashboard.jsx",
"type": "text/jsx"
},
"dashboardcss": {
"name": "dashboard.css",
"type": "text/css"
}
}
}
76 changes: 23 additions & 53 deletions resources/basic/dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,70 +3,40 @@
}

<DashboardPage title="Basic units">
<Card title="Temperature pub/sub">
<InputUnit
pubtopic="myhelloiot/temperature"
puboptions={{ retain: true }}
subtopic="myhelloiot/temperature"
format={NumberValueFormat({
style: "unit",
unit: "celsius",
})}
/>
</Card>
<InputCard
title="Temperature pub/sub"
topic="myhelloiot/temperature"
puboptions={{ retain: true }}
format={Celsius()}
/>
<Card title="Select temperature">
<ViewUnit
subtopic="myhelloiot/temperature"
format={NumberIconFormat({
style: "unit",
unit: "celsius",
})}
/>
<ViewUnit topic="myhelloiot/temperature" format={Celsius()} />
<SliderUnit
pubtopic="myhelloiot/temperature"
topic="myhelloiot/temperature"
puboptions={{ retain: true }}
subtopic="myhelloiot/temperature"
limits={{ min: -10, max: 60, step: 1 }}
format={Celsius()}
/>
</Card>
<Card title="Temperature buttons">
<ButtonTopic
pubtopic="myhelloiot/temperature"
<ButtonUnit
topic="myhelloiot/temperature"
puboptions={{ retain: true }}
subtopic="myhelloiot/temperature"
format={NumberIconValueFormat({
style: "unit",
unit: "celsius",
min: -10,
max: 60,
step: 1,
})}
format={Celsius()}
icon="+"
/>
<ButtonTopic
pubtopic="myhelloiot/temperature"
<ButtonUnit
topic="myhelloiot/temperature"
puboptions={{ retain: true }}
subtopic="myhelloiot/temperature"
format={NumberIconValueFormat({
style: "unit",
unit: "celsius",
min: -10,
max: 60,
step: -1,
})}
format={Celsius({ step: -1 })}
icon="-"
/>
</Card>
<Card title="Dashboard gauge card">
<ViewUnit
subtopic="myhelloiot/temperature"
format={DashboardIconFormat(
{ title: "Dashboard gauge", min: -10, max: 60 },
{
style: "unit",
unit: "celsius",
}
)}
/>
</Card>
<ViewCard
title="Dashboard gauge card"
topic="myhelloiot/temperature"
format={DashboardIconFormat({
title: "Dashboard gauge",
...Celsius(),
})}
/>
</DashboardPage>;
2 changes: 1 addition & 1 deletion sw.js

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

0 comments on commit cd5a7b0

Please sign in to comment.