add new user and role table in app (in progress)
All checks were successful
Build Quasar SPA and Go Backend for memberApp / build-spa (push) Successful in 2m12s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, , linux) (push) Successful in 5m8s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, .exe, windows) (push) Successful in 5m8s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm, 6, , linux) (push) Successful in 4m57s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm64, , linux) (push) Successful in 5m7s

This commit is contained in:
Adrian Zürcher
2025-10-14 16:41:20 +02:00
parent fdf56a4c0b
commit 690b7f4034
45 changed files with 1427 additions and 629 deletions

View File

@@ -14,7 +14,7 @@ export default boot(async ({ app }) => {
await appApi
.get('/login/me')
.then((resp) => {
useStore.setUser({ username: resp.data.username, role: resp.data.role });
useStore.setUser({ id: resp.data.id, username: resp.data.username, role: resp.data.role });
login.refresh().catch((err) => console.error(err));
})
.catch(() => {

View File

@@ -8,7 +8,7 @@ export const portApp = 9500;
// Create axios instance
export const appApi: AxiosInstance = axios.create({
baseURL: `http://${host}:${portApp}/api`,
baseURL: `https://${host}:${portApp}/api`,
timeout: 10000,
withCredentials: true,
});

View File

@@ -9,11 +9,17 @@ export default boot(({ app, router }) => {
const $q = app.config.globalProperties.$q;
setQuasarInstance($q);
Logo.value = localStorage.getItem('icon') ?? '';
databaseName.value = localStorage.getItem('databaseName') ?? '';
document.documentElement.style.setProperty('--q-primary', localStorage.getItem('primaryColor'));
document.documentElement.style.setProperty(
'--q-secondary',
localStorage.getItem('secondaryColor'),
);
Logo.value = localStorage.getItem('icon') ?? Logo.value;
databaseName.value = localStorage.getItem('databaseName') ?? databaseName.value;
let primaryColor = localStorage.getItem('primaryColor');
if (primaryColor == null || primaryColor === 'undefined' || primaryColor.trim() === '') {
primaryColor = null;
}
let secondaryColor = localStorage.getItem('secondaryColor');
if (secondaryColor == null || secondaryColor === 'undefined' || secondaryColor.trim() === '') {
secondaryColor = null;
}
document.documentElement.style.setProperty('--q-primary', primaryColor ?? '#1976d2');
document.documentElement.style.setProperty('--q-secondary', secondaryColor ?? '#26a69a');
});