@finema/finework-layer 1.0.73 → 1.0.75
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,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.75](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.74...1.0.75) (2026-06-02)
|
|
4
|
+
|
|
5
|
+
## [1.0.74](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.73...1.0.74) (2026-06-02)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* add SUPER permission to CHECKIN module and mark Loan as developing ([181e9e3](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/181e9e31ee71d73322043c342906ca57b6a8ecb2))
|
|
10
|
+
|
|
3
11
|
## [1.0.73](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.72...1.0.73) (2026-05-28)
|
|
4
12
|
|
|
5
13
|
### Features
|
|
@@ -190,6 +190,7 @@ import { computed } from 'vue'
|
|
|
190
190
|
import { useRoute } from 'vue-router'
|
|
191
191
|
import type { UserModule } from '#imports'
|
|
192
192
|
import Navbar from '../Apps.vue'
|
|
193
|
+
import { sidebarProfile } from '#layer/app/constants/routes.js'
|
|
193
194
|
|
|
194
195
|
defineEmits<{
|
|
195
196
|
'toggle-collapsed': []
|
|
@@ -216,20 +217,7 @@ defineSlots<{
|
|
|
216
217
|
|
|
217
218
|
const route = useRoute()
|
|
218
219
|
const auth = useAuth()
|
|
219
|
-
const userMenuItems =
|
|
220
|
-
{
|
|
221
|
-
label: 'View profile',
|
|
222
|
-
icon: 'i-lucide-user',
|
|
223
|
-
to: routes.account.profile.to,
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
{
|
|
227
|
-
label: routes.logout.label,
|
|
228
|
-
icon: 'i-lucide-log-out',
|
|
229
|
-
to: routes.logout.to,
|
|
230
|
-
external: true,
|
|
231
|
-
},
|
|
232
|
-
]
|
|
220
|
+
const userMenuItems = sidebarProfile
|
|
233
221
|
|
|
234
222
|
const normalizePath = (path: string) => path.replace(/\/$/, '')
|
|
235
223
|
|
|
@@ -195,6 +195,7 @@ import type { DropdownMenuItem, NavigationMenuItem } from '@nuxt/ui'
|
|
|
195
195
|
import { computed } from 'vue'
|
|
196
196
|
import Sidebar from './Sidebar.vue'
|
|
197
197
|
import Apps from '../Apps.vue'
|
|
198
|
+
import { sidebarProfile } from '#layer/app/constants/routes.js'
|
|
198
199
|
|
|
199
200
|
const props = withDefaults(
|
|
200
201
|
defineProps<{
|
|
@@ -230,20 +231,7 @@ const isCollapsed = useCookie<boolean>('app.admin.sidebar.isCollapsed', {
|
|
|
230
231
|
path: '/',
|
|
231
232
|
})
|
|
232
233
|
|
|
233
|
-
const userMenuItems: DropdownMenuItem[] =
|
|
234
|
-
{
|
|
235
|
-
label: 'View profile',
|
|
236
|
-
icon: 'i-lucide-user',
|
|
237
|
-
to: routes.account.profile.to,
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
{
|
|
241
|
-
label: routes.logout.label,
|
|
242
|
-
icon: 'i-lucide-log-out',
|
|
243
|
-
to: routes.logout.to,
|
|
244
|
-
external: true,
|
|
245
|
-
},
|
|
246
|
-
]
|
|
234
|
+
const userMenuItems: DropdownMenuItem[] = sidebarProfile
|
|
247
235
|
|
|
248
236
|
const breadcrumbsItems = computed(() => {
|
|
249
237
|
const list = app.pageMeta.breadcrumbs || []
|
|
@@ -82,21 +82,9 @@
|
|
|
82
82
|
<script lang="ts" setup>
|
|
83
83
|
import type { DropdownMenuItem } from '@nuxt/ui'
|
|
84
84
|
import Apps from '../Apps.vue'
|
|
85
|
+
import { sidebarProfile } from '#layer/app/constants/routes.js'
|
|
85
86
|
|
|
86
87
|
const app = useApp()
|
|
87
88
|
const auth = useAuth()
|
|
88
|
-
const userMenuItems: DropdownMenuItem[] =
|
|
89
|
-
{
|
|
90
|
-
label: 'View profile',
|
|
91
|
-
icon: 'i-lucide-user',
|
|
92
|
-
to: routes.account.profile.to,
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
{
|
|
96
|
-
label: routes.logout.label,
|
|
97
|
-
icon: 'i-lucide-log-out',
|
|
98
|
-
to: routes.logout.to,
|
|
99
|
-
external: true,
|
|
100
|
-
},
|
|
101
|
-
]
|
|
89
|
+
const userMenuItems: DropdownMenuItem[] = sidebarProfile
|
|
102
90
|
</script>
|
|
@@ -299,7 +299,7 @@ const handleLinkClick = (to: string) => {
|
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
const dailyApps = computed(() => [
|
|
302
|
-
...(auth.hasPermission(UserModule.CHECKIN, Permission.USER, Permission.ADMIN)
|
|
302
|
+
...(auth.hasPermission(UserModule.CHECKIN, Permission.USER, Permission.ADMIN, Permission.SUPER)
|
|
303
303
|
? [
|
|
304
304
|
{
|
|
305
305
|
name: 'Clock-In',
|
|
@@ -441,7 +441,7 @@ const financeApps = computed(() => [
|
|
|
441
441
|
label: 'Loan',
|
|
442
442
|
description: 'รายการกู้เงินจากธนาคาร',
|
|
443
443
|
to: routes.loan.list.lists.to,
|
|
444
|
-
status: StatusPortal.
|
|
444
|
+
status: StatusPortal.DEVELOPING,
|
|
445
445
|
},
|
|
446
446
|
]
|
|
447
447
|
: []),
|
package/app/constants/routes.ts
CHANGED
|
@@ -14,6 +14,8 @@ export const routes = {
|
|
|
14
14
|
logout: {
|
|
15
15
|
label: 'Log out',
|
|
16
16
|
to: '/api/auth/logout',
|
|
17
|
+
icon: 'i-lucide-log-out',
|
|
18
|
+
external: true,
|
|
17
19
|
},
|
|
18
20
|
releaseHistory: {
|
|
19
21
|
label: 'Release History',
|
|
@@ -22,9 +24,14 @@ export const routes = {
|
|
|
22
24
|
},
|
|
23
25
|
account: {
|
|
24
26
|
profile: {
|
|
25
|
-
label: '
|
|
27
|
+
label: 'View profile',
|
|
26
28
|
to: '/account/profile',
|
|
27
|
-
icon: '
|
|
29
|
+
icon: 'ph:user',
|
|
30
|
+
},
|
|
31
|
+
myTeam: {
|
|
32
|
+
label: 'View my team',
|
|
33
|
+
to: '/account/my-team',
|
|
34
|
+
icon: 'ph:users-three',
|
|
28
35
|
},
|
|
29
36
|
},
|
|
30
37
|
|
|
@@ -221,3 +228,9 @@ export const routes = {
|
|
|
221
228
|
},
|
|
222
229
|
|
|
223
230
|
} as const
|
|
231
|
+
|
|
232
|
+
export const sidebarProfile = [
|
|
233
|
+
routes.account.profile,
|
|
234
|
+
routes.account.myTeam,
|
|
235
|
+
routes.logout,
|
|
236
|
+
]
|