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-item:not(.p-highlight):not(.p-disabled).p-focus {
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
background: var(--htwk-yellow-01) /*#0b213f*/
|
||||
background: var(--htwk-yellow-01); /*#0b213f*/
|
||||
}
|
||||
.p-dropdown-panel
|
||||
.p-dropdown-items
|
||||
|
@ -1,9 +1,10 @@
|
||||
|
||||
|
||||
// load free rooms as a list of strings form the backend
|
||||
|
||||
export async function requestFreeRooms(from: string, to: string): Promise<string[]> {
|
||||
console.debug("requestFreeRooms: from=" + from + ", to=" + to)
|
||||
export async function requestFreeRooms(
|
||||
from: string,
|
||||
to: string,
|
||||
): Promise<string[]> {
|
||||
console.debug("requestFreeRooms: from=" + from + ", to=" + to);
|
||||
const rooms: string[] = [];
|
||||
await fetch("/api/rooms/free?from=" + from + "&to=" + to)
|
||||
.then((response) => {
|
||||
@ -13,4 +14,4 @@ export async function requestFreeRooms(from: string, to: string): Promise<string
|
||||
roomsResponse?.forEach((room: string) => rooms.push(room));
|
||||
});
|
||||
return rooms;
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed, watch } from "vue";
|
||||
import { computed } from "vue";
|
||||
import localeStore from "../store/localeStore.ts";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { DropdownChangeEvent } from "primevue/dropdown";
|
||||
import { usePrimeVue } from "primevue/config";
|
||||
import primeVue_de from "@/i18n/translations/primevue/prime_vue_local_de.json";
|
||||
import primeVue_en from "@/i18n/translations/primevue/prime_vue_local_en.json";
|
||||
|
@ -9,12 +9,12 @@ const items = computed(() => [
|
||||
{
|
||||
label: t("createCalendar"),
|
||||
icon: "pi pi-fw pi-plus",
|
||||
route: "/"
|
||||
route: "/",
|
||||
},
|
||||
{
|
||||
label: t("editCalendar"),
|
||||
icon: "pi pi-fw pi-pencil",
|
||||
route: "/edit"
|
||||
route: "/edit",
|
||||
},
|
||||
{
|
||||
label: t("rooms"),
|
||||
@ -24,29 +24,29 @@ const items = computed(() => [
|
||||
{
|
||||
label: t("roomFinderPage.roomSchedule"),
|
||||
icon: "pi pi-fw pi-hourglass",
|
||||
route: "/rooms/occupancy"
|
||||
route: "/rooms/occupancy",
|
||||
},
|
||||
{
|
||||
label: t("freeRooms.freeRooms"),
|
||||
icon: "pi pi-fw pi-calendar",
|
||||
route: "/rooms/free"
|
||||
route: "/rooms/free",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: t("faq"),
|
||||
icon: "pi pi-fw pi-book",
|
||||
route: "/faq"
|
||||
route: "/faq",
|
||||
},
|
||||
{
|
||||
label: t("imprint"),
|
||||
icon: "pi pi-fw pi-id-card",
|
||||
route: "/imprint"
|
||||
route: "/imprint",
|
||||
},
|
||||
{
|
||||
label: t("privacy"),
|
||||
icon: "pi pi-fw pi-exclamation-triangle",
|
||||
route: "/privacy-policy"
|
||||
route: "/privacy-policy",
|
||||
},
|
||||
]);
|
||||
</script>
|
||||
|
@ -265,11 +265,45 @@
|
||||
"completed": "Completed",
|
||||
"pending": "Pending",
|
||||
"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"],
|
||||
"dayNamesMin": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
||||
"monthNames": ["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"],
|
||||
"monthNames": [
|
||||
"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",
|
||||
"chooseMonth": "Choose Month",
|
||||
"chooseDate": "Choose Date",
|
||||
|
Reference in New Issue
Block a user