@appscode/design-system 1.0.43-alpha.195 → 1.0.43-alpha.196
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
|
@@ -132,7 +132,15 @@
|
|
|
132
132
|
</transition-group>
|
|
133
133
|
</li>
|
|
134
134
|
<li key="dashboard">
|
|
135
|
+
<nuxt-link
|
|
136
|
+
v-if="isPlatformDomain"
|
|
137
|
+
to="/dashboard"
|
|
138
|
+
data-testid="user-dashboard-link"
|
|
139
|
+
>
|
|
140
|
+
Dashboard
|
|
141
|
+
</nuxt-link>
|
|
135
142
|
<a
|
|
143
|
+
v-else
|
|
136
144
|
:href="`${serverDomain}/dashboard`"
|
|
137
145
|
data-testid="user-dashboard-link"
|
|
138
146
|
>
|
|
@@ -182,6 +190,10 @@ export default {
|
|
|
182
190
|
type: Boolean,
|
|
183
191
|
default: false,
|
|
184
192
|
},
|
|
193
|
+
isPlatformDomain: {
|
|
194
|
+
type: Boolean,
|
|
195
|
+
default: false,
|
|
196
|
+
},
|
|
185
197
|
},
|
|
186
198
|
|
|
187
199
|
components: {
|
|
@@ -8,13 +8,21 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
</button>
|
|
10
10
|
<navbar-item-content class="navbar-dropdown-wrapper">
|
|
11
|
-
<div
|
|
11
|
+
<div
|
|
12
|
+
v-if="user.username"
|
|
13
|
+
class="user-profile-wrapper"
|
|
14
|
+
@mouseleave="onMouseLeave()"
|
|
15
|
+
>
|
|
12
16
|
<div class="profile-area">
|
|
13
17
|
<div class="profile-photo">
|
|
14
|
-
<img
|
|
18
|
+
<img
|
|
19
|
+
:src="user.avatar_url"
|
|
20
|
+
alt="User Photo"
|
|
21
|
+
class="width-50 height-50"
|
|
22
|
+
/>
|
|
15
23
|
<button class="camera-icon"></button>
|
|
16
24
|
</div>
|
|
17
|
-
<div class="profile-info" style="width: calc(100% - 60px)
|
|
25
|
+
<div class="profile-info" style="width: calc(100% - 60px)">
|
|
18
26
|
<a
|
|
19
27
|
:href="`${serverDomain}/${user.username}`"
|
|
20
28
|
:title="user.username.toUpperCase()"
|
|
@@ -31,8 +39,13 @@
|
|
|
31
39
|
<li v-if="user.is_admin" key="site-admin">
|
|
32
40
|
<a :href="`${accountsDomain}/admin`">Site Administration</a>
|
|
33
41
|
</li>
|
|
34
|
-
<li
|
|
35
|
-
|
|
42
|
+
<li
|
|
43
|
+
v-if="showAccountSwitcher"
|
|
44
|
+
:class="`is-${dropDownStatus}`"
|
|
45
|
+
key="switcher"
|
|
46
|
+
>
|
|
47
|
+
<a
|
|
48
|
+
class="
|
|
36
49
|
ac-dropdown-button
|
|
37
50
|
is-fullwidth
|
|
38
51
|
is-flex
|
|
@@ -50,7 +63,9 @@
|
|
|
50
63
|
></i
|
|
51
64
|
></span>
|
|
52
65
|
</a>
|
|
53
|
-
<transition-group
|
|
66
|
+
<transition-group
|
|
67
|
+
name="list"
|
|
68
|
+
tag="ul"
|
|
54
69
|
class="ac-vscrollbar"
|
|
55
70
|
ref="dropdownItems"
|
|
56
71
|
:style="{ maxHeight: dropDownSectionHeight }"
|
|
@@ -80,7 +95,11 @@
|
|
|
80
95
|
"
|
|
81
96
|
>
|
|
82
97
|
<div class="org-info">
|
|
83
|
-
<strong
|
|
98
|
+
<strong
|
|
99
|
+
:title="org.username"
|
|
100
|
+
class="line-break-anywhere is-ellipsis-1"
|
|
101
|
+
>{{ org.username }}</strong
|
|
102
|
+
>
|
|
84
103
|
<p>
|
|
85
104
|
{{
|
|
86
105
|
org.isPersonalAccount
|
|
@@ -106,10 +125,28 @@
|
|
|
106
125
|
</transition-group>
|
|
107
126
|
</li>
|
|
108
127
|
<li key="dashboard">
|
|
109
|
-
<
|
|
128
|
+
<nuxt-link
|
|
129
|
+
v-if="isPlatformDomain"
|
|
130
|
+
to="/dashboard"
|
|
131
|
+
data-testid="user-dashboard-link"
|
|
132
|
+
>
|
|
133
|
+
Dashboard
|
|
134
|
+
</nuxt-link>
|
|
135
|
+
<a
|
|
136
|
+
v-else
|
|
137
|
+
:href="`${serverDomain}/dashboard`"
|
|
138
|
+
data-testid="user-dashboard-link"
|
|
139
|
+
>
|
|
140
|
+
Dashboard
|
|
141
|
+
</a>
|
|
110
142
|
</li>
|
|
111
143
|
<li key="signout" @click="$emit('on-logout')">
|
|
112
|
-
<a
|
|
144
|
+
<a
|
|
145
|
+
data-testid="user-logout-link"
|
|
146
|
+
:href="`${accountsDomain}/user/logout`"
|
|
147
|
+
>
|
|
148
|
+
Sign out
|
|
149
|
+
</a>
|
|
113
150
|
</li>
|
|
114
151
|
<li key="theme" v-if="showThemeMode">
|
|
115
152
|
<theme-mode @set:theme="setTheme" />
|
|
@@ -149,17 +186,23 @@ export default defineComponent({
|
|
|
149
186
|
},
|
|
150
187
|
showThemeMode: {
|
|
151
188
|
type: Boolean,
|
|
152
|
-
default: false
|
|
153
|
-
}
|
|
189
|
+
default: false,
|
|
190
|
+
},
|
|
191
|
+
isPlatformDomain: {
|
|
192
|
+
type: Boolean,
|
|
193
|
+
default: false,
|
|
194
|
+
},
|
|
154
195
|
},
|
|
155
|
-
emits: ["set:theme","on-logout"],
|
|
196
|
+
emits: ["set:theme", "on-logout"],
|
|
156
197
|
|
|
157
198
|
components: {
|
|
158
199
|
NavbarItem: defineAsyncComponent(() =>
|
|
159
200
|
import("../../v2/navbar/NavbarItem.vue").then((module) => module.default)
|
|
160
201
|
),
|
|
161
202
|
NavbarItemContent: defineAsyncComponent(() =>
|
|
162
|
-
import("../../v2/navbar/NavbarItemContent.vue").then(
|
|
203
|
+
import("../../v2/navbar/NavbarItemContent.vue").then(
|
|
204
|
+
(module) => module.default
|
|
205
|
+
)
|
|
163
206
|
),
|
|
164
207
|
ThemeMode: defineAsyncComponent(() =>
|
|
165
208
|
import("../../v3/navbar/ThemeMode.vue").then((module) => module.default)
|
|
@@ -205,9 +248,9 @@ export default defineComponent({
|
|
|
205
248
|
onMouseLeave() {
|
|
206
249
|
this.dropDownStatus = "close";
|
|
207
250
|
},
|
|
208
|
-
setTheme(val){
|
|
251
|
+
setTheme(val) {
|
|
209
252
|
this.$emit("set:theme", val);
|
|
210
|
-
}
|
|
253
|
+
},
|
|
211
254
|
},
|
|
212
255
|
|
|
213
256
|
watch: {
|