From fe32e13ca4ed8b484d337b8e4c5f38560238f466 Mon Sep 17 00:00:00 2001 From: "dwi.firman" Date: Thu, 5 Jun 2025 15:20:22 +0700 Subject: [PATCH] perbaikan setting pinia dan simpan user role belum fix, ad env.example --- .env.example | 11 ++ components/Master/formDetail.vue | 23 +-- components/Master/formDetail1.vue | 182 ++++++++++++++++----- components/Master/formDetail1_copy.vue | 213 +++++++++++++++++++++++++ components/Master/formTypeUser.vue | 4 +- components/auth/LoginForm.vue | 3 + layouts/default.vue | 6 +- nuxt.config.ts | 13 +- package.json | 1 + pages/Setting/typeUser/index.vue | 20 +-- pnpm-lock.yaml | 7 + server/api/auth/login.js | 3 +- server/api/setting/postRoleMenuUser.ts | 8 + server/api/sidebarItem.ts | 2 +- stores/api/setting/setting.ts | 65 ++++++++ utils/helper.ts | 40 +++++ 16 files changed, 514 insertions(+), 87 deletions(-) create mode 100644 .env.example create mode 100644 components/Master/formDetail1_copy.vue create mode 100644 server/api/setting/postRoleMenuUser.ts create mode 100644 stores/api/setting/setting.ts create mode 100644 utils/helper.ts diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..9a219ce --- /dev/null +++ b/.env.example @@ -0,0 +1,11 @@ +KEYCLOAK_URL="https://auth.rssa.top" +KEYCLOAK_SECRET="32HslhZ8Hn97SsbxcmowhXvmNZ9cPGNE" +KEYCLOAK_CLIENT="keuangan-firman" +KEYCLOAK_REALM="sandbox" +KEYCLOAK_REDIRECT_URL="http://localhost:3000" + +KEYCLOAK_ISSUER="https://auth.rssa.top/realms/sandbox" +AUTH_ORIGIN="http://localhost:3000" + +# MONGODB_URI='mongodb://admin:*****@10.10.123.206:27017/?retryWrites=true&loadBalanced=false&serverSelectionTimeoutMS=5000&connectTimeoutMS=10000&authSource=admin&authMechanism=SCRAM-SHA-1' +MONGODB_URI='mongodb://10.10.123.206:27017/keuangan' \ No newline at end of file diff --git a/components/Master/formDetail.vue b/components/Master/formDetail.vue index 6d423a4..48f146d 100644 --- a/components/Master/formDetail.vue +++ b/components/Master/formDetail.vue @@ -1,28 +1,17 @@