@finema/finework-layer 2.0.5 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/app/app.config.ts +3 -1
- package/app/components/PortalApp.vue +25 -0
- package/app/composables/useAuth.ts +8 -0
- package/app/constants/routes.ts +16 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.7](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.6...2.0.7) (2026-07-03)
|
|
4
|
+
|
|
5
|
+
## [2.0.6](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.5...2.0.6) (2026-07-01)
|
|
6
|
+
|
|
3
7
|
## [2.0.5](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.4...2.0.5) (2026-06-30)
|
|
4
8
|
|
|
5
9
|
## [2.0.4](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.3...2.0.4) (2026-06-30)
|
package/app/app.config.ts
CHANGED
|
@@ -12,8 +12,10 @@ export default defineAppConfig({
|
|
|
12
12
|
ui: {
|
|
13
13
|
dialog: {
|
|
14
14
|
slots: {
|
|
15
|
+
overlay: 'pointer-events-none',
|
|
15
16
|
base: [
|
|
16
|
-
'
|
|
17
|
+
'pointer-events-auto',
|
|
18
|
+
'bg-[url(/dialog-bg.png)] bg-no-repeat bg-top-left bg-size-[220px] z-[200]',
|
|
17
19
|
],
|
|
18
20
|
},
|
|
19
21
|
},
|
|
@@ -392,6 +392,31 @@ const managementApps = computed(() => [
|
|
|
392
392
|
},
|
|
393
393
|
]
|
|
394
394
|
: []),
|
|
395
|
+
...(auth.hasPermission(UserModule.TOR, Permission.ADMIN, Permission.SUPER)
|
|
396
|
+
? [
|
|
397
|
+
{
|
|
398
|
+
name: 'tor',
|
|
399
|
+
logo: '/admin/tor.svg',
|
|
400
|
+
label: 'TOR',
|
|
401
|
+
description: 'ระบบสร้างตารางเปรียบเทียบข้อกำหนด (TOR Compliance)',
|
|
402
|
+
to: routes.tor.home.to,
|
|
403
|
+
status: StatusPortal.ACTIVE,
|
|
404
|
+
},
|
|
405
|
+
]
|
|
406
|
+
: []),
|
|
407
|
+
...(auth.hasPermission(UserModule.SUPPORT, Permission.ADMIN, Permission.SUPER)
|
|
408
|
+
? [
|
|
409
|
+
{
|
|
410
|
+
name: 'support',
|
|
411
|
+
logo: '/admin/support.svg',
|
|
412
|
+
label: 'Support',
|
|
413
|
+
description: 'รายงาน Heatmap Monitor & Report',
|
|
414
|
+
// to: routes.support.support.to,
|
|
415
|
+
to: '/',
|
|
416
|
+
status: StatusPortal.DEVELOPING,
|
|
417
|
+
},
|
|
418
|
+
]
|
|
419
|
+
: []),
|
|
395
420
|
|
|
396
421
|
])
|
|
397
422
|
|
|
@@ -104,6 +104,8 @@ export enum UserModule {
|
|
|
104
104
|
EFACTORING = 'efactoring',
|
|
105
105
|
RESOURCE = 'resource',
|
|
106
106
|
LOAN = 'loan',
|
|
107
|
+
TOR = 'tor',
|
|
108
|
+
SUPPORT = 'support',
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
const UserModuleLabel = {
|
|
@@ -124,6 +126,8 @@ const UserModuleLabel = {
|
|
|
124
126
|
[UserModule.LG]: 'งบค้ำประกัน',
|
|
125
127
|
[UserModule.EFACTORING]: 'E-Factoring',
|
|
126
128
|
[UserModule.RESOURCE]: 'Resource',
|
|
129
|
+
[UserModule.TOR]: 'TOR',
|
|
130
|
+
[UserModule.SUPPORT]: 'Support',
|
|
127
131
|
}
|
|
128
132
|
|
|
129
133
|
const UserModuleLogo = {
|
|
@@ -144,6 +148,8 @@ const UserModuleLogo = {
|
|
|
144
148
|
[UserModule.LG]: '/admin/guarantee.png',
|
|
145
149
|
[UserModule.EFACTORING]: '/admin/efactoring.png',
|
|
146
150
|
[UserModule.RESOURCE]: '/admin/resource.svg',
|
|
151
|
+
[UserModule.TOR]: '/admin/tor.svg',
|
|
152
|
+
[UserModule.SUPPORT]: '/admin/support.svg',
|
|
147
153
|
}
|
|
148
154
|
|
|
149
155
|
export const UserModuleOptions = Object.entries(UserModuleLabel).map(([value, label]) => ({
|
|
@@ -175,6 +181,8 @@ export interface IUserAccessLevel {
|
|
|
175
181
|
lg: Permission
|
|
176
182
|
efactoring: Permission
|
|
177
183
|
resource: Permission
|
|
184
|
+
tor: Permission
|
|
185
|
+
support: Permission
|
|
178
186
|
}
|
|
179
187
|
|
|
180
188
|
export const convertDomainToCookieDomain = (domain: string) => {
|
package/app/constants/routes.ts
CHANGED
|
@@ -246,6 +246,22 @@ export const routes = {
|
|
|
246
246
|
icon: 'ph:bug-beetle',
|
|
247
247
|
},
|
|
248
248
|
},
|
|
249
|
+
tor: {
|
|
250
|
+
home: {
|
|
251
|
+
label: 'TOR',
|
|
252
|
+
icon: 'mage:file-2',
|
|
253
|
+
to: '/tor',
|
|
254
|
+
permissions: ['tor:USER', 'tor:ADMIN', 'tor:SUPER'],
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
support: {
|
|
258
|
+
support: {
|
|
259
|
+
label: 'Support',
|
|
260
|
+
to: '/support',
|
|
261
|
+
icon: 'ph:file-text',
|
|
262
|
+
permissions: ['support:USER', 'support:ADMIN', 'support:SUPER'],
|
|
263
|
+
},
|
|
264
|
+
},
|
|
249
265
|
|
|
250
266
|
} as const
|
|
251
267
|
|