@finema/finework-layer 0.2.98 → 0.2.100

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.100](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.99...0.2.100) (2025-12-29)
4
+
5
+ ### Features
6
+
7
+ * portal app ([9706198](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/9706198d87831e95bec849c9736a2891f50cf8a7))
8
+
9
+ ## [0.2.99](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.98...0.2.99) (2025-12-26)
10
+
11
+ ### Bug Fixes
12
+
13
+ * hide todo and costsheet ([fe1c31f](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/fe1c31f65df952ac819f1bf117082a4a18d26ed4))
14
+
3
15
  ## [0.2.98](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.97...0.2.98) (2025-12-25)
4
16
 
5
17
  ### Bug Fixes
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <div
3
+ v-if="managementApps.length > 0 || financeApps.length > 0 || peopleApps.length > 0 || legalApps.length > 0"
3
4
  class="overflow-auto bg-white p-5"
4
5
  :class="[isNavbar ? 'max-h-[calc(100vh-130px)]' : 'h-full']"
5
6
  >
@@ -238,7 +239,8 @@ const managementApps = computed(() => [
238
239
  },
239
240
  ]
240
241
  : []),
241
- ...(auth.hasPermission(UserModule.TODO, Permission.USER, Permission.ADMIN)
242
+
243
+ ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
242
244
  ? [
243
245
  {
244
246
  name: 'todo',
@@ -246,11 +248,10 @@ const managementApps = computed(() => [
246
248
  label: 'TODO',
247
249
  description: 'ระบบจัดการงานที่ต้องทำ',
248
250
  to: routes.todo.dashboard.to,
249
- status: StatusPortal.ACTIVE,
251
+ status: StatusPortal.DEVELOPING,
250
252
  },
251
253
  ]
252
254
  : []),
253
-
254
255
  ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
255
256
  ? [
256
257
  {
@@ -263,36 +264,35 @@ const managementApps = computed(() => [
263
264
  },
264
265
  ]
265
266
  : []),
267
+
266
268
  ])
267
269
 
268
270
  const financeApps = computed(() => [
269
271
 
270
- ...(auth.hasPermission(UserModule.COSTSHEET, Permission.USER, Permission.ADMIN)
272
+ ...(auth.hasPermission(UserModule.QUOTATION, Permission.USER, Permission.ADMIN)
271
273
  ? [
272
274
  {
273
- name: 'Cost Sheet',
274
- logo: '/admin/cost-sheet.png',
275
- label: 'Cost Sheet',
275
+ name: 'Quotation',
276
+ logo: '/admin/quotation.png',
277
+ label: 'Quotation',
276
278
  description: 'รายรับรายจ่ายงบประมาณโครงการ',
277
- to: routes.costSheet.overview.to,
279
+ to: routes.quotation.quotations.home.to,
278
280
  status: StatusPortal.ACTIVE,
279
281
  },
280
282
  ]
281
283
  : []),
282
-
283
- ...(auth.hasPermission(UserModule.QUOTATION, Permission.USER, Permission.ADMIN)
284
+ ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
284
285
  ? [
285
286
  {
286
- name: 'Quotation',
287
- logo: '/admin/quotation.png',
288
- label: 'Quotation',
287
+ name: 'Cost Sheet',
288
+ logo: '/admin/cost-sheet.png',
289
+ label: 'Cost Sheet',
289
290
  description: 'รายรับรายจ่ายงบประมาณโครงการ',
290
- to: routes.quotation.quotations.home.to,
291
- status: StatusPortal.ACTIVE,
291
+ to: routes.costSheet.overview.to,
292
+ status: StatusPortal.DEVELOPING,
292
293
  },
293
294
  ]
294
295
  : []),
295
-
296
296
  ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
297
297
  ? [
298
298
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "0.2.98",
4
+ "version": "0.2.100",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",