@appscode/design-system 1.0.43-alpha.190 → 1.0.43-alpha.192
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/package.json
CHANGED
|
@@ -30,7 +30,10 @@
|
|
|
30
30
|
<!-- modal header end -->
|
|
31
31
|
|
|
32
32
|
<!-- modal body start -->
|
|
33
|
-
<div
|
|
33
|
+
<div
|
|
34
|
+
class="ac-modal-body ac-vscrollbar"
|
|
35
|
+
data-testid="ac-modal-content-with-scroll"
|
|
36
|
+
>
|
|
34
37
|
<div class="ac-modal-content">
|
|
35
38
|
<!-- freedom content start -->
|
|
36
39
|
<slot />
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
<a
|
|
27
27
|
:href="`${serverDomain}/${user.username}`"
|
|
28
28
|
:title="user.username.toUpperCase()"
|
|
29
|
+
data-testid="user-profile-link"
|
|
29
30
|
class="line-break-anywhere is-ellipsis-1"
|
|
30
31
|
>{{ user.username.toUpperCase() }}</a
|
|
31
32
|
>
|
|
@@ -34,10 +35,16 @@
|
|
|
34
35
|
</div>
|
|
35
36
|
<transition-group name="list" tag="ul">
|
|
36
37
|
<li key="settings">
|
|
37
|
-
<a
|
|
38
|
+
<a
|
|
39
|
+
data-testid="user-settings-link"
|
|
40
|
+
:href="`${serverDomain}/user/settings/`"
|
|
41
|
+
>Settings</a
|
|
42
|
+
>
|
|
38
43
|
</li>
|
|
39
44
|
<li v-if="isLoggedinUserAdmin" key="site-admin">
|
|
40
|
-
<a :href="`${accountsDomain}/admin`"
|
|
45
|
+
<a data-testid="site-admin-link" :href="`${accountsDomain}/admin`"
|
|
46
|
+
>Site Administration</a
|
|
47
|
+
>
|
|
41
48
|
</li>
|
|
42
49
|
<li
|
|
43
50
|
v-if="showAccountSwitcher"
|
|
@@ -57,9 +64,9 @@
|
|
|
57
64
|
<span>Switch Account</span>
|
|
58
65
|
<span
|
|
59
66
|
><i
|
|
60
|
-
:class="
|
|
61
|
-
|
|
62
|
-
"
|
|
67
|
+
:class="`fa fa-angle-${
|
|
68
|
+
dropDownStatus === 'open' ? 'up' : 'down'
|
|
69
|
+
}`"
|
|
63
70
|
></i
|
|
64
71
|
></span>
|
|
65
72
|
</a>
|
|
@@ -125,10 +132,20 @@
|
|
|
125
132
|
</transition-group>
|
|
126
133
|
</li>
|
|
127
134
|
<li key="dashboard">
|
|
128
|
-
<a
|
|
135
|
+
<a
|
|
136
|
+
:href="`${serverDomain}/dashboard`"
|
|
137
|
+
data-testid="user-dashboard-link"
|
|
138
|
+
>
|
|
139
|
+
Dashboard
|
|
140
|
+
</a>
|
|
129
141
|
</li>
|
|
130
142
|
<li key="signout">
|
|
131
|
-
<a
|
|
143
|
+
<a
|
|
144
|
+
:href="`${accountsDomain}/user/logout`"
|
|
145
|
+
data-testid="signout-link"
|
|
146
|
+
>
|
|
147
|
+
Sign out
|
|
148
|
+
</a>
|
|
132
149
|
</li>
|
|
133
150
|
</transition-group>
|
|
134
151
|
</div>
|
|
@@ -142,40 +159,40 @@ export default {
|
|
|
142
159
|
// active user info
|
|
143
160
|
user: {
|
|
144
161
|
type: Object,
|
|
145
|
-
default: () => ({})
|
|
162
|
+
default: () => ({}),
|
|
146
163
|
},
|
|
147
164
|
serverDomain: {
|
|
148
165
|
type: String,
|
|
149
|
-
default: ""
|
|
166
|
+
default: "",
|
|
150
167
|
},
|
|
151
168
|
accountsDomain: {
|
|
152
169
|
type: String,
|
|
153
|
-
default: ""
|
|
170
|
+
default: "",
|
|
154
171
|
},
|
|
155
172
|
showAccountSwitcher: {
|
|
156
173
|
type: Boolean,
|
|
157
|
-
default: false
|
|
174
|
+
default: false,
|
|
158
175
|
},
|
|
159
176
|
// all available organization list including personal account
|
|
160
177
|
organizations: {
|
|
161
178
|
type: Array,
|
|
162
|
-
default: () => []
|
|
179
|
+
default: () => [],
|
|
163
180
|
},
|
|
164
181
|
isLoggedinUserAdmin: {
|
|
165
182
|
type: Boolean,
|
|
166
|
-
default: false
|
|
167
|
-
}
|
|
183
|
+
default: false,
|
|
184
|
+
},
|
|
168
185
|
},
|
|
169
186
|
|
|
170
187
|
components: {
|
|
171
188
|
NavbarItem: () => import("./NavbarItem.vue"),
|
|
172
|
-
NavbarItemContent: () => import("./NavbarItemContent.vue")
|
|
189
|
+
NavbarItemContent: () => import("./NavbarItemContent.vue"),
|
|
173
190
|
},
|
|
174
191
|
|
|
175
192
|
computed: {
|
|
176
193
|
formattedOrganizations() {
|
|
177
194
|
let activeUser;
|
|
178
|
-
const filteredList = this.organizations.filter(item => {
|
|
195
|
+
const filteredList = this.organizations.filter((item) => {
|
|
179
196
|
if (item.username === this.user.username) {
|
|
180
197
|
activeUser = item;
|
|
181
198
|
} else {
|
|
@@ -187,13 +204,13 @@ export default {
|
|
|
187
204
|
filteredList.unshift(activeUser);
|
|
188
205
|
|
|
189
206
|
return filteredList || [];
|
|
190
|
-
}
|
|
207
|
+
},
|
|
191
208
|
},
|
|
192
209
|
|
|
193
210
|
data() {
|
|
194
211
|
return {
|
|
195
212
|
dropDownStatus: "close",
|
|
196
|
-
dropDownSectionHeight: null
|
|
213
|
+
dropDownSectionHeight: null,
|
|
197
214
|
};
|
|
198
215
|
},
|
|
199
216
|
|
|
@@ -210,7 +227,7 @@ export default {
|
|
|
210
227
|
},
|
|
211
228
|
onMouseLeave() {
|
|
212
229
|
this.dropDownStatus = "close";
|
|
213
|
-
}
|
|
230
|
+
},
|
|
214
231
|
},
|
|
215
232
|
|
|
216
233
|
watch: {
|
|
@@ -226,9 +243,9 @@ export default {
|
|
|
226
243
|
} else {
|
|
227
244
|
this.dropDownSectionHeight = null;
|
|
228
245
|
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
},
|
|
232
249
|
};
|
|
233
250
|
</script>
|
|
234
251
|
<style lang="scss" scoped>
|