@awes-io/ui 2.144.7 → 2.145.0
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 +11 -0
- package/components/5_layouts/_AwUserMenu.vue +25 -23
- package/package.json +2 -2
- package/store/awesIo.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 2.145.0 (2026-08-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* separate avatar profile url in user menu ([14d7ddf](https://github.com/awes-io/client/commit/14d7ddfa026ebc29105559b2900c7bda85ca58a5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.144.7](https://github.com/awes-io/client/compare/@awes-io/ui@2.144.6...@awes-io/ui@2.144.7) (2026-04-29)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -58,10 +58,12 @@
|
|
|
58
58
|
}"
|
|
59
59
|
>
|
|
60
60
|
<Component
|
|
61
|
-
:is="
|
|
62
|
-
v-bind="
|
|
61
|
+
:is="avatarProfileUrlAttr.is"
|
|
62
|
+
v-bind="avatarProfileUrlAttr"
|
|
63
63
|
class="aw-user-menu__header"
|
|
64
|
-
:class="{
|
|
64
|
+
:class="{
|
|
65
|
+
'aw-user-menu__header--hoverable': avatarProfileUrl
|
|
66
|
+
}"
|
|
65
67
|
>
|
|
66
68
|
<AwUserpic v-bind="user" big-image />
|
|
67
69
|
</Component>
|
|
@@ -230,41 +232,41 @@ export default {
|
|
|
230
232
|
},
|
|
231
233
|
|
|
232
234
|
profileUrl() {
|
|
233
|
-
|
|
234
|
-
null,
|
|
235
|
-
'state.awesIo.profileUrl',
|
|
236
|
-
this.$store
|
|
237
|
-
)
|
|
238
|
-
|
|
239
|
-
return isType('Function', profileUrl)
|
|
240
|
-
? profileUrl(this.$store.state, this.$store.getters)
|
|
241
|
-
: profileUrl
|
|
235
|
+
return this._resolveUrl('profileUrl')
|
|
242
236
|
},
|
|
243
237
|
|
|
244
|
-
|
|
245
|
-
return (
|
|
246
|
-
typeof this.profileUrl === 'string' &&
|
|
247
|
-
this.profileUrl &&
|
|
248
|
-
LINK_REGEX.test(this.profileUrl)
|
|
249
|
-
)
|
|
238
|
+
avatarProfileUrl() {
|
|
239
|
+
return this._resolveUrl('avatarProfileUrl') || this.profileUrl
|
|
250
240
|
},
|
|
251
241
|
|
|
252
|
-
|
|
253
|
-
|
|
242
|
+
avatarProfileUrlAttr() {
|
|
243
|
+
const url = this.avatarProfileUrl
|
|
244
|
+
const isExternal =
|
|
245
|
+
typeof url === 'string' && url && LINK_REGEX.test(url)
|
|
246
|
+
|
|
247
|
+
if (isExternal) {
|
|
254
248
|
return {
|
|
255
|
-
href:
|
|
249
|
+
href: url,
|
|
256
250
|
is: 'a'
|
|
257
251
|
}
|
|
258
252
|
} else {
|
|
259
253
|
return {
|
|
260
|
-
to:
|
|
261
|
-
is:
|
|
254
|
+
to: url || null,
|
|
255
|
+
is: url ? 'NLink' : 'div'
|
|
262
256
|
}
|
|
263
257
|
}
|
|
264
258
|
}
|
|
265
259
|
},
|
|
266
260
|
|
|
267
261
|
methods: {
|
|
262
|
+
_resolveUrl(key) {
|
|
263
|
+
const url = pathOr(null, `state.awesIo.${key}`, this.$store)
|
|
264
|
+
|
|
265
|
+
return isType('Function', url)
|
|
266
|
+
? url(this.$store.state, this.$store.getters)
|
|
267
|
+
: url
|
|
268
|
+
},
|
|
269
|
+
|
|
268
270
|
_pickButtonProps(props) {
|
|
269
271
|
return omit('icon,iconActive,children,listeners,description', props)
|
|
270
272
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.145.0",
|
|
4
4
|
"description": "User Interface (UI) components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"nuxt": "^2.18.1"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "a1636efce4ca722c009daa3eb5ffeb92e908bf53"
|
|
120
120
|
}
|