@awes-io/ui 2.83.0 → 2.84.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/assets/css/components/button.css +2 -2
- package/assets/css/components/user-menu.css +6 -2
- package/components/4_pages/_AwPageHeader.vue +1 -1
- package/components/5_layouts/_AwUserMenu.vue +10 -2
- package/nuxt/awes.config.js +1 -1
- package/nuxt/templates/core.plugin.js +33 -0
- package/package.json +2 -2
- package/tailwind.config.js +1 -1
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.84.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.83.0...@awes-io/ui@2.84.0) (2023-11-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **vue-mc:** injectable system added ([98a6cb6](https://github.com/awes-io/client/commit/98a6cb6542122e4404817d63fa198e160dcc99b1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [2.83.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.82.0...@awes-io/ui@2.83.0) (2023-11-15)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
color: var(--c-on-surface);
|
|
62
62
|
border-bottom-width: 1px;
|
|
63
63
|
|
|
64
|
-
&-icon {
|
|
65
|
-
|
|
64
|
+
&-icon--mono {
|
|
65
|
+
color: var(--c-mono-400);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&-text {
|
|
@@ -126,6 +126,10 @@
|
|
|
126
126
|
background-color: var(--c-mono-900);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
&--icon-mono svg {
|
|
130
|
+
color: var(--c-mono-400);
|
|
131
|
+
}
|
|
132
|
+
|
|
129
133
|
&-text {
|
|
130
134
|
text-overflow: ellipsis;
|
|
131
135
|
overflow: hidden;
|
|
@@ -54,6 +54,11 @@
|
|
|
54
54
|
<AwIconSystemMono
|
|
55
55
|
:size="24"
|
|
56
56
|
class="aw-user-menu__theme-icon"
|
|
57
|
+
:class="{
|
|
58
|
+
'aw-user-menu__theme-icon--mono': monoIcons,
|
|
59
|
+
'mr-2': vertical ,
|
|
60
|
+
'mr-4': !vertical
|
|
61
|
+
}"
|
|
57
62
|
name="light"
|
|
58
63
|
/>
|
|
59
64
|
|
|
@@ -78,6 +83,7 @@
|
|
|
78
83
|
v-bind="_pickButtonProps(item)"
|
|
79
84
|
:class="[
|
|
80
85
|
{
|
|
86
|
+
'aw-user-menu__nav-item--icon-mono': monoIcons,
|
|
81
87
|
'aw-user-menu__nav-item--active':
|
|
82
88
|
item === activeMenu
|
|
83
89
|
},
|
|
@@ -90,7 +96,7 @@
|
|
|
90
96
|
<AwIcon
|
|
91
97
|
v-if="item.icon"
|
|
92
98
|
:name="item.icon"
|
|
93
|
-
class="mr-2"
|
|
99
|
+
:class="{ 'mr-2': vertical , 'mr-4': !vertical }"
|
|
94
100
|
/>
|
|
95
101
|
|
|
96
102
|
<span
|
|
@@ -130,7 +136,9 @@ export default {
|
|
|
130
136
|
|
|
131
137
|
outline: Boolean,
|
|
132
138
|
|
|
133
|
-
caret: Boolean
|
|
139
|
+
caret: Boolean,
|
|
140
|
+
|
|
141
|
+
monoIcons: Boolean
|
|
134
142
|
},
|
|
135
143
|
|
|
136
144
|
inject: {
|
package/nuxt/awes.config.js
CHANGED
|
@@ -22,3 +22,36 @@ export default ({ app }, inject) => {
|
|
|
22
22
|
app.$awes = $awes
|
|
23
23
|
inject('awes', $awes)
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
// const wrapAuthHandler = (fn, context, redirect) => {
|
|
27
|
+
// return async (...args) => {
|
|
28
|
+
// try {
|
|
29
|
+
// return await fn.apply(context, args)
|
|
30
|
+
// } catch (e) {
|
|
31
|
+
// console.log(e)
|
|
32
|
+
|
|
33
|
+
// if (e.name === 'ExpiredAuthSessionError') {
|
|
34
|
+
// redirect('/login')
|
|
35
|
+
// } else {
|
|
36
|
+
// throw e
|
|
37
|
+
// }
|
|
38
|
+
// }
|
|
39
|
+
// }
|
|
40
|
+
// }
|
|
41
|
+
|
|
42
|
+
// export default ({ $axios, $dayjs, store, app, redirect }) => {
|
|
43
|
+
// // request overwrite to handle expired auth error
|
|
44
|
+
// const modelRequest = BaseModel.prototype.request
|
|
45
|
+
// const collectionRequest = BaseCollection.prototype.request
|
|
46
|
+
|
|
47
|
+
// BaseModel.prototype.request = wrapAuthHandler(
|
|
48
|
+
// modelRequest,
|
|
49
|
+
// BaseModel.prototype,
|
|
50
|
+
// redirect
|
|
51
|
+
// )
|
|
52
|
+
// BaseCollection.prototype.request = wrapAuthHandler(
|
|
53
|
+
// collectionRequest,
|
|
54
|
+
// BaseCollection.prototype,
|
|
55
|
+
// redirect
|
|
56
|
+
// )
|
|
57
|
+
// }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.84.0",
|
|
4
4
|
"description": "User Interface (UI) components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"rollup-plugin-visualizer": "^2.6.0",
|
|
114
114
|
"rollup-plugin-vue": "^5.0.1"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "078158dae22db6592008e4fc37c34e08ccfeb618"
|
|
117
117
|
}
|