dep:#64 updated frontend packages and fixed changes

This commit is contained in:
Elmar Kresse
2025-01-06 12:22:09 +01:00
parent 897ba2e7a4
commit d6e57a0494
9 changed files with 2396 additions and 1590 deletions

View File

@@ -37,11 +37,13 @@ function setup() {
}
// Sets the active locale.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setLocale(newLocale: any) {
_i18n.global.locale = newLocale;
setDocumentAttributesFor(newLocale);
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setDocumentAttributesFor(locale: any) {
const htmlElement = document.querySelector("html");

View File

@@ -115,9 +115,12 @@ export const createApp = ViteSSG(
app.use(PrimeVue);
app.component("Avatar", Avatar);
app.component("Badge", Badge);
// eslint-disable-next-line vue/no-reserved-component-names
app.component("Button", Button);
// eslint-disable-next-line vue/no-reserved-component-names
app.component("Menu", Menu);
app.component("Menubar", Menubar);
// eslint-disable-next-line vue/no-reserved-component-names
app.component("Dialog", Dialog);
app.component("Dropdown", Dropdown);
app.component("InputText", InputText);

View File

@@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<script lang="ts" setup>
import { computed, useSlots } from "vue";
import { computed, SetupContext, useSlots } from "vue";
defineProps<{
hideContent: boolean;
@@ -44,7 +44,7 @@ defineProps<{
};
}>();
const slots = useSlots();
const slots: SetupContext["slots"] = useSlots();
const hasSlot = (name: string) => {
return !!slots[name];
};

View File

@@ -56,13 +56,14 @@ function extractToken(token: string): string {
function loadCalendar(): void {
try {
token.value = extractToken(token.value);
} catch (e) {
} catch (error) {
toast.add({
severity: "error",
summary: t("editCalendarView.error"),
detail: t("editCalendarView.invalidToken"),
life: 3000,
});
console.error(error);
return;
}