diff --git a/ui/.devcontainer/devcontainer.json b/ui/.devcontainer/devcontainer.json index 2b386b8..0c9e5d0 100644 --- a/ui/.devcontainer/devcontainer.json +++ b/ui/.devcontainer/devcontainer.json @@ -23,8 +23,8 @@ "extensions": [ "dbaeumer.vscode-eslint", "mhutchie.git-graph", - "octref.vetur", - "Syler.sass-indented" + "Syler.sass-indented", + "Vue.volar" ] } }, diff --git a/ui/src/App.vue b/ui/src/App.vue index 4e15e63..c5410ca 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -11,12 +11,7 @@ - +
@@ -65,7 +60,7 @@ export default class extends Vue { ); } - private open_calendar_door(image_src: string) { + public open_calendar_door(image_src: string) { this.$refs.image_modal.show_src(image_src); } } diff --git a/ui/src/components/BulmaBreadcrumbs.vue b/ui/src/components/BulmaBreadcrumbs.vue index 49f39a1..95657c0 100644 --- a/ui/src/components/BulmaBreadcrumbs.vue +++ b/ui/src/components/BulmaBreadcrumbs.vue @@ -1,12 +1,8 @@ diff --git a/ui/src/components/ImageModal.vue b/ui/src/components/ImageModal.vue index ab07912..959129e 100644 --- a/ui/src/components/ImageModal.vue +++ b/ui/src/components/ImageModal.vue @@ -14,7 +14,7 @@ import { Vue } from "vue-class-component"; export default class extends Vue { - private active = false; + public active = false; public image_src = ""; public created() { diff --git a/ui/src/components/LoginModal.vue b/ui/src/components/LoginModal.vue index 6e697ac..73d5567 100644 --- a/ui/src/components/LoginModal.vue +++ b/ui/src/components/LoginModal.vue @@ -40,9 +40,9 @@ import { Vue } from "vue-class-component"; export default class extends Vue { - private active = false; - private username = ""; - private password = ""; + public active = false; + public username = ""; + public password = ""; public created() { window.addEventListener("keydown", (e) => { @@ -57,7 +57,7 @@ export default class extends Vue { this.password = ""; } - private submit() { + public submit() { this.$advent22.set_api_auth(this.username, this.password); this.set_active(false); } diff --git a/ui/src/components/door_map/DoorChooser.vue b/ui/src/components/door_map/DoorChooser.vue index b080f9b..b862679 100644 --- a/ui/src/components/door_map/DoorChooser.vue +++ b/ui/src/components/door_map/DoorChooser.vue @@ -13,11 +13,7 @@
- +
@@ -41,7 +37,7 @@ import PreviewDoor from "./PreviewDoor.vue"; emits: ["update:doors"], }) export default class extends Vue { - private doors!: Door[]; + public doors!: Door[]; public beforeUnmount() { this.$emit("update:doors", this.doors); @@ -50,7 +46,7 @@ export default class extends Vue { \ No newline at end of file diff --git a/ui/src/components/door_map/DoorPlacer.vue b/ui/src/components/door_map/DoorPlacer.vue index 275350a..98fa94b 100644 --- a/ui/src/components/door_map/DoorPlacer.vue +++ b/ui/src/components/door_map/DoorPlacer.vue @@ -10,21 +10,16 @@
- +
\ No newline at end of file diff --git a/ui/src/components/door_map/PreviewDoor.vue b/ui/src/components/door_map/PreviewDoor.vue index f3b23ac..b58ed96 100644 --- a/ui/src/components/door_map/PreviewDoor.vue +++ b/ui/src/components/door_map/PreviewDoor.vue @@ -1,27 +1,12 @@