mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-16 10:58:32 -05:00
Embed calendar and change colors
This commit is contained in:
@@ -47,6 +47,11 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: display-internal-config
|
name: display-internal-config
|
||||||
key: ALARM_DEVICE
|
key: ALARM_DEVICE
|
||||||
|
- name: CALENDAR_EMBED_URL
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: display-internal-config
|
||||||
|
key: CALENDAR_EMBED_URL
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
dnsPolicy: ClusterFirst
|
dnsPolicy: ClusterFirst
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ spec:
|
|||||||
value:
|
value:
|
||||||
- name: ALARM_DEVICE
|
- name: ALARM_DEVICE
|
||||||
value:
|
value:
|
||||||
|
- name: CALENDAR_EMBED_URL
|
||||||
|
value:
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
dnsPolicy: ClusterFirst
|
dnsPolicy: ClusterFirst
|
||||||
|
|||||||
@@ -18,4 +18,8 @@ export default class Environment {
|
|||||||
public static getAlarmDevice(): string {
|
public static getAlarmDevice(): string {
|
||||||
return '#ALARM_DEVICE#';
|
return '#ALARM_DEVICE#';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static getCalendarEmbedUrl(): string {
|
||||||
|
return '#CALENDAR_EMBED_URL#';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
import { useLaundryStore } from '@/stores/laundryStore';
|
import { useLaundryStore } from '@/stores/laundryStore';
|
||||||
import { usePowerStore } from '@/stores/powerStore';
|
import { usePowerStore } from '@/stores/powerStore';
|
||||||
import { useHomeAssistantStore } from '@/stores/homeAssistantStore';
|
import { useHomeAssistantStore } from '@/stores/homeAssistantStore';
|
||||||
|
import Environment from '@/environment';
|
||||||
|
|
||||||
const weatherStore = useWeatherStore();
|
const weatherStore = useWeatherStore();
|
||||||
weatherStore.start();
|
weatherStore.start();
|
||||||
@@ -111,6 +112,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="kiosk-content" v-if="Environment.getCalendarEmbedUrl()">
|
||||||
|
<div class="kiosk-calendar">
|
||||||
|
<iframe
|
||||||
|
:src="Environment.getCalendarEmbedUrl()"
|
||||||
|
style="border-width: 0"
|
||||||
|
width="100%"
|
||||||
|
height="100%"
|
||||||
|
frameborder="0"
|
||||||
|
scrolling="no"></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</v-container>
|
</v-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -118,17 +130,13 @@
|
|||||||
.kiosk-container {
|
.kiosk-container {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background-color: #020c25;
|
background-color: #212428;
|
||||||
color: #9acef1;
|
color: #1f1f1f;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 250px 1fr;
|
grid-template-columns: 250px 1fr;
|
||||||
grid-template-rows: 1fr;
|
grid-template-rows: 1fr;
|
||||||
gap: 15px 15px;
|
|
||||||
grid-auto-flow: row;
|
grid-auto-flow: row;
|
||||||
grid-template-areas:
|
grid-template-areas: 'kiosk-sidebar kiosk-content';
|
||||||
'kiosk-sidebar . '
|
|
||||||
'kiosk-sidebar . '
|
|
||||||
'kiosk-sidebar . ';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.kiosk-row {
|
.kiosk-row {
|
||||||
@@ -141,7 +149,7 @@
|
|||||||
|
|
||||||
.kiosk-sidebar {
|
.kiosk-sidebar {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
background-color: #13213e;
|
background-color: #121212;
|
||||||
grid-area: kiosk-sidebar;
|
grid-area: kiosk-sidebar;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -159,6 +167,16 @@
|
|||||||
'kiosk-garage-door kiosk-house-alarm';
|
'kiosk-garage-door kiosk-house-alarm';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.kiosk-content {
|
||||||
|
height: 100%;
|
||||||
|
padding: 0;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
grid-template-rows: repeat(2, 1fr);
|
||||||
|
grid-auto-flow: row;
|
||||||
|
grid-template-areas: 'kiosk-calendar .';
|
||||||
|
}
|
||||||
|
|
||||||
.kiosk-time {
|
.kiosk-time {
|
||||||
font-size: 2.8rem;
|
font-size: 2.8rem;
|
||||||
grid-area: kiosk-time;
|
grid-area: kiosk-time;
|
||||||
@@ -211,6 +229,10 @@
|
|||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.kiosk-calendar {
|
||||||
|
grid-area: kiosk-calendar;
|
||||||
|
}
|
||||||
|
|
||||||
.true {
|
.true {
|
||||||
color: #d09f27;
|
color: #d09f27;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user