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

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.155",
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
- <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>
25
+ <div class="profile-info" style="width: calc(100% - 60px)">
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>
@@ -24,10 +37,15 @@
24
37
  <a :href="`${serverDomain}/user/settings/`">Settings</a>
25
38
  </li>
26
39
  <li v-if="user.is_admin" key="site-admin">
27
- <a :href="`${serverDomain}/admin`">Site Administration</a>
40
+ <a :href="`${accountsDomain}/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
@@ -45,7 +63,9 @@
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
@@ -104,7 +128,7 @@
104
128
  <a :href="`${serverDomain}/dashboard`"> Dashboard </a>
105
129
  </li>
106
130
  <li key="signout">
107
- <a :href="`${serverDomain}/user/logout`"> Sign out </a>
131
+ <a :href="`${accountsDomain}/user/logout`"> Sign out </a>
108
132
  </li>
109
133
  </transition-group>
110
134
  </div>
@@ -124,6 +148,10 @@ export default {
124
148
  type: String,
125
149
  default: "",
126
150
  },
151
+ accountsDomain: {
152
+ type: String,
153
+ default: "",
154
+ },
127
155
  showAccountSwitcher: {
128
156
  type: Boolean,
129
157
  default: false,
@@ -178,7 +206,7 @@ export default {
178
206
  },
179
207
  onMouseLeave() {
180
208
  this.dropDownStatus = "close";
181
- }
209
+ },
182
210
  },
183
211
 
184
212
  watch: {
@@ -206,4 +234,4 @@ export default {
206
234
  .line-break-anywhere {
207
235
  line-break: anywhere;
208
236
  }
209
- </style>
237
+ </style>
@@ -24,7 +24,7 @@
24
24
  <a :href="`${serverDomain}/user/settings/`">Settings</a>
25
25
  </li>
26
26
  <li v-if="user.is_admin" key="site-admin">
27
- <a :href="`${serverDomain}/admin`">Site Administration</a>
27
+ <a :href="`${accountsDomain}/admin`">Site Administration</a>
28
28
  </li>
29
29
  <li v-if="showAccountSwitcher" :class="`is-${dropDownStatus}`" key="switcher">
30
30
  <a class="
@@ -104,7 +104,7 @@
104
104
  <a :href="`${serverDomain}/dashboard`"> Dashboard </a>
105
105
  </li>
106
106
  <li key="signout">
107
- <a :href="`${serverDomain}/user/logout`"> Sign out </a>
107
+ <a :href="`${accountsDomain}/user/logout`"> Sign out </a>
108
108
  </li>
109
109
  </transition-group>
110
110
  </div>
@@ -126,6 +126,10 @@ export default defineComponent({
126
126
  type: String,
127
127
  default: "",
128
128
  },
129
+ accountsDomain: {
130
+ type: String,
131
+ default: "",
132
+ },
129
133
  showAccountSwitcher: {
130
134
  type: Boolean,
131
135
  default: false,