mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-07-16 17:48:51 +02:00
feat:#5 linted format
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -1086,7 +1086,7 @@ h6 {
|
|||||||
.p-dropdown-items
|
.p-dropdown-items
|
||||||
.p-dropdown-item:not(.p-highlight):not(.p-disabled).p-focus {
|
.p-dropdown-item:not(.p-highlight):not(.p-disabled).p-focus {
|
||||||
color: rgba(255, 255, 255, 0.87);
|
color: rgba(255, 255, 255, 0.87);
|
||||||
background: var(--htwk-yellow-01) /*#0b213f*/
|
background: var(--htwk-yellow-01); /*#0b213f*/
|
||||||
}
|
}
|
||||||
.p-dropdown-panel
|
.p-dropdown-panel
|
||||||
.p-dropdown-items
|
.p-dropdown-items
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
|
|
||||||
|
|
||||||
// load free rooms as a list of strings form the backend
|
// load free rooms as a list of strings form the backend
|
||||||
|
|
||||||
export async function requestFreeRooms(from: string, to: string): Promise<string[]> {
|
export async function requestFreeRooms(
|
||||||
console.debug("requestFreeRooms: from=" + from + ", to=" + to)
|
from: string,
|
||||||
|
to: string,
|
||||||
|
): Promise<string[]> {
|
||||||
|
console.debug("requestFreeRooms: from=" + from + ", to=" + to);
|
||||||
const rooms: string[] = [];
|
const rooms: string[] = [];
|
||||||
await fetch("/api/rooms/free?from=" + from + "&to=" + to)
|
await fetch("/api/rooms/free?from=" + from + "&to=" + to)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
@ -13,4 +14,4 @@ export async function requestFreeRooms(from: string, to: string): Promise<string
|
|||||||
roomsResponse?.forEach((room: string) => rooms.push(room));
|
roomsResponse?.forEach((room: string) => rooms.push(room));
|
||||||
});
|
});
|
||||||
return rooms;
|
return rooms;
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, watch } from "vue";
|
import { computed } from "vue";
|
||||||
import localeStore from "../store/localeStore.ts";
|
import localeStore from "../store/localeStore.ts";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { DropdownChangeEvent } from "primevue/dropdown";
|
|
||||||
import { usePrimeVue } from "primevue/config";
|
import { usePrimeVue } from "primevue/config";
|
||||||
import primeVue_de from "@/i18n/translations/primevue/prime_vue_local_de.json";
|
import primeVue_de from "@/i18n/translations/primevue/prime_vue_local_de.json";
|
||||||
import primeVue_en from "@/i18n/translations/primevue/prime_vue_local_en.json";
|
import primeVue_en from "@/i18n/translations/primevue/prime_vue_local_en.json";
|
||||||
|
@ -9,12 +9,12 @@ const items = computed(() => [
|
|||||||
{
|
{
|
||||||
label: t("createCalendar"),
|
label: t("createCalendar"),
|
||||||
icon: "pi pi-fw pi-plus",
|
icon: "pi pi-fw pi-plus",
|
||||||
route: "/"
|
route: "/",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t("editCalendar"),
|
label: t("editCalendar"),
|
||||||
icon: "pi pi-fw pi-pencil",
|
icon: "pi pi-fw pi-pencil",
|
||||||
route: "/edit"
|
route: "/edit",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t("rooms"),
|
label: t("rooms"),
|
||||||
@ -24,29 +24,29 @@ const items = computed(() => [
|
|||||||
{
|
{
|
||||||
label: t("roomFinderPage.roomSchedule"),
|
label: t("roomFinderPage.roomSchedule"),
|
||||||
icon: "pi pi-fw pi-hourglass",
|
icon: "pi pi-fw pi-hourglass",
|
||||||
route: "/rooms/occupancy"
|
route: "/rooms/occupancy",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t("freeRooms.freeRooms"),
|
label: t("freeRooms.freeRooms"),
|
||||||
icon: "pi pi-fw pi-calendar",
|
icon: "pi pi-fw pi-calendar",
|
||||||
route: "/rooms/free"
|
route: "/rooms/free",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t("faq"),
|
label: t("faq"),
|
||||||
icon: "pi pi-fw pi-book",
|
icon: "pi pi-fw pi-book",
|
||||||
route: "/faq"
|
route: "/faq",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t("imprint"),
|
label: t("imprint"),
|
||||||
icon: "pi pi-fw pi-id-card",
|
icon: "pi pi-fw pi-id-card",
|
||||||
route: "/imprint"
|
route: "/imprint",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t("privacy"),
|
label: t("privacy"),
|
||||||
icon: "pi pi-fw pi-exclamation-triangle",
|
icon: "pi pi-fw pi-exclamation-triangle",
|
||||||
route: "/privacy-policy"
|
route: "/privacy-policy",
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
</script>
|
</script>
|
||||||
|
@ -265,11 +265,45 @@
|
|||||||
"completed": "Completed",
|
"completed": "Completed",
|
||||||
"pending": "Pending",
|
"pending": "Pending",
|
||||||
"fileSizeTypes": ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"],
|
"fileSizeTypes": ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"],
|
||||||
"dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
"dayNames": [
|
||||||
|
"Sunday",
|
||||||
|
"Monday",
|
||||||
|
"Tuesday",
|
||||||
|
"Wednesday",
|
||||||
|
"Thursday",
|
||||||
|
"Friday",
|
||||||
|
"Saturday"
|
||||||
|
],
|
||||||
"dayNamesShort": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
"dayNamesShort": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
||||||
"dayNamesMin": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
"dayNamesMin": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
||||||
"monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
"monthNames": [
|
||||||
"monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
"January",
|
||||||
|
"February",
|
||||||
|
"March",
|
||||||
|
"April",
|
||||||
|
"May",
|
||||||
|
"June",
|
||||||
|
"July",
|
||||||
|
"August",
|
||||||
|
"September",
|
||||||
|
"October",
|
||||||
|
"November",
|
||||||
|
"December"
|
||||||
|
],
|
||||||
|
"monthNamesShort": [
|
||||||
|
"Jan",
|
||||||
|
"Feb",
|
||||||
|
"Mar",
|
||||||
|
"Apr",
|
||||||
|
"May",
|
||||||
|
"Jun",
|
||||||
|
"Jul",
|
||||||
|
"Aug",
|
||||||
|
"Sep",
|
||||||
|
"Oct",
|
||||||
|
"Nov",
|
||||||
|
"Dec"
|
||||||
|
],
|
||||||
"chooseYear": "Choose Year",
|
"chooseYear": "Choose Year",
|
||||||
"chooseMonth": "Choose Month",
|
"chooseMonth": "Choose Month",
|
||||||
"chooseDate": "Choose Date",
|
"chooseDate": "Choose Date",
|
||||||
|
Reference in New Issue
Block a user