new ui 11
This commit is contained in:
@@ -4,8 +4,6 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Gerät - Home Automation</title>
|
<title>Gerät - Home Automation</title>
|
||||||
<script src="/static/types.js"></script>
|
|
||||||
<script src="/static/api-client.js"></script>
|
|
||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -291,7 +289,13 @@
|
|||||||
<script>
|
<script>
|
||||||
// API configuration from backend
|
// API configuration from backend
|
||||||
window.API_BASE = '{{ api_base }}';
|
window.API_BASE = '{{ api_base }}';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- Load API client AFTER API_BASE is set -->
|
||||||
|
<script src="/static/types.js"></script>
|
||||||
|
<script src="/static/api-client.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
// Get device ID from URL
|
// Get device ID from URL
|
||||||
const pathParts = window.location.pathname.split('/');
|
const pathParts = window.location.pathname.split('/');
|
||||||
const deviceId = pathParts[pathParts.length - 1];
|
const deviceId = pathParts[pathParts.length - 1];
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{{ room_name }} - Home Automation</title>
|
<title>{{ room_name }} - Home Automation</title>
|
||||||
<script src="/static/types.js"></script>
|
|
||||||
<script src="/static/api-client.js"></script>
|
|
||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -208,7 +206,13 @@
|
|||||||
<script>
|
<script>
|
||||||
// API configuration from backend
|
// API configuration from backend
|
||||||
window.API_BASE = '{{ api_base }}';
|
window.API_BASE = '{{ api_base }}';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- Load API client AFTER API_BASE is set -->
|
||||||
|
<script src="/static/types.js"></script>
|
||||||
|
<script src="/static/api-client.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
// Get room name from URL
|
// Get room name from URL
|
||||||
const pathParts = window.location.pathname.split('/');
|
const pathParts = window.location.pathname.split('/');
|
||||||
const roomName = decodeURIComponent(pathParts[pathParts.length - 1]);
|
const roomName = decodeURIComponent(pathParts[pathParts.length - 1]);
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Räume - Home Automation</title>
|
<title>Räume - Home Automation</title>
|
||||||
<script src="/static/types.js"></script>
|
|
||||||
<script src="/static/api-client.js"></script>
|
|
||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -151,7 +149,13 @@
|
|||||||
<script>
|
<script>
|
||||||
// API configuration from backend
|
// API configuration from backend
|
||||||
window.API_BASE = '{{ api_base }}';
|
window.API_BASE = '{{ api_base }}';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- Load API client AFTER API_BASE is set -->
|
||||||
|
<script src="/static/types.js"></script>
|
||||||
|
<script src="/static/api-client.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
// Room icon mapping
|
// Room icon mapping
|
||||||
const roomIcons = {
|
const roomIcons = {
|
||||||
'wohnzimmer': '🛋️',
|
'wohnzimmer': '🛋️',
|
||||||
|
|||||||
Reference in New Issue
Block a user