mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-17 03:52:26 +01:00
dep:#64 updated frontend packages and fixed changes
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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];
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user