@appscode/design-system 1.0.43-alpha.152 → 1.0.43-alpha.153

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.
@@ -719,7 +719,7 @@ input#captcha {
719
719
  .ac-single-switch.button.ac-button
720
720
  .switch[type="checkbox"]
721
721
  + label {
722
- height: 20px;
722
+ height: 19px;
723
723
  }
724
724
 
725
725
  // transparent input
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.0.43-alpha.152",
3
+ "version": "1.0.43-alpha.153",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -8,14 +8,27 @@
8
8
  </div>
9
9
  </button>
10
10
  <navbar-item-content class="navbar-dropdown-wrapper">
11
- <div v-if="user.username" class="user-profile-wrapper" @mouseleave="onMouseLeave()">
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 :src="user.avatar_url" alt="User Photo" class="width-50 height-50" />
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
25
  <div class="profile-info" style="width: calc(100% - 60px);">
18
- <p :title="user.username.toUpperCase()" class="line-break-anywhere is-ellipsis-1">{{ user.username.toUpperCase() }}</p>
26
+ <a
27
+ :href="`/${user.username}`"
28
+ :title="user.username.toUpperCase()"
29
+ class="line-break-anywhere is-ellipsis-1"
30
+ >{{ user.username.toUpperCase() }}</a
31
+ >
19
32
  <a :href="`mailto:${user.email}`"> {{ user.email }}</a>
20
33
  </div>
21
34
  </div>
@@ -26,8 +39,13 @@
26
39
  <li v-if="user.is_admin" key="site-admin">
27
40
  <a :href="`${serverDomain}/admin`">Site Administration</a>
28
41
  </li>
29
- <li v-if="showAccountSwitcher" :class="`is-${dropDownStatus}`" key="switcher">
30
- <a class="
42
+ <li
43
+ v-if="showAccountSwitcher"
44
+ :class="`is-${dropDownStatus}`"
45
+ key="switcher"
46
+ >
47
+ <a
48
+ class="
31
49
  ac-dropdown-button
32
50
  is-fullwidth
33
51
  is-flex
@@ -39,13 +57,15 @@
39
57
  <span>Switch Account</span>
40
58
  <span
41
59
  ><i
42
- :class="`fa fa-angle-${
43
- dropDownStatus === 'open' ? 'up' : 'down'
44
- }`"
60
+ :class="
61
+ `fa fa-angle-${dropDownStatus === 'open' ? 'up' : 'down'}`
62
+ "
45
63
  ></i
46
64
  ></span>
47
65
  </a>
48
- <transition-group name="list" tag="ul"
66
+ <transition-group
67
+ name="list"
68
+ tag="ul"
49
69
  class="ac-vscrollbar"
50
70
  ref="dropdownItems"
51
71
  :style="{ maxHeight: dropDownSectionHeight }"
@@ -75,7 +95,11 @@
75
95
  "
76
96
  >
77
97
  <div class="org-info">
78
- <strong :title="org.username" class="line-break-anywhere is-ellipsis-1">{{ org.username }}</strong>
98
+ <strong
99
+ :title="org.username"
100
+ class="line-break-anywhere is-ellipsis-1"
101
+ >{{ org.username }}</strong
102
+ >
79
103
  <p>
80
104
  {{
81
105
  org.isPersonalAccount
@@ -118,32 +142,32 @@ export default {
118
142
  // active user info
119
143
  user: {
120
144
  type: Object,
121
- default: () => ({}),
145
+ default: () => ({})
122
146
  },
123
147
  serverDomain: {
124
148
  type: String,
125
- default: "",
149
+ default: ""
126
150
  },
127
151
  showAccountSwitcher: {
128
152
  type: Boolean,
129
- default: false,
153
+ default: false
130
154
  },
131
155
  // all available organization list including personal account
132
156
  organizations: {
133
157
  type: Array,
134
- default: () => [],
135
- },
158
+ default: () => []
159
+ }
136
160
  },
137
161
 
138
162
  components: {
139
163
  NavbarItem: () => import("./NavbarItem.vue"),
140
- NavbarItemContent: () => import("./NavbarItemContent.vue"),
164
+ NavbarItemContent: () => import("./NavbarItemContent.vue")
141
165
  },
142
166
 
143
167
  computed: {
144
168
  formattedOrganizations() {
145
169
  let activeUser;
146
- const filteredList = this.organizations.filter((item) => {
170
+ const filteredList = this.organizations.filter(item => {
147
171
  if (item.username === this.user.username) {
148
172
  activeUser = item;
149
173
  } else {
@@ -155,13 +179,13 @@ export default {
155
179
  filteredList.unshift(activeUser);
156
180
 
157
181
  return filteredList || [];
158
- },
182
+ }
159
183
  },
160
184
 
161
185
  data() {
162
186
  return {
163
187
  dropDownStatus: "close",
164
- dropDownSectionHeight: null,
188
+ dropDownSectionHeight: null
165
189
  };
166
190
  },
167
191
 
@@ -194,9 +218,9 @@ export default {
194
218
  } else {
195
219
  this.dropDownSectionHeight = null;
196
220
  }
197
- },
198
- },
199
- },
221
+ }
222
+ }
223
+ }
200
224
  };
201
225
  </script>
202
226
  <style lang="scss" scoped>