@appscode/design-system 1.0.43-alpha.126 → 1.0.43-alpha.129
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/_dashboard-header.scss +32 -0
- package/package.json +1 -1
- package/vue-components/v2/content/ContentTable.vue +12 -7
- package/vue-components/v2/editor/FilteredFileEditor.vue +9 -1
- package/vue-components/v2/editor/ResourceKeyValueEditor.vue +9 -1
- package/vue-components/v2/modal/Modal.vue +3 -1
- package/vue-components/v2/modals/JsonShowModal.vue +9 -1
- package/vue-components/v3/modals/JsonShowModal.vue +10 -3
|
@@ -81,3 +81,35 @@
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
|
|
85
|
+
.resource {
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
border-left: 1px solid $ac-white-light;
|
|
89
|
+
padding: 0 1.5rem;
|
|
90
|
+
margin-top: -10px;
|
|
91
|
+
margin-bottom: -10px;
|
|
92
|
+
.r-icon {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
max-width: 40px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.r-data {
|
|
99
|
+
margin-left: 0.8rem;
|
|
100
|
+
.request,
|
|
101
|
+
.limit {
|
|
102
|
+
font-weight: 500;
|
|
103
|
+
min-width: 50px;
|
|
104
|
+
text-align: center;
|
|
105
|
+
}
|
|
106
|
+
.request {
|
|
107
|
+
font-weight: 300;
|
|
108
|
+
}
|
|
109
|
+
hr {
|
|
110
|
+
margin: 0;
|
|
111
|
+
padding: 0;
|
|
112
|
+
background-color: $ac-white-light;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<content-layout>
|
|
3
3
|
<template #content-header>
|
|
4
4
|
<content-header
|
|
5
|
+
v-if="!hideHeader"
|
|
5
6
|
:header-title="tableTitle"
|
|
6
7
|
:header-sub-title="tableSubTitle"
|
|
7
8
|
:class="{ 'pl-0 pr-0': removeTableHeaderPadding }"
|
|
@@ -21,32 +22,36 @@ export default {
|
|
|
21
22
|
props: {
|
|
22
23
|
removeTableHeaderPadding: {
|
|
23
24
|
type: Boolean,
|
|
24
|
-
default: false
|
|
25
|
+
default: false
|
|
25
26
|
},
|
|
26
27
|
tableTitle: {
|
|
27
28
|
type: String,
|
|
28
|
-
default: "Table"
|
|
29
|
+
default: "Table"
|
|
29
30
|
},
|
|
30
31
|
tableSubTitle: {
|
|
31
32
|
type: String,
|
|
32
|
-
default: ""
|
|
33
|
+
default: ""
|
|
33
34
|
},
|
|
34
35
|
searchable: {
|
|
35
36
|
type: Boolean,
|
|
36
|
-
default: true
|
|
37
|
+
default: true
|
|
37
38
|
},
|
|
39
|
+
hideHeader: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: false
|
|
42
|
+
}
|
|
38
43
|
},
|
|
39
44
|
components: {
|
|
40
45
|
ContentLayout: () => import("./ContentLayout.vue"),
|
|
41
46
|
ContentHeader: () => import("./ContentHeader.vue"),
|
|
42
47
|
HeaderItem: () => import("../header/HeaderItem.vue"),
|
|
43
|
-
SearchBar: () => import("../searchbars/SearchBar.vue")
|
|
48
|
+
SearchBar: () => import("../searchbars/SearchBar.vue")
|
|
44
49
|
},
|
|
45
50
|
|
|
46
51
|
data() {
|
|
47
52
|
return {
|
|
48
|
-
searchText: ""
|
|
53
|
+
searchText: ""
|
|
49
54
|
};
|
|
50
|
-
}
|
|
55
|
+
}
|
|
51
56
|
};
|
|
52
57
|
</script>
|
|
@@ -48,9 +48,17 @@
|
|
|
48
48
|
</div>
|
|
49
49
|
</template>
|
|
50
50
|
<script>
|
|
51
|
+
import Preloader from "../preloader/Preloader.vue";
|
|
52
|
+
import Banner from "../banner/Banner.vue";
|
|
51
53
|
export default {
|
|
52
54
|
components: {
|
|
53
|
-
Editor: () =>
|
|
55
|
+
Editor: () => ({
|
|
56
|
+
component: import("./Editor.vue"),
|
|
57
|
+
loading: Preloader,
|
|
58
|
+
delay: 200,
|
|
59
|
+
error: Banner,
|
|
60
|
+
timeout: 20000
|
|
61
|
+
}),
|
|
54
62
|
ResourceLoader: () => import("./../loaders/ResourceLoader.vue"),
|
|
55
63
|
SidebarLoader: () => import("./../loaders/SidebarLoader.vue")
|
|
56
64
|
},
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<content-table
|
|
2
|
+
<content-table
|
|
3
|
+
:table-title="title"
|
|
4
|
+
:searchable="isSearchable"
|
|
5
|
+
:hide-header="hideHeader"
|
|
6
|
+
>
|
|
3
7
|
<template #content-controls>
|
|
4
8
|
<header-item v-if="showHideBtn">
|
|
5
9
|
<ac-button
|
|
@@ -119,6 +123,10 @@ export default {
|
|
|
119
123
|
editorHeight: {
|
|
120
124
|
type: Number,
|
|
121
125
|
default: 60
|
|
126
|
+
},
|
|
127
|
+
hideHeader: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: false
|
|
122
130
|
}
|
|
123
131
|
},
|
|
124
132
|
data() {
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
<ac-button
|
|
19
19
|
modifier-classes="is-square is-transparent"
|
|
20
20
|
:disabled="isCloseOptionDisabled"
|
|
21
|
-
:icon-image="
|
|
21
|
+
:icon-image="
|
|
22
|
+
require('@appscode/design-system-images/icons/close-icon.svg')
|
|
23
|
+
"
|
|
22
24
|
@click.stop="destroyModal"
|
|
23
25
|
/>
|
|
24
26
|
</header-item>
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
</template>
|
|
29
29
|
|
|
30
30
|
<script>
|
|
31
|
+
import Preloader from "../preloader/Preloader.vue";
|
|
32
|
+
import Banner from "../banner/Banner.vue";
|
|
31
33
|
export default {
|
|
32
34
|
props: {
|
|
33
35
|
open: {
|
|
@@ -45,7 +47,13 @@ export default {
|
|
|
45
47
|
},
|
|
46
48
|
components: {
|
|
47
49
|
Modal: () => import("../modal/Modal.vue"),
|
|
48
|
-
Editor: () =>
|
|
50
|
+
Editor: () => ({
|
|
51
|
+
component: import("../editor/Editor.vue"),
|
|
52
|
+
loading: Preloader,
|
|
53
|
+
delay: 200,
|
|
54
|
+
error: Banner,
|
|
55
|
+
timeout: 20000,
|
|
56
|
+
}),
|
|
49
57
|
AcButton: () => import("../button/Button.vue"),
|
|
50
58
|
HeaderItem: () => import("../header/HeaderItem.vue"),
|
|
51
59
|
},
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
<script>
|
|
31
31
|
import { defineComponent, defineAsyncComponent } from "vue";
|
|
32
32
|
import { useToast } from "vue-toastification";
|
|
33
|
+
import Preloader from "../../v2/preloader/Preloader.vue";
|
|
34
|
+
import Banner from "../../v2/banner/Banner.vue";
|
|
33
35
|
|
|
34
36
|
export default defineComponent({
|
|
35
37
|
props: {
|
|
@@ -51,9 +53,14 @@ export default defineComponent({
|
|
|
51
53
|
Modal: defineAsyncComponent(() =>
|
|
52
54
|
import("../modal/Modal.vue").then((module) => module.default)
|
|
53
55
|
),
|
|
54
|
-
Editor: defineAsyncComponent(
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
Editor: defineAsyncComponent({
|
|
57
|
+
loader: () =>
|
|
58
|
+
import("../editor/Editor.vue").then((module) => module.default),
|
|
59
|
+
loadingComponent: Preloader,
|
|
60
|
+
delay: 200,
|
|
61
|
+
errorComponent: Banner,
|
|
62
|
+
timeout: 20000,
|
|
63
|
+
}),
|
|
57
64
|
AcButton: defineAsyncComponent(() =>
|
|
58
65
|
import("../button/Button.vue").then((module) => module.default)
|
|
59
66
|
),
|