diff --git a/components/layout/full/vertical-header/ProfileDD.vue b/components/layout/full/vertical-header/ProfileDD.vue index 63ae659..04e6bc1 100644 --- a/components/layout/full/vertical-header/ProfileDD.vue +++ b/components/layout/full/vertical-header/ProfileDD.vue @@ -1,11 +1,14 @@ diff --git a/nuxt.config.ts b/nuxt.config.ts index 49d138d..881c864 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,7 +1,7 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ ssr: false, - + devtools: { enabled: true }, typescript: { shim: false }, @@ -26,7 +26,10 @@ export default defineNuxtConfig({ }, modules: [ '@vueform/nuxt', - '@sidebase/nuxt-auth' + '@pinia/nuxt', + '@sidebase/nuxt-auth', + 'nuxt-mongoose', + '@sidebase/nuxt-session', ], // auth: { // isEnabled: true, @@ -47,9 +50,9 @@ export default defineNuxtConfig({ // }, runtimeConfig: { - auth: { - origin: process.env.NUXT_AUTH_ORIGIN || 'http://localhost:3000' - }, + // auth: { + // origin: process.env.NUXT_AUTH_ORIGIN || 'http://localhost:3000' + // }, public: { keycloakUrl: 'https://auth.rssa.top', keycloakRealm: 'sandbox', @@ -57,8 +60,9 @@ export default defineNuxtConfig({ keycloakSecretKey: '32HslhZ8Hn97SsbxcmowhXvmNZ9cPGNE', keycloakRedirectURI: 'http://localhost:3000', - SIMRS_API: 'http://10.10.150.131:8084/api' // local Ahdan + SIMRS_API: 'http://10.10.150.131:8084/api', // local Ahdan // SIMRS_API: 'http://10.10.123.140:8084/api' + MONGODB_URI: 'mongodb://admin:*****@10.10.123.206:27017/?retryWrites=true&loadBalanced=false&serverSelectionTimeoutMS=5000&connectTimeoutMS=10000&authSource=admin&authMechanism=SCRAM-SHA-1', }, }, diff --git a/package.json b/package.json index 484648f..25ecf31 100644 --- a/package.json +++ b/package.json @@ -11,14 +11,18 @@ "postinstall": "nuxt prepare" }, "dependencies": { - "@iconify/vue": "^4.1.1", + "@iconify/vue": "^4.3.0", "@mdi/font": "7.4.47", "@nuxt/vite-builder": "3.16.2", + "@pinia/nuxt": "^0.11.0", "@vueform/nuxt": "^1.13.0", "apexcharts": "4.5.0", "axios": "^1.9.0", "cors": "^2.8.5", - "nuxt-auth-utils": "^0.5.16", + "module": "^1.2.5", + "mongose": "0.0.2-security", + "nuxt-auth-utils": "^0.5.20", + "nuxt-mongoose": "^1.0.6", "openid-client": "^5.7.1", "pinia": "^3.0.2", "sass": "1.70.0", @@ -27,10 +31,11 @@ "vue3-apexcharts": "1.5.2", "vue3-perfect-scrollbar": "1.6.1", "vuetify": "3.7.18", - "zod": "^3.25.46" + "zod": "^3.25.49" }, "devDependencies": { "@sidebase/nuxt-auth": "^0.10.1", + "@sidebase/nuxt-session": "^0.2.8", "nuxt": "3.16.2" }, "overrides": { diff --git a/pages/Sample-Page.vue b/pages/Sample-Page.vue index 9cc946d..8e31033 100644 --- a/pages/Sample-Page.vue +++ b/pages/Sample-Page.vue @@ -1,14 +1,45 @@