ovdashboard/ui/src/App.vue

71 lines
2 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">
2022-09-15 18:01:10 +00:00
<ImageCarousel :speed="image_speed" :image_urls="image_urls" />
<div v-html="message_html" />
</template>
<template slot="calendars">
2022-09-15 18:01:10 +00:00
<CalendarCarousel :speed="calendar_speed" :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 18:07:52 +00:00
import TitleBar from "./components/title/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-15 18:01:10 +00:00
private image_urls = require("@/assets/image_testdata.json");
private image_speed = 10000;
2022-09-13 01:54:02 +00:00
private message_html = "<p>changeme</p>";
2022-09-15 18:01:10 +00:00
private calendar_data = require("@/assets/calendar_testdata.json");
private calendar_speed = 10000;
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";
2022-09-15 18:01:10 +00:00
private ticker_html = "<p>changeme</p>";
2022-09-11 23:28:37 +00:00
}
2022-09-09 16:38:12 +00:00
</script>