feat:#5 linted format

This commit is contained in:
Elmar Kresse
2024-01-31 15:47:32 +01:00
parent b08f839558
commit 9dc8df0cd2
6 changed files with 1631 additions and 387 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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

View File

@ -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) => {

View File

@ -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";

View File

@ -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>

View File

@ -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",