front_foundation #13

Merged
piair merged 188 commits from front_foundation into main 2025-05-14 09:08:33 +02:00
73 changed files with 3472 additions and 9565 deletions
Showing only changes of commit 01f062211a - Show all commits

View File

@ -2,11 +2,9 @@
import { useAuthStore } from "@/stores/authStore.ts"; import { useAuthStore } from "@/stores/authStore.ts";
import keycloakService from "@/services/keycloak"; import keycloakService from "@/services/keycloak";
import type { Pinia } from "pinia";
import type { AppConfig } from "vue";
// Setup auth store as a plugin so it can be accessed globally in our FE // Setup auth store as a plugin so it can be accessed globally in our FE
const authStorePlugin = { const authStorePlugin = {
install(app: AppConfig, option: Pinia) { install(app: unknown, option: unknown) {
const store = useAuthStore(option.pinia); const store = useAuthStore(option.pinia);
app.config.globalProperties.$store = store; app.config.globalProperties.$store = store;
keycloakService.CallInitStore(store); keycloakService.CallInitStore(store);