add new lights, add login and role to it, add services page

This commit is contained in:
Adrian Zuercher
2025-08-09 18:00:36 +02:00
parent 7d2ab814da
commit 1697a4dcfd
56 changed files with 1337 additions and 290 deletions

View File

@@ -2,19 +2,29 @@ import { boot } from 'quasar/wrappers';
import axios from 'axios';
const host = window.location.hostname;
const port = 8100;
const portDbm = 8100;
const portApp = 9500;
const api = axios.create({
baseURL: `http://${host}:${port}`,
const dbmApi = axios.create({
baseURL: `http://${host}:${portDbm}`,
timeout: 30000,
headers: {
'Content-Type': 'application/json',
},
});
const appApi = axios.create({
baseURL: `http://${host}:${portApp}/api`,
timeout: 10000,
headers: {
'Content-Type': 'application/json',
},
});
export default boot(({ app }) => {
app.config.globalProperties.$axios = axios;
app.config.globalProperties.$api = api;
app.config.globalProperties.$dbmApi = dbmApi;
app.config.globalProperties.$appApi = appApi;
});
export { axios, api };
export { axios, dbmApi, appApi };