@finema/finework-layer 0.2.83 → 0.2.85
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 +12 -0
- package/app/components/Layout/Apps.vue +1 -1
- package/app/components/PortalApp.vue +15 -14
- package/app/constants/routes.ts +36 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.85](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.84...0.2.85) (2025-12-16)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* update PortalApp component to accept is-navbar prop and adjust layout ([c0e1fe9](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/c0e1fe9a93e9f49a5d4220108210854615292f8d))
|
|
8
|
+
|
|
9
|
+
## [0.2.84](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.83...0.2.84) (2025-12-16)
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* update routes for management and finance apps to improve navigation structure ([3d5547e](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/3d5547e3bbf30da023025904cb79362867f88a42))
|
|
14
|
+
|
|
3
15
|
## [0.2.83](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.82...0.2.83) (2025-12-16)
|
|
4
16
|
|
|
5
17
|
### Features
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="max-h-[calc(100vh-
|
|
2
|
+
<div class="max-h-[calc(100vh-130px)] overflow-auto bg-white p-5">
|
|
3
3
|
<div class="mb-5 flex items-center gap-2">
|
|
4
4
|
<img
|
|
5
5
|
src="/icon-finema.png"
|
|
@@ -9,14 +9,11 @@
|
|
|
9
9
|
<div class="text-2xl font-bold">
|
|
10
10
|
Finework Apps
|
|
11
11
|
</div>
|
|
12
|
-
|
|
13
|
-
<Button
|
|
14
|
-
icon="i-heroicons-x-mark-20-solid"
|
|
15
|
-
variant="ghost"
|
|
16
|
-
class="ml-auto"
|
|
17
|
-
/>
|
|
18
12
|
</div>
|
|
19
|
-
<div
|
|
13
|
+
<div
|
|
14
|
+
class="grid gap-5"
|
|
15
|
+
:class="[isNavbar ?`md:grid-cols-2 xl:grid-cols-4` : `md:grid-cols-2 xl:grid-cols-3`]"
|
|
16
|
+
>
|
|
20
17
|
<div
|
|
21
18
|
v-if="managementApps.length > 0"
|
|
22
19
|
class="space-y-6"
|
|
@@ -125,6 +122,10 @@
|
|
|
125
122
|
</template>
|
|
126
123
|
|
|
127
124
|
<script lang="ts" setup>
|
|
125
|
+
defineProps<{
|
|
126
|
+
isNavbar?: boolean
|
|
127
|
+
}>()
|
|
128
|
+
|
|
128
129
|
const auth = useAuth()
|
|
129
130
|
const managementApps = computed(() => [
|
|
130
131
|
...(auth.hasPermission(
|
|
@@ -184,7 +185,7 @@ const managementApps = computed(() => [
|
|
|
184
185
|
logo: '/admin/todo.png',
|
|
185
186
|
label: 'TODO',
|
|
186
187
|
description: 'ระบบจัดการงานที่ต้องทำ',
|
|
187
|
-
to: routes.todo.to,
|
|
188
|
+
to: routes.todo.dashboard.to,
|
|
188
189
|
},
|
|
189
190
|
]
|
|
190
191
|
: []),
|
|
@@ -210,7 +211,7 @@ const financeApps = computed(() => [
|
|
|
210
211
|
logo: '/admin/cost-sheet.png',
|
|
211
212
|
label: 'Cost Sheet',
|
|
212
213
|
description: 'รายรับรายจ่ายงบประมาณโครงการ',
|
|
213
|
-
to: routes.costSheet.to,
|
|
214
|
+
to: routes.costSheet.overview.to,
|
|
214
215
|
},
|
|
215
216
|
]
|
|
216
217
|
: []),
|
|
@@ -232,7 +233,7 @@ const financeApps = computed(() => [
|
|
|
232
233
|
logo: '/admin/quotation.png',
|
|
233
234
|
label: 'Quotation',
|
|
234
235
|
description: 'รายรับรายจ่ายงบประมาณโครงการ',
|
|
235
|
-
to: routes.quotation.to,
|
|
236
|
+
to: routes.quotation.quotations.home.to,
|
|
236
237
|
},
|
|
237
238
|
]
|
|
238
239
|
: []),
|
|
@@ -246,7 +247,7 @@ const peopleApps = computed(() => [
|
|
|
246
247
|
logo: '/admin/employee.png',
|
|
247
248
|
label: 'Employee',
|
|
248
249
|
description: 'ระบบจัดการข้อมูลพนักงาน',
|
|
249
|
-
to: routes.employee.to,
|
|
250
|
+
to: routes.employee.root.to,
|
|
250
251
|
},
|
|
251
252
|
]
|
|
252
253
|
: []),
|
|
@@ -257,7 +258,7 @@ const peopleApps = computed(() => [
|
|
|
257
258
|
logo: '/admin/newsletter.png',
|
|
258
259
|
label: 'Newsletter',
|
|
259
260
|
description: 'ระบบจัดการข่าวสาร',
|
|
260
|
-
to: routes.newsletter.to,
|
|
261
|
+
to: routes.newsletter.announcement.announcements.to,
|
|
261
262
|
},
|
|
262
263
|
]
|
|
263
264
|
: []),
|
|
@@ -271,7 +272,7 @@ const legalApps = computed(() => [
|
|
|
271
272
|
logo: '/admin/contract.png',
|
|
272
273
|
label: 'Contract',
|
|
273
274
|
description: 'สร้างและจัดการสัญญา',
|
|
274
|
-
to: routes.legal.to,
|
|
275
|
+
to: routes.legal.dashboard.to,
|
|
275
276
|
},
|
|
276
277
|
]
|
|
277
278
|
: []),
|
package/app/constants/routes.ts
CHANGED
|
@@ -83,28 +83,52 @@ export const routes = {
|
|
|
83
83
|
},
|
|
84
84
|
},
|
|
85
85
|
costSheet: {
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
overview: {
|
|
87
|
+
label: 'ภาพรวม',
|
|
88
|
+
to: '/cost-sheet/overview',
|
|
89
|
+
icon: 'ph:stack',
|
|
90
|
+
},
|
|
88
91
|
},
|
|
89
92
|
legal: {
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
dashboard: {
|
|
94
|
+
label: 'Dashboard',
|
|
95
|
+
icon: 'ph:house',
|
|
96
|
+
to: '/legal/dashboard',
|
|
97
|
+
},
|
|
92
98
|
},
|
|
93
99
|
quotation: {
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
99
|
-
|
|
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
|
-
|
|
103
|
-
|
|
120
|
+
dashboard: {
|
|
121
|
+
label: 'Dashboard',
|
|
122
|
+
icon: 'lucide:layers',
|
|
123
|
+
to: '/todo',
|
|
124
|
+
},
|
|
104
125
|
},
|
|
105
126
|
employee: {
|
|
106
|
-
|
|
107
|
-
|
|
127
|
+
root: {
|
|
128
|
+
label: 'Employee',
|
|
129
|
+
to: '/employee',
|
|
130
|
+
icon: 'ph:users',
|
|
131
|
+
},
|
|
108
132
|
},
|
|
109
133
|
|
|
110
134
|
} as const
|