@finema/finework-layer 1.0.74 → 1.0.76
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
|
+
## [1.0.76](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.75...1.0.76) (2026-06-05)
|
|
4
|
+
|
|
5
|
+
## [1.0.75](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.74...1.0.75) (2026-06-02)
|
|
6
|
+
|
|
3
7
|
## [1.0.74](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.73...1.0.74) (2026-06-02)
|
|
4
8
|
|
|
5
9
|
### Features
|
|
@@ -105,9 +105,6 @@
|
|
|
105
105
|
<span
|
|
106
106
|
v-else-if="!shouldTruncateText(item) && item.type === TYPE_INFO_ITEM.HTML"
|
|
107
107
|
:class="[
|
|
108
|
-
{
|
|
109
|
-
'font-bold': item.label && !titleBold,
|
|
110
|
-
},
|
|
111
108
|
'prose prose-gray',
|
|
112
109
|
]"
|
|
113
110
|
v-html="getValue(item)"
|
|
@@ -182,6 +179,10 @@ const props = defineProps<{
|
|
|
182
179
|
const expandedItems = reactive<Record<string, boolean>>({})
|
|
183
180
|
|
|
184
181
|
const shouldTruncateText = (item: any): boolean => {
|
|
182
|
+
if (item.type === TYPE_INFO_ITEM.HTML) {
|
|
183
|
+
return false
|
|
184
|
+
}
|
|
185
|
+
|
|
185
186
|
return item.max && item.value && item.value.length > item.max
|
|
186
187
|
}
|
|
187
188
|
|
|
@@ -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>
|
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
|
+
]
|