@@ -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 @@
-
-
-
+
+
+
{{ door.day }}
@@ -49,11 +34,11 @@ import SVGRect from "../rects/SVGRect.vue";
emits: ["update:door"],
})
export default class extends Vue {
- private door!: Door;
+ public door!: Door;
private editable!: boolean;
- private day_str = "";
- private editing = false;
+ public day_str = "";
+ public editing = false;
private refreshKey = 0;
declare $refs: {
@@ -69,7 +54,7 @@ export default class extends Vue {
}, 100);
}
- private get parent_aspect_ratio(): number {
+ public get parent_aspect_ratio(): number {
this.refreshKey; // read it just to force recompute on change
if (!(this.$el instanceof Text) || this.$el.parentElement === null) {
@@ -99,7 +84,7 @@ export default class extends Vue {
this.editing = this.editable && !this.editing;
}
- private on_click(event: MouseEvent) {
+ public on_click(event: MouseEvent) {
if (event.target === null || !(event.target instanceof HTMLDivElement)) {
return;
}
@@ -121,7 +106,7 @@ export default class extends Vue {
this.toggle_editing();
}
- private on_keydown(event: KeyboardEvent) {
+ public on_keydown(event: KeyboardEvent) {
if (!this.editing) {
return;
}
@@ -147,7 +132,7 @@ export default class extends Vue {
foreignObject {
cursor: pointer;
- > div {
+ >div {
color: red;
height: inherit;
}
diff --git a/ui/src/components/door_map/RectangleCanvas.vue b/ui/src/components/door_map/RectangleCanvas.vue
index 90305c0..816bbe7 100644
--- a/ui/src/components/door_map/RectangleCanvas.vue
+++ b/ui/src/components/door_map/RectangleCanvas.vue
@@ -1,27 +1,16 @@
-
-
+
+
diff --git a/ui/src/components/rects/ThouCanvas.vue b/ui/src/components/rects/ThouCanvas.vue
index a1aa013..24eb8cc 100644
--- a/ui/src/components/rects/ThouCanvas.vue
+++ b/ui/src/components/rects/ThouCanvas.vue
@@ -1,22 +1,13 @@
-