@finema/finework-layer 2.0.6 → 2.0.8

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.8](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.7...2.0.8) (2026-07-03)
4
+
5
+ ## [2.0.7](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.6...2.0.7) (2026-07-03)
6
+
3
7
  ## [2.0.6](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.5...2.0.6) (2026-07-01)
4
8
 
5
9
  ## [2.0.5](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.4...2.0.5) (2026-06-30)
@@ -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: 'ระบบสร้างตารางเปรียบเทียบข้อกำหนด',
402
+ to: routes.tor.home.to,
403
+ status: StatusPortal.ACTIVE,
404
+ },
405
+ ]
406
+ : []),
407
+ ...(auth.hasPermission(UserModule.SETTING, 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) => {
@@ -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
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "2.0.6",
4
+ "version": "2.0.8",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",