@appscode/design-system 1.1.0-beta.6 → 1.1.0-beta.60
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/utilities/_colors.scss +45 -114
- package/base/utilities/_global.scss +25 -19
- package/base/utilities/_typography.scss +2 -2
- package/base/utilities/dark-theme.scss +2 -8
- package/components/_ac-alert-box.scss +2 -2
- package/components/_ac-code-highlight.scss +9 -12
- package/components/_ac-drag.scss +4 -4
- package/components/_ac-modal.scss +2 -2
- package/components/_ac-select-box.scss +5 -5
- package/components/_ac-table.scss +7 -7
- package/components/_ac-tabs.scss +29 -26
- package/components/_all.scss +8 -5
- package/components/_buttons.scss +10 -10
- package/components/_getkeeper.scss +110 -0
- package/components/_graph.scss +10 -10
- package/components/_image-upload.scss +4 -4
- package/components/_input-card.scss +232 -0
- package/components/{_ac-input.scss → _input.scss} +53 -7
- package/components/_left-sidebar-menu.scss +9 -13
- package/components/_monaco-editor.scss +2 -2
- package/components/_multi-select.scss +589 -0
- package/components/_navbar.scss +7 -7
- package/components/_nested-list.scss +2 -2
- package/components/_overview-info.scss +3 -3
- package/components/_pricing-table.scss +5 -5
- package/components/_progress-bar.scss +61 -74
- package/components/_subscription-card.scss +8 -10
- package/components/_table-of-content.scss +4 -4
- package/components/{_ac-terminal.scss → _terminal.scss} +63 -74
- package/components/_widget-menu.scss +7 -12
- package/components/_wizard.scss +13 -286
- package/components/bbum/_information-center.scss +8 -10
- package/components/bbum/_mobile-desktop.scss +9 -14
- package/components/bbum/_single-post-preview.scss +9 -9
- package/components/ui-builder/_ui-builder.scss +194 -10
- package/components/ui-builder/_vue-open-api.scss +58 -13
- package/icons/close-icon.svg +3 -0
- package/layouts/_code-preview.scss +6 -7
- package/package.json +1 -1
- package/vue-components/types/importFlow.ts +16 -0
- package/vue-components/types/notification.ts +3 -3
- package/vue-components/types/table.ts +1 -0
- package/vue-components/v2/banner/Banner.vue +1 -1
- package/vue-components/v2/editor/FilteredFileEditor.vue +2 -2
- package/vue-components/v2/modal/Modal.vue +1 -1
- package/vue-components/v2/pagination/Pagination.vue +1 -0
- package/vue-components/v3/alert/Alert.vue +2 -2
- package/vue-components/v3/banner/Banner.vue +2 -2
- package/vue-components/v3/breadcrumbs/Breadcrumb.vue +66 -4
- package/vue-components/v3/button/Button.vue +33 -11
- package/vue-components/v3/cards/Cluster.vue +6 -2
- package/vue-components/v3/cards/FeatureCard.vue +1 -1
- package/vue-components/v3/cards/FeatureCards.vue +1 -1
- package/vue-components/v3/cards/InfoCard.vue +1 -2
- package/vue-components/v3/cards/OverviewCard.vue +4 -0
- package/vue-components/v3/cards/OverviewCards.vue +10 -2
- package/vue-components/v3/cards/Vendor.vue +10 -5
- package/vue-components/v3/content/ContentTable.vue +1 -1
- package/vue-components/v3/editor/FilteredFileEditor.vue +5 -1
- package/vue-components/v3/footer/FooterArea.vue +8 -2
- package/vue-components/v3/footer/Info.vue +10 -8
- package/vue-components/v3/footer/Status.vue +24 -23
- package/vue-components/v3/footer/Usage.vue +20 -30
- package/vue-components/v3/form/Form.vue +0 -3
- package/vue-components/v3/form-fields/AcSingleInput.vue +3 -8
- package/vue-components/v3/header/Header.vue +2 -2
- package/vue-components/v3/loaders/InfoCardLoader.vue +18 -60
- package/vue-components/v3/loaders/SingleInfoCardLoader.vue +24 -0
- package/vue-components/v3/modal/Modal.vue +6 -11
- package/vue-components/v3/navbar/NavbarItemContent.vue +1 -1
- package/vue-components/v3/navbar/User.vue +4 -4
- package/vue-components/v3/notification/AlertBox.vue +233 -3
- package/vue-components/v3/notification/Notification.vue +2 -2
- package/vue-components/v3/option-dots/Options.vue +3 -2
- package/vue-components/v3/pagination/Pagination.vue +2 -1
- package/vue-components/v3/preloader/Preloader.vue +1 -1
- package/vue-components/v3/sidebar/ClusterSwitcher.vue +1 -761
- package/vue-components/v3/sidebar/Sidebar.vue +2 -29
- package/vue-components/v3/sidebar/SidebarFooter.vue +6 -3
- package/vue-components/v3/sidebar/SidebarHeader.vue +1 -1
- package/vue-components/v3/sidebar/Steps.vue +55 -51
- package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabs.vue +78 -2
- package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +12 -3
- package/vue-components/v3/table/InfoTable.vue +1 -1
- package/vue-components/v3/table/Table.vue +47 -21
- package/vue-components/v3/table/TableRow.vue +2 -2
- package/vue-components/v3/table/table-cell/ArrayCell.vue +2 -2
- package/vue-components/v3/table/table-cell/CellValue.vue +1 -1
- package/vue-components/v3/table/table-cell/ObjectCell.vue +3 -3
- package/vue-components/v3/tag/Tag.vue +1 -0
- package/components/_ac-card.scss +0 -0
- package/components/_ac-multi-select.scss +0 -780
- package/vue-components/types/longRunningTasks.ts +0 -20
- package/vue-components/v3/long-running-tasks/LongRunningTaskItem.vue +0 -94
- package/vue-components/v3/modals/LongRunningTasksModal.vue +0 -402
- package/vue-components/v3/terminal/LongRunningTaskTerminal.vue +0 -151
- /package/components/{_ac-accordion.scss → _accordion.scss} +0 -0
- /package/components/{_ac-report.scss → _report.scss} +0 -0
|
@@ -55,10 +55,25 @@ const handleClick = (e: Event) => {
|
|
|
55
55
|
<style lang="scss" scoped>
|
|
56
56
|
.button {
|
|
57
57
|
&.ac-button {
|
|
58
|
-
padding: 8px
|
|
58
|
+
padding: 8px 16px;
|
|
59
59
|
font-weight: 500;
|
|
60
60
|
line-height: 1;
|
|
61
|
+
&.is-primary {
|
|
62
|
+
&.is-light {
|
|
63
|
+
color: $primary;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
&.is-warning {
|
|
67
|
+
&.is-light {
|
|
68
|
+
color: $yellow-30;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
61
71
|
|
|
72
|
+
&.is-success {
|
|
73
|
+
&.is-light {
|
|
74
|
+
color: $green-30;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
62
77
|
&.is-light {
|
|
63
78
|
&.is-loading {
|
|
64
79
|
&::after {
|
|
@@ -66,16 +81,23 @@ const handleClick = (e: Event) => {
|
|
|
66
81
|
}
|
|
67
82
|
}
|
|
68
83
|
}
|
|
84
|
+
&.is-ghost {
|
|
85
|
+
border-color: transparent !important;
|
|
86
|
+
}
|
|
69
87
|
&.is-square {
|
|
70
88
|
border: 1px solid $primary-95;
|
|
71
89
|
}
|
|
72
90
|
&.is-small {
|
|
73
91
|
padding: 4px 9px;
|
|
74
92
|
}
|
|
93
|
+
&.is-medium {
|
|
94
|
+
font-size: 1rem;
|
|
95
|
+
height: 36px;
|
|
96
|
+
}
|
|
75
97
|
}
|
|
76
98
|
}
|
|
77
99
|
button.is-primary {
|
|
78
|
-
background-color: $
|
|
100
|
+
background-color: $primary;
|
|
79
101
|
}
|
|
80
102
|
// .button {
|
|
81
103
|
// transition: 86ms ease-in-out;
|
|
@@ -248,19 +270,19 @@ button.is-primary {
|
|
|
248
270
|
// color: $black-40;
|
|
249
271
|
|
|
250
272
|
// &:hover {
|
|
251
|
-
// background-color: $
|
|
252
|
-
// color: $
|
|
273
|
+
// background-color: $primary-90;
|
|
274
|
+
// color: $black-5;
|
|
253
275
|
// }
|
|
254
276
|
|
|
255
277
|
// &:focus {
|
|
256
|
-
// background-color: $
|
|
257
|
-
// color: $
|
|
278
|
+
// background-color: $primary-90;
|
|
279
|
+
// color: $black-5;
|
|
258
280
|
// }
|
|
259
281
|
// }
|
|
260
282
|
|
|
261
283
|
// &.transparent-bg {
|
|
262
284
|
// background-color: transparent;
|
|
263
|
-
// border: 1px solid $
|
|
285
|
+
// border: 1px solid $primary-10;
|
|
264
286
|
|
|
265
287
|
// img {
|
|
266
288
|
// &:hover {
|
|
@@ -536,7 +558,7 @@ button.is-primary {
|
|
|
536
558
|
// // counter button start
|
|
537
559
|
// .ac-counter-button {
|
|
538
560
|
// background-color: transparent;
|
|
539
|
-
// border: 1px solid $
|
|
561
|
+
// border: 1px solid $primary-10;
|
|
540
562
|
// border-radius: 4px;
|
|
541
563
|
// height: 46px;
|
|
542
564
|
// overflow: hidden;
|
|
@@ -583,13 +605,13 @@ button.is-primary {
|
|
|
583
605
|
// .ac-counter-arrow-wrapper {
|
|
584
606
|
// height: 100%;
|
|
585
607
|
// color: $primary-10;
|
|
586
|
-
// border-left: 1px solid $
|
|
608
|
+
// border-left: 1px solid $primary-10;
|
|
587
609
|
|
|
588
610
|
// .ac-counter-arrow {
|
|
589
611
|
// background-color: transparent;
|
|
590
612
|
// border: none;
|
|
591
613
|
// cursor: pointer;
|
|
592
|
-
// color: $
|
|
614
|
+
// color: $primary-10;
|
|
593
615
|
// height: 23px;
|
|
594
616
|
|
|
595
617
|
// &:hover {
|
|
@@ -597,7 +619,7 @@ button.is-primary {
|
|
|
597
619
|
// }
|
|
598
620
|
|
|
599
621
|
// &:first-child {
|
|
600
|
-
// border-bottom: 1px solid $
|
|
622
|
+
// border-bottom: 1px solid $primary-10;
|
|
601
623
|
// }
|
|
602
624
|
// }
|
|
603
625
|
// }
|
|
@@ -28,14 +28,14 @@ const OptionDots = defineAsyncComponent(
|
|
|
28
28
|
</script>
|
|
29
29
|
|
|
30
30
|
<template>
|
|
31
|
-
<div class="card-details" :class="modifierClasses">
|
|
31
|
+
<div class="card-details" :class="modifierClasses" data-testid="cluster-item-navigate">
|
|
32
32
|
<div class="c-header">
|
|
33
33
|
<div class="c-logo">
|
|
34
34
|
<img :src="clusterData.providerIcon" alt="" />
|
|
35
35
|
</div>
|
|
36
36
|
<div class="c-content">
|
|
37
37
|
<div class="is-flex is-justify-content-space-between">
|
|
38
|
-
<h4>{{ clusterData.name }}</h4>
|
|
38
|
+
<h4 data-testid="cluster-title-text">{{ clusterData.name }}</h4>
|
|
39
39
|
<option-dots v-if="showOptions" :position="'is-right'">
|
|
40
40
|
<slot name="options" />
|
|
41
41
|
</option-dots>
|
|
@@ -45,6 +45,7 @@ const OptionDots = defineAsyncComponent(
|
|
|
45
45
|
v-for="(tag, idx) in clusterData.tags"
|
|
46
46
|
:key="idx + tag.value"
|
|
47
47
|
:class="tag.class"
|
|
48
|
+
:data-testid="idx===0 ? 'cluster-status-text' : undefined"
|
|
48
49
|
>{{ tag.value }}</span
|
|
49
50
|
>
|
|
50
51
|
</div>
|
|
@@ -65,6 +66,9 @@ const OptionDots = defineAsyncComponent(
|
|
|
65
66
|
transition: 0.3s ease-in-out;
|
|
66
67
|
position: relative;
|
|
67
68
|
z-index: 1;
|
|
69
|
+
width: calc(33% - 7px);
|
|
70
|
+
min-width: 430px;
|
|
71
|
+
max-width: 530px;
|
|
68
72
|
|
|
69
73
|
.c-header {
|
|
70
74
|
display: flex;
|
|
@@ -12,7 +12,7 @@ withDefaults(
|
|
|
12
12
|
</script>
|
|
13
13
|
<template>
|
|
14
14
|
<!-- single card wrapper start -->
|
|
15
|
-
<div class="card-basic b-1">
|
|
15
|
+
<div class="card-basic b-1" data-testid="simple-feature-card">
|
|
16
16
|
<div class="c-header is-flex is-justify-content-space-between">
|
|
17
17
|
<div
|
|
18
18
|
v-if="isRequired"
|
|
@@ -166,9 +166,8 @@ const OptionDots = defineAsyncComponent(
|
|
|
166
166
|
.header {
|
|
167
167
|
display: flex;
|
|
168
168
|
align-items: center;
|
|
169
|
-
padding:
|
|
169
|
+
padding: 12px 16px;
|
|
170
170
|
border-bottom: 1px dashed $primary-90;
|
|
171
|
-
background-color: $primary-97;
|
|
172
171
|
|
|
173
172
|
.logo {
|
|
174
173
|
display: flex;
|
|
@@ -4,12 +4,20 @@ import { defineAsyncComponent } from "vue";
|
|
|
4
4
|
const ContentHeader = defineAsyncComponent(
|
|
5
5
|
() => import("./../content/ContentHeader.vue")
|
|
6
6
|
);
|
|
7
|
+
|
|
8
|
+
interface Props {
|
|
9
|
+
headerTitle: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
withDefaults(defineProps<Props>(), {
|
|
13
|
+
headerTitle: "",
|
|
14
|
+
});
|
|
7
15
|
</script>
|
|
8
16
|
|
|
9
17
|
<template>
|
|
10
18
|
<div class="overview-cards-wrapper">
|
|
11
19
|
<!-- title -->
|
|
12
|
-
<content-header headerTitle="
|
|
20
|
+
<content-header :headerTitle="headerTitle"></content-header>
|
|
13
21
|
<!-- title -->
|
|
14
22
|
<div class="overview-cards b-t-1">
|
|
15
23
|
<slot />
|
|
@@ -20,7 +28,7 @@ const ContentHeader = defineAsyncComponent(
|
|
|
20
28
|
.overview-cards-wrapper {
|
|
21
29
|
border: 1px solid $primary-90;
|
|
22
30
|
margin-right: 20px;
|
|
23
|
-
height: 100
|
|
31
|
+
height: calc(100% - 16px);
|
|
24
32
|
}
|
|
25
33
|
.overview-cards {
|
|
26
34
|
display: grid;
|
|
@@ -3,26 +3,31 @@ interface Props {
|
|
|
3
3
|
title?: string;
|
|
4
4
|
subTitle?: string;
|
|
5
5
|
logo?: string;
|
|
6
|
+
link?: string;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
withDefaults(defineProps<Props>(), {
|
|
9
10
|
title: "no title",
|
|
10
11
|
subTitle: "",
|
|
11
12
|
logo: "https://bb-developer-v1.web.app/_nuxt/img/azure-logo.4fa9281.svg",
|
|
13
|
+
link: "#",
|
|
12
14
|
});
|
|
13
15
|
</script>
|
|
16
|
+
|
|
14
17
|
<template>
|
|
15
18
|
<!-- use "is-selected" for select item -->
|
|
16
|
-
<
|
|
19
|
+
<RouterLink :to="link" class="ac-single-card has-text-centered">
|
|
17
20
|
<div class="ac-card-logo">
|
|
18
|
-
<div class="card-status"
|
|
21
|
+
<div class="card-status" />
|
|
19
22
|
<img :src="logo" alt="vendor logo" />
|
|
20
23
|
</div>
|
|
21
24
|
<div class="ac-card-name">
|
|
22
25
|
<p>{{ title }}</p>
|
|
23
|
-
<p class="has-text-weight-normal mt-8"
|
|
26
|
+
<p v-if="subTitle" class="has-text-weight-normal mt-8">
|
|
27
|
+
{{ subTitle }}
|
|
28
|
+
</p>
|
|
24
29
|
</div>
|
|
25
|
-
</
|
|
30
|
+
</RouterLink>
|
|
26
31
|
</template>
|
|
27
32
|
|
|
28
33
|
<style lang="scss" scoped>
|
|
@@ -34,7 +39,7 @@ withDefaults(defineProps<Props>(), {
|
|
|
34
39
|
flex-direction: column;
|
|
35
40
|
justify-content: space-between;
|
|
36
41
|
background-color: $primary-97;
|
|
37
|
-
min-width:
|
|
42
|
+
min-width: 215px;
|
|
38
43
|
padding: 30px 20px 20px;
|
|
39
44
|
cursor: pointer;
|
|
40
45
|
|
|
@@ -137,7 +137,7 @@ watch(
|
|
|
137
137
|
</strong>
|
|
138
138
|
<template v-else>
|
|
139
139
|
<div v-if="!isPreviewLoading && previewYamls" class="left-content">
|
|
140
|
-
<div class="ac-files ac-hscrollbar pt-0">
|
|
140
|
+
<div class="ac-files ac-hscrollbar ac-vscrollbar pt-0">
|
|
141
141
|
<ul v-if="!isPreviewLoading">
|
|
142
142
|
<li
|
|
143
143
|
v-for="(previewYaml, idx) in filteredYamls"
|
|
@@ -288,6 +288,10 @@ watch(
|
|
|
288
288
|
|
|
289
289
|
.ac-files {
|
|
290
290
|
ul {
|
|
291
|
+
margin: 0;
|
|
292
|
+
padding: 0;
|
|
293
|
+
list-style: none;
|
|
294
|
+
|
|
291
295
|
li {
|
|
292
296
|
&.is-active {
|
|
293
297
|
a {
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
min-height: 30px;
|
|
22
22
|
padding: 0 20px;
|
|
23
23
|
background: $primary-20;
|
|
24
|
-
border-top: 1px solid
|
|
25
|
-
z-index:
|
|
24
|
+
border-top: 1px solid #3d5e7c;
|
|
25
|
+
z-index: 9999;
|
|
26
|
+
transition: 0.3s ease-in-out;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
.footer-left,
|
|
@@ -31,4 +32,9 @@
|
|
|
31
32
|
align-items: center;
|
|
32
33
|
gap: 32px;
|
|
33
34
|
}
|
|
35
|
+
.sidebar-collapsed {
|
|
36
|
+
.footer-area {
|
|
37
|
+
width: calc(100% - 60px);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
34
40
|
</style>
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import {
|
|
2
|
+
import { defineAsyncComponent } from "vue";
|
|
3
3
|
|
|
4
4
|
const FooterItems = defineAsyncComponent(() => import("./FooterItems.vue"));
|
|
5
5
|
const FooterItem = defineAsyncComponent(() => import("./FooterItem.vue"));
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
interface Props {
|
|
8
|
+
infoData?: Array<Record<string, string>>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
withDefaults(defineProps<Props>(), {
|
|
12
|
+
infoData: () => [],
|
|
13
|
+
});
|
|
12
14
|
</script>
|
|
13
15
|
|
|
14
16
|
<template>
|
|
15
17
|
<footer-items>
|
|
16
|
-
<footer-item v-for="(data, idx) in
|
|
17
|
-
<span class="">{{ data.key }}
|
|
18
|
+
<footer-item v-for="(data, idx) in infoData" :key="idx + data.key">
|
|
19
|
+
<span class="">{{ data.key }}:</span>
|
|
18
20
|
<span>{{ data.value }}</span>
|
|
19
21
|
</footer-item>
|
|
20
22
|
</footer-items>
|
|
@@ -5,36 +5,37 @@ const FooterItem = defineAsyncComponent(() => import("./FooterItem.vue"));
|
|
|
5
5
|
const HeroiconsCheckBadge = defineAsyncComponent(
|
|
6
6
|
() => import("~icons/heroicons/check-badge")
|
|
7
7
|
);
|
|
8
|
+
const HeroiconsCrossBadge = defineAsyncComponent(
|
|
9
|
+
() => import("~icons/heroicons/x-circle")
|
|
10
|
+
);
|
|
11
|
+
const HeroiconsLoadingBadge = defineAsyncComponent(
|
|
12
|
+
() => import("~icons/heroicons/arrow-path")
|
|
13
|
+
);
|
|
14
|
+
interface Props {
|
|
15
|
+
statusInfo?: Array<Record<string, string>>;
|
|
16
|
+
}
|
|
8
17
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
label: "Not Exposed",
|
|
13
|
-
classType: "has-text-warning",
|
|
14
|
-
},
|
|
15
|
-
{ icon: "HeroiconsXCircle", label: "TLS", classType: "has-text-danger" },
|
|
16
|
-
{
|
|
17
|
-
icon: "HeroiconsCheckBadge",
|
|
18
|
-
label: "Backup",
|
|
19
|
-
classType: "has-text-success",
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
icon: "HeroiconsXCircle",
|
|
23
|
-
label: "Monitoring",
|
|
24
|
-
classType: "has-text-danger",
|
|
25
|
-
},
|
|
26
|
-
]);
|
|
18
|
+
withDefaults(defineProps<Props>(), {
|
|
19
|
+
statusInfo: () => [],
|
|
20
|
+
});
|
|
27
21
|
</script>
|
|
28
22
|
|
|
29
23
|
<template>
|
|
30
24
|
<footer-items>
|
|
31
25
|
<footer-item
|
|
32
|
-
v-for="(item, idx) in
|
|
33
|
-
:key="idx"
|
|
34
|
-
:modifier-classes="item.
|
|
26
|
+
v-for="(item, idx) in statusInfo"
|
|
27
|
+
:key="idx + item.label"
|
|
28
|
+
:modifier-classes="item.color"
|
|
35
29
|
>
|
|
36
|
-
<span class="icon"
|
|
37
|
-
|
|
30
|
+
<span class="icon">
|
|
31
|
+
<HeroiconsCheckBadge v-if="item.color === `has-text-success`" />
|
|
32
|
+
<i
|
|
33
|
+
v-else-if="item.color === `has-text-warning`"
|
|
34
|
+
class="fa fa-refresh fa-spin fa-fw"
|
|
35
|
+
></i>
|
|
36
|
+
<HeroiconsCrossBadge v-else />
|
|
37
|
+
</span>
|
|
38
|
+
<span>{{ item.label }}</span>
|
|
38
39
|
</footer-item>
|
|
39
40
|
</footer-items>
|
|
40
41
|
</template>
|
|
@@ -1,42 +1,32 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { defineAsyncComponent
|
|
2
|
+
import { defineAsyncComponent } from "vue";
|
|
3
3
|
const FooterItems = defineAsyncComponent(() => import("./FooterItems.vue"));
|
|
4
4
|
const FooterItem = defineAsyncComponent(() => import("./FooterItem.vue"));
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
interface Props {
|
|
7
|
+
usages?: Array<{
|
|
8
|
+
icon?: string;
|
|
9
|
+
useData?: {
|
|
10
|
+
limit?: string;
|
|
11
|
+
request?: string;
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
9
15
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
useData: {
|
|
14
|
-
limit: "500m",
|
|
15
|
-
usage: "500m",
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
icon: "HeroiconsCpuChip",
|
|
20
|
-
useData: {
|
|
21
|
-
limit: "1G",
|
|
22
|
-
usage: "1G",
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
icon: "HeroiconsCpuChip",
|
|
27
|
-
useData: {
|
|
28
|
-
limit: "10Gi",
|
|
29
|
-
usage: "10Gi",
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
]);
|
|
16
|
+
withDefaults(defineProps<Props>(), {
|
|
17
|
+
usages: () => [],
|
|
18
|
+
});
|
|
33
19
|
</script>
|
|
34
20
|
|
|
35
21
|
<template>
|
|
36
22
|
<footer-items>
|
|
37
|
-
<footer-item v-for="(
|
|
38
|
-
<span class="icon"><
|
|
39
|
-
><span
|
|
23
|
+
<footer-item v-for="(info, idx) in usages" :key="idx">
|
|
24
|
+
<span class="icon"><img :src="info.icon" /></span
|
|
25
|
+
><span
|
|
26
|
+
>{{ info.useData?.limit || "N" }}/{{
|
|
27
|
+
info.useData?.request || "A"
|
|
28
|
+
}}</span
|
|
29
|
+
>
|
|
40
30
|
</footer-item>
|
|
41
31
|
</footer-items>
|
|
42
32
|
</template>
|
|
@@ -142,7 +142,7 @@ withDefaults(defineProps<Props>(), {
|
|
|
142
142
|
|
|
143
143
|
&.show-label {
|
|
144
144
|
font-size: 12px;
|
|
145
|
-
color: $
|
|
145
|
+
color: $primary-20;
|
|
146
146
|
top: -9px;
|
|
147
147
|
font-weight: 500;
|
|
148
148
|
background-color: $white-100;
|
|
@@ -394,12 +394,7 @@ withDefaults(defineProps<Props>(), {
|
|
|
394
394
|
transition: 0.3s;
|
|
395
395
|
|
|
396
396
|
&:hover {
|
|
397
|
-
background-color:
|
|
398
|
-
var(--hsl-hue),
|
|
399
|
-
var(--hsl-saturation),
|
|
400
|
-
var(--hsl-lightness),
|
|
401
|
-
0.2
|
|
402
|
-
);
|
|
397
|
+
background-color: $primary-30;
|
|
403
398
|
color: $primary;
|
|
404
399
|
}
|
|
405
400
|
}
|
|
@@ -494,7 +489,7 @@ withDefaults(defineProps<Props>(), {
|
|
|
494
489
|
|
|
495
490
|
span.eye {
|
|
496
491
|
i.fa {
|
|
497
|
-
color: $primary-
|
|
492
|
+
color: $primary-70;
|
|
498
493
|
position: absolute;
|
|
499
494
|
cursor: pointer;
|
|
500
495
|
padding: 15px;
|
|
@@ -26,7 +26,7 @@ withDefaults(defineProps<Props>(), {
|
|
|
26
26
|
<header-items>
|
|
27
27
|
<header-item>
|
|
28
28
|
<transition name="fade" mode="out-in" appear>
|
|
29
|
-
<
|
|
29
|
+
<h4 :key="title">{{ title }}</h4>
|
|
30
30
|
</transition>
|
|
31
31
|
</header-item>
|
|
32
32
|
<slot name="header-left-controls" />
|
|
@@ -41,7 +41,7 @@ withDefaults(defineProps<Props>(), {
|
|
|
41
41
|
<style lang="scss" scoped>
|
|
42
42
|
.inner-header {
|
|
43
43
|
padding: 6px 20px;
|
|
44
|
-
border-bottom: 1px solid $primary-
|
|
44
|
+
border-bottom: 1px solid $primary-93;
|
|
45
45
|
position: sticky;
|
|
46
46
|
background: $white-100;
|
|
47
47
|
z-index: 99;
|
|
@@ -1,65 +1,23 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script>
|
|
2
2
|
import { ContentLoader } from "vue-content-loader";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
components: { ContentLoader },
|
|
6
|
+
};
|
|
3
7
|
</script>
|
|
4
8
|
|
|
5
9
|
<template>
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
width="100%"
|
|
20
|
-
height="100%"
|
|
21
|
-
clip-path="url(#clip-path)"
|
|
22
|
-
style="fill: url('#fill')"
|
|
23
|
-
></rect>
|
|
24
|
-
<defs>
|
|
25
|
-
<clipPath id="clip-path">
|
|
26
|
-
<rect x="150" y="40" rx="3" ry="3" width="60" height="50" />
|
|
27
|
-
<rect x="10" y="70" rx="3" ry="3" width="120" height="11" />
|
|
28
|
-
<rect x="10" y="100" rx="3" ry="3" width="120" height="11" />
|
|
29
|
-
<rect x="150" y="100" rx="3" ry="3" width="60" height="11" />
|
|
30
|
-
<rect x="10" y="1" rx="3" ry="3" width="200" height="22" />
|
|
31
|
-
<rect x="10" y="40" rx="3" ry="3" width="120" height="11" />
|
|
32
|
-
</clipPath>
|
|
33
|
-
<linearGradient id="fill">
|
|
34
|
-
<stop offset="0.599964" stop-color="#cfcfcf" stop-opacity="1">
|
|
35
|
-
<animate
|
|
36
|
-
attributeName="offset"
|
|
37
|
-
values="-2; -2; 1"
|
|
38
|
-
keyTimes="0; 0.25; 1"
|
|
39
|
-
dur="2s"
|
|
40
|
-
repeatCount="indefinite"
|
|
41
|
-
></animate>
|
|
42
|
-
</stop>
|
|
43
|
-
<stop offset="1.59996" stop-color="#ecebeb" stop-opacity="1">
|
|
44
|
-
<animate
|
|
45
|
-
attributeName="offset"
|
|
46
|
-
values="-1; -1; 2"
|
|
47
|
-
keyTimes="0; 0.25; 1"
|
|
48
|
-
dur="2s"
|
|
49
|
-
repeatCount="indefinite"
|
|
50
|
-
></animate>
|
|
51
|
-
</stop>
|
|
52
|
-
<stop offset="2.59996" stop-color="#cfcfcf" stop-opacity="1">
|
|
53
|
-
<animate
|
|
54
|
-
attributeName="offset"
|
|
55
|
-
values="0; 0; 3"
|
|
56
|
-
keyTimes="0; 0.25; 1"
|
|
57
|
-
dur="2s"
|
|
58
|
-
repeatCount="indefinite"
|
|
59
|
-
></animate>
|
|
60
|
-
</stop>
|
|
61
|
-
</linearGradient>
|
|
62
|
-
</defs>
|
|
63
|
-
</svg>
|
|
64
|
-
</div>
|
|
10
|
+
<content-loader
|
|
11
|
+
viewBox="0 0 230 115"
|
|
12
|
+
:speed="2"
|
|
13
|
+
primaryColor="#f5f5f5"
|
|
14
|
+
secondaryColor="#ecebeb"
|
|
15
|
+
>
|
|
16
|
+
<rect x="0" y="0" rx="0" ry="0" />
|
|
17
|
+
<rect x="10" y="70" rx="3" ry="3" width="120" height="11" />
|
|
18
|
+
<rect x="10" y="100" rx="3" ry="3" width="120" height="11" />
|
|
19
|
+
<rect x="150" y="100" rx="3" ry="3" width="60" height="11" />
|
|
20
|
+
<rect x="10" y="1" rx="3" ry="3" width="216" height="22" />
|
|
21
|
+
<rect x="10" y="40" rx="3" ry="3" width="120" height="11" />
|
|
22
|
+
</content-loader>
|
|
65
23
|
</template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { ContentLoader } from "vue-content-loader";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
components: { ContentLoader },
|
|
6
|
+
};
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<content-loader
|
|
11
|
+
viewBox="0 0 1540 90"
|
|
12
|
+
:speed="2"
|
|
13
|
+
primaryColor="#f5f5f5"
|
|
14
|
+
secondaryColor="#ecebeb"
|
|
15
|
+
>
|
|
16
|
+
<rect x="0" y="0" rx="0" ry="0" />
|
|
17
|
+
<circle cx="47" cy="52" r="21" />
|
|
18
|
+
<rect x="86" y="64" rx="0" ry="0" width="95" height="11" />
|
|
19
|
+
<rect x="86" y="29" rx="0" ry="0" width="146" height="22" />
|
|
20
|
+
<rect x="1240" y="57" rx="0" ry="0" width="64" height="12" />
|
|
21
|
+
<rect x="1340" y="57" rx="0" ry="0" width="64" height="12" />
|
|
22
|
+
<rect x="1440" y="56" rx="0" ry="0" width="64" height="12" />
|
|
23
|
+
</content-loader>
|
|
24
|
+
</template>
|