reflect api changes in UI
This commit is contained in:
parent
3316bf2822
commit
20375f2c9d
6 changed files with 7 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<figure>
|
<figure>
|
||||||
<div class="image is-unselectable">
|
<div class="image is-unselectable">
|
||||||
<img :src="$advent22.api_url('general/background')" />
|
<img :src="$advent22.api_url('images/background')" />
|
||||||
<ThouCanvas>
|
<ThouCanvas>
|
||||||
<CalendarDoor
|
<CalendarDoor
|
||||||
v-for="(door, index) in doors"
|
v-for="(door, index) in doors"
|
||||||
|
|
|
@ -70,7 +70,7 @@ export default class extends Vue {
|
||||||
this.$refs.multi_modal.show_progress();
|
this.$refs.multi_modal.show_progress();
|
||||||
|
|
||||||
this.$advent22
|
this.$advent22
|
||||||
.api_get_blob(`days/image/${day}`)
|
.api_get_blob(`images/${day}`)
|
||||||
.then((data) => this.$refs.multi_modal.show_image(data))
|
.then((data) => this.$refs.multi_modal.show_image(data))
|
||||||
.catch(() => this.$refs.multi_modal.set_active(false));
|
.catch(() => this.$refs.multi_modal.set_active(false));
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ export default class extends Vue {
|
||||||
public doors: Door[] = [];
|
public doors: Door[] = [];
|
||||||
|
|
||||||
private load_doors(): Promise<void | DoorsSaved> {
|
private load_doors(): Promise<void | DoorsSaved> {
|
||||||
return this.$advent22.api_get<DoorsSaved>("general/doors").then((data) => {
|
return this.$advent22.api_get<DoorsSaved>("admin/doors").then((data) => {
|
||||||
this.doors.length = 0;
|
this.doors.length = 0;
|
||||||
|
|
||||||
for (const value of data) {
|
for (const value of data) {
|
||||||
|
@ -96,7 +96,7 @@ export default class extends Vue {
|
||||||
data.push(door.save());
|
data.push(door.save());
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.$advent22.api_put("general/doors", data);
|
return this.$advent22.api_put("admin/doors", data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public mounted(): void {
|
public mounted(): void {
|
||||||
|
|
|
@ -25,7 +25,7 @@ export default class extends Vue {
|
||||||
this.$emit("doorClick");
|
this.$emit("doorClick");
|
||||||
|
|
||||||
this.$advent22
|
this.$advent22
|
||||||
.api_get_blob(`days/image/${this.door.day}`)
|
.api_get_blob(`images/${this.door.day}`)
|
||||||
.then((data) => this.$emit("doorSuccess", data))
|
.then((data) => this.$emit("doorSuccess", data))
|
||||||
.catch(([reason]) => {
|
.catch(([reason]) => {
|
||||||
let msg = "Unbekannter Fehler, bitte wiederholen!";
|
let msg = "Unbekannter Fehler, bitte wiederholen!";
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<figure class="image is-unselectable">
|
<figure class="image is-unselectable">
|
||||||
<img :src="$advent22.api_url('general/background')" />
|
<img :src="$advent22.api_url('images/background')" />
|
||||||
<ThouCanvas>
|
<ThouCanvas>
|
||||||
<PreviewDoor
|
<PreviewDoor
|
||||||
v-for="(_, index) in doors"
|
v-for="(_, index) in doors"
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<figure class="image is-unselectable">
|
<figure class="image is-unselectable">
|
||||||
<img :src="$advent22.api_url('general/background')" />
|
<img :src="$advent22.api_url('images/background')" />
|
||||||
<RectangleCanvas
|
<RectangleCanvas
|
||||||
:rectangles="rectangles"
|
:rectangles="rectangles"
|
||||||
@draw="on_draw"
|
@draw="on_draw"
|
||||||
|
|
Loading…
Reference in a new issue