@appscode/design-system 2.0.59 → 2.0.61
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 +1 -1
- package/plugins/theme.js +2 -5
- package/plugins/time-convert.js +5 -9
- package/plugins/vue-toaster.js +2 -1
- package/vue-components/plugins/time-convert.js +2 -6
- package/vue-components/styles/base/utilities/_colors.scss +19 -25
- package/vue-components/styles/base/utilities/_generate-color-classes.scss +41 -233
- package/vue-components/styles/base/utilities/_global.scss +13 -14
- package/vue-components/styles/base/utilities/_layouts.scss +1 -2
- package/vue-components/styles/base/utilities/_mixin.scss +8 -46
- package/vue-components/styles/base/utilities/_root-variables.scss +1 -1
- package/vue-components/styles/base/utilities/_spacing.scss +1 -1
- package/vue-components/styles/base/utilities/_typography.scss +1 -1
- package/vue-components/styles/components/_ac-drag.scss +1 -1
- package/vue-components/styles/components/_accordion.scss +1 -1
- package/vue-components/styles/components/_badge-tags.scss +75 -0
- package/vue-components/styles/components/_card-body-wrapper.scss +1 -1
- package/vue-components/styles/components/_pagination.scss +2 -2
- package/vue-components/styles/components/_preview-modal.scss +3 -3
- package/vue-components/styles/components/_progress-bar.scss +3 -3
- package/vue-components/styles/components/_table.scss +3 -3
- package/vue-components/styles/components/_tabs.scss +2 -2
- package/vue-components/styles/components/_terminal.scss +3 -3
- package/vue-components/styles/components/_wizard.scss +3 -3
- package/vue-components/styles/components/ac-toaster/_ac-toasted.scss +10 -5
- package/vue-components/styles/components/alert/_alert.scss +2 -12
- package/vue-components/styles/components/alert/_toast.scss +1 -1
- package/vue-components/styles/components/bbum/_all.scss +1 -1
- package/vue-components/styles/components/bbum/_card-team.scss +1 -6
- package/vue-components/styles/components/bbum/_information-center.scss +4 -4
- package/vue-components/styles/components/bbum/_mobile-desktop.scss +10 -5
- package/vue-components/styles/components/bbum/_user-profile.scss +1 -1
- package/vue-components/styles/components/cards/_info.scss +1 -7
- package/vue-components/styles/components/editor/_filtered-file-editor.scss +3 -3
- package/vue-components/styles/components/editor/_monaco-editor.scss +1 -1
- package/vue-components/styles/components/form-fields/_input-card.scss +2 -2
- package/vue-components/styles/components/form-fields/_input.scss +3 -3
- package/vue-components/styles/components/navbar/_menu-content.scss +1 -2
- package/vue-components/styles/components/select-box/_ac-select-box.scss +2 -2
- package/vue-components/styles/components/select-box/_multi-select.scss +4 -9
- package/vue-components/styles/components/sidebar/_left-sidebar.scss +2 -2
- package/vue-components/styles/components/ui-builder/_ui-builder.scss +1 -1
- package/vue-components/styles/components/ui-builder/_vue-open-api.scss +5 -10
- package/vue-components/styles/layouts/_code-preview.scss +2 -2
- package/vue-components/v2/breadcrumbs/Breadcrumb.vue +14 -27
- package/vue-components/v2/button/Button.vue +2 -7
- package/vue-components/v2/button/DownloadBtn.vue +9 -9
- package/vue-components/v2/card/CardContent.vue +1 -1
- package/vue-components/v2/card/CardHeader.vue +2 -4
- package/vue-components/v2/card/PaymentCard.vue +1 -1
- package/vue-components/v2/card/PaymentCardOptionButtons.vue +1 -1
- package/vue-components/v2/card/PaymentCards.vue +15 -11
- package/vue-components/v2/content/ContentHeader.vue +6 -6
- package/vue-components/v2/editor/Editor.vue +2 -11
- package/vue-components/v2/editor/FilteredFileEditor.vue +5 -17
- package/vue-components/v2/editor/MonacoEditor.vue +5 -12
- package/vue-components/v2/editor/ResourceKeyValueEditor.vue +4 -14
- package/vue-components/v2/form/Form.vue +9 -12
- package/vue-components/v2/header/Header.vue +1 -4
- package/vue-components/v2/loaders/ResourceLoader.vue +5 -5
- package/vue-components/v2/loaders/SidebarLoader.vue +5 -5
- package/vue-components/v2/modal/Modal.vue +2 -7
- package/vue-components/v2/modals/DeleteConfirmationModal.vue +1 -6
- package/vue-components/v2/modals/JsonShowModal.vue +3 -15
- package/vue-components/v2/navbar/Appdrawer.vue +2 -10
- package/vue-components/v2/navbar/ThemeMode.vue +12 -18
- package/vue-components/v2/navbar/User.vue +19 -82
- package/vue-components/v2/notification/Notification.vue +3 -12
- package/vue-components/v2/notification/NotificationItem.vue +1 -3
- package/vue-components/v2/pagination/Pagination.vue +5 -26
- package/vue-components/v2/preloader/Preloader.vue +5 -5
- package/vue-components/v2/searchbars/SearchBar.vue +1 -7
- package/vue-components/v2/sidebar/ClusterSwitcher.vue +2 -2
- package/vue-components/v2/sidebar/SidebarItem.vue +2 -10
- package/vue-components/v2/sidebar/SidebarItemWithDropDown.vue +1 -2
- package/vue-components/v2/table/FakeTableCell.vue +1 -2
- package/vue-components/v2/table/InfoTable.vue +4 -10
- package/vue-components/v2/table/Table.vue +16 -64
- package/vue-components/v2/table/TableRow.vue +3 -15
- package/vue-components/v2/table/table-cell/ArrayCell.vue +3 -9
- package/vue-components/v2/table/table-cell/CellValue.vue +1 -2
- package/vue-components/v2/table/table-cell/GenericCell.vue +8 -8
- package/vue-components/v2/table/table-cell/ObjectCell.vue +2 -6
- package/vue-components/v2/table/table-cell/ValueWithModal.vue +1 -6
- package/vue-components/v3/accordion/Accordion.vue +6 -2
- package/vue-components/v3/alert/AlertMessage.vue +1 -5
- package/vue-components/v3/alert/Toast.vue +2 -5
- package/vue-components/v3/badge-tags/Badge.vue +24 -0
- package/vue-components/v3/badge-tags/Tag.vue +26 -0
- package/vue-components/v3/breadcrumbs/Breadcrumb.vue +6 -24
- package/vue-components/v3/button/Button.vue +2 -11
- package/vue-components/v3/cards/CardHeader.vue +1 -3
- package/vue-components/v3/cards/Cluster.vue +3 -9
- package/vue-components/v3/cards/Counter.vue +1 -4
- package/vue-components/v3/cards/FeatureCard.vue +1 -6
- package/vue-components/v3/cards/FeatureCards.vue +1 -5
- package/vue-components/v3/cards/InfoCard.vue +10 -30
- package/vue-components/v3/cards/Monitoring.vue +3 -15
- package/vue-components/v3/cards/OrgCard.vue +7 -26
- package/vue-components/v3/cards/OverviewCards.vue +1 -3
- package/vue-components/v3/cards/Payment.vue +1 -4
- package/vue-components/v3/content/ContentHeader.vue +1 -3
- package/vue-components/v3/content/ContentTable.vue +4 -16
- package/vue-components/v3/dropdown/DropdownAction.vue +1 -5
- package/vue-components/v3/editor/Editor.vue +33 -19
- package/vue-components/v3/editor/FilteredFileEditor.vue +29 -27
- package/vue-components/v3/editor/MonacoEditor.vue +7 -17
- package/vue-components/v3/editor/ResourceKeyValueEditor.vue +5 -17
- package/vue-components/v3/footer/Status.vue +5 -18
- package/vue-components/v3/footer/Usage.vue +1 -5
- package/vue-components/v3/form/Form.vue +1 -3
- package/vue-components/v3/form-fields/FileUpload.vue +3 -11
- package/vue-components/v3/form-fields/FileUploadSmall.vue +1 -3
- package/vue-components/v3/form-fields/Searchbar.vue +5 -21
- package/vue-components/v3/header/Header.vue +1 -4
- package/vue-components/v3/loaders/ClusterSwitcherLoader.vue +1 -6
- package/vue-components/v3/loaders/InfoCardLoader.vue +1 -6
- package/vue-components/v3/loaders/SingleInfoCardLoader.vue +1 -6
- package/vue-components/v3/messages/Message.vue +6 -4
- package/vue-components/v3/modal/Modal.vue +5 -19
- package/vue-components/v3/modals/DeleteConfirmationModal.vue +1 -6
- package/vue-components/v3/modals/JsonShowModal.vue +5 -17
- package/vue-components/v3/navbar/Appdrawer.vue +2 -10
- package/vue-components/v3/navbar/Navbar.vue +2 -10
- package/vue-components/v3/navbar/NavbarItem.vue +1 -5
- package/vue-components/v3/navbar/Notification.vue +7 -31
- package/vue-components/v3/navbar/ThemeMode.vue +5 -17
- package/vue-components/v3/navbar/User.vue +64 -67
- package/vue-components/v3/notification/AlertBox.vue +6 -20
- package/vue-components/v3/notification/Notification.vue +6 -25
- package/vue-components/v3/notification/NotificationItem.vue +3 -9
- package/vue-components/v3/pagination/Pagination.vue +7 -25
- package/vue-components/v3/searchbars/SearchBar.vue +3 -17
- package/vue-components/v3/sidebar/AccentColorPicker.vue +3 -12
- package/vue-components/v3/sidebar/SidebarFooter.vue +3 -17
- package/vue-components/v3/sidebar/SidebarHeader.vue +4 -28
- package/vue-components/v3/sidebar/SidebarItem.vue +3 -11
- package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +3 -7
- package/vue-components/v3/sidebar/Steps.vue +1 -2
- package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +1 -4
- package/vue-components/v3/sidebar/sidebar-tabs/TabsContent.vue +34 -52
- package/vue-components/v3/steps/ColoredSteps.vue +75 -0
- package/vue-components/v3/table/InfoTable.vue +5 -17
- package/vue-components/v3/table/MultiInfoTable.vue +6 -20
- package/vue-components/v3/table/Table.vue +15 -63
- package/vue-components/v3/table/TableContainer.vue +1 -4
- package/vue-components/v3/table/TableRow.vue +5 -24
- package/vue-components/v3/table/table-cell/ArrayCell.vue +6 -20
- package/vue-components/v3/table/table-cell/CellValue.vue +3 -9
- package/vue-components/v3/table/table-cell/GenericCell.vue +2 -5
- package/vue-components/v3/table/table-cell/ObjectCell.vue +5 -17
- package/vue-components/v3/table/table-cell/ValueWithModal.vue +2 -9
- package/vue-components/styles/components/_ac-tags.scss +0 -116
- package/vue-components/v3/badge/Badge.vue +0 -3
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<button
|
|
4
4
|
v-if="themeMode"
|
|
5
5
|
class="button ac-nav-button"
|
|
6
|
-
style="color: #ffffff; font-size: 15px
|
|
6
|
+
style="color: #ffffff; font-size: 15px"
|
|
7
7
|
@click="toggleTheme"
|
|
8
8
|
:title="themeModes[themeMode].displayName"
|
|
9
9
|
>
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
</button>
|
|
12
12
|
<div class="ac-menu-content theme-choice">
|
|
13
13
|
<ul class="is-flex is-flex-direction-row is-justify-content-space-around">
|
|
14
|
-
<li
|
|
14
|
+
<li
|
|
15
15
|
v-for="theme of Object.keys(themeModes)"
|
|
16
16
|
:title="themeModes[theme].displayName"
|
|
17
17
|
@click="themeMode = theme"
|
|
18
|
-
:class="{'is-active': themeMode === theme}"
|
|
18
|
+
:class="{ 'is-active': themeMode === theme }"
|
|
19
19
|
:key="theme"
|
|
20
20
|
>
|
|
21
21
|
<i :class="['fa', themeModes[theme].iconClass]" />
|
|
@@ -41,8 +41,8 @@ export default {
|
|
|
41
41
|
dark: {
|
|
42
42
|
displayName: "Dark Theme",
|
|
43
43
|
iconClass: "fa-moon-o",
|
|
44
|
-
}
|
|
45
|
-
}
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
46
|
};
|
|
47
47
|
},
|
|
48
48
|
|
|
@@ -59,8 +59,8 @@ export default {
|
|
|
59
59
|
themeMode: {
|
|
60
60
|
handler(n) {
|
|
61
61
|
this.onThemeModeChange(n);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
64
|
},
|
|
65
65
|
|
|
66
66
|
methods: {
|
|
@@ -77,9 +77,7 @@ export default {
|
|
|
77
77
|
|
|
78
78
|
let theme = n;
|
|
79
79
|
if (n === "system") {
|
|
80
|
-
const isDarkMode =
|
|
81
|
-
window.matchMedia &&
|
|
82
|
-
window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
80
|
+
const isDarkMode = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
83
81
|
this.addColorSchemeEventListener();
|
|
84
82
|
theme = isDarkMode ? "dark" : "light";
|
|
85
83
|
} else {
|
|
@@ -100,21 +98,17 @@ export default {
|
|
|
100
98
|
|
|
101
99
|
// add system theme listener event
|
|
102
100
|
addColorSchemeEventListener() {
|
|
103
|
-
window
|
|
104
|
-
.matchMedia("(prefers-color-scheme: dark)")
|
|
105
|
-
.addEventListener("change", this.handleSystemThemeChange);
|
|
101
|
+
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", this.handleSystemThemeChange);
|
|
106
102
|
},
|
|
107
103
|
|
|
108
104
|
// remove system theme listener event
|
|
109
105
|
removeColorSchemeEventListener() {
|
|
110
|
-
window
|
|
111
|
-
.matchMedia("(prefers-color-scheme: dark)")
|
|
112
|
-
.removeEventListener("change", this.handleSystemThemeChange);
|
|
106
|
+
window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", this.handleSystemThemeChange);
|
|
113
107
|
},
|
|
114
108
|
|
|
115
109
|
handleSystemThemeChange() {
|
|
116
110
|
this.onThemeModeChange(this.themeMode);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
111
|
+
},
|
|
112
|
+
},
|
|
119
113
|
};
|
|
120
114
|
</script>
|
|
@@ -8,18 +8,10 @@
|
|
|
8
8
|
<i class="fa fa-angle-down" aria-hidden="true"></i>
|
|
9
9
|
</button>
|
|
10
10
|
<navbar-item-content class="navbar-dropdown-wrapper">
|
|
11
|
-
<div
|
|
12
|
-
v-if="user.username"
|
|
13
|
-
class="user-profile-wrapper"
|
|
14
|
-
@mouseleave="onMouseLeave()"
|
|
15
|
-
>
|
|
11
|
+
<div v-if="user.username" class="user-profile-wrapper" @mouseleave="onMouseLeave()">
|
|
16
12
|
<div class="profile-area">
|
|
17
13
|
<div class="profile-photo">
|
|
18
|
-
<img
|
|
19
|
-
:src="user.avatar_url"
|
|
20
|
-
alt="User Photo"
|
|
21
|
-
class="width-50 height-50"
|
|
22
|
-
/>
|
|
14
|
+
<img :src="user.avatar_url" alt="User Photo" class="width-50 height-50" />
|
|
23
15
|
<button class="camera-icon"></button>
|
|
24
16
|
</div>
|
|
25
17
|
<div class="profile-info" style="width: calc(100% - 60px)">
|
|
@@ -35,34 +27,18 @@
|
|
|
35
27
|
</div>
|
|
36
28
|
<transition-group name="list" tag="ul">
|
|
37
29
|
<li key="settings">
|
|
38
|
-
<a
|
|
39
|
-
data-testid="user-settings-link"
|
|
40
|
-
:href="`${serverDomain}/user/settings/`"
|
|
41
|
-
>Settings</a
|
|
42
|
-
>
|
|
30
|
+
<a data-testid="user-settings-link" :href="`${serverDomain}/user/settings/`">Settings</a>
|
|
43
31
|
</li>
|
|
44
32
|
<li v-if="isLoggedinUserAdmin" key="site-admin">
|
|
45
|
-
<a data-testid="site-admin-link" :href="`${accountsDomain}/admin`"
|
|
46
|
-
>Site Administration</a
|
|
47
|
-
>
|
|
33
|
+
<a data-testid="site-admin-link" :href="`${accountsDomain}/admin`">Site Administration</a>
|
|
48
34
|
</li>
|
|
49
|
-
<li
|
|
50
|
-
v-if="showAccountSwitcher"
|
|
51
|
-
:class="`is-${dropDownStatus}`"
|
|
52
|
-
key="switcher"
|
|
53
|
-
>
|
|
35
|
+
<li v-if="showAccountSwitcher" :class="`is-${dropDownStatus}`" key="switcher">
|
|
54
36
|
<a
|
|
55
37
|
class="ac-dropdown-button is-fullwidth is-flex is-justify-content-space-between is-align-items-center"
|
|
56
38
|
@click="toggleList()"
|
|
57
39
|
>
|
|
58
40
|
<span>Switch Account</span>
|
|
59
|
-
<span
|
|
60
|
-
><i
|
|
61
|
-
:class="`fa fa-angle-${
|
|
62
|
-
dropDownStatus === 'open' ? 'up' : 'down'
|
|
63
|
-
}`"
|
|
64
|
-
></i
|
|
65
|
-
></span>
|
|
41
|
+
<span><i :class="`fa fa-angle-${dropDownStatus === 'open' ? 'up' : 'down'}`"></i></span>
|
|
66
42
|
</a>
|
|
67
43
|
<transition-group
|
|
68
44
|
name="list"
|
|
@@ -71,42 +47,21 @@
|
|
|
71
47
|
ref="dropdownItems"
|
|
72
48
|
:style="{ maxHeight: dropDownSectionHeight }"
|
|
73
49
|
>
|
|
74
|
-
<li
|
|
75
|
-
|
|
76
|
-
:key="org.username"
|
|
77
|
-
>
|
|
78
|
-
<a
|
|
79
|
-
class="is-flex is-align-items-center"
|
|
80
|
-
@click="onOrganizationClick(org.username)"
|
|
81
|
-
>
|
|
50
|
+
<li v-for="(org, idx) in formattedOrganizations" :key="org.username">
|
|
51
|
+
<a class="is-flex is-align-items-center" @click="onOrganizationClick(org.username)">
|
|
82
52
|
<div class="width-30 height-30 image">
|
|
83
|
-
<img
|
|
84
|
-
:src="org.avatar_url"
|
|
85
|
-
class="ac-user-profile is-rounded"
|
|
86
|
-
alt="icon"
|
|
87
|
-
/>
|
|
53
|
+
<img :src="org.avatar_url" class="ac-user-profile is-rounded" alt="icon" />
|
|
88
54
|
</div>
|
|
89
|
-
<div
|
|
90
|
-
class="is-flex is-align-items-center is-justify-content-space-between is-fullwidth ml-10"
|
|
91
|
-
>
|
|
55
|
+
<div class="is-flex is-align-items-center is-justify-content-space-between is-fullwidth ml-10">
|
|
92
56
|
<div class="org-info">
|
|
93
|
-
<strong
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
>{{ org.username }}</strong
|
|
97
|
-
>
|
|
57
|
+
<strong :title="org.username" class="line-break-anywhere is-ellipsis-1">{{
|
|
58
|
+
org.username
|
|
59
|
+
}}</strong>
|
|
98
60
|
<p>
|
|
99
|
-
{{
|
|
100
|
-
org.isPersonalAccount
|
|
101
|
-
? "Personal Account"
|
|
102
|
-
: "Organization"
|
|
103
|
-
}}
|
|
61
|
+
{{ org.isPersonalAccount ? "Personal Account" : "Organization" }}
|
|
104
62
|
</p>
|
|
105
63
|
</div>
|
|
106
|
-
<span
|
|
107
|
-
v-if="idx === 0"
|
|
108
|
-
class="material-icons-outlined font-size-18 ml-10 is-pulled-right"
|
|
109
|
-
>
|
|
64
|
+
<span v-if="idx === 0" class="material-icons-outlined font-size-18 ml-10 is-pulled-right">
|
|
110
65
|
check
|
|
111
66
|
</span>
|
|
112
67
|
</div>
|
|
@@ -115,28 +70,11 @@
|
|
|
115
70
|
</transition-group>
|
|
116
71
|
</li>
|
|
117
72
|
<li key="dashboard">
|
|
118
|
-
<nuxt-link
|
|
119
|
-
|
|
120
|
-
to="/dashboard"
|
|
121
|
-
data-testid="user-dashboard-link"
|
|
122
|
-
>
|
|
123
|
-
Dashboard
|
|
124
|
-
</nuxt-link>
|
|
125
|
-
<a
|
|
126
|
-
v-else
|
|
127
|
-
:href="`${serverDomain}/dashboard`"
|
|
128
|
-
data-testid="user-dashboard-link"
|
|
129
|
-
>
|
|
130
|
-
Dashboard
|
|
131
|
-
</a>
|
|
73
|
+
<nuxt-link v-if="isPlatformDomain" to="/dashboard" data-testid="user-dashboard-link"> Dashboard </nuxt-link>
|
|
74
|
+
<a v-else :href="`${serverDomain}/dashboard`" data-testid="user-dashboard-link"> Dashboard </a>
|
|
132
75
|
</li>
|
|
133
76
|
<li key="signout">
|
|
134
|
-
<a
|
|
135
|
-
:href="`${accountsDomain}/user/logout`"
|
|
136
|
-
data-testid="signout-link"
|
|
137
|
-
>
|
|
138
|
-
Sign out
|
|
139
|
-
</a>
|
|
77
|
+
<a :href="`${accountsDomain}/user/logout`" data-testid="signout-link"> Sign out </a>
|
|
140
78
|
</li>
|
|
141
79
|
</transition-group>
|
|
142
80
|
</div>
|
|
@@ -232,8 +170,7 @@ export default {
|
|
|
232
170
|
if (n === "open") {
|
|
233
171
|
this.$nextTick(() => {
|
|
234
172
|
const dropDownUl = this.$refs["dropdownItems"];
|
|
235
|
-
if (dropDownUl)
|
|
236
|
-
this.dropDownSectionHeight = `${dropDownUl.scrollHeight}px`;
|
|
173
|
+
if (dropDownUl) this.dropDownSectionHeight = `${dropDownUl.scrollHeight}px`;
|
|
237
174
|
});
|
|
238
175
|
} else {
|
|
239
176
|
this.dropDownSectionHeight = null;
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
@mouseenter="notificationPanelOpen = true"
|
|
4
|
-
@mouseleave="notificationPanelOpen = false"
|
|
5
|
-
>
|
|
2
|
+
<div @mouseenter="notificationPanelOpen = true" @mouseleave="notificationPanelOpen = false">
|
|
6
3
|
<button class="button ac-nav-button">
|
|
7
4
|
<span v-if="unreadCount">{{ unreadCount }}</span>
|
|
8
|
-
<i
|
|
9
|
-
class="fa fa-bell"
|
|
10
|
-
:class="{ 'ac-shake': unreadCount }"
|
|
11
|
-
aria-hidden="true"
|
|
12
|
-
></i>
|
|
5
|
+
<i class="fa fa-bell" :class="{ 'ac-shake': unreadCount }" aria-hidden="true"></i>
|
|
13
6
|
</button>
|
|
14
7
|
<div class="ac-menu-content is-notification">
|
|
15
8
|
<div class="notification-header">
|
|
@@ -28,9 +21,7 @@
|
|
|
28
21
|
:notification="notification"
|
|
29
22
|
/>
|
|
30
23
|
</transition-group>
|
|
31
|
-
<span v-else class="single-notification-item"
|
|
32
|
-
>No new notifications</span
|
|
33
|
-
>
|
|
24
|
+
<span v-else class="single-notification-item">No new notifications</span>
|
|
34
25
|
</div>
|
|
35
26
|
</div>
|
|
36
27
|
</div>
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
:class="{
|
|
9
9
|
'is-success': notification.status === 'Success',
|
|
10
10
|
'has-text-danger': notification.status === 'Failed',
|
|
11
|
-
'is-info':
|
|
12
|
-
notification.status === 'Started' ||
|
|
13
|
-
notification.status === 'Running',
|
|
11
|
+
'is-info': notification.status === 'Started' || notification.status === 'Running',
|
|
14
12
|
'is-warning': notification.status === 'Pending',
|
|
15
13
|
}"
|
|
16
14
|
>
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="level inner-table-pagination" v-show="showPagination">
|
|
3
3
|
<div class="pagination-filter level-left">
|
|
4
|
-
<div
|
|
5
|
-
class="level-item"
|
|
6
|
-
v-show="
|
|
7
|
-
!hideRowsPerPageSelection &&
|
|
8
|
-
totalNoOfItems > preSelectedItemsCountPerPage
|
|
9
|
-
"
|
|
10
|
-
>
|
|
4
|
+
<div class="level-item" v-show="!hideRowsPerPageSelection && totalNoOfItems > preSelectedItemsCountPerPage">
|
|
11
5
|
<label>Rows per page</label>
|
|
12
|
-
<select
|
|
13
|
-
v-model="selectedItemCountPerPage"
|
|
14
|
-
name="page"
|
|
15
|
-
data-testid="rows-per-page-selector"
|
|
16
|
-
>
|
|
6
|
+
<select v-model="selectedItemCountPerPage" name="page" data-testid="rows-per-page-selector">
|
|
17
7
|
<option :value="5">5</option>
|
|
18
8
|
<option :value="10" v-show="totalNoOfItems > 5">10</option>
|
|
19
9
|
<option :value="15" v-show="totalNoOfItems > 10">15</option>
|
|
@@ -35,11 +25,7 @@
|
|
|
35
25
|
|
|
36
26
|
<ul v-if="totalNoOfItems > selectedItemCountPerPage">
|
|
37
27
|
<li>
|
|
38
|
-
<a
|
|
39
|
-
class="previous"
|
|
40
|
-
@click.prevent="prevPage()"
|
|
41
|
-
data-testid="pagination-previous-page-button"
|
|
42
|
-
>
|
|
28
|
+
<a class="previous" @click.prevent="prevPage()" data-testid="pagination-previous-page-button">
|
|
43
29
|
<i class="fa fa-angle-left" aria-hidden="true"></i>
|
|
44
30
|
</a>
|
|
45
31
|
</li>
|
|
@@ -52,11 +38,7 @@
|
|
|
52
38
|
>
|
|
53
39
|
</li>
|
|
54
40
|
<li>
|
|
55
|
-
<a
|
|
56
|
-
class="next"
|
|
57
|
-
@click.prevent="nextPage()"
|
|
58
|
-
data-testid="pagination-next-page-button"
|
|
59
|
-
>
|
|
41
|
+
<a class="next" @click.prevent="nextPage()" data-testid="pagination-next-page-button">
|
|
60
42
|
<i class="fa fa-angle-right" aria-hidden="true"></i>
|
|
61
43
|
</a>
|
|
62
44
|
</li>
|
|
@@ -126,10 +108,7 @@ export default {
|
|
|
126
108
|
},
|
|
127
109
|
itemsRange() {
|
|
128
110
|
let start = (this.activePageNo - 1) * this.selectedItemCountPerPage;
|
|
129
|
-
let end = Math.min(
|
|
130
|
-
this.activePageNo * this.selectedItemCountPerPage,
|
|
131
|
-
this.totalNoOfItems
|
|
132
|
-
);
|
|
111
|
+
let end = Math.min(this.activePageNo * this.selectedItemCountPerPage, this.totalNoOfItems);
|
|
133
112
|
|
|
134
113
|
return { start, end };
|
|
135
114
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="is-flex is-justify-content-center is-align-items-center is-flex-direction-column ac-preloader"
|
|
4
|
-
style="height: calc(100vh - 200px)
|
|
4
|
+
style="height: calc(100vh - 200px)"
|
|
5
5
|
>
|
|
6
6
|
<span v-if="showSpinner" class="spinner"></span>
|
|
7
7
|
<p class="font-size-12 mt-10 pl-5">
|
|
@@ -15,12 +15,12 @@ export default {
|
|
|
15
15
|
props: {
|
|
16
16
|
showSpinner: {
|
|
17
17
|
type: Boolean,
|
|
18
|
-
default: true
|
|
18
|
+
default: true,
|
|
19
19
|
},
|
|
20
20
|
message: {
|
|
21
21
|
type: String,
|
|
22
|
-
default: "Loading ..."
|
|
23
|
-
}
|
|
24
|
-
}
|
|
22
|
+
default: "Loading ...",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
25
|
};
|
|
26
26
|
</script>
|
|
@@ -5,13 +5,7 @@
|
|
|
5
5
|
<i class="fa fa-search" aria-hidden="true"></i>
|
|
6
6
|
</button>
|
|
7
7
|
</template>
|
|
8
|
-
<ac-input
|
|
9
|
-
name="search"
|
|
10
|
-
placeholder="Search"
|
|
11
|
-
type="search"
|
|
12
|
-
class="ac-search"
|
|
13
|
-
v-model="searchText"
|
|
14
|
-
/>
|
|
8
|
+
<ac-input name="search" placeholder="Search" type="search" class="ac-search" v-model="searchText" />
|
|
15
9
|
</ac-single-input>
|
|
16
10
|
</template>
|
|
17
11
|
|
|
@@ -65,7 +65,7 @@ export default {
|
|
|
65
65
|
value: {
|
|
66
66
|
type: String,
|
|
67
67
|
default: "",
|
|
68
|
-
}
|
|
68
|
+
},
|
|
69
69
|
},
|
|
70
70
|
|
|
71
71
|
components: {
|
|
@@ -114,7 +114,7 @@ export default {
|
|
|
114
114
|
async handler(list) {
|
|
115
115
|
if (list) {
|
|
116
116
|
list.forEach(async (item) => {
|
|
117
|
-
if(item.name === this.selectedClusterName) {
|
|
117
|
+
if (item.name === this.selectedClusterName) {
|
|
118
118
|
this.selectedCluster = item;
|
|
119
119
|
}
|
|
120
120
|
});
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<li ref="sidebarItem">
|
|
3
|
-
<router-link
|
|
4
|
-
:id="id"
|
|
5
|
-
:title="title"
|
|
6
|
-
:to="url"
|
|
7
|
-
:class="{ 'is-active': isActive }"
|
|
8
|
-
>
|
|
3
|
+
<router-link :id="id" :title="title" :to="url" :class="{ 'is-active': isActive }">
|
|
9
4
|
<span>
|
|
10
5
|
<img :src="icon" alt="icon" />
|
|
11
6
|
</span>
|
|
@@ -45,10 +40,7 @@ export default {
|
|
|
45
40
|
if (n) {
|
|
46
41
|
this.$nextTick(() => {
|
|
47
42
|
setTimeout(() => {
|
|
48
|
-
const top =
|
|
49
|
-
(this.$refs.sidebarItem &&
|
|
50
|
-
this.$refs.sidebarItem.getBoundingClientRect().top) ||
|
|
51
|
-
0;
|
|
43
|
+
const top = (this.$refs.sidebarItem && this.$refs.sidebarItem.getBoundingClientRect().top) || 0;
|
|
52
44
|
// preventing scroll to options that are already visible
|
|
53
45
|
if (top > window.innerHeight - 200) {
|
|
54
46
|
// scroll to selected option item
|
|
@@ -86,8 +86,7 @@ export default {
|
|
|
86
86
|
|
|
87
87
|
this.$nextTick(() => {
|
|
88
88
|
const dropDownUl = this.$refs["sectionItems"];
|
|
89
|
-
if (dropDownUl)
|
|
90
|
-
this.dropDownSectionHeight = `${dropDownUl.scrollHeight}px`;
|
|
89
|
+
if (dropDownUl) this.dropDownSectionHeight = `${dropDownUl.scrollHeight}px`;
|
|
91
90
|
});
|
|
92
91
|
} else {
|
|
93
92
|
// emit event to close other drop down items
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<table-container>
|
|
3
|
-
<table
|
|
4
|
-
class="table ac-info-table is-fullwidth"
|
|
5
|
-
:class="{ 'pl-0 pr-0': removeContentPadding }"
|
|
6
|
-
>
|
|
3
|
+
<table class="table ac-info-table is-fullwidth" :class="{ 'pl-0 pr-0': removeContentPadding }">
|
|
7
4
|
<tbody v-if="isFullTableLoaderActive">
|
|
8
5
|
<!-- table loader -->
|
|
9
6
|
<table-row v-for="i in loaderCols" :key="i">
|
|
@@ -20,15 +17,12 @@
|
|
|
20
17
|
v-else
|
|
21
18
|
:class="{
|
|
22
19
|
'no-data-available has-text-centered p-10': isTableEmpty,
|
|
23
|
-
'pl-0 pr-0': removeContentPadding
|
|
20
|
+
'pl-0 pr-0': removeContentPadding,
|
|
24
21
|
}"
|
|
25
22
|
>
|
|
26
23
|
<template v-if="!isTableEmpty">
|
|
27
24
|
<!-- table rows -->
|
|
28
|
-
<table-row
|
|
29
|
-
v-for="(tableHeader, idx) in tableHeaders"
|
|
30
|
-
:key="tableHeader"
|
|
31
|
-
>
|
|
25
|
+
<table-row v-for="(tableHeader, idx) in tableHeaders" :key="tableHeader">
|
|
32
26
|
<table-cell>
|
|
33
27
|
<!-- for table cell icons -->
|
|
34
28
|
<slot :name="`table-cell-icon-${idx}`" />
|
|
@@ -66,7 +60,7 @@ export default {
|
|
|
66
60
|
},
|
|
67
61
|
tableHeaders: {
|
|
68
62
|
type: Array,
|
|
69
|
-
default: () => []
|
|
63
|
+
default: () => [],
|
|
70
64
|
},
|
|
71
65
|
removeContentPadding: {
|
|
72
66
|
type: Boolean,
|
|
@@ -4,11 +4,7 @@
|
|
|
4
4
|
ref="ac-table"
|
|
5
5
|
class="table ac-table ac-striped"
|
|
6
6
|
:class="{
|
|
7
|
-
'is-fullwidth':
|
|
8
|
-
!isDynamicWidthTable ||
|
|
9
|
-
isFullTableLoaderActive ||
|
|
10
|
-
isTableEmpty ||
|
|
11
|
-
isLoaderActive,
|
|
7
|
+
'is-fullwidth': !isDynamicWidthTable || isFullTableLoaderActive || isTableEmpty || isLoaderActive,
|
|
12
8
|
}"
|
|
13
9
|
>
|
|
14
10
|
<thead>
|
|
@@ -23,52 +19,25 @@
|
|
|
23
19
|
:key="idx"
|
|
24
20
|
:class="{
|
|
25
21
|
sorting: headerSortables[idx] && headerSortables[idx].enabled,
|
|
26
|
-
'sorting-desc':
|
|
27
|
-
|
|
28
|
-
'
|
|
29
|
-
|
|
30
|
-
'has-text-
|
|
31
|
-
typeof tableHeader === 'string'
|
|
32
|
-
? false
|
|
33
|
-
: tableHeader.textAlign === 'center',
|
|
34
|
-
'has-text-left':
|
|
35
|
-
typeof tableHeader === 'string'
|
|
36
|
-
? false
|
|
37
|
-
: tableHeader.textAlign === 'left',
|
|
38
|
-
'has-text-right':
|
|
39
|
-
typeof tableHeader === 'string'
|
|
40
|
-
? false
|
|
41
|
-
: tableHeader.textAlign === 'right',
|
|
22
|
+
'sorting-desc': headerSortables[idx] && headerSortables[idx].mode === 'desc',
|
|
23
|
+
'sorting-asc': headerSortables[idx] && headerSortables[idx].mode === 'asc',
|
|
24
|
+
'has-text-centered': typeof tableHeader === 'string' ? false : tableHeader.textAlign === 'center',
|
|
25
|
+
'has-text-left': typeof tableHeader === 'string' ? false : tableHeader.textAlign === 'left',
|
|
26
|
+
'has-text-right': typeof tableHeader === 'string' ? false : tableHeader.textAlign === 'right',
|
|
42
27
|
}"
|
|
43
|
-
@click.prevent="
|
|
44
|
-
headerSortables[idx] &&
|
|
45
|
-
headerSortables[idx].enabled &&
|
|
46
|
-
emitSortEvent(idx)
|
|
47
|
-
"
|
|
28
|
+
@click.prevent="headerSortables[idx] && headerSortables[idx].enabled && emitSortEvent(idx)"
|
|
48
29
|
>
|
|
49
30
|
{{ headerLabels[idx] }}
|
|
50
31
|
<span
|
|
51
|
-
v-if="
|
|
52
|
-
tableHeader.dashboard &&
|
|
53
|
-
tableHeader.dashboard.status &&
|
|
54
|
-
tableHeader.dashboard.status !== 'Success'
|
|
55
|
-
"
|
|
32
|
+
v-if="tableHeader.dashboard && tableHeader.dashboard.status && tableHeader.dashboard.status !== 'Success'"
|
|
56
33
|
class="icon has-text-danger"
|
|
57
34
|
:title="tableHeader.dashboard && tableHeader.dashboard.message"
|
|
58
35
|
>
|
|
59
36
|
<i class="fa fa-exclamation-triangle" />
|
|
60
37
|
</span>
|
|
61
38
|
</th>
|
|
62
|
-
<th
|
|
63
|
-
|
|
64
|
-
v-if="actionable"
|
|
65
|
-
style="min-width: 100px"
|
|
66
|
-
></th>
|
|
67
|
-
<fake-table-cell
|
|
68
|
-
v-if="fakeCellWidth > 0"
|
|
69
|
-
:is-header-cell="true"
|
|
70
|
-
:fake-cell-width="fakeCellWidth"
|
|
71
|
-
/>
|
|
39
|
+
<th ref="action-section" v-if="actionable" style="min-width: 100px"></th>
|
|
40
|
+
<fake-table-cell v-if="fakeCellWidth > 0" :is-header-cell="true" :fake-cell-width="fakeCellWidth" />
|
|
72
41
|
</table-row>
|
|
73
42
|
</thead>
|
|
74
43
|
<!-- table row loaders -->
|
|
@@ -79,14 +48,8 @@
|
|
|
79
48
|
</th>
|
|
80
49
|
</table-row>
|
|
81
50
|
<table-row v-else>
|
|
82
|
-
<table-cell
|
|
83
|
-
|
|
84
|
-
:key="headerLabels[idx]"
|
|
85
|
-
>
|
|
86
|
-
<cell-value
|
|
87
|
-
:is-loader-active="true"
|
|
88
|
-
:cell-title="headerLabels[idx]"
|
|
89
|
-
/>
|
|
51
|
+
<table-cell v-for="(tableHeader, idx) in tableHeaders" :key="headerLabels[idx]">
|
|
52
|
+
<cell-value :is-loader-active="true" :cell-title="headerLabels[idx]" />
|
|
90
53
|
</table-cell>
|
|
91
54
|
</table-row>
|
|
92
55
|
</tbody>
|
|
@@ -99,9 +62,7 @@
|
|
|
99
62
|
<tbody v-else>
|
|
100
63
|
<table-row class="is-hoverless">
|
|
101
64
|
<table-cell
|
|
102
|
-
:colspan="
|
|
103
|
-
actionable ? tableHeaders.length + 1 : tableHeaders.length
|
|
104
|
-
"
|
|
65
|
+
:colspan="actionable ? tableHeaders.length + 1 : tableHeaders.length"
|
|
105
66
|
class="no-data-available has-text-centered"
|
|
106
67
|
>
|
|
107
68
|
<empty-table-info />
|
|
@@ -179,9 +140,7 @@ export default {
|
|
|
179
140
|
return !this.tableHeaders.length;
|
|
180
141
|
},
|
|
181
142
|
headerLabels() {
|
|
182
|
-
return this.tableHeaders.map((th) =>
|
|
183
|
-
typeof th === "string" ? th : th.name || "Label"
|
|
184
|
-
);
|
|
143
|
+
return this.tableHeaders.map((th) => (typeof th === "string" ? th : th.name || "Label"));
|
|
185
144
|
},
|
|
186
145
|
},
|
|
187
146
|
|
|
@@ -191,15 +150,8 @@ export default {
|
|
|
191
150
|
handler(n) {
|
|
192
151
|
if (this.headerSortables.length === n.length) {
|
|
193
152
|
n.forEach((th, idx) => {
|
|
194
|
-
if (
|
|
195
|
-
this.headerSortables[idx].enabled
|
|
196
|
-
!!(th && th.sort && th.sort.enable)
|
|
197
|
-
) {
|
|
198
|
-
this.headerSortables[idx].enabled = !!(
|
|
199
|
-
th &&
|
|
200
|
-
th.sort &&
|
|
201
|
-
th.sort.enable
|
|
202
|
-
);
|
|
153
|
+
if (this.headerSortables[idx].enabled !== !!(th && th.sort && th.sort.enable)) {
|
|
154
|
+
this.headerSortables[idx].enabled = !!(th && th.sort && th.sort.enable);
|
|
203
155
|
this.headerSortables[idx].mode = "";
|
|
204
156
|
}
|
|
205
157
|
});
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<router-link
|
|
3
|
-
v-if="link"
|
|
4
|
-
:event="link !== '' ? 'click' : ''"
|
|
5
|
-
:to="link"
|
|
6
|
-
custom
|
|
7
|
-
v-slot="{ navigate }"
|
|
8
|
-
>
|
|
2
|
+
<router-link v-if="link" :event="link !== '' ? 'click' : ''" :to="link" custom v-slot="{ navigate }">
|
|
9
3
|
<tr class="is-link" @click="navigate" data-testid="ac-table-row">
|
|
10
4
|
<slot />
|
|
11
|
-
<fake-table-cell
|
|
12
|
-
v-if="fakeCellWidth > 0"
|
|
13
|
-
:fake-cell-width="fakeCellWidth"
|
|
14
|
-
/>
|
|
5
|
+
<fake-table-cell v-if="fakeCellWidth > 0" :fake-cell-width="fakeCellWidth" />
|
|
15
6
|
</tr>
|
|
16
7
|
</router-link>
|
|
17
8
|
|
|
@@ -26,10 +17,7 @@
|
|
|
26
17
|
@click.prevent="$emit('rowselect', true)"
|
|
27
18
|
>
|
|
28
19
|
<slot />
|
|
29
|
-
<fake-table-cell
|
|
30
|
-
v-if="fakeCellWidth > 0"
|
|
31
|
-
:fake-cell-width="fakeCellWidth"
|
|
32
|
-
/>
|
|
20
|
+
<fake-table-cell v-if="fakeCellWidth > 0" :fake-cell-width="fakeCellWidth" />
|
|
33
21
|
</tr>
|
|
34
22
|
</template>
|
|
35
23
|
|