<template>
  <v-app>
    <v-layout column fill-height>
      <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>
      </Dashboard>
      <TickerBar
        v-if="ticker_html !== ''"
        :content="ticker_html"
        color="primary"
      />
    </v-layout>
  </v-app>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import CalendarCarousel from "./components/calendar/CalendarCarousel.vue";
import Dashboard from "./components/Dashboard.vue";
import DashboardInfo from "./components/DashboardInfo.vue";
import ImageCarousel from "./components/ImageCarousel.vue";
import TitleBar from "./components/title_bar/TitleBar.vue";
import TickerBar from "./components/TickerBar.vue";

@Component({
  components: {
    CalendarCarousel,
    Dashboard,
    DashboardInfo,
    ImageCarousel,
    TitleBar,
    TickerBar,
  },
})
export default class App extends Vue {
  private logo_above = "Technisches Hilfswerk";
  private logo_below = "OV Musterstadt";
  private title_html = "<h1>changeme</h1>";
  private ticker_html = "<p>changeme</p>";
  private message_html = "<p>changeme</p>";
  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",
  ];
  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",
        },
      ],
    },
  ];
}
</script>
