@appscode/design-system 1.1.0-alpha.9 → 1.1.0-beta.3
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/base/_video-player.scss +65 -0
- package/base/utilities/_all.scss +6 -5
- package/base/utilities/_colors.scss +446 -0
- package/base/utilities/_customize-bulma.scss +23 -27
- package/base/utilities/_extended.scss +3 -2
- package/base/utilities/{_default.scss → _global.scss} +171 -323
- package/base/utilities/_layouts.scss +157 -0
- package/base/utilities/_mixin.scss +11 -11
- package/base/utilities/_spacing.scss +96 -0
- package/base/utilities/_typography.scss +56 -24
- package/base/utilities/dark-theme.scss +1 -1
- package/components/_ac-accordion.scss +117 -117
- package/components/_ac-alert-box.scss +205 -263
- package/components/_ac-calendar.scss +4 -4
- package/components/_ac-card.scss +122 -130
- package/components/_ac-code-highlight.scss +6 -6
- package/components/_ac-content-layout.scss +165 -165
- package/components/_ac-drag.scss +11 -11
- package/components/_ac-input.scss +38 -520
- package/components/_ac-modal.scss +212 -212
- package/components/_ac-multi-select.scss +780 -751
- package/components/_ac-options.scss +122 -123
- package/components/_ac-select-box.scss +5 -5
- package/components/_ac-table.scss +503 -502
- package/components/_ac-tabs.scss +39 -38
- package/components/_ac-tags.scss +116 -116
- package/components/_ac-terminal.scss +95 -51
- package/components/_add-card.scss +3 -3
- package/components/_all.scss +31 -28
- package/components/_app-drawer.scss +0 -134
- package/components/_breadcumb.scss +0 -71
- package/components/_buttons.scss +779 -779
- package/components/_card-body-wrapper.scss +5 -5
- package/components/_dashboard-header.scss +0 -115
- package/components/_direct-deploy.scss +8 -8
- package/components/_go-to-top.scss +1 -1
- package/components/_image-upload.scss +3 -3
- package/components/_left-sidebar-menu.scss +448 -579
- package/components/_monaco-editor.scss +1 -1
- package/components/_navbar.scss +786 -752
- package/components/_nested-list.scss +1 -1
- package/components/_overview-info.scss +7 -7
- package/components/_overview-page.scss +4 -4
- package/components/_pagination.scss +106 -124
- package/components/_payment-card.scss +21 -21
- package/components/_preloader.scss +1 -1
- package/components/_preview-modal.scss +18 -18
- package/components/_pricing-table.scss +10 -10
- package/components/_progress-bar.scss +12 -12
- package/components/_subscription-card.scss +14 -14
- package/components/_table-of-content.scss +4 -4
- package/components/_tfa.scss +9 -9
- package/components/_widget-menu.scss +247 -247
- package/components/_wizard.scss +82 -82
- package/components/ac-toaster/_ac-toasted.scss +1 -1
- package/components/bbum/_activities-header.scss +1 -1
- package/components/bbum/_card-team.scss +12 -12
- package/components/bbum/_information-center.scss +13 -13
- package/components/bbum/_left-sidebar.scss +8 -8
- package/components/bbum/_mobile-desktop.scss +7 -7
- package/components/bbum/_post.scss +5 -5
- package/components/bbum/_sign-up-notification.scss +10 -10
- package/components/bbum/_single-post-preview.scss +21 -21
- package/components/bbum/_user-profile.scss +10 -10
- package/components/ui-builder/_ui-builder.scss +15 -15
- package/components/ui-builder/_vue-open-api.scss +514 -2
- package/layouts/_code-preview.scss +11 -11
- package/main.scss +26 -10
- package/package.json +1 -1
- package/vue-components/plugins/time-convert.js +49 -0
- package/vue-components/text.vue +1 -0
- package/vue-components/types/cluster.ts +6 -0
- package/vue-components/types/longRunningTasks.ts +20 -0
- package/vue-components/types/notification.ts +6 -0
- package/vue-components/types/previewYaml.ts +8 -0
- package/vue-components/types/table.ts +54 -0
- package/vue-components/types/theme.ts +10 -0
- package/vue-components/types/user.ts +22 -0
- package/vue-components/v2/card/Card.vue +1 -1
- package/vue-components/v2/card/OverviewCards.vue +17 -2
- package/vue-components/v2/editor/ResourceKeyValueEditor.vue +21 -21
- package/vue-components/v2/icons/Ellipsis.vue +2 -1
- package/vue-components/v2/modal/Modal.vue +0 -5
- package/vue-components/v2/navbar/Appdrawer.vue +37 -12
- package/vue-components/v2/navbar/Navbar.vue +3 -3
- package/vue-components/v2/navbar/NavbarItem.vue +3 -1
- package/vue-components/v2/navbar/NavbarItemContent.vue +1 -1
- package/vue-components/v2/navbar/User.vue +5 -22
- package/vue-components/v2/pagination/Pagination.vue +65 -0
- package/vue-components/v2/sidebar/SidebarItem.vue +10 -7
- package/vue-components/v3/accordion/Accordion.vue +151 -0
- package/vue-components/v3/alert/Alert.vue +238 -0
- package/vue-components/v3/alert/Toast.vue +79 -0
- package/vue-components/v3/banner/Banner.vue +10 -0
- package/vue-components/v3/breadcrumbs/Breadcrumb.vue +104 -0
- package/vue-components/v3/button/Button.vue +831 -58
- package/vue-components/v3/button/Buttons.vue +6 -0
- package/vue-components/v3/button/DownloadBtn.vue +31 -0
- package/vue-components/v3/cards/Card.vue +32 -0
- package/vue-components/v3/cards/CardContent.vue +7 -0
- package/vue-components/v3/cards/CardHeader.vue +14 -0
- package/vue-components/v3/cards/Cards.vue +7 -0
- package/vue-components/v3/cards/Cluster.vue +150 -0
- package/vue-components/v3/cards/Counter.vue +27 -0
- package/vue-components/v3/cards/FeatureCard.vue +40 -0
- package/vue-components/v3/cards/FeatureCards.vue +6 -0
- package/vue-components/v3/cards/InfoCard.vue +248 -0
- package/vue-components/v3/cards/Monitoring.vue +94 -0
- package/vue-components/v3/cards/OverviewCard.vue +24 -0
- package/vue-components/v3/cards/OverviewCards.vue +31 -0
- package/vue-components/v3/cards/Payment.vue +62 -0
- package/vue-components/v3/cards/Vendor.vue +23 -0
- package/vue-components/v3/content/ContentHeader.vue +39 -30
- package/vue-components/v3/content/ContentLayout.vue +20 -0
- package/vue-components/v3/content/ContentTable.vue +37 -61
- package/vue-components/v3/dropdown/DropdownDivider.vue +2 -0
- package/vue-components/v3/dropdown/DropdownItem.vue +2 -0
- package/vue-components/v3/dropdown/DropdownMenu.vue +85 -91
- package/vue-components/v3/editor/Editor.vue +100 -113
- package/vue-components/v3/editor/FilteredFileEditor.vue +124 -127
- package/vue-components/v3/editor/ResourceKeyValueEditor.vue +70 -94
- package/vue-components/v3/footer/FooterArea.vue +34 -0
- package/vue-components/v3/footer/FooterItem.vue +32 -0
- package/vue-components/v3/footer/FooterItems.vue +15 -0
- package/vue-components/v3/footer/Info.vue +23 -0
- package/vue-components/v3/footer/Status.vue +42 -0
- package/vue-components/v3/footer/Usage.vue +44 -0
- package/vue-components/v3/form/Form.vue +24 -33
- package/vue-components/v3/form/FormFooterControl.vue +7 -0
- package/vue-components/v3/form/FormFooterControls.vue +7 -0
- package/vue-components/v3/form-fields/AcSingleInput.vue +520 -0
- package/vue-components/v3/form-fields/Input.vue +19 -14
- package/vue-components/v3/header/Header.vue +117 -24
- package/vue-components/v3/header/HeaderItem.vue +18 -0
- package/vue-components/v3/header/HeaderItems.vue +4 -0
- package/vue-components/v3/icons/Ellipsis.vue +2 -0
- package/vue-components/v3/loaders/ResourceLoader.vue +4 -12
- package/vue-components/v3/loaders/SidebarLoader.vue +4 -12
- package/vue-components/v3/long-running-tasks/LongRunningTaskItem.vue +17 -15
- package/vue-components/v3/modal/Modal.vue +292 -96
- package/vue-components/v3/modals/DeleteConfirmationModal.vue +37 -50
- package/vue-components/v3/modals/JsonShowModal.vue +62 -68
- package/vue-components/v3/modals/LongRunningTasksModal.vue +145 -143
- package/vue-components/v3/navbar/Appdrawer.vue +196 -51
- package/vue-components/v3/navbar/Navbar.vue +296 -0
- package/vue-components/v3/navbar/NavbarItem.vue +81 -0
- package/vue-components/v3/navbar/NavbarItemContent.vue +284 -0
- package/vue-components/v3/navbar/Notification.vue +179 -0
- package/vue-components/v3/navbar/ThemeMode.vue +128 -112
- package/vue-components/v3/navbar/User.vue +383 -268
- package/vue-components/v3/notification/AlertBox.vue +39 -42
- package/vue-components/v3/notification/Notification.vue +49 -43
- package/vue-components/v3/notification/NotificationItem.vue +51 -19
- package/vue-components/v3/option-dots/Options.vue +188 -0
- package/vue-components/v3/pagination/Pagination.vue +203 -99
- package/vue-components/v3/preloader/Preloader.vue +23 -0
- package/vue-components/v3/searchbars/SearchBar.vue +51 -34
- package/vue-components/v3/sidebar/AccentColorPicker.vue +97 -0
- package/vue-components/v3/sidebar/ClusterSwitcher.vue +834 -81
- package/vue-components/v3/sidebar/Sidebar.vue +271 -0
- package/vue-components/v3/sidebar/SidebarBody.vue +7 -0
- package/vue-components/v3/sidebar/SidebarFooter.vue +80 -0
- package/vue-components/v3/sidebar/SidebarHeader.vue +124 -0
- package/vue-components/v3/sidebar/SidebarItem.vue +62 -0
- package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +101 -104
- package/vue-components/v3/sidebar/SidebarMenuList.vue +9 -0
- package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabs.vue +128 -0
- package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +29 -0
- package/vue-components/v3/sidebar/sidebar-tabs/TabsContent.vue +99 -0
- package/vue-components/v3/tab/TabItem.vue +10 -12
- package/vue-components/v3/tab/Tabs.vue +9 -0
- package/vue-components/v3/tab/TabsBody.vue +7 -0
- package/vue-components/v3/table/EmptyTableInfo.vue +8 -0
- package/vue-components/v3/table/FakeTableCell.vue +22 -31
- package/vue-components/v3/table/InfoTable.vue +85 -59
- package/vue-components/v3/table/MultiInfoTable.vue +72 -95
- package/vue-components/v3/table/Table.vue +582 -151
- package/vue-components/v3/table/TableCell.vue +20 -23
- package/vue-components/v3/table/TableContainer.vue +50 -28
- package/vue-components/v3/table/TableRow.vue +63 -85
- package/vue-components/v3/table/table-cell/ArrayCell.vue +67 -79
- package/vue-components/v3/table/table-cell/CellValue.vue +97 -103
- package/vue-components/v3/table/table-cell/GenericCell.vue +43 -42
- package/vue-components/v3/table/table-cell/ObjectCell.vue +67 -79
- package/vue-components/v3/table/table-cell/ValueWithModal.vue +22 -31
- package/vue-components/v3/tabs/EditorTabs.vue +18 -24
- package/vue-components/v3/tag/Tag.vue +15 -12
- package/vue-components/v3/tag/Tags.vue +7 -0
- package/vue-components/v3/terminal/LongRunningTaskTerminal.vue +26 -23
- package/base/utilities/_derived-variables.scss +0 -25
- package/base/utilities/_initial-variables.scss +0 -215
- package/components/_basic-card.scss +0 -128
- package/mixins/stickyContent.js +0 -141
- package/plugins/caching.ts +0 -243
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
.vue-openapi-form {
|
|
30
30
|
margin-left: -20px;
|
|
31
|
+
|
|
31
32
|
.is-warning {
|
|
32
33
|
font-size: 12px;
|
|
33
34
|
color: #ea3d2f;
|
|
@@ -64,7 +65,7 @@
|
|
|
64
65
|
.vue-form-scema-body {
|
|
65
66
|
.left-content {
|
|
66
67
|
width: 650px;
|
|
67
|
-
background-color: $
|
|
68
|
+
background-color: $white-100-lighter;
|
|
68
69
|
padding: 30px;
|
|
69
70
|
}
|
|
70
71
|
|
|
@@ -75,7 +76,7 @@
|
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
.v-tooltip-open {
|
|
78
|
-
background-color: $
|
|
79
|
+
background-color: $white-100;
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
.ac-nested-elements::after {
|
|
@@ -89,6 +90,7 @@
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
.is-collapsed {
|
|
93
|
+
|
|
92
94
|
&.ac-nested-elements::before,
|
|
93
95
|
&.ac-nested-elements::after {
|
|
94
96
|
display: none;
|
|
@@ -102,3 +104,513 @@
|
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
// for vue-tooltip
|
|
107
|
+
|
|
108
|
+
.vue-openapi-form {
|
|
109
|
+
.ac-single-input {
|
|
110
|
+
position: relative;
|
|
111
|
+
z-index: 1;
|
|
112
|
+
margin-bottom: 15px;
|
|
113
|
+
|
|
114
|
+
&.is-disable {
|
|
115
|
+
opacity: 0.5;
|
|
116
|
+
|
|
117
|
+
input,
|
|
118
|
+
.button.is-information,
|
|
119
|
+
.eye i.fa {
|
|
120
|
+
cursor: not-allowed;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.is-information {
|
|
125
|
+
input {
|
|
126
|
+
padding-right: 45px;
|
|
127
|
+
|
|
128
|
+
&[type="password"] {
|
|
129
|
+
padding-right: 80px;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
span.eye i.fa {
|
|
134
|
+
right: 35px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&.is-success {
|
|
139
|
+
|
|
140
|
+
input,
|
|
141
|
+
.ac-card,
|
|
142
|
+
textarea {
|
|
143
|
+
border: 1px solid $primary !important;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
p {
|
|
147
|
+
color: $primary;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&.is-danger {
|
|
152
|
+
|
|
153
|
+
input,
|
|
154
|
+
.ac-card,
|
|
155
|
+
textarea {
|
|
156
|
+
border: 1px solid $danger;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
p {
|
|
160
|
+
color: $danger;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&.is-loading {
|
|
165
|
+
|
|
166
|
+
input,
|
|
167
|
+
.ac-card,
|
|
168
|
+
textarea {
|
|
169
|
+
border: 1px solid $info;
|
|
170
|
+
opacity: 0.5;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
p {
|
|
174
|
+
color: $info;
|
|
175
|
+
opacity: 0.5;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.borderless-input {
|
|
180
|
+
input {
|
|
181
|
+
border: none;
|
|
182
|
+
font-size: 13px;
|
|
183
|
+
padding: 4px 7px;
|
|
184
|
+
height: 30px;
|
|
185
|
+
background-color: $white-100;
|
|
186
|
+
padding-right: 30px;
|
|
187
|
+
|
|
188
|
+
&[type="password"] {
|
|
189
|
+
padding-right: 30px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&:focus {
|
|
193
|
+
outline: none;
|
|
194
|
+
border: none;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
span.eye {
|
|
199
|
+
i.fa {
|
|
200
|
+
padding: 9px;
|
|
201
|
+
font-size: 12px;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&.is-normal {
|
|
207
|
+
input {
|
|
208
|
+
height: 45px;
|
|
209
|
+
font-size: 15px;
|
|
210
|
+
font-weight: 400;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.button {
|
|
214
|
+
&.is-information {
|
|
215
|
+
height: 45px;
|
|
216
|
+
width: 45px;
|
|
217
|
+
margin-top: 0;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
span.eye i.fa {
|
|
222
|
+
padding: 14px 10px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.ac-search-button {
|
|
226
|
+
margin-top: -22.5px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
label {
|
|
230
|
+
top: 13px;
|
|
231
|
+
font-size: 13px;
|
|
232
|
+
|
|
233
|
+
&.show-label {
|
|
234
|
+
font-size: 12px;
|
|
235
|
+
color: $black-40;
|
|
236
|
+
top: -9px;
|
|
237
|
+
font-weight: 500;
|
|
238
|
+
background-color: $white-100;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.control {
|
|
243
|
+
&.has-icons-right {
|
|
244
|
+
.icon {
|
|
245
|
+
height: 45px;
|
|
246
|
+
width: 30px;
|
|
247
|
+
font-size: 13px;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&.is-small {
|
|
254
|
+
input {
|
|
255
|
+
height: 36px;
|
|
256
|
+
font-size: 13px;
|
|
257
|
+
font-weight: 400;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.button {
|
|
261
|
+
&.is-information {
|
|
262
|
+
height: 36px;
|
|
263
|
+
width: 36px;
|
|
264
|
+
margin-top: 0;
|
|
265
|
+
padding: 10px;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
span.eye i.fa {
|
|
270
|
+
padding: 10px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.ac-search-button {
|
|
274
|
+
margin-top: -18px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
label {
|
|
278
|
+
top: 8px;
|
|
279
|
+
font-size: 13px;
|
|
280
|
+
|
|
281
|
+
&.switch-label {
|
|
282
|
+
top: 0;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&.show-label {
|
|
286
|
+
font-size: 12px;
|
|
287
|
+
top: -9px;
|
|
288
|
+
font-weight: 500;
|
|
289
|
+
color: $black-40;
|
|
290
|
+
|
|
291
|
+
&.is-required {
|
|
292
|
+
&:after {
|
|
293
|
+
width: calc(100% + 10px);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.control {
|
|
300
|
+
&.has-icons-right {
|
|
301
|
+
.icon {
|
|
302
|
+
height: 36px;
|
|
303
|
+
width: 25px;
|
|
304
|
+
font-size: 13px;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
&.is-extra-small {
|
|
311
|
+
input {
|
|
312
|
+
height: 32px;
|
|
313
|
+
font-size: 13px;
|
|
314
|
+
font-weight: 400;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.button {
|
|
318
|
+
&.is-information {
|
|
319
|
+
height: 32px;
|
|
320
|
+
width: 32px;
|
|
321
|
+
margin-top: 0;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
span.eye i.fa {
|
|
326
|
+
padding: 10px;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.ac-search-button {
|
|
330
|
+
margin-top: 0px;
|
|
331
|
+
top: 0;
|
|
332
|
+
display: flex;
|
|
333
|
+
align-items: center;
|
|
334
|
+
width: 40px;
|
|
335
|
+
justify-content: center;
|
|
336
|
+
|
|
337
|
+
svg {
|
|
338
|
+
width: 18px;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
label {
|
|
343
|
+
top: 8px;
|
|
344
|
+
font-size: 13px;
|
|
345
|
+
|
|
346
|
+
&.switch-label {
|
|
347
|
+
top: 0;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
&.show-label {
|
|
351
|
+
font-size: 12px;
|
|
352
|
+
top: -9px;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.control {
|
|
357
|
+
&.has-icons-right {
|
|
358
|
+
.icon {
|
|
359
|
+
height: 32px;
|
|
360
|
+
width: 25px;
|
|
361
|
+
font-size: 13px;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
&:last-child {
|
|
368
|
+
margin-bottom: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
&.is-dark {
|
|
372
|
+
input {
|
|
373
|
+
background-color: $primary-10;
|
|
374
|
+
border-color: transparent;
|
|
375
|
+
color: $white-100;
|
|
376
|
+
|
|
377
|
+
&::placeholder {
|
|
378
|
+
color: $primary-10;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
button {
|
|
382
|
+
i.fa {
|
|
383
|
+
color: $white-100;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
label {
|
|
390
|
+
font-size: 13px;
|
|
391
|
+
left: 15px;
|
|
392
|
+
top: 11px;
|
|
393
|
+
cursor: text;
|
|
394
|
+
color: $primary-10;
|
|
395
|
+
position: absolute;
|
|
396
|
+
z-index: 2;
|
|
397
|
+
transition: 0.3s ease-in-out;
|
|
398
|
+
|
|
399
|
+
.is-required {
|
|
400
|
+
color: $danger;
|
|
401
|
+
|
|
402
|
+
img {
|
|
403
|
+
position: absolute;
|
|
404
|
+
top: 7px;
|
|
405
|
+
padding-left: 3px;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
&.show-label {
|
|
410
|
+
top: -9px;
|
|
411
|
+
left: 10px;
|
|
412
|
+
padding: 0 5px;
|
|
413
|
+
font-size: 13px;
|
|
414
|
+
color: $black-40;
|
|
415
|
+
|
|
416
|
+
&:after {
|
|
417
|
+
position: absolute;
|
|
418
|
+
content: "";
|
|
419
|
+
left: 0;
|
|
420
|
+
top: 50%;
|
|
421
|
+
background-color: $white-100;
|
|
422
|
+
width: 100%;
|
|
423
|
+
height: 2px;
|
|
424
|
+
margin-top: -1px;
|
|
425
|
+
z-index: -1;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
// &.is-required {
|
|
429
|
+
// &:after {
|
|
430
|
+
// width: calc(100% + 10px);
|
|
431
|
+
// }
|
|
432
|
+
// }
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.button {
|
|
437
|
+
&.is-information {
|
|
438
|
+
background-color: transparent;
|
|
439
|
+
border: none;
|
|
440
|
+
position: absolute;
|
|
441
|
+
right: 0;
|
|
442
|
+
height: 32px;
|
|
443
|
+
width: 32px;
|
|
444
|
+
margin-top: 0;
|
|
445
|
+
|
|
446
|
+
&:focus {
|
|
447
|
+
outline: none;
|
|
448
|
+
box-shadow: none;
|
|
449
|
+
background-color: #e4e8ef;
|
|
450
|
+
transform: scale(0.8);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.ac-search-button {
|
|
456
|
+
background-color: transparent;
|
|
457
|
+
border: none;
|
|
458
|
+
position: absolute;
|
|
459
|
+
left: 0;
|
|
460
|
+
top: 50%;
|
|
461
|
+
width: 32px;
|
|
462
|
+
height: 100%;
|
|
463
|
+
margin-top: -15px;
|
|
464
|
+
color: $primary-20;
|
|
465
|
+
cursor: pointer;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.ac-dropdown-content {
|
|
469
|
+
position: absolute;
|
|
470
|
+
background-color: $primary-90;
|
|
471
|
+
width: 100%;
|
|
472
|
+
height: auto;
|
|
473
|
+
box-shadow: 0px 4px 16px rgba(132, 147, 168, 0.6);
|
|
474
|
+
border-radius: 4px;
|
|
475
|
+
overflow: hidden;
|
|
476
|
+
|
|
477
|
+
ul {
|
|
478
|
+
li {
|
|
479
|
+
a {
|
|
480
|
+
color: $primary-10;
|
|
481
|
+
display: block;
|
|
482
|
+
font-size: 13px;
|
|
483
|
+
padding: 8px 20px;
|
|
484
|
+
transition: 0.3s;
|
|
485
|
+
|
|
486
|
+
&:hover {
|
|
487
|
+
background-color: hsla(var(--hsl-hue),
|
|
488
|
+
var(--hsl-saturation),
|
|
489
|
+
var(--hsl-lightness),
|
|
490
|
+
0.2);
|
|
491
|
+
color: $primary;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.ac-textarea {
|
|
499
|
+
.ac-label {
|
|
500
|
+
&.is-required {
|
|
501
|
+
&:after {
|
|
502
|
+
width: calc(100% + 10px);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
textarea {
|
|
508
|
+
border: 1px solid $primary-80;
|
|
509
|
+
background-color: transparent;
|
|
510
|
+
padding: 10px 15px;
|
|
511
|
+
min-height: 50px;
|
|
512
|
+
|
|
513
|
+
&.bg-white {
|
|
514
|
+
background-color: transparent;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
&:focus {
|
|
518
|
+
outline: none;
|
|
519
|
+
border: 1px solid $primary;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
input,
|
|
525
|
+
.ac-card,
|
|
526
|
+
textarea {
|
|
527
|
+
background-color: $white-100;
|
|
528
|
+
color: $primary-10;
|
|
529
|
+
height: 45px;
|
|
530
|
+
font-weight: 400;
|
|
531
|
+
width: 100%;
|
|
532
|
+
border-radius: 4px;
|
|
533
|
+
border: 1px solid $primary-80;
|
|
534
|
+
padding: 8px 15px;
|
|
535
|
+
font-size: 13px;
|
|
536
|
+
|
|
537
|
+
&:hover {
|
|
538
|
+
border-color: $black-70;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
&.bg-white {
|
|
542
|
+
background-color: $white-100;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
&.StripeElement--focus {
|
|
546
|
+
border: 1px solid $primary;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
&:focus {
|
|
550
|
+
border: 1px solid $primary;
|
|
551
|
+
outline: none;
|
|
552
|
+
background-color: $white-100;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
&[type="password"] {
|
|
556
|
+
padding-right: 40px;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
&[type="search"] {
|
|
560
|
+
padding-left: 30px;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
transition: background-color 0.3s ease-in-out;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.ac-card {
|
|
567
|
+
height: 36px;
|
|
568
|
+
padding: 10px 20px;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
textarea {
|
|
572
|
+
height: 55px;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
b.isRequired {
|
|
576
|
+
color: $danger;
|
|
577
|
+
font-size: 13px;
|
|
578
|
+
position: absolute;
|
|
579
|
+
right: 5px;
|
|
580
|
+
z-index: 9;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
span.eye {
|
|
584
|
+
i.fa {
|
|
585
|
+
color: $primary-80;
|
|
586
|
+
position: absolute;
|
|
587
|
+
cursor: pointer;
|
|
588
|
+
padding: 15px;
|
|
589
|
+
right: 0;
|
|
590
|
+
top: 0;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.is-error {
|
|
595
|
+
font-size: 12px;
|
|
596
|
+
line-height: 22px;
|
|
597
|
+
color: $danger;
|
|
598
|
+
text-align: left;
|
|
599
|
+
|
|
600
|
+
i.fa {
|
|
601
|
+
padding-right: 10px;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.ac-input.ac-search {
|
|
607
|
+
width: 42px;
|
|
608
|
+
transition: 0.3s ease-in-out;
|
|
609
|
+
padding: 0;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.ac-search:focus {
|
|
613
|
+
width: 200px !important;
|
|
614
|
+
padding-right: 10px;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.component-wrapper {
|
|
2
2
|
.component-inner {
|
|
3
3
|
margin: 20px;
|
|
4
|
-
border: 1px solid $
|
|
4
|
+
border: 1px solid $primary-90;
|
|
5
5
|
border-radius: 4px;
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: space-between;
|
|
9
|
-
background-color: $
|
|
9
|
+
background-color: $white-100;
|
|
10
10
|
|
|
11
11
|
&.ac-bg {
|
|
12
12
|
background-color: $ac-bg;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
width: 100%;
|
|
20
20
|
|
|
21
21
|
i.is-block {
|
|
22
|
-
color: $
|
|
22
|
+
color: $primary-20;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.ac-navbar-area {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&.ac-bg-dark {
|
|
36
|
-
background-color: $
|
|
36
|
+
background-color: $primary-5;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.ac-html-preview {
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.ac-code-preview-wrapper {
|
|
98
|
-
border: 1px solid $
|
|
98
|
+
border: 1px solid $primary-90;
|
|
99
99
|
border-radius: 4px;
|
|
100
100
|
|
|
101
101
|
.ac-code-header {
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
margin: 20px;
|
|
113
113
|
.single-component {
|
|
114
114
|
// box-shadow: $ac-shadow-1;
|
|
115
|
-
border: 1px solid $
|
|
115
|
+
border: 1px solid $primary-90;
|
|
116
116
|
border-radius: 4px;
|
|
117
117
|
margin-bottom: 25px;
|
|
118
118
|
overflow: hidden;
|
|
@@ -120,15 +120,15 @@
|
|
|
120
120
|
.component-header {
|
|
121
121
|
display: flex;
|
|
122
122
|
justify-content: space-between;
|
|
123
|
-
border-bottom: 1px solid $
|
|
124
|
-
background-color: $
|
|
123
|
+
border-bottom: 1px solid $primary-90;
|
|
124
|
+
background-color: $white-100;
|
|
125
125
|
|
|
126
126
|
h3 {
|
|
127
127
|
padding: 10px 20px;
|
|
128
128
|
font-size: 16px;
|
|
129
129
|
font-weight: 500;
|
|
130
|
-
font-family: $
|
|
131
|
-
color: $
|
|
130
|
+
font-family: $font-paragraph;
|
|
131
|
+
color: $primary-20;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.component-switch {
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
|
|
146
146
|
.component-body {
|
|
147
147
|
padding: 20px;
|
|
148
|
-
background-color: $
|
|
148
|
+
background-color: $white-100;
|
|
149
149
|
|
|
150
150
|
.code-preview {
|
|
151
151
|
position: relative;
|
package/main.scss
CHANGED
|
@@ -1,18 +1,34 @@
|
|
|
1
|
+
@charset "utf-8";
|
|
2
|
+
// customize bulma css
|
|
3
|
+
@import "@/assets/design-system/base/utilities/_customize-bulma.scss";
|
|
1
4
|
|
|
2
|
-
@import "~assets/design-system/base/utilities/customize-bulma";
|
|
3
5
|
// Third party CSS
|
|
4
|
-
@import "
|
|
5
|
-
@import "
|
|
6
|
-
@import "
|
|
7
|
-
@import "
|
|
8
|
-
@import
|
|
9
|
-
@import "vue-multiselect/dist/vue-multiselect.
|
|
6
|
+
@import "../node_modules/bulma/bulma.sass";
|
|
7
|
+
// @import "bulma-checkradio";
|
|
8
|
+
// @import "bulma-switch";
|
|
9
|
+
// @import "bulma-tooltip";
|
|
10
|
+
// @import "font-awesome/css/font-awesome.min.css";
|
|
11
|
+
@import "vue-multiselect/dist/vue-multiselect.css";
|
|
10
12
|
|
|
11
13
|
// BASE
|
|
12
|
-
@import "
|
|
14
|
+
@import "./base/utilities/all";
|
|
13
15
|
|
|
14
16
|
// LAYOUTS
|
|
15
|
-
@import "
|
|
17
|
+
@import "./layouts/all";
|
|
16
18
|
|
|
17
19
|
// COMPONENTS
|
|
18
|
-
@import "
|
|
20
|
+
@import "./components/all";
|
|
21
|
+
|
|
22
|
+
// //BASE - Base styles, variables, mixins
|
|
23
|
+
// @import "base/video-player";
|
|
24
|
+
|
|
25
|
+
// COMPONENTS
|
|
26
|
+
// @import "./cluster/resourceViewer";
|
|
27
|
+
// @import "./cluster/app-drawer";
|
|
28
|
+
|
|
29
|
+
// LAYOUTS - Page layout styles
|
|
30
|
+
// @import "layouts/_clusterListPage";
|
|
31
|
+
|
|
32
|
+
// KUBEDB COMPONENTS
|
|
33
|
+
// @import "./kubedb/styles/scss/custom.scss";
|
|
34
|
+
// @import "./kubedb/styles/scss/transitions.scss";
|
package/package.json
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import moment from "moment";
|
|
2
|
+
// import { useNow, useThrottleFn } from '@vueuse/core'
|
|
3
|
+
|
|
4
|
+
const getTime = (option) => {
|
|
5
|
+
if (parseInt(option.time, 10) < 0 || !option.time) {
|
|
6
|
+
return undefined;
|
|
7
|
+
}
|
|
8
|
+
let time = option.time;
|
|
9
|
+
|
|
10
|
+
// moment(option.time).valueOf('x') needs to convert pharmer's api date to epoch time
|
|
11
|
+
time = moment(option.time).valueOf("x")
|
|
12
|
+
? moment(option.time).valueOf("x")
|
|
13
|
+
: time * 1000;
|
|
14
|
+
|
|
15
|
+
return moment(time).format("MMM DD YYYY, h:mm A");
|
|
16
|
+
};
|
|
17
|
+
const getDayDifferences = (options) => {
|
|
18
|
+
const past = moment(options.past).isValid()
|
|
19
|
+
? moment(options.past).valueOf("x") / 1000
|
|
20
|
+
: options.past;
|
|
21
|
+
const now = Date.now() / 1000;
|
|
22
|
+
const diff = now - past;
|
|
23
|
+
if (parseInt(options.past, 10) > 10) {
|
|
24
|
+
let ret = Math.floor(diff / 86400);
|
|
25
|
+
let unit = "";
|
|
26
|
+
if (diff < 60) {
|
|
27
|
+
ret = parseInt(diff, 10);
|
|
28
|
+
unit = " Second";
|
|
29
|
+
} else if (diff < 3600) {
|
|
30
|
+
ret = parseInt(diff / 60, 10);
|
|
31
|
+
unit = " Minute";
|
|
32
|
+
} else if (diff < 86400) {
|
|
33
|
+
ret = parseInt(diff / 3600, 10);
|
|
34
|
+
unit = " Hour";
|
|
35
|
+
} else {
|
|
36
|
+
ret = parseInt(diff / 86400, 10);
|
|
37
|
+
unit = " Day";
|
|
38
|
+
}
|
|
39
|
+
unit += ret > 1 ? "s" : "";
|
|
40
|
+
return ret + unit;
|
|
41
|
+
}
|
|
42
|
+
return undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export default {
|
|
46
|
+
getTime,
|
|
47
|
+
// formatMoment,
|
|
48
|
+
getDayDifferences,
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<script setup lang="ts"></script>
|