DashboardInfo component

This commit is contained in:
Jörn-Michael Miehe 2022-09-15 15:46:09 +00:00
parent 9d45ae0c39
commit bb5e27ffd5
2 changed files with 39 additions and 0 deletions

View file

@ -8,6 +8,11 @@
/> />
<Dashboard :message="message_html"> <Dashboard :message="message_html">
<CalendarCarousel /> <CalendarCarousel />
<DashboardInfo
server_host="https://cloud.oekzident.de"
server_name="OV-Cloud"
version="0"
/>
</Dashboard> </Dashboard>
<TickerBar <TickerBar
v-if="ticker_html !== ''" v-if="ticker_html !== ''"
@ -22,6 +27,7 @@
import { Component, Vue } from "vue-property-decorator"; import { Component, Vue } from "vue-property-decorator";
import CalendarCarousel from "./components/calendar/CalendarCarousel.vue"; import CalendarCarousel from "./components/calendar/CalendarCarousel.vue";
import Dashboard from "./components/Dashboard.vue"; import Dashboard from "./components/Dashboard.vue";
import DashboardInfo from "./components/DashboardInfo.vue";
import TitleBar from "./components/title_bar/TitleBar.vue"; import TitleBar from "./components/title_bar/TitleBar.vue";
import TickerBar from "./components/TickerBar.vue"; import TickerBar from "./components/TickerBar.vue";
@ -29,6 +35,7 @@ import TickerBar from "./components/TickerBar.vue";
components: { components: {
CalendarCarousel, CalendarCarousel,
Dashboard, Dashboard,
DashboardInfo,
TitleBar, TitleBar,
TickerBar, TickerBar,
}, },

View file

@ -0,0 +1,32 @@
<template>
<div>
<v-divider class="mb-1" />
<div class="d-flex flex-column align-end blue-grey--text text-body-2">
<span class="d-flex">
ovdashboard powered by&nbsp;<a :href="server_host">{{ server_name }}</a>
</span>
<span class="d-flex">
Version: {{ version }} &ndash; IP: {{ lan_ip ? lan_ip : "?" }}
</span>
</div>
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from "vue-property-decorator";
@Component
export default class DashboardInfo extends Vue {
@Prop({ required: true })
private readonly version!: string;
@Prop()
private readonly lan_ip?: string;
@Prop({ required: true })
private readonly server_host!: string;
@Prop({ required: true })
private readonly server_name!: string;
}
</script>