ovdashboard/ui/src/App.vue

195 lines
8.1 KiB
Vue
Raw Normal View History

2022-09-09 16:23:04 +00:00
<template>
2022-09-09 16:38:12 +00:00
<v-app>
2022-09-15 15:04:01 +00:00
<v-layout column fill-height>
2022-09-13 15:46:54 +00:00
<TitleBar
:logo_above="logo_above"
:logo_below="logo_below"
:title="title_html"
/>
<Dashboard>
<template slot="message">
<ImageCarousel :image_urls="image_urls" />
<div v-html="message_html" />
</template>
<template slot="calendars">
<CalendarCarousel :data="calendar_data" />
<DashboardInfo
:server_host="server_host"
:server_name="server_name"
:version="dashboard_version"
:lan_ip="dashboard_ip"
/>
</template>
2022-09-13 21:30:20 +00:00
</Dashboard>
2022-09-15 15:04:01 +00:00
<TickerBar
v-if="ticker_html !== ''"
:content="ticker_html"
color="primary"
/>
</v-layout>
2022-09-09 16:38:12 +00:00
</v-app>
2022-09-09 16:23:04 +00:00
</template>
<script lang="ts">
2022-09-11 23:28:37 +00:00
import { Component, Vue } from "vue-property-decorator";
2022-09-15 13:03:19 +00:00
import CalendarCarousel from "./components/calendar/CalendarCarousel.vue";
2022-09-13 01:54:02 +00:00
import Dashboard from "./components/Dashboard.vue";
2022-09-15 15:46:09 +00:00
import DashboardInfo from "./components/DashboardInfo.vue";
import ImageCarousel from "./components/ImageCarousel.vue";
2022-09-15 00:11:22 +00:00
import TitleBar from "./components/title_bar/TitleBar.vue";
2022-09-12 13:01:58 +00:00
import TickerBar from "./components/TickerBar.vue";
2022-09-09 16:23:04 +00:00
2022-09-11 23:28:37 +00:00
@Component({
2022-09-09 16:23:04 +00:00
components: {
2022-09-15 13:03:19 +00:00
CalendarCarousel,
2022-09-13 01:54:02 +00:00
Dashboard,
2022-09-15 15:46:09 +00:00
DashboardInfo,
ImageCarousel,
2022-09-09 22:41:50 +00:00
TitleBar,
2022-09-12 13:01:58 +00:00
TickerBar,
2022-09-09 16:23:04 +00:00
},
2022-09-11 23:28:37 +00:00
})
export default class App extends Vue {
2022-09-13 15:46:54 +00:00
private logo_above = "Technisches Hilfswerk";
private logo_below = "OV Musterstadt";
2022-09-11 23:28:37 +00:00
private title_html = "<h1>changeme</h1>";
2022-09-12 13:01:58 +00:00
private ticker_html = "<p>changeme</p>";
2022-09-13 01:54:02 +00:00
private message_html = "<p>changeme</p>";
2022-09-15 16:25:58 +00:00
private server_host = "https://oekzident.de";
private server_name = "OEKZident";
private dashboard_version = "0.0.1";
private dashboard_ip = "0.0.0.0";
private image_urls = [
"https://cdn.vuetifyjs.com/images/carousel/squirrel.jpg",
"https://cdn.vuetifyjs.com/images/carousel/sky.jpg",
"https://cdn.vuetifyjs.com/images/carousel/bird.jpg",
"https://cdn.vuetifyjs.com/images/carousel/planet.jpg",
];
2022-09-15 16:25:58 +00:00
private calendar_data = [
{
title: "Lorem Ipsum",
events: [
{
summary: "Lorem Ipsum",
description:
"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.",
dtstart: "2022-09-08T07:00:00+00:00",
dtend: "2022-09-08T16:00:00+00:00",
},
{
summary: "Sed ut perspiciatis unde omnis",
description: "Lorem ipsum dolor sit amet, consectetur",
dtstart: "2022-09-09T07:00:00+00:00",
dtend: "2022-09-09T09:00:00+00:00",
},
{
summary: "At vero eos et accusamus",
description: "",
dtstart: "2022-09-10T07:00:00+00:00",
dtend: "2022-09-10T16:00:00+00:00",
},
],
},
{
title: "Li Europan lingues",
events: [
{
summary: "Occidental in fact, it va esser Occidental",
description:
"Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores. At solmen va esser necessi far uniform grammatica, pronunciation e plu sommun paroles. Ma quande lingues coalesce, li grammatica del resultant lingue es plu simplic e regulari quam ti del coalescent lingues.",
dtstart: "2022-09-08T07:00:00+00:00",
dtend: "2022-09-08T16:00:00+00:00",
},
{
summary: "Membres del sam familie",
description: "Lor separat existentie es un myth.",
dtstart: "2022-09-09T07:00:00+00:00",
dtend: "2022-09-09T09:30:30+00:00",
},
{
summary: "On refusa continuar payar custosi traductores",
description: "",
dtstart: "2022-09-10T07:00:00+00:00",
dtend: "2022-09-20T16:00:00+00:00",
},
],
},
{
title: "Vivamus elementum semper nisi",
events: [
{
summary: "Phasellus viverra nulla 1",
description:
"Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.",
dtstart: "2022-09-08T07:00:00+00:00",
dtend: "2022-09-08T16:00:00+00:00",
},
{
summary: "Phasellus viverra nulla 2",
description:
"Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.",
dtstart: "2022-09-08T07:00:00+00:00",
dtend: "2022-09-08T16:00:00+00:00",
},
{
summary: "Phasellus viverra nulla 3",
description:
"Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.",
dtstart: "2022-09-08T07:00:00+00:00",
dtend: "2022-09-08T16:00:00+00:00",
},
{
summary: "Phasellus viverra nulla 4",
description:
"Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.",
dtstart: "2022-09-08T07:00:00+00:00",
dtend: "2022-09-08T16:00:00+00:00",
},
{
summary: "Phasellus viverra nulla 5",
description:
"Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.",
dtstart: "2022-09-08T07:00:00+00:00",
dtend: "2022-09-08T16:00:00+00:00",
},
{
summary: "Phasellus viverra nulla 6",
description:
"Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.",
dtstart: "2022-09-08T07:00:00+00:00",
dtend: "2022-09-08T16:00:00+00:00",
},
{
summary: "Phasellus viverra nulla 7",
description:
"Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.",
dtstart: "2022-09-08T07:00:00+00:00",
dtend: "2022-09-08T16:00:00+00:00",
},
{
summary: "Phasellus viverra nulla 8",
description:
"Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.",
dtstart: "2022-09-08T07:00:00+00:00",
dtend: "2022-09-08T16:00:00+00:00",
},
{
summary: "Phasellus viverra nulla 9",
description:
"Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.",
dtstart: "2022-09-08T07:00:00+00:00",
dtend: "2022-09-08T16:00:00+00:00",
},
{
summary: "Phasellus viverra nulla 10",
description:
"Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.",
dtstart: "2022-09-08T07:00:00+00:00",
dtend: "2022-09-08T16:00:00+00:00",
},
],
},
];
2022-09-11 23:28:37 +00:00
}
2022-09-09 16:38:12 +00:00
</script>