diff --git a/frontend/quasar.config.js b/frontend/quasar.config.js index 84e0fe5..d2b86b6 100644 --- a/frontend/quasar.config.js +++ b/frontend/quasar.config.js @@ -93,7 +93,7 @@ export default defineConfig((/* ctx */) => { // directives: [], // Quasar plugins - plugins: [], + plugins: ["Notify"], }, // animations: 'all', // --- includes all animations diff --git a/frontend/src/boot/axios.js b/frontend/src/boot/axios.js new file mode 100644 index 0000000..4bc2f39 --- /dev/null +++ b/frontend/src/boot/axios.js @@ -0,0 +1,13 @@ +import { boot } from 'quasar/wrappers'; +import axios from 'axios'; + +const api = axios.create({ + baseURL: "https://localhost:5555" +}); + +export default boot(({ app }) => { + app.config.globalProperties.$axios = axios; + app.config.globalProperties.$api = api; +}); + +export { api }; \ No newline at end of file diff --git a/frontend/src/boot/healthcheck.js b/frontend/src/boot/healthcheck.js index 28078d9..5eabf60 100644 --- a/frontend/src/boot/healthcheck.js +++ b/frontend/src/boot/healthcheck.js @@ -1,11 +1,11 @@ -import axios from "axios"; +import { api } from 'src/boot/axios'; export default async () => { try { - const response = await axios.get("https://localhost:5555/api/healthcheck"); + const response = await api.get("/api/healthcheck"); if (!response.data || response.data.status !== "ok") { console.log("a") diff --git a/frontend/src/layouts/MainLayout.vue b/frontend/src/layouts/MainLayout.vue index 0be55c6..95f35dd 100644 --- a/frontend/src/layouts/MainLayout.vue +++ b/frontend/src/layouts/MainLayout.vue @@ -19,6 +19,12 @@ + + + Set Username + + + +
+ + +
Enter Username
+
+ + + + + + + + + + +
+
+ + + diff --git a/frontend/src/router/routes.js b/frontend/src/router/routes.js index 2ff0459..f83da56 100644 --- a/frontend/src/router/routes.js +++ b/frontend/src/router/routes.js @@ -8,6 +8,8 @@ const routes = [ { path: 'test_NumbersPage', component: () => import('src/pages/test/testNumbersPage.vue') }, { path: 'test_WebSpeechApi', component: () => import('src/pages/test/testWebSpeechApi.vue') }, + { path: 'user/username', component: () => import('src/pages/user/usernamePage.vue') }, + { path: 'error', component: () => import('pages/ErrorPage.vue') } ], },