@appscode/design-system 1.0.43-alpha.153 → 1.0.43-alpha.154
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
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
/>
|
|
23
23
|
<button class="camera-icon"></button>
|
|
24
24
|
</div>
|
|
25
|
-
<div class="profile-info" style="width: calc(100% - 60px)
|
|
25
|
+
<div class="profile-info" style="width: calc(100% - 60px)">
|
|
26
26
|
<a
|
|
27
27
|
:href="`/${user.username}`"
|
|
28
28
|
:title="user.username.toUpperCase()"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<a :href="`${serverDomain}/user/settings/`">Settings</a>
|
|
38
38
|
</li>
|
|
39
39
|
<li v-if="user.is_admin" key="site-admin">
|
|
40
|
-
<a :href="`${
|
|
40
|
+
<a :href="`${accountsDomain}/admin`">Site Administration</a>
|
|
41
41
|
</li>
|
|
42
42
|
<li
|
|
43
43
|
v-if="showAccountSwitcher"
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
<span>Switch Account</span>
|
|
58
58
|
<span
|
|
59
59
|
><i
|
|
60
|
-
:class="
|
|
61
|
-
|
|
62
|
-
"
|
|
60
|
+
:class="`fa fa-angle-${
|
|
61
|
+
dropDownStatus === 'open' ? 'up' : 'down'
|
|
62
|
+
}`"
|
|
63
63
|
></i
|
|
64
64
|
></span>
|
|
65
65
|
</a>
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
<a :href="`${serverDomain}/dashboard`"> Dashboard </a>
|
|
129
129
|
</li>
|
|
130
130
|
<li key="signout">
|
|
131
|
-
<a :href="`${
|
|
131
|
+
<a :href="`${accountsDomain}/user/logout`"> Sign out </a>
|
|
132
132
|
</li>
|
|
133
133
|
</transition-group>
|
|
134
134
|
</div>
|
|
@@ -142,32 +142,36 @@ export default {
|
|
|
142
142
|
// active user info
|
|
143
143
|
user: {
|
|
144
144
|
type: Object,
|
|
145
|
-
default: () => ({})
|
|
145
|
+
default: () => ({}),
|
|
146
146
|
},
|
|
147
147
|
serverDomain: {
|
|
148
148
|
type: String,
|
|
149
|
-
default: ""
|
|
149
|
+
default: "",
|
|
150
|
+
},
|
|
151
|
+
accountsDomain: {
|
|
152
|
+
type: String,
|
|
153
|
+
default: "",
|
|
150
154
|
},
|
|
151
155
|
showAccountSwitcher: {
|
|
152
156
|
type: Boolean,
|
|
153
|
-
default: false
|
|
157
|
+
default: false,
|
|
154
158
|
},
|
|
155
159
|
// all available organization list including personal account
|
|
156
160
|
organizations: {
|
|
157
161
|
type: Array,
|
|
158
|
-
default: () => []
|
|
159
|
-
}
|
|
162
|
+
default: () => [],
|
|
163
|
+
},
|
|
160
164
|
},
|
|
161
165
|
|
|
162
166
|
components: {
|
|
163
167
|
NavbarItem: () => import("./NavbarItem.vue"),
|
|
164
|
-
NavbarItemContent: () => import("./NavbarItemContent.vue")
|
|
168
|
+
NavbarItemContent: () => import("./NavbarItemContent.vue"),
|
|
165
169
|
},
|
|
166
170
|
|
|
167
171
|
computed: {
|
|
168
172
|
formattedOrganizations() {
|
|
169
173
|
let activeUser;
|
|
170
|
-
const filteredList = this.organizations.filter(item => {
|
|
174
|
+
const filteredList = this.organizations.filter((item) => {
|
|
171
175
|
if (item.username === this.user.username) {
|
|
172
176
|
activeUser = item;
|
|
173
177
|
} else {
|
|
@@ -179,13 +183,13 @@ export default {
|
|
|
179
183
|
filteredList.unshift(activeUser);
|
|
180
184
|
|
|
181
185
|
return filteredList || [];
|
|
182
|
-
}
|
|
186
|
+
},
|
|
183
187
|
},
|
|
184
188
|
|
|
185
189
|
data() {
|
|
186
190
|
return {
|
|
187
191
|
dropDownStatus: "close",
|
|
188
|
-
dropDownSectionHeight: null
|
|
192
|
+
dropDownSectionHeight: null,
|
|
189
193
|
};
|
|
190
194
|
},
|
|
191
195
|
|
|
@@ -202,7 +206,7 @@ export default {
|
|
|
202
206
|
},
|
|
203
207
|
onMouseLeave() {
|
|
204
208
|
this.dropDownStatus = "close";
|
|
205
|
-
}
|
|
209
|
+
},
|
|
206
210
|
},
|
|
207
211
|
|
|
208
212
|
watch: {
|
|
@@ -218,9 +222,9 @@ export default {
|
|
|
218
222
|
} else {
|
|
219
223
|
this.dropDownSectionHeight = null;
|
|
220
224
|
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
},
|
|
224
228
|
};
|
|
225
229
|
</script>
|
|
226
230
|
<style lang="scss" scoped>
|
|
@@ -230,4 +234,4 @@ export default {
|
|
|
230
234
|
.line-break-anywhere {
|
|
231
235
|
line-break: anywhere;
|
|
232
236
|
}
|
|
233
|
-
</style>
|
|
237
|
+
</style>
|