@appscode/design-system 1.0.43-alpha.167 → 1.0.43-alpha.168
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
|
@@ -2,37 +2,47 @@
|
|
|
2
2
|
<div class="ac-preview is-active is-not-fixed">
|
|
3
3
|
<div class="ac-preview-inner">
|
|
4
4
|
<!-- preview body start -->
|
|
5
|
-
<div
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
5
|
+
<div
|
|
6
|
+
class="ac-preview-body mt-0 pt-20"
|
|
7
|
+
:class="{ 'is-justify-content-center': isYamlsEmpty && !isPreviewLoading }"
|
|
8
|
+
>
|
|
9
|
+
<strong v-if="isYamlsEmpty && !isPreviewLoading">
|
|
10
|
+
No Data Available
|
|
11
|
+
<i class="pl-5 fa fa-exclamation-circle" aria-hidden="true"></i>
|
|
12
|
+
</strong>
|
|
13
|
+
<template v-else>
|
|
14
|
+
<div
|
|
15
|
+
v-if="!isPreviewLoading && previewYamls"
|
|
16
|
+
class="left-content"
|
|
17
|
+
>
|
|
18
|
+
<div class="ac-files pt-0">
|
|
19
|
+
<ul v-if="!isPreviewLoading">
|
|
20
|
+
<li
|
|
21
|
+
v-for="(previewYaml, idx) in filteredYamls"
|
|
22
|
+
:key="previewYaml.name + idx"
|
|
23
|
+
:class="{ 'is-active': activeKey === previewYaml.uid }"
|
|
24
|
+
:title="previewYaml.name"
|
|
25
|
+
>
|
|
26
|
+
<a @click.prevent="setActivePreview(previewYaml.uid)">
|
|
27
|
+
<span>
|
|
28
|
+
<img
|
|
29
|
+
src="~@appscode/design-system-images/icons/file-icon.svg"
|
|
30
|
+
alt=""
|
|
31
|
+
/>
|
|
32
|
+
</span>
|
|
33
|
+
<span>{{ previewYaml.name }}</span>
|
|
34
|
+
</a>
|
|
35
|
+
</li>
|
|
36
|
+
</ul>
|
|
37
|
+
<sidebar-loader v-else />
|
|
38
|
+
</div>
|
|
29
39
|
</div>
|
|
30
|
-
</div>
|
|
31
|
-
<div class="right-content">
|
|
32
40
|
<div class="right-content">
|
|
33
41
|
<resource-loader v-if="isPreviewLoading" />
|
|
42
|
+
<strong v-else-if="isYamlsNotSelected">Selecet a data from sidebar</strong>
|
|
43
|
+
<strong v-else-if="hideValue"> *************** </strong>
|
|
34
44
|
<editor
|
|
35
|
-
v-else
|
|
45
|
+
v-else
|
|
36
46
|
v-model="activeFile.content"
|
|
37
47
|
:original-value="originalValue"
|
|
38
48
|
:language="activeFile.format"
|
|
@@ -40,9 +50,8 @@
|
|
|
40
50
|
:editor-height="editorHeight"
|
|
41
51
|
:show-minimap="showMinimap"
|
|
42
52
|
/>
|
|
43
|
-
<span v-else> *************** </span>
|
|
44
53
|
</div>
|
|
45
|
-
</
|
|
54
|
+
</template>
|
|
46
55
|
</div>
|
|
47
56
|
</div>
|
|
48
57
|
</div>
|
|
@@ -132,6 +141,15 @@ export default defineComponent({
|
|
|
132
141
|
return element.uid === this.activeKey;
|
|
133
142
|
});
|
|
134
143
|
return val === undefined ? false : true;
|
|
144
|
+
},
|
|
145
|
+
isYamlsEmpty(){
|
|
146
|
+
return this.filteredYamls.length === 0;
|
|
147
|
+
},
|
|
148
|
+
isYamlsNotSelected(){
|
|
149
|
+
const val = this.filteredYamls.find(element => {
|
|
150
|
+
return element.uid === this.activeKey;
|
|
151
|
+
})
|
|
152
|
+
return val === undefined;
|
|
135
153
|
}
|
|
136
154
|
},
|
|
137
155
|
methods: {
|