@appscode/design-system 1.1.0-alpha.9 → 1.1.0-beta.2
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/_all.scss +1 -1
- package/base/utilities/_default.scss +41 -41
- package/base/utilities/_derived-variables.scss +8 -9
- package/base/utilities/_extended.scss +1 -1
- package/base/utilities/_initial-variables.scss +52 -50
- package/base/utilities/_mixin.scss +11 -11
- package/base/utilities/_typography.scss +22 -22
- package/base/utilities/dark-theme.scss +1 -1
- package/components/_ac-accordion.scss +6 -6
- package/components/_ac-alert-box.scss +27 -28
- package/components/_ac-calendar.scss +4 -4
- package/components/_ac-card.scss +55 -55
- 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 +85 -85
- package/components/_ac-modal.scss +8 -8
- package/components/_ac-multi-select.scss +751 -751
- package/components/_ac-options.scss +12 -13
- package/components/_ac-select-box.scss +5 -5
- package/components/_ac-table.scss +55 -55
- package/components/_ac-tabs.scss +36 -36
- package/components/_ac-tags.scss +22 -22
- package/components/_ac-terminal.scss +253 -253
- package/components/_add-card.scss +3 -3
- package/components/_app-drawer.scss +4 -4
- package/components/_basic-card.scss +108 -118
- package/components/_breadcumb.scss +5 -5
- package/components/_buttons.scss +64 -64
- package/components/_card-body-wrapper.scss +5 -5
- package/components/_dashboard-header.scss +29 -29
- 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 +374 -376
- package/components/_monaco-editor.scss +1 -1
- package/components/_navbar.scss +65 -65
- 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 +110 -110
- package/components/_payment-card.scss +20 -20
- 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 +17 -17
- 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 +2 -2
- package/layouts/_code-preview.scss +11 -11
- 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/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 +29 -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/mixins/stickyContent.js +0 -141
- package/plugins/caching.ts +0 -243
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type TaskStatus =
|
|
2
|
+
| "Pending"
|
|
3
|
+
| "Running"
|
|
4
|
+
| "Success"
|
|
5
|
+
| "Failed"
|
|
6
|
+
| "Started";
|
|
7
|
+
export interface TaskLog {
|
|
8
|
+
status?: TaskStatus;
|
|
9
|
+
msg?: string;
|
|
10
|
+
step?: string;
|
|
11
|
+
error?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface Task extends Omit<TaskLog, "message"> {
|
|
15
|
+
logs: Array<string>;
|
|
16
|
+
}
|
|
17
|
+
export interface LongRunningTasksCtx {
|
|
18
|
+
natsSubject: string;
|
|
19
|
+
tasks: Array<Task>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export interface AcSortCtx {
|
|
2
|
+
index: number | null;
|
|
3
|
+
mode: "asc" | "desc" | string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface AcTableCell {
|
|
7
|
+
data: unknown;
|
|
8
|
+
sort?: string | number;
|
|
9
|
+
icon?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
link?: string;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface AcTableCol {
|
|
15
|
+
name: string;
|
|
16
|
+
type: "object" | "string" | "number" | "date" | "integer";
|
|
17
|
+
priority: number;
|
|
18
|
+
pathTemplate?: string;
|
|
19
|
+
format?: string;
|
|
20
|
+
link?: Record<string, unknown>;
|
|
21
|
+
sort?: {
|
|
22
|
+
enable: boolean;
|
|
23
|
+
template: string;
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
icon?: boolean;
|
|
27
|
+
textAlign?: string;
|
|
28
|
+
dashboard?: {
|
|
29
|
+
status: string;
|
|
30
|
+
message: string;
|
|
31
|
+
title: string;
|
|
32
|
+
};
|
|
33
|
+
exec?: Record<string, unknown>;
|
|
34
|
+
}
|
|
35
|
+
export interface AcTableRow {
|
|
36
|
+
cells: Array<{
|
|
37
|
+
data: unknown;
|
|
38
|
+
sort?: number | string;
|
|
39
|
+
color?: string;
|
|
40
|
+
link?: string;
|
|
41
|
+
icon?: string;
|
|
42
|
+
}>;
|
|
43
|
+
namespace?: string;
|
|
44
|
+
}
|
|
45
|
+
export type AcTable = {
|
|
46
|
+
columns: Array<AcTableCol>;
|
|
47
|
+
rows: Array<AcTableRow>;
|
|
48
|
+
name?: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type AcDashboardList = Array<{
|
|
52
|
+
title: string;
|
|
53
|
+
url: string;
|
|
54
|
+
}>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface User {
|
|
2
|
+
id: number;
|
|
3
|
+
login: string;
|
|
4
|
+
full_name: string;
|
|
5
|
+
email: string;
|
|
6
|
+
avatar_url: string;
|
|
7
|
+
language: string;
|
|
8
|
+
is_admin: boolean;
|
|
9
|
+
last_login: string;
|
|
10
|
+
created: string;
|
|
11
|
+
type: 0 | 1 | 2;
|
|
12
|
+
active: boolean;
|
|
13
|
+
prohibit_login: boolean;
|
|
14
|
+
location: string;
|
|
15
|
+
website: string;
|
|
16
|
+
description: string;
|
|
17
|
+
username: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface Organization extends User {
|
|
21
|
+
type: 1;
|
|
22
|
+
}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
<
|
|
2
|
+
<div>
|
|
3
|
+
<h1>Hello there</h1>
|
|
4
|
+
<div class="overview-cards">
|
|
5
|
+
<slot />
|
|
6
|
+
</div>
|
|
4
7
|
</div>
|
|
5
8
|
</template>
|
|
9
|
+
<style lang="scss" scoped>
|
|
10
|
+
.overview-cards {
|
|
11
|
+
display: grid;
|
|
12
|
+
gap: 8px;
|
|
13
|
+
grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
|
|
14
|
+
|
|
15
|
+
border: 1px solid $primary-95;
|
|
16
|
+
padding: 16px;
|
|
17
|
+
height: 100%;
|
|
18
|
+
margin-right: 20px;
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
@@ -80,79 +80,79 @@ export default {
|
|
|
80
80
|
DownloadBtn: () => import("./../button/DownloadBtn.vue"),
|
|
81
81
|
DeleteConfirmationModal: () =>
|
|
82
82
|
import("./../modals/DeleteConfirmationModal.vue"),
|
|
83
|
-
FilteredFileEditor: () => import("./FilteredFileEditor.vue")
|
|
83
|
+
FilteredFileEditor: () => import("./FilteredFileEditor.vue"),
|
|
84
84
|
},
|
|
85
85
|
props: {
|
|
86
86
|
title: {
|
|
87
87
|
type: String,
|
|
88
|
-
default: "Title"
|
|
88
|
+
default: "Title",
|
|
89
89
|
},
|
|
90
90
|
isSearchable: {
|
|
91
91
|
type: Boolean,
|
|
92
|
-
default: false
|
|
92
|
+
default: false,
|
|
93
93
|
},
|
|
94
94
|
isPreviewLoading: {
|
|
95
95
|
type: Boolean,
|
|
96
|
-
default: false
|
|
96
|
+
default: false,
|
|
97
97
|
},
|
|
98
98
|
isEditorReadOnly: {
|
|
99
99
|
type: Boolean,
|
|
100
|
-
default: false
|
|
100
|
+
default: false,
|
|
101
101
|
},
|
|
102
102
|
previewYamls: {
|
|
103
103
|
type: Array,
|
|
104
104
|
default: () => {
|
|
105
105
|
[];
|
|
106
|
-
}
|
|
106
|
+
},
|
|
107
107
|
},
|
|
108
108
|
visibleBtn: {
|
|
109
109
|
type: Object,
|
|
110
110
|
default: () => {
|
|
111
111
|
return {};
|
|
112
|
-
}
|
|
112
|
+
},
|
|
113
113
|
},
|
|
114
114
|
showMinimap: {
|
|
115
115
|
type: Boolean,
|
|
116
|
-
default: false
|
|
116
|
+
default: false,
|
|
117
117
|
},
|
|
118
118
|
isUpdateActive: {
|
|
119
119
|
type: Boolean,
|
|
120
|
-
default: false
|
|
120
|
+
default: false,
|
|
121
121
|
},
|
|
122
122
|
deleteModalStatus: {
|
|
123
123
|
type: String,
|
|
124
|
-
default: "closed"
|
|
124
|
+
default: "closed",
|
|
125
125
|
},
|
|
126
126
|
editorHeight: {
|
|
127
127
|
type: Number,
|
|
128
|
-
default: 60
|
|
128
|
+
default: 60,
|
|
129
129
|
},
|
|
130
130
|
hideHeader: {
|
|
131
131
|
type: Boolean,
|
|
132
|
-
default: false
|
|
132
|
+
default: false,
|
|
133
133
|
},
|
|
134
134
|
loaderColor: {
|
|
135
135
|
type: Object,
|
|
136
136
|
default: () => {
|
|
137
137
|
return {};
|
|
138
|
-
}
|
|
138
|
+
},
|
|
139
139
|
},
|
|
140
140
|
theme: {
|
|
141
141
|
type: String,
|
|
142
|
-
default: "light"
|
|
143
|
-
}
|
|
142
|
+
default: "light",
|
|
143
|
+
},
|
|
144
144
|
},
|
|
145
145
|
data() {
|
|
146
146
|
return {
|
|
147
147
|
activeKey: 0,
|
|
148
148
|
toggleHideValue: "",
|
|
149
|
-
showDeleteDataModal: false
|
|
149
|
+
showDeleteDataModal: false,
|
|
150
150
|
};
|
|
151
151
|
},
|
|
152
152
|
computed: {
|
|
153
153
|
activeFile() {
|
|
154
154
|
const activeFile = this.previewYamls.find(
|
|
155
|
-
element => element.uid === this.activeKey
|
|
155
|
+
(element) => element.uid === this.activeKey
|
|
156
156
|
);
|
|
157
157
|
return activeFile || { content: "", format: "yaml" };
|
|
158
158
|
},
|
|
@@ -175,7 +175,7 @@ export default {
|
|
|
175
175
|
showDeleteBtn() {
|
|
176
176
|
if (this.visibleBtn.showDeleteBtn) return true;
|
|
177
177
|
else return false;
|
|
178
|
-
}
|
|
178
|
+
},
|
|
179
179
|
},
|
|
180
180
|
methods: {
|
|
181
181
|
onCopy() {
|
|
@@ -198,12 +198,12 @@ export default {
|
|
|
198
198
|
setActiveKey(key) {
|
|
199
199
|
this.activeKey = key;
|
|
200
200
|
this.toggleHideValue = this.activeFile.isSecret;
|
|
201
|
-
}
|
|
201
|
+
},
|
|
202
202
|
},
|
|
203
203
|
watch: {
|
|
204
204
|
deleteModalStatus(n) {
|
|
205
205
|
if (n === "closed") this.showDeleteDataModal = false;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
208
|
};
|
|
209
209
|
</script>
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
<!-- modal body start -->
|
|
33
33
|
<div
|
|
34
34
|
class="ac-modal-body ac-vscrollbar"
|
|
35
|
-
:class="modifierBodyClasses"
|
|
36
35
|
data-testid="ac-modal-content-with-scroll"
|
|
37
36
|
>
|
|
38
37
|
<div class="ac-modal-content">
|
|
@@ -88,10 +87,6 @@ export default {
|
|
|
88
87
|
type: Boolean,
|
|
89
88
|
default: false,
|
|
90
89
|
},
|
|
91
|
-
modifierBodyClasses: {
|
|
92
|
-
type: String,
|
|
93
|
-
default: "",
|
|
94
|
-
},
|
|
95
90
|
},
|
|
96
91
|
|
|
97
92
|
components: {
|
|
@@ -1,18 +1,43 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="app-drawer-wrapper is-flex">
|
|
3
3
|
<div
|
|
4
|
-
class="drawer-icon
|
|
4
|
+
class="drawer-icon is-flex is-justify-content-center is-align-items-center"
|
|
5
5
|
>
|
|
6
6
|
<svg
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
viewBox="0 0
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
width="16"
|
|
8
|
+
height="16"
|
|
9
|
+
viewBox="0 0 16 16"
|
|
10
|
+
fill="none"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
12
|
>
|
|
13
13
|
<path
|
|
14
|
-
d="M6
|
|
15
|
-
|
|
14
|
+
d="M6.66667 2H2V6.66667H6.66667V2Z"
|
|
15
|
+
stroke="#061B2D"
|
|
16
|
+
stroke-width="1.5"
|
|
17
|
+
stroke-linecap="round"
|
|
18
|
+
stroke-linejoin="round"
|
|
19
|
+
/>
|
|
20
|
+
<path
|
|
21
|
+
d="M14 2H9.33337V6.66667H14V2Z"
|
|
22
|
+
stroke="#061B2D"
|
|
23
|
+
stroke-width="1.5"
|
|
24
|
+
stroke-linecap="round"
|
|
25
|
+
stroke-linejoin="round"
|
|
26
|
+
/>
|
|
27
|
+
<path
|
|
28
|
+
d="M14 9.33334H9.33337V14H14V9.33334Z"
|
|
29
|
+
stroke="#061B2D"
|
|
30
|
+
stroke-width="1.5"
|
|
31
|
+
stroke-linecap="round"
|
|
32
|
+
stroke-linejoin="round"
|
|
33
|
+
/>
|
|
34
|
+
<path
|
|
35
|
+
d="M6.66667 9.33334H2V14H6.66667V9.33334Z"
|
|
36
|
+
stroke="#061B2D"
|
|
37
|
+
stroke-width="1.5"
|
|
38
|
+
stroke-linecap="round"
|
|
39
|
+
stroke-linejoin="round"
|
|
40
|
+
/>
|
|
16
41
|
</svg>
|
|
17
42
|
</div>
|
|
18
43
|
<!-- dropdown start -->
|
|
@@ -47,11 +72,11 @@ export default {
|
|
|
47
72
|
props: {
|
|
48
73
|
apps: {
|
|
49
74
|
type: Array,
|
|
50
|
-
default: () => []
|
|
51
|
-
}
|
|
75
|
+
default: () => [],
|
|
76
|
+
},
|
|
52
77
|
},
|
|
53
78
|
components: {
|
|
54
|
-
NavbarItemContent: () => import("./NavbarItemContent.vue")
|
|
55
|
-
}
|
|
79
|
+
NavbarItemContent: () => import("./NavbarItemContent.vue"),
|
|
80
|
+
},
|
|
56
81
|
};
|
|
57
82
|
</script>
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<!-- navbar start -->
|
|
5
5
|
<nav class="ac-navbar">
|
|
6
6
|
<!-- navbar logo start -->
|
|
7
|
-
<div class="ac-navbar-brand">
|
|
7
|
+
<!-- <div class="ac-navbar-brand">
|
|
8
8
|
<slot name="navbar-brand-logo" />
|
|
9
|
-
</div>
|
|
9
|
+
</div> -->
|
|
10
10
|
<!-- navbar logo end -->
|
|
11
11
|
|
|
12
12
|
<!-- navbar search area start -->
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
<!-- navbar end -->
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
|
-
</template>
|
|
29
|
+
</template>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<navbar-item>
|
|
3
3
|
<button class="button ac-nav-button ac-profile-button">
|
|
4
|
-
{{ user.full_name || user.username }}
|
|
5
|
-
<i class="fa fa-angle-down" aria-hidden="true"></i>
|
|
6
4
|
<div class="ac-user-profile">
|
|
7
5
|
<img :src="user.avatar_url" alt="User Photo" />
|
|
8
6
|
</div>
|
|
7
|
+
{{ user.full_name || user.username }}
|
|
8
|
+
<i class="fa fa-angle-down" aria-hidden="true"></i>
|
|
9
9
|
</button>
|
|
10
10
|
<navbar-item-content class="navbar-dropdown-wrapper">
|
|
11
11
|
<div
|
|
@@ -52,13 +52,7 @@
|
|
|
52
52
|
key="switcher"
|
|
53
53
|
>
|
|
54
54
|
<a
|
|
55
|
-
class="
|
|
56
|
-
ac-dropdown-button
|
|
57
|
-
is-fullwidth
|
|
58
|
-
is-flex
|
|
59
|
-
is-justify-content-space-between
|
|
60
|
-
is-align-items-center
|
|
61
|
-
"
|
|
55
|
+
class="ac-dropdown-button is-fullwidth is-flex is-justify-content-space-between is-align-items-center"
|
|
62
56
|
@click="toggleList()"
|
|
63
57
|
>
|
|
64
58
|
<span>Switch Account</span>
|
|
@@ -93,13 +87,7 @@
|
|
|
93
87
|
/>
|
|
94
88
|
</div>
|
|
95
89
|
<div
|
|
96
|
-
class="
|
|
97
|
-
is-flex
|
|
98
|
-
is-align-items-center
|
|
99
|
-
is-justify-content-space-between
|
|
100
|
-
is-fullwidth
|
|
101
|
-
ml-10
|
|
102
|
-
"
|
|
90
|
+
class="is-flex is-align-items-center is-justify-content-space-between is-fullwidth ml-10"
|
|
103
91
|
>
|
|
104
92
|
<div class="org-info">
|
|
105
93
|
<strong
|
|
@@ -117,12 +105,7 @@
|
|
|
117
105
|
</div>
|
|
118
106
|
<span
|
|
119
107
|
v-if="idx === 0"
|
|
120
|
-
class="
|
|
121
|
-
material-icons-outlined
|
|
122
|
-
font-size-18
|
|
123
|
-
ml-10
|
|
124
|
-
is-pulled-right
|
|
125
|
-
"
|
|
108
|
+
class="material-icons-outlined font-size-18 ml-10 is-pulled-right"
|
|
126
109
|
>
|
|
127
110
|
check
|
|
128
111
|
</span>
|
|
@@ -167,3 +167,68 @@ export default {
|
|
|
167
167
|
},
|
|
168
168
|
};
|
|
169
169
|
</script>
|
|
170
|
+
<style lang="scss" scoped>
|
|
171
|
+
.inner-table-pagination {
|
|
172
|
+
padding: 4px 20px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.pagination-item {
|
|
176
|
+
ul {
|
|
177
|
+
li {
|
|
178
|
+
display: inline-block;
|
|
179
|
+
a {
|
|
180
|
+
display: block;
|
|
181
|
+
width: 20px;
|
|
182
|
+
text-align: center;
|
|
183
|
+
font-size: 13px;
|
|
184
|
+
font-weight: 500;
|
|
185
|
+
border-radius: 4px;
|
|
186
|
+
border: 1px solid $primary-90;
|
|
187
|
+
color: $primary;
|
|
188
|
+
margin-left: 4px;
|
|
189
|
+
|
|
190
|
+
&:hover {
|
|
191
|
+
background-color: $primary !important;
|
|
192
|
+
color: $white-100;
|
|
193
|
+
border: 1px solid $primary-90;
|
|
194
|
+
}
|
|
195
|
+
&.previous {
|
|
196
|
+
background-color: $primary-97;
|
|
197
|
+
}
|
|
198
|
+
&.next {
|
|
199
|
+
background-color: $primary-97;
|
|
200
|
+
}
|
|
201
|
+
&.is-current {
|
|
202
|
+
background-color: $primary;
|
|
203
|
+
color: $white-100;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.counting-page,
|
|
211
|
+
.pagination-filter {
|
|
212
|
+
color: $primary-30;
|
|
213
|
+
font-size: 12px;
|
|
214
|
+
span {
|
|
215
|
+
font-weight: 500;
|
|
216
|
+
padding: 0 4px;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
.pagination-filter {
|
|
220
|
+
select {
|
|
221
|
+
background-color: $primary-97;
|
|
222
|
+
border: 1px solid $primary-90;
|
|
223
|
+
border-radius: 2px;
|
|
224
|
+
margin-left: 4px;
|
|
225
|
+
height: 22px;
|
|
226
|
+
padding: 0 4px;
|
|
227
|
+
&:focus,
|
|
228
|
+
&:active,
|
|
229
|
+
&:focus-visible {
|
|
230
|
+
border: 1px solid $primary;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
</style>
|
|
@@ -45,20 +45,23 @@ export default {
|
|
|
45
45
|
if (n) {
|
|
46
46
|
this.$nextTick(() => {
|
|
47
47
|
setTimeout(() => {
|
|
48
|
-
const top =
|
|
48
|
+
const top =
|
|
49
|
+
(this.$refs.sidebarItem &&
|
|
50
|
+
this.$refs.sidebarItem.getBoundingClientRect().top) ||
|
|
51
|
+
0;
|
|
49
52
|
// preventing scroll to options that are already visible
|
|
50
53
|
if (top > window.innerHeight - 200) {
|
|
51
54
|
// scroll to selected option item
|
|
52
55
|
this.$refs.sidebarItem.scrollIntoView({
|
|
53
|
-
behavior:
|
|
54
|
-
block: "center"
|
|
56
|
+
behavior: "smooth",
|
|
57
|
+
block: "center",
|
|
55
58
|
});
|
|
56
59
|
}
|
|
57
|
-
}, 500);
|
|
60
|
+
}, 500);
|
|
58
61
|
});
|
|
59
62
|
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
63
66
|
};
|
|
64
67
|
</script>
|