@finema/finework-layer 0.2.83 → 0.2.84

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.84](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.83...0.2.84) (2025-12-16)
4
+
5
+ ### Features
6
+
7
+ * update routes for management and finance apps to improve navigation structure ([3d5547e](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/3d5547e3bbf30da023025904cb79362867f88a42))
8
+
3
9
  ## [0.2.83](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.82...0.2.83) (2025-12-16)
4
10
 
5
11
  ### Features
@@ -184,7 +184,7 @@ const managementApps = computed(() => [
184
184
  logo: '/admin/todo.png',
185
185
  label: 'TODO',
186
186
  description: 'ระบบจัดการงานที่ต้องทำ',
187
- to: routes.todo.to,
187
+ to: routes.todo.dashboard.to,
188
188
  },
189
189
  ]
190
190
  : []),
@@ -210,7 +210,7 @@ const financeApps = computed(() => [
210
210
  logo: '/admin/cost-sheet.png',
211
211
  label: 'Cost Sheet',
212
212
  description: 'รายรับรายจ่ายงบประมาณโครงการ',
213
- to: routes.costSheet.to,
213
+ to: routes.costSheet.overview.to,
214
214
  },
215
215
  ]
216
216
  : []),
@@ -232,7 +232,7 @@ const financeApps = computed(() => [
232
232
  logo: '/admin/quotation.png',
233
233
  label: 'Quotation',
234
234
  description: 'รายรับรายจ่ายงบประมาณโครงการ',
235
- to: routes.quotation.to,
235
+ to: routes.quotation.quotations.home.to,
236
236
  },
237
237
  ]
238
238
  : []),
@@ -246,7 +246,7 @@ const peopleApps = computed(() => [
246
246
  logo: '/admin/employee.png',
247
247
  label: 'Employee',
248
248
  description: 'ระบบจัดการข้อมูลพนักงาน',
249
- to: routes.employee.to,
249
+ to: routes.employee.root.to,
250
250
  },
251
251
  ]
252
252
  : []),
@@ -257,7 +257,7 @@ const peopleApps = computed(() => [
257
257
  logo: '/admin/newsletter.png',
258
258
  label: 'Newsletter',
259
259
  description: 'ระบบจัดการข่าวสาร',
260
- to: routes.newsletter.to,
260
+ to: routes.newsletter.announcement.announcements.to,
261
261
  },
262
262
  ]
263
263
  : []),
@@ -271,7 +271,7 @@ const legalApps = computed(() => [
271
271
  logo: '/admin/contract.png',
272
272
  label: 'Contract',
273
273
  description: 'สร้างและจัดการสัญญา',
274
- to: routes.legal.to,
274
+ to: routes.legal.dashboard.to,
275
275
  },
276
276
  ]
277
277
  : []),
@@ -83,28 +83,52 @@ export const routes = {
83
83
  },
84
84
  },
85
85
  costSheet: {
86
- label: 'Cost Sheet',
87
- to: '/cost-sheet/',
86
+ overview: {
87
+ label: 'ภาพรวม',
88
+ to: '/cost-sheet/overview',
89
+ icon: 'ph:stack',
90
+ },
88
91
  },
89
92
  legal: {
90
- label: 'Legal',
91
- to: '/legal/',
93
+ dashboard: {
94
+ label: 'Dashboard',
95
+ icon: 'ph:house',
96
+ to: '/legal/dashboard',
97
+ },
92
98
  },
93
99
  quotation: {
94
- label: 'Quotation',
95
- to: '/quotation/',
100
+ quotations: {
101
+ home: {
102
+ label: 'ใบเสนอราคา',
103
+ to: '/quotation',
104
+ icon: 'ph:stack',
105
+ permissions: ['quotation:NONE', 'quotation:USER'],
106
+ },
107
+ },
96
108
  },
97
109
  newsletter: {
98
- label: 'Newsletter',
99
- to: '/newsletter/',
110
+ announcement: {
111
+ announcements: {
112
+ label: 'รายการประกาศข่าว',
113
+ to: '/newsletter',
114
+ icon: 'ph:megaphone',
115
+ permissions: ['newsletter:USER', 'newsletter:ADMIN', 'newsletter:SUPER'],
116
+ },
117
+ },
100
118
  },
101
119
  todo: {
102
- label: 'To Do',
103
- to: '/todo/',
120
+ dashboard: {
121
+ label: 'Dashboard',
122
+ icon: 'lucide:layers',
123
+ to: '/todo',
124
+ },
104
125
  },
105
126
  employee: {
106
- label: 'Employee',
107
- to: '/employee/',
127
+ root: {
128
+ label: 'Employee',
129
+ to: '/employee',
130
+ icon: 'ph:users',
131
+ },
108
132
  },
109
133
 
110
134
  } as const
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "0.2.83",
4
+ "version": "0.2.84",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",