From 484f89e2ee58be82702fbe20b5c8780d9c913845 Mon Sep 17 00:00:00 2001 From: Wian Drs Date: Sat, 1 Aug 2026 11:41:31 +0700 Subject: [PATCH] Giant Update regsiter --- package-lock.json | 268 +++- package.json | 1 + src/assets/icons/index.js | 4 + src/components/AppHeader.vue | 87 +- src/components/AppHeaderDropdownAccnt.vue | 7 + src/components/AppSidebar.vue | 18 +- src/components/WalletHeaderWidget.vue | 6 +- .../materials/AssignMaterialModal.vue | 2 +- src/router/index.js | 81 +- src/services/notificationService.js | 29 + src/services/roleApplicationService.js | 15 + src/services/voucherService.js | 12 + src/services/walletService.js | 1 - src/stores/auth.js | 21 + src/stores/menu.js | 22 + .../ApplicationReviews.vue | 227 ++++ .../access-applications/MyApplications.vue | 303 +++++ .../NotificationChannelDashboard.vue | 1126 +++++++++++++++-- src/views/pages/Page403.vue | 31 + src/views/pages/VerifyCode.vue | 43 + src/views/tickets/TicketIncident.vue | 4 +- src/views/tickets/TicketType.vue | 4 +- src/views/users/Users.vue | 4 + src/views/voucher-hotspot/VoucherAgents.vue | 21 + .../voucher-hotspot/VoucherLoginPage.vue | 139 ++ src/views/voucher-hotspot/VoucherSales.vue | 27 + src/views/wallet/WalletDashboard.vue | 209 +-- src/views/website/LandingPage.vue | 47 + 28 files changed, 2439 insertions(+), 320 deletions(-) create mode 100644 src/services/roleApplicationService.js create mode 100644 src/services/voucherService.js create mode 100644 src/views/access-applications/ApplicationReviews.vue create mode 100644 src/views/access-applications/MyApplications.vue create mode 100644 src/views/pages/Page403.vue create mode 100644 src/views/voucher-hotspot/VoucherAgents.vue create mode 100644 src/views/voucher-hotspot/VoucherLoginPage.vue create mode 100644 src/views/voucher-hotspot/VoucherSales.vue create mode 100644 src/views/website/LandingPage.vue diff --git a/package-lock.json b/package-lock.json index 9e6cd287..07000bd4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "chart.js": "^4.5.1", "maplibre-gl": "^3.6.2", "pinia": "^3.0.4", + "qrcode": "^1.5.4", "simplebar-vue": "^2.4.2", "sweetalert2": "^11.26.25", "vue": "^3.5.31", @@ -1520,11 +1521,19 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, "license": "MIT", "dependencies": { "color-convert": "^2.0.1" @@ -1807,6 +1816,15 @@ "node": ">=6" } }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/caniuse-lite": { "version": "1.0.30001799", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001799.tgz", @@ -1872,11 +1890,21 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, "license": "MIT", "dependencies": { "color-name": "~1.1.4" @@ -1889,7 +1917,6 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, "license": "MIT" }, "node_modules/combined-stream": { @@ -1983,6 +2010,15 @@ } } }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", @@ -2009,6 +2045,12 @@ "node": ">=8" } }, + "node_modules/dijkstrajs": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz", + "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==", + "license": "MIT" + }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -2036,6 +2078,12 @@ "dev": true, "license": "ISC" }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, "node_modules/entities": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", @@ -2494,6 +2542,15 @@ "integrity": "sha512-EvGQQi/zPrDA6zr6BnJD/YhwAkBP8nnJ9emh3EnHQKVMfg/MRVtPbMYdgVy/IaEmn4UfagD2a6fafPDL5hbtwg==", "license": "ISC" }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, "node_modules/get-intrinsic": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", @@ -2795,6 +2852,15 @@ "node": ">=0.10.0" } }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -3548,6 +3614,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -3565,7 +3640,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -3656,6 +3730,15 @@ "pathe": "^2.0.3" } }, + "node_modules/pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==", + "license": "MIT", + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/postcss": { "version": "8.5.15", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", @@ -3746,6 +3829,23 @@ "node": ">=6" } }, + "node_modules/qrcode": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.4.tgz", + "integrity": "sha512-1ca71Zgiu6ORjHqFBDpnSMTR2ReToX4l1Au1VFLyVeBTFavzQnv5JxMFr3ukHVKpSrSA2MCk0lNJSykjUfz7Zg==", + "license": "MIT", + "dependencies": { + "dijkstrajs": "^1.0.1", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/quansync": { "version": "0.2.11", "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", @@ -3781,6 +3881,21 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "license": "ISC" + }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -3886,6 +4001,12 @@ "node": ">=10" } }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "license": "ISC" + }, "node_modules/set-value": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", @@ -4063,6 +4184,32 @@ "node": ">=0.10.0" } }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -4515,6 +4662,12 @@ "node": ">= 8" } }, + "node_modules/which-module": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", + "license": "ISC" + }, "node_modules/word-wrap": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", @@ -4525,6 +4678,20 @@ "node": ">=0.10.0" } }, + "node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/xml-name-validator": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", @@ -4535,6 +4702,12 @@ "node": ">=12" } }, + "node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "license": "ISC" + }, "node_modules/yaml": { "version": "2.9.0", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz", @@ -4550,6 +4723,93 @@ "url": "https://github.com/sponsors/eemeli" } }, + "node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "license": "MIT", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "license": "ISC", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/yargs/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index ef459777..4b267e08 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "chart.js": "^4.5.1", "maplibre-gl": "^3.6.2", "pinia": "^3.0.4", + "qrcode": "^1.5.4", "simplebar-vue": "^2.4.2", "sweetalert2": "^11.26.25", "vue": "^3.5.31", diff --git a/src/assets/icons/index.js b/src/assets/icons/index.js index 4e444635..201b36f2 100644 --- a/src/assets/icons/index.js +++ b/src/assets/icons/index.js @@ -43,6 +43,7 @@ import { cilCode, cilCommentSquare, cilContrast, + cilCopy, cilCreditCard, cilCursor, cilDataTransferDown, @@ -55,6 +56,7 @@ import { cilExternalLink, cilGlobeAlt, cilGrid, + cilInfo, cilFile, cilJustifyCenter, cilLaptop, @@ -114,6 +116,7 @@ export const iconsSet = Object.assign( cilCode, cilCommentSquare, cilContrast, + cilCopy, cilCreditCard, cilCursor, cilDataTransferDown, @@ -126,6 +129,7 @@ export const iconsSet = Object.assign( cilExternalLink, cilGlobeAlt, cilGrid, + cilInfo, cilFile, cilJustifyCenter, cilLaptop, diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index d78f8e4d..70ab2c4e 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -2,6 +2,7 @@ import { computed, onBeforeUnmount, onMounted, ref } from 'vue' import { cilList, cilViewModule } from '@coreui/icons' import { useColorModes } from '@coreui/vue' +import { useRouter } from 'vue-router' import AppBreadcrumb from '@/components/AppBreadcrumb.vue' import AppHeaderDropdownAccnt from '@/components/AppHeaderDropdownAccnt.vue' @@ -16,6 +17,7 @@ import { getMyNotifications, markNotificationRead } from '@/services/notificatio const headerClassNames = ref('mb-2 p-0') const { colorMode, setColorMode } = useColorModes('coreui-free-vue-admin-template-theme') const sidebar = useSidebarStore() +const router = useRouter() const viewMode = ref(getResponsiveViewMode()) const appNotifications = ref([]) const unreadCount = computed(() => appNotifications.value.filter((item) => !item.read_at).length) @@ -51,7 +53,10 @@ const openNotification = async (item) => { await markNotificationRead(item.uuid) item.read_at = new Date().toISOString() } - if (item.action_url) window.location.assign(item.action_url) + if (item.action_url) { + if (item.action_url.startsWith('/')) await router.push(item.action_url) + else window.location.assign(item.action_url) + } } onMounted(() => { @@ -74,27 +79,40 @@ onBeforeUnmount(() => { - Dashboard - - - Users - - - Settings + Dashboard - {{ unreadCount > 9 ? '9+' : unreadCount }} + {{ unreadCount > 9 ? '9+' : unreadCount }} -
Notifikasi{{ unreadCount }} belum dibaca
- -
Belum ada notifikasi
+
+ Belum ada notifikasi +
@@ -167,10 +185,41 @@ onBeforeUnmount(() => { diff --git a/src/components/AppHeaderDropdownAccnt.vue b/src/components/AppHeaderDropdownAccnt.vue index a4938f75..dc3e26dd 100644 --- a/src/components/AppHeaderDropdownAccnt.vue +++ b/src/components/AppHeaderDropdownAccnt.vue @@ -43,6 +43,10 @@ function openProfile() { router.push('/profile') } +function openMyApplications() { + router.push('/my-applications') +} + function onLogout() { authStore.logout() router.push('/pages/login') @@ -97,6 +101,9 @@ function onLogout() { Settings Profile + + Pengajuan Saya + Settings Payments diff --git a/src/components/AppSidebar.vue b/src/components/AppSidebar.vue index 7145fad7..940a1dd2 100644 --- a/src/components/AppSidebar.vue +++ b/src/components/AppSidebar.vue @@ -1,4 +1,5 @@ + + diff --git a/src/views/tickets/TicketIncident.vue b/src/views/tickets/TicketIncident.vue index aac1192f..3d25b9be 100644 --- a/src/views/tickets/TicketIncident.vue +++ b/src/views/tickets/TicketIncident.vue @@ -2,7 +2,7 @@ import { ref, reactive, computed, onMounted } from 'vue' import { useTicketIncidentStore } from '@/stores/ticketIncident.js' import { formatTanggal } from '@/utils/tglindo.js' -import { showConfirm, showSuccess, showSuccessr, showError } from '@/utils/swal.js' +import { showConfirm, showSuccess, showError } from '@/utils/swal.js' import { CButton } from '@coreui/vue' import api from '@/api/axios' @@ -136,7 +136,7 @@ async function updateTicketIncidentType(id) { const response = await api.put(`/ticket-incident-types/${id}`, body) store.updateItem(editingIndex.value, response.data.data) modal.value = false - showSuccessr('Data Berhasil Di Simpan') + showSuccess('Data Berhasil Di Simpan') fetchTicketIncidentTypes() } catch (err) { showError(err.response?.data?.message || 'Gagal mengupdate data: ' + err.message) diff --git a/src/views/tickets/TicketType.vue b/src/views/tickets/TicketType.vue index fe72e148..3dc0e367 100644 --- a/src/views/tickets/TicketType.vue +++ b/src/views/tickets/TicketType.vue @@ -2,7 +2,7 @@ import { ref, reactive, computed, onMounted } from 'vue' import { useTicketTypeStore } from '@/stores/ticketType.js' import { formatTanggal } from '@/utils/tglindo.js' -import { showConfirm, showSuccess, showSuccessr, showError } from '@/utils/swal.js' +import { showConfirm, showSuccess, showError } from '@/utils/swal.js' import { CButton } from '@coreui/vue' import { CBadge } from '@coreui/vue' import api from '@/api/axios' @@ -169,7 +169,7 @@ async function updateTicketType(id) { await api.put(`/ticket-types/${id}`, body) store.updateTicketType(editingIndex.value, { ...body }) modal.value = false - showSuccessr('Data berhasil diupdate') + showSuccess('Data berhasil diupdate') fetchAllData() } catch (err) { showError(err.response?.data?.message || 'Gagal mengupdate data: ' + err.message) diff --git a/src/views/users/Users.vue b/src/views/users/Users.vue index c46161f0..24a756ce 100644 --- a/src/views/users/Users.vue +++ b/src/views/users/Users.vue @@ -68,6 +68,7 @@ function emptyForm() { whatsapp_number: '', password: '', access_level: 'staff', + is_platform_staff: false, status: 'active', nik: '', address: '', @@ -263,6 +264,7 @@ async function hydrateForm(user) { email: user?.email || '', whatsapp_number: user?.whatsapp_number || '', access_level: user?.access_level || 'staff', + is_platform_staff: Boolean(user?.is_platform_staff), status: user?.status || 'active', nik: profile.nik || '', address: profile.address || '', @@ -320,6 +322,7 @@ function buildPayload() { whatsapp_number: form.whatsapp_number.trim() || null, access_level: form.access_level, is_master: form.access_level === 'master_admin', + is_platform_staff: isMasterActor.value ? Boolean(form.is_platform_staff) : false, status: form.status, user_profile: { nik: form.nik.trim() || null, @@ -482,6 +485,7 @@ onMounted(fetchUsers) + Password {{ isEdit ? '(opsional)' : '' }} diff --git a/src/views/voucher-hotspot/VoucherAgents.vue b/src/views/voucher-hotspot/VoucherAgents.vue new file mode 100644 index 00000000..646dc22e --- /dev/null +++ b/src/views/voucher-hotspot/VoucherAgents.vue @@ -0,0 +1,21 @@ + + diff --git a/src/views/voucher-hotspot/VoucherLoginPage.vue b/src/views/voucher-hotspot/VoucherLoginPage.vue new file mode 100644 index 00000000..4c6adc5b --- /dev/null +++ b/src/views/voucher-hotspot/VoucherLoginPage.vue @@ -0,0 +1,139 @@ + + + + + diff --git a/src/views/voucher-hotspot/VoucherSales.vue b/src/views/voucher-hotspot/VoucherSales.vue new file mode 100644 index 00000000..0d96faaa --- /dev/null +++ b/src/views/voucher-hotspot/VoucherSales.vue @@ -0,0 +1,27 @@ + + + diff --git a/src/views/wallet/WalletDashboard.vue b/src/views/wallet/WalletDashboard.vue index e3bb4979..eaaf7d68 100644 --- a/src/views/wallet/WalletDashboard.vue +++ b/src/views/wallet/WalletDashboard.vue @@ -1,171 +1,78 @@ - + diff --git a/src/views/website/LandingPage.vue b/src/views/website/LandingPage.vue new file mode 100644 index 00000000..26c6fa8e --- /dev/null +++ b/src/views/website/LandingPage.vue @@ -0,0 +1,47 @@ + + + + +