diff --git a/ui/src/components/Dashboard.vue b/ui/src/components/Dashboard.vue index 88b6683..95ae2d0 100644 --- a/ui/src/components/Dashboard.vue +++ b/ui/src/components/Dashboard.vue @@ -18,5 +18,4 @@ import { Component, Vue } from "vue-property-decorator"; export default class Dashboard extends Vue {} - \ No newline at end of file + diff --git a/ui/src/components/DashboardInfo.vue b/ui/src/components/DashboardInfo.vue index 28247c1..072a75b 100644 --- a/ui/src/components/DashboardInfo.vue +++ b/ui/src/components/DashboardInfo.vue @@ -18,10 +18,10 @@ import { Component, Vue } from "@/ovd-vue"; @Component export default class DashboardInfo extends Vue { - private server_host = "https://oekzident.de"; - private server_name = "OEKZident"; - private version = "0.0.1"; - private lan_ip = "0.0.0.0"; + public server_host = "https://oekzident.de"; + public server_name = "OEKZident"; + public version = "0.0.1"; + public lan_ip = "0.0.0.0"; public created(): void { super.created(); @@ -43,7 +43,7 @@ export default class DashboardInfo extends Vue { (data) => { this.server_host = data.host; this.server_name = data.name; - } + }, ); // Update Version @@ -57,4 +57,4 @@ export default class DashboardInfo extends Vue { }); } } - \ No newline at end of file + diff --git a/ui/src/components/ImageCarousel.vue b/ui/src/components/ImageCarousel.vue index dc5c3de..328f693 100644 --- a/ui/src/components/ImageCarousel.vue +++ b/ui/src/components/ImageCarousel.vue @@ -22,10 +22,10 @@ import { Component, Vue } from "@/ovd-vue"; @Component export default class ImageCarousel extends Vue { - private urls: string[] = require("@/assets/image_testdata.json"); - private height = 300; - private contain = false; - private speed = 10000; + public urls: string[] = require("@/assets/image_testdata.json"); + public height = 300; + public contain = false; + public speed = 10000; public created(): void { super.created(); @@ -39,7 +39,7 @@ export default class ImageCarousel extends Vue { // Update Images this.$ovdashboard.api_get_list("image/list", (names) => { this.urls = names.map((name: string) => - this.$ovdashboard.api_url(`image/get/${name}`) + this.$ovdashboard.api_url(`image/get/${name}`), ); }); @@ -71,4 +71,4 @@ export default class ImageCarousel extends Vue { } } } - \ No newline at end of file + diff --git a/ui/src/components/Message.vue b/ui/src/components/Message.vue index 0a0c745..a660b2e 100644 --- a/ui/src/components/Message.vue +++ b/ui/src/components/Message.vue @@ -7,7 +7,7 @@ import { Component, Vue } from "@/ovd-vue"; @Component export default class Message extends Vue { - private html = require("@/assets/message_testdata.json"); + public html = require("@/assets/message_testdata.json"); public created(): void { super.created(); @@ -21,7 +21,7 @@ export default class Message extends Vue { // Update Message this.$ovdashboard.api_get_string( "text/get/html/message", - (data) => (this.html = data) + (data) => (this.html = data), ); } } @@ -59,4 +59,4 @@ div:deep() { font-weight: bold; } } - \ No newline at end of file + diff --git a/ui/src/components/Model.ts b/ui/src/components/Model.ts index 53ca388..016e87d 100644 --- a/ui/src/components/Model.ts +++ b/ui/src/components/Model.ts @@ -5,7 +5,7 @@ export class Model { // source: https://gist.github.com/hyamamoto/fd435505d29ebfa3d9716fd2be8d42f0?permalink_comment_id=2775538#gistcomment-2775538 let hash = 0; for (let i = 0; i < str.length; i++) - hash = Math.imul(31, hash) + str.charCodeAt(i) | 0; + hash = (Math.imul(31, hash) + str.charCodeAt(i)) | 0; return new Uint32Array([hash])[0].toString(36); } diff --git a/ui/src/components/TickerBar.vue b/ui/src/components/TickerBar.vue index 04c11e3..6538ce1 100644 --- a/ui/src/components/TickerBar.vue +++ b/ui/src/components/TickerBar.vue @@ -15,17 +15,14 @@ import Color from "color"; @Component export default class TickerBar extends Vue { - private content = "
changeme
"; + public content = "changeme
"; - private color = "primary"; - - @Ref("content") - private readonly _content!: HTMLDivElement; + public color = "primary"; @Ref("marquee") private readonly _marquee!: HTMLSpanElement; - private get is_dark(): boolean { + public get is_dark(): boolean { return this.footer_color.isDark(); } diff --git a/ui/src/components/calendar/Calendar.vue b/ui/src/components/calendar/Calendar.vue index e3142ae..3b87ff2 100644 --- a/ui/src/components/calendar/Calendar.vue +++ b/ui/src/components/calendar/Calendar.vue @@ -4,11 +4,11 @@ {{ title }} -