@appscode/design-system 1.0.43-alpha.112 → 1.0.43-alpha.115
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.
|
@@ -564,7 +564,12 @@ button {
|
|
|
564
564
|
|
|
565
565
|
&.is-warning {
|
|
566
566
|
background-color: $ac-warning;
|
|
567
|
-
color: $ac-white
|
|
567
|
+
color: $ac-white;
|
|
568
|
+
|
|
569
|
+
&.is-light {
|
|
570
|
+
background-color: #ffd58b42;
|
|
571
|
+
color: #c88b21;
|
|
572
|
+
}
|
|
568
573
|
}
|
|
569
574
|
|
|
570
575
|
&.is-danger {
|
|
@@ -950,8 +955,6 @@ $border_color_4: transparent transparent #585d6e transparent;
|
|
|
950
955
|
// Status css
|
|
951
956
|
// ac-footer sticky end
|
|
952
957
|
|
|
953
|
-
|
|
954
|
-
|
|
955
958
|
// terminal scss end
|
|
956
959
|
.is-dark-theme {
|
|
957
960
|
a {
|
package/package.json
CHANGED
|
@@ -93,7 +93,7 @@ export default {
|
|
|
93
93
|
const activeFile = this.filteredYamls.find(
|
|
94
94
|
element => element.uid === this.activeKey
|
|
95
95
|
);
|
|
96
|
-
return activeFile || { content: "
|
|
96
|
+
return activeFile || { content: "", format: "yaml" };
|
|
97
97
|
},
|
|
98
98
|
filteredYamls() {
|
|
99
99
|
if (this.searchText) {
|
|
@@ -101,13 +101,21 @@ export default {
|
|
|
101
101
|
element => JSON.stringify(element).search(this.searchText) > -1
|
|
102
102
|
);
|
|
103
103
|
} else return this.previewYamls;
|
|
104
|
+
},
|
|
105
|
+
isKeyAvailable() {
|
|
106
|
+
const val = this.previewYamls.find(element => {
|
|
107
|
+
return element.uid === this.activeKey;
|
|
108
|
+
});
|
|
109
|
+
return val === undefined ? false : true;
|
|
104
110
|
}
|
|
105
111
|
},
|
|
106
112
|
methods: {
|
|
107
113
|
initActivePreview() {
|
|
108
|
-
this.
|
|
109
|
-
|
|
110
|
-
|
|
114
|
+
if (!this.isKeyAvailable) {
|
|
115
|
+
this.activeKey = this.previewYamls[0].uid;
|
|
116
|
+
this.hideValue = this.activeFile.isSecret;
|
|
117
|
+
this.$emit("setActiveKey", this.activeKey);
|
|
118
|
+
}
|
|
111
119
|
},
|
|
112
120
|
setActivePreview(uid) {
|
|
113
121
|
this.activeKey = uid;
|