@appscode/design-system 1.0.43-alpha.161 → 1.0.43-alpha.164
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/components/_ac-terminal.scss +1 -3
- package/components/_navbar.scss +13 -1
- package/components/ui-builder/_ui-builder.scss +6 -0
- package/components/ui-builder/_vue-open-api.scss +6 -0
- package/package.json +1 -1
- package/vue-components/v3/navbar/ThemeMode.vue +28 -23
- package/vue-components/v3/navbar/User.vue +14 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// terminal scss start
|
|
2
2
|
.ac-terminal {
|
|
3
|
-
bottom: 0px;
|
|
4
|
-
height: 300px;
|
|
5
3
|
width: 100%;
|
|
6
4
|
|
|
7
5
|
.terminal-body {
|
|
@@ -25,7 +23,7 @@
|
|
|
25
23
|
background-color: $ac-white;
|
|
26
24
|
color: $ac-white;
|
|
27
25
|
font-size: 13px;
|
|
28
|
-
height:
|
|
26
|
+
height: 360px;
|
|
29
27
|
z-index: 999;
|
|
30
28
|
transition: 0.3s ease-in-out;
|
|
31
29
|
&.is-collapsed {
|
package/components/_navbar.scss
CHANGED
|
@@ -576,7 +576,19 @@
|
|
|
576
576
|
transition: width 0.9s ease-in-out;
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
.theme-choicee {
|
|
580
|
+
border: 1px solid $ac-white-light;
|
|
581
|
+
li{
|
|
582
|
+
cursor: pointer;
|
|
583
|
+
transition: 0.3s ease-in-out;
|
|
584
|
+
&:hover {
|
|
585
|
+
color: $ac-black;
|
|
586
|
+
}
|
|
587
|
+
&.is-active {
|
|
588
|
+
background-color: $ac-white-light;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
580
592
|
// start dark theme
|
|
581
593
|
.is-dark-theme {
|
|
582
594
|
body {
|
package/package.json
CHANGED
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
<li class="">
|
|
3
|
+
<a @click="showTheme = !showTheme" class="ac-dropdown-button is-fullwidth is-flex is-justify-content-space-between is-align-items-center">
|
|
4
|
+
<span>Theme Change</span>
|
|
5
|
+
<span>
|
|
6
|
+
<i v-if="showTheme" class="fa fa-angle-up"></i>
|
|
7
|
+
<i v-else class="fa fa-angle-down"></i>
|
|
8
|
+
</span>
|
|
9
|
+
</a>
|
|
10
|
+
<ul v-if="showTheme" class="ac-vscrollbar">
|
|
11
|
+
<li>
|
|
12
|
+
<div class="ac-menu-contentt theme-choicee">
|
|
13
|
+
<ul class="is-flex is-flex-direction-row is-justify-content-space-between">
|
|
14
|
+
<li
|
|
15
|
+
v-for="theme of Object.keys(themeModes)"
|
|
16
|
+
:title="themeModes[theme].displayName"
|
|
17
|
+
@click="themeMode = theme"
|
|
18
|
+
class="p-10 pl-30 pr-30"
|
|
19
|
+
:class="{ 'is-active': themeMode === theme }"
|
|
20
|
+
:key="theme"
|
|
21
|
+
>
|
|
22
|
+
<i :class="['fa', themeModes[theme].iconClass]" />
|
|
23
|
+
</li>
|
|
24
|
+
</ul>
|
|
25
|
+
</div>
|
|
26
|
+
</li>
|
|
27
|
+
</ul>
|
|
28
|
+
</li>
|
|
25
29
|
</template>
|
|
26
30
|
<script>
|
|
27
31
|
import { defineComponent } from "vue";
|
|
@@ -29,6 +33,7 @@ import { defineComponent } from "vue";
|
|
|
29
33
|
export default defineComponent({
|
|
30
34
|
data() {
|
|
31
35
|
return {
|
|
36
|
+
showTheme: false,
|
|
32
37
|
themeMode: "",
|
|
33
38
|
themeModes: {
|
|
34
39
|
system: {
|
|
@@ -111,6 +111,9 @@
|
|
|
111
111
|
<li key="signout">
|
|
112
112
|
<a :href="`${accountsDomain}/user/logout`"> Sign out </a>
|
|
113
113
|
</li>
|
|
114
|
+
<li key="theme" v-if="showThemeMode">
|
|
115
|
+
<theme-mode @set:theme="setTheme" />
|
|
116
|
+
</li>
|
|
114
117
|
</transition-group>
|
|
115
118
|
</div>
|
|
116
119
|
</navbar-item-content>
|
|
@@ -144,7 +147,12 @@ export default defineComponent({
|
|
|
144
147
|
type: Array,
|
|
145
148
|
default: () => [],
|
|
146
149
|
},
|
|
150
|
+
showThemeMode: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
default: false
|
|
153
|
+
}
|
|
147
154
|
},
|
|
155
|
+
emits: ["set:theme"],
|
|
148
156
|
|
|
149
157
|
components: {
|
|
150
158
|
NavbarItem: defineAsyncComponent(() =>
|
|
@@ -153,6 +161,9 @@ export default defineComponent({
|
|
|
153
161
|
NavbarItemContent: defineAsyncComponent(() =>
|
|
154
162
|
import("../../v2/navbar/NavbarItemContent.vue").then((module) => module.default)
|
|
155
163
|
),
|
|
164
|
+
ThemeMode: defineAsyncComponent(() =>
|
|
165
|
+
import("../../v3/navbar/ThemeMode.vue").then((module) => module.default)
|
|
166
|
+
),
|
|
156
167
|
},
|
|
157
168
|
|
|
158
169
|
computed: {
|
|
@@ -193,6 +204,9 @@ export default defineComponent({
|
|
|
193
204
|
},
|
|
194
205
|
onMouseLeave() {
|
|
195
206
|
this.dropDownStatus = "close";
|
|
207
|
+
},
|
|
208
|
+
setTheme(val){
|
|
209
|
+
this.$emit("set:theme", val);
|
|
196
210
|
}
|
|
197
211
|
},
|
|
198
212
|
|