feat: refactored front end

This commit is contained in:
Pierre Tellier
2025-02-04 15:18:59 +01:00
parent 8674625bb4
commit 3619e6684e
33 changed files with 4067 additions and 13 deletions

View File

@ -0,0 +1,14 @@
// file: src/plugins/authStore.js
import { useAuthStore } from "@/stores/authStore.ts";
import keycloakService from '@/services/keycloak';
// Setup auth store as a plugin so it can be accessed globally in our FE
const authStorePlugin = {
install(app: any, option: any) {
const store = useAuthStore(option.pinia);
app.config.globalProperties.$store = store;
keycloakService.CallInitStore(store);
}
}
export default authStorePlugin;