Compare commits
No commits in common. "a1d8fe7c3dd6f2918a057e2ad3988b59304ecb5e" and "52cffae464940a1a6a23dbd6d3098f88927c9b8d" have entirely different histories.
a1d8fe7c3d
...
52cffae464
4 changed files with 19 additions and 81 deletions
|
|
@ -6,20 +6,14 @@
|
||||||
:logo_below="logo_below"
|
:logo_below="logo_below"
|
||||||
:title="title_html"
|
:title="title_html"
|
||||||
/>
|
/>
|
||||||
<Dashboard>
|
<Dashboard :message="message_html">
|
||||||
<template slot="message">
|
<CalendarCarousel :data="calendar_data" />
|
||||||
<ImageCarousel :image_urls="image_urls" />
|
<DashboardInfo
|
||||||
<div v-html="message_html" />
|
:server_host="server_host"
|
||||||
</template>
|
:server_name="server_name"
|
||||||
<template slot="calendars">
|
:version="dashboard_version"
|
||||||
<CalendarCarousel :data="calendar_data" />
|
:lan_ip="dashboard_ip"
|
||||||
<DashboardInfo
|
/>
|
||||||
:server_host="server_host"
|
|
||||||
:server_name="server_name"
|
|
||||||
:version="dashboard_version"
|
|
||||||
:lan_ip="dashboard_ip"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</Dashboard>
|
</Dashboard>
|
||||||
<TickerBar
|
<TickerBar
|
||||||
v-if="ticker_html !== ''"
|
v-if="ticker_html !== ''"
|
||||||
|
|
@ -35,7 +29,6 @@ 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 DashboardInfo from "./components/DashboardInfo.vue";
|
||||||
import ImageCarousel from "./components/ImageCarousel.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";
|
||||||
|
|
||||||
|
|
@ -44,7 +37,6 @@ import TickerBar from "./components/TickerBar.vue";
|
||||||
CalendarCarousel,
|
CalendarCarousel,
|
||||||
Dashboard,
|
Dashboard,
|
||||||
DashboardInfo,
|
DashboardInfo,
|
||||||
ImageCarousel,
|
|
||||||
TitleBar,
|
TitleBar,
|
||||||
TickerBar,
|
TickerBar,
|
||||||
},
|
},
|
||||||
|
|
@ -59,12 +51,6 @@ export default class App extends Vue {
|
||||||
private server_name = "OEKZident";
|
private server_name = "OEKZident";
|
||||||
private dashboard_version = "0.0.1";
|
private dashboard_version = "0.0.1";
|
||||||
private dashboard_ip = "0.0.0.0";
|
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",
|
|
||||||
];
|
|
||||||
private calendar_data = [
|
private calendar_data = [
|
||||||
{
|
{
|
||||||
title: "Lorem Ipsum",
|
title: "Lorem Ipsum",
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,24 @@
|
||||||
<template>
|
<template>
|
||||||
<v-container fill-height>
|
<v-container fill-height>
|
||||||
<v-layout>
|
<v-layout>
|
||||||
<v-col cols="4">
|
<v-row>
|
||||||
<slot name="message">MESSAGE</slot>
|
<v-col cols="4" v-html="message" />
|
||||||
</v-col>
|
<v-col cols="8">
|
||||||
<v-col cols="8">
|
<slot>CALENDARS</slot>
|
||||||
<slot name="calendars">CALENDARS</slot>
|
</v-col>
|
||||||
</v-col>
|
</v-row>
|
||||||
</v-layout>
|
</v-layout>
|
||||||
</v-container>
|
</v-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from "vue-property-decorator";
|
import { Component, Prop, Vue } from "vue-property-decorator";
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
export default class Dashboard extends Vue {}
|
export default class Dashboard extends Vue {
|
||||||
|
@Prop({ default: "MESSAGE" })
|
||||||
|
private readonly message!: string;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
<template>
|
|
||||||
<v-carousel
|
|
||||||
cycle
|
|
||||||
:interval="speed"
|
|
||||||
height="300"
|
|
||||||
:show-arrows="false"
|
|
||||||
touchless
|
|
||||||
hide-delimiters
|
|
||||||
>
|
|
||||||
<v-carousel-item v-for="url in image_urls" :key="url" :src="url" />
|
|
||||||
</v-carousel>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script lang="ts">
|
|
||||||
import { Component, Prop, Vue } from "vue-property-decorator";
|
|
||||||
|
|
||||||
@Component
|
|
||||||
export default class ImageCarousel extends Vue {
|
|
||||||
@Prop({ default: 10000 })
|
|
||||||
private readonly speed!: number;
|
|
||||||
|
|
||||||
@Prop({ required: true })
|
|
||||||
private readonly image_urls!: Array<string>;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.v-window {
|
|
||||||
&-x-transition,
|
|
||||||
&-x-reverse-transition,
|
|
||||||
&-y-transition,
|
|
||||||
&-y-reverse-transition {
|
|
||||||
&-enter-active,
|
|
||||||
&-leave-active {
|
|
||||||
transition: 1.5s cubic-bezier(0.25, 0.8, 0.5, 1) !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
@ -79,16 +79,4 @@ export default class CalendarCarousel extends Vue {
|
||||||
.v-carousel:deep() > div {
|
.v-carousel:deep() > div {
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.v-window {
|
|
||||||
&-x-transition,
|
|
||||||
&-x-reverse-transition,
|
|
||||||
&-y-transition,
|
|
||||||
&-y-reverse-transition {
|
|
||||||
&-enter-active,
|
|
||||||
&-leave-active {
|
|
||||||
transition: 1.5s cubic-bezier(0.25, 0.8, 0.5, 1) !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
Loading…
Reference in a new issue