diff --git a/package.json b/package.json index 0a3ca0b..eed6fe4 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "devDependencies": { "@intlify/vite-plugin-vue-i18n": "^3.3.1", - "@quasar/app-vite": "^1.8.0", + "@quasar/app-vite": "^1.8.5", "@quasar/cli": "^2.4.0", "@types/node": "^12.20.21", "@typescript-eslint/eslint-plugin": "^5.10.0", diff --git a/quasar.config.js b/quasar.config.js index 312ffc7..488e6c0 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -11,6 +11,7 @@ const { configure } = require('quasar/wrappers'); const path = require('path'); +const frontendPort = 8080; module.exports = configure(function (/* ctx */) { return { @@ -67,7 +68,7 @@ module.exports = configure(function (/* ctx */) { //Defined in realm_export.json, initialize_keycloak.sh and quasar.config.js PORT_KEYCLOAK:8083, - PORT_FRONTEND:8080, + PORT_FRONTEND:frontendPort, PORT_BACKEND:8081, }, // rawDefine: {} @@ -106,14 +107,15 @@ module.exports = configure(function (/* ctx */) { // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer devServer: { // https: true - port: 8080, // default: 3000; changed to 8080 to match keycloak settings + port: frontendPort, // default: 3000; changed to 8080 to match keycloak settings open: true, // opens browser window automatically proxy: { '/api': { - target: 'http://localhost:8080', + target: 'http://localhost:' + frontendPort, changeOrigin: true } }, + }, // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#framework diff --git a/src/boot/pinia.ts b/src/boot/pinia.ts new file mode 100644 index 0000000..37ecc2a --- /dev/null +++ b/src/boot/pinia.ts @@ -0,0 +1,6 @@ +import { boot } from 'quasar/wrappers'; +import { createPinia } from 'pinia'; + +export default boot(({ app }) => { + app.use(createPinia()); +}); diff --git a/src/components/ProtectedData.vue b/src/components/ProtectedData.vue index de4c72d..49108f0 100644 --- a/src/components/ProtectedData.vue +++ b/src/components/ProtectedData.vue @@ -1,45 +1,43 @@ @@ -52,6 +50,17 @@ export default defineComponent({

{{ user.username }}

{{ user.keycloakID }}

+ + +
+

Users:

+
+

{{ user.firstName }}

+

{{ user.lastName }}

+

{{ user.username }}

+

{{ user.keycloakID }}

+
+