@appscode/design-system 1.1.0-alpha.8 → 1.1.0-beta.10

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.
Files changed (200) hide show
  1. package/base/_video-player.scss +65 -0
  2. package/base/utilities/_all.scss +6 -5
  3. package/base/utilities/_colors.scss +408 -0
  4. package/base/utilities/_customize-bulma.scss +23 -27
  5. package/base/utilities/_extended.scss +9 -4
  6. package/base/utilities/{_default.scss → _global.scss} +185 -331
  7. package/base/utilities/_layouts.scss +157 -0
  8. package/base/utilities/_mixin.scss +11 -11
  9. package/base/utilities/_spacing.scss +96 -0
  10. package/base/utilities/_typography.scss +56 -24
  11. package/base/utilities/dark-theme.scss +1 -1
  12. package/components/_ac-accordion.scss +117 -117
  13. package/components/_ac-alert-box.scss +205 -263
  14. package/components/_ac-calendar.scss +4 -4
  15. package/components/_ac-card.scss +0 -597
  16. package/components/_ac-code-highlight.scss +6 -6
  17. package/components/_ac-content-layout.scss +165 -165
  18. package/components/_ac-drag.scss +11 -11
  19. package/components/_ac-input.scss +477 -452
  20. package/components/_ac-modal.scss +212 -212
  21. package/components/_ac-multi-select.scss +780 -751
  22. package/components/_ac-options.scss +122 -123
  23. package/components/_ac-select-box.scss +5 -5
  24. package/components/_ac-table.scss +503 -502
  25. package/components/_ac-tabs.scss +39 -38
  26. package/components/_ac-tags.scss +116 -116
  27. package/components/_ac-terminal.scss +95 -51
  28. package/components/_add-card.scss +3 -3
  29. package/components/_all.scss +29 -26
  30. package/components/_app-drawer.scss +0 -134
  31. package/components/_breadcumb.scss +0 -71
  32. package/components/_buttons.scss +779 -779
  33. package/components/_card-body-wrapper.scss +5 -5
  34. package/components/_dashboard-header.scss +0 -115
  35. package/components/_direct-deploy.scss +8 -8
  36. package/components/_go-to-top.scss +1 -1
  37. package/components/_image-upload.scss +5 -5
  38. package/components/_left-sidebar-menu.scss +448 -579
  39. package/components/_monaco-editor.scss +1 -1
  40. package/components/_navbar.scss +786 -752
  41. package/components/_nested-list.scss +1 -1
  42. package/components/_overview-info.scss +7 -7
  43. package/components/_overview-page.scss +4 -4
  44. package/components/_pagination.scss +106 -124
  45. package/components/_payment-card.scss +21 -21
  46. package/components/_preloader.scss +1 -1
  47. package/components/_preview-modal.scss +18 -18
  48. package/components/_pricing-table.scss +10 -10
  49. package/components/_progress-bar.scss +12 -12
  50. package/components/_subscription-card.scss +14 -14
  51. package/components/_table-of-content.scss +4 -4
  52. package/components/_tfa.scss +9 -9
  53. package/components/_widget-menu.scss +247 -247
  54. package/components/_wizard.scss +557 -559
  55. package/components/ac-toaster/_ac-toasted.scss +7 -12
  56. package/components/bbum/_activities-header.scss +1 -1
  57. package/components/bbum/_card-team.scss +12 -12
  58. package/components/bbum/_information-center.scss +13 -13
  59. package/components/bbum/_left-sidebar.scss +8 -8
  60. package/components/bbum/_mobile-desktop.scss +7 -7
  61. package/components/bbum/_post.scss +5 -5
  62. package/components/bbum/_sign-up-notification.scss +10 -10
  63. package/components/bbum/_single-post-preview.scss +21 -21
  64. package/components/bbum/_user-profile.scss +10 -10
  65. package/components/ui-builder/_ui-builder.scss +15 -15
  66. package/components/ui-builder/_vue-open-api.scss +515 -2
  67. package/layouts/_code-preview.scss +11 -11
  68. package/main.scss +26 -10
  69. package/package.json +1 -1
  70. package/plugins/theme.js +11 -9
  71. package/plugins/vue-toaster.js +1 -1
  72. package/vue-components/plugins/time-convert.js +49 -0
  73. package/vue-components/text.vue +1 -0
  74. package/vue-components/types/cluster.ts +6 -0
  75. package/vue-components/types/importFlow.ts +16 -0
  76. package/vue-components/types/longRunningTasks.ts +20 -0
  77. package/vue-components/types/notification.ts +6 -0
  78. package/vue-components/types/previewYaml.ts +8 -0
  79. package/vue-components/types/table.ts +54 -0
  80. package/vue-components/types/theme.ts +10 -0
  81. package/vue-components/types/user.ts +22 -0
  82. package/vue-components/v2/card/Card.vue +1 -1
  83. package/vue-components/v2/card/OverviewCards.vue +17 -2
  84. package/vue-components/v2/editor/FilteredFileEditor.vue +2 -2
  85. package/vue-components/v2/editor/ResourceKeyValueEditor.vue +21 -21
  86. package/vue-components/v2/icons/Ellipsis.vue +2 -1
  87. package/vue-components/v2/modal/Modal.vue +0 -5
  88. package/vue-components/v2/navbar/Appdrawer.vue +37 -12
  89. package/vue-components/v2/navbar/Navbar.vue +3 -3
  90. package/vue-components/v2/navbar/NavbarItem.vue +3 -1
  91. package/vue-components/v2/navbar/NavbarItemContent.vue +1 -1
  92. package/vue-components/v2/navbar/User.vue +5 -22
  93. package/vue-components/v2/pagination/Pagination.vue +66 -0
  94. package/vue-components/v2/sidebar/SidebarItem.vue +10 -7
  95. package/vue-components/v3/accordion/Accordion.vue +151 -0
  96. package/vue-components/v3/alert/Alert.vue +238 -0
  97. package/vue-components/v3/alert/Toast.vue +79 -0
  98. package/vue-components/v3/banner/Banner.vue +10 -0
  99. package/vue-components/v3/breadcrumbs/Breadcrumb.vue +104 -0
  100. package/vue-components/v3/button/Button.vue +839 -58
  101. package/vue-components/v3/button/Buttons.vue +6 -0
  102. package/vue-components/v3/button/DownloadBtn.vue +31 -0
  103. package/vue-components/v3/cards/Card.vue +32 -0
  104. package/vue-components/v3/cards/CardContent.vue +7 -0
  105. package/vue-components/v3/cards/CardHeader.vue +14 -0
  106. package/vue-components/v3/cards/Cards.vue +7 -0
  107. package/vue-components/v3/cards/Cluster.vue +149 -0
  108. package/vue-components/v3/cards/Counter.vue +39 -0
  109. package/vue-components/v3/cards/FeatureCard.vue +71 -0
  110. package/vue-components/v3/cards/FeatureCards.vue +6 -0
  111. package/vue-components/v3/cards/InfoCard.vue +243 -0
  112. package/vue-components/v3/cards/Monitoring.vue +94 -0
  113. package/vue-components/v3/cards/OverviewCard.vue +24 -0
  114. package/vue-components/v3/cards/OverviewCards.vue +31 -0
  115. package/vue-components/v3/cards/Payment.vue +62 -0
  116. package/vue-components/v3/cards/Vendor.vue +85 -0
  117. package/vue-components/v3/content/ContentHeader.vue +39 -30
  118. package/vue-components/v3/content/ContentLayout.vue +20 -0
  119. package/vue-components/v3/content/ContentTable.vue +43 -62
  120. package/vue-components/v3/dropdown/DropdownDivider.vue +2 -0
  121. package/vue-components/v3/dropdown/DropdownItem.vue +2 -0
  122. package/vue-components/v3/dropdown/DropdownMenu.vue +85 -91
  123. package/vue-components/v3/editor/Editor.vue +100 -113
  124. package/vue-components/v3/editor/FilteredFileEditor.vue +317 -127
  125. package/vue-components/v3/editor/ResourceKeyValueEditor.vue +70 -94
  126. package/vue-components/v3/footer/FooterArea.vue +34 -0
  127. package/vue-components/v3/footer/FooterItem.vue +32 -0
  128. package/vue-components/v3/footer/FooterItems.vue +15 -0
  129. package/vue-components/v3/footer/Info.vue +23 -0
  130. package/vue-components/v3/footer/Status.vue +42 -0
  131. package/vue-components/v3/footer/Usage.vue +44 -0
  132. package/vue-components/v3/form/Form.vue +24 -33
  133. package/vue-components/v3/form/FormFooterControl.vue +7 -0
  134. package/vue-components/v3/form/FormFooterControls.vue +7 -0
  135. package/vue-components/v3/form-fields/AcSingleInput.vue +528 -0
  136. package/vue-components/v3/form-fields/Input.vue +19 -14
  137. package/vue-components/v3/header/Header.vue +119 -25
  138. package/vue-components/v3/header/HeaderItem.vue +18 -0
  139. package/vue-components/v3/header/HeaderItems.vue +4 -0
  140. package/vue-components/v3/icons/Ellipsis.vue +2 -0
  141. package/vue-components/v3/loaders/InfoCardLoader.vue +65 -0
  142. package/vue-components/v3/loaders/ResourceLoader.vue +4 -12
  143. package/vue-components/v3/loaders/SidebarLoader.vue +4 -12
  144. package/vue-components/v3/long-running-tasks/LongRunningTaskItem.vue +17 -15
  145. package/vue-components/v3/modal/Modal.vue +292 -96
  146. package/vue-components/v3/modals/DeleteConfirmationModal.vue +37 -50
  147. package/vue-components/v3/modals/JsonShowModal.vue +62 -68
  148. package/vue-components/v3/modals/LongRunningTasksModal.vue +145 -143
  149. package/vue-components/v3/navbar/Appdrawer.vue +196 -51
  150. package/vue-components/v3/navbar/Navbar.vue +298 -0
  151. package/vue-components/v3/navbar/NavbarItem.vue +81 -0
  152. package/vue-components/v3/navbar/NavbarItemContent.vue +284 -0
  153. package/vue-components/v3/navbar/Notification.vue +179 -0
  154. package/vue-components/v3/navbar/ThemeMode.vue +128 -112
  155. package/vue-components/v3/navbar/User.vue +383 -268
  156. package/vue-components/v3/notification/AlertBox.vue +41 -44
  157. package/vue-components/v3/notification/Notification.vue +49 -43
  158. package/vue-components/v3/notification/NotificationItem.vue +51 -19
  159. package/vue-components/v3/option-dots/Options.vue +188 -0
  160. package/vue-components/v3/pagination/Pagination.vue +203 -99
  161. package/vue-components/v3/preloader/Preloader.vue +23 -0
  162. package/vue-components/v3/searchbars/SearchBar.vue +59 -34
  163. package/vue-components/v3/sidebar/AccentColorPicker.vue +97 -0
  164. package/vue-components/v3/sidebar/ClusterSwitcher.vue +835 -81
  165. package/vue-components/v3/sidebar/Sidebar.vue +267 -0
  166. package/vue-components/v3/sidebar/SidebarBody.vue +7 -0
  167. package/vue-components/v3/sidebar/SidebarFooter.vue +80 -0
  168. package/vue-components/v3/sidebar/SidebarHeader.vue +124 -0
  169. package/vue-components/v3/sidebar/SidebarItem.vue +62 -0
  170. package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +101 -104
  171. package/vue-components/v3/sidebar/SidebarMenuList.vue +9 -0
  172. package/vue-components/v3/sidebar/Steps.vue +152 -0
  173. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabs.vue +128 -0
  174. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +29 -0
  175. package/vue-components/v3/sidebar/sidebar-tabs/TabsContent.vue +99 -0
  176. package/vue-components/v3/tab/TabItem.vue +10 -12
  177. package/vue-components/v3/tab/Tabs.vue +9 -0
  178. package/vue-components/v3/tab/TabsBody.vue +7 -0
  179. package/vue-components/v3/table/EmptyTableInfo.vue +8 -0
  180. package/vue-components/v3/table/FakeTableCell.vue +22 -31
  181. package/vue-components/v3/table/InfoTable.vue +89 -61
  182. package/vue-components/v3/table/MultiInfoTable.vue +72 -95
  183. package/vue-components/v3/table/Table.vue +589 -151
  184. package/vue-components/v3/table/TableCell.vue +20 -23
  185. package/vue-components/v3/table/TableContainer.vue +50 -28
  186. package/vue-components/v3/table/TableRow.vue +63 -85
  187. package/vue-components/v3/table/table-cell/ArrayCell.vue +67 -79
  188. package/vue-components/v3/table/table-cell/CellValue.vue +97 -103
  189. package/vue-components/v3/table/table-cell/GenericCell.vue +43 -42
  190. package/vue-components/v3/table/table-cell/ObjectCell.vue +67 -79
  191. package/vue-components/v3/table/table-cell/ValueWithModal.vue +22 -31
  192. package/vue-components/v3/tabs/EditorTabs.vue +18 -24
  193. package/vue-components/v3/tag/Tag.vue +15 -12
  194. package/vue-components/v3/tag/Tags.vue +7 -0
  195. package/vue-components/v3/terminal/LongRunningTaskTerminal.vue +26 -23
  196. package/base/utilities/_derived-variables.scss +0 -25
  197. package/base/utilities/_initial-variables.scss +0 -215
  198. package/components/_basic-card.scss +0 -124
  199. package/mixins/stickyContent.js +0 -141
  200. package/plugins/caching.ts +0 -243
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 "~bulma";
5
- @import "~bulma-checkradio";
6
- @import "~bulma-switch";
7
- @import "~bulma-tooltip";
8
- @import url("https://fonts.googleapis.com/css2?family=Material+Icons&display=swap");
9
- @import "vue-multiselect/dist/vue-multiselect.min.css";
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 "~assets/design-system/base/utilities/all";
14
+ @import "./base/utilities/all";
13
15
 
14
16
  // LAYOUTS
15
- @import "~assets/design-system/layouts/all";
17
+ @import "./layouts/all";
16
18
 
17
19
  // COMPONENTS
18
- @import "~assets/design-system/components/all";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.1.0-alpha.8",
3
+ "version": "1.1.0-beta.10",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
package/plugins/theme.js CHANGED
@@ -99,9 +99,9 @@ export function getThemeHSL() {
99
99
  const saturation = getComputedStyle(
100
100
  document.documentElement
101
101
  ).getPropertyValue("--hsl-saturation");
102
- const lightness = getComputedStyle(
103
- document.documentElement
104
- ).getPropertyValue("--hsl-lightness");
102
+ const lightness = getComputedStyle(document.documentElement).getPropertyValue(
103
+ "--hsl-lightness"
104
+ );
105
105
 
106
106
  return {
107
107
  hue,
@@ -115,9 +115,9 @@ export function setThemeHSL(h, s, l) {
115
115
  document.documentElement.style.setProperty("--hsl-lightness", l);
116
116
  }
117
117
  export function setFontHSL(h, s, l) {
118
- document.documentElement.style.setProperty("--font-hsl-hue", h);
119
- document.documentElement.style.setProperty("--font-hsl-saturation", s);
120
- document.documentElement.style.setProperty("--font-hsl-lightness", l);
118
+ document.documentElement.style.setProperty("--font-hsl-hue", h);
119
+ document.documentElement.style.setProperty("--font-hsl-saturation", s);
120
+ document.documentElement.style.setProperty("--font-hsl-lightness", l);
121
121
  }
122
122
  export function getFontHSL() {
123
123
  const hue = getComputedStyle(document.documentElement).getPropertyValue(
@@ -126,9 +126,9 @@ export function getFontHSL() {
126
126
  const saturation = getComputedStyle(
127
127
  document.documentElement
128
128
  ).getPropertyValue("--font-hsl-saturation");
129
- const lightness = getComputedStyle(
130
- document.documentElement
131
- ).getPropertyValue("--font-hsl-lightness");
129
+ const lightness = getComputedStyle(document.documentElement).getPropertyValue(
130
+ "--font-hsl-lightness"
131
+ );
132
132
 
133
133
  return {
134
134
  hue,
@@ -140,3 +140,5 @@ export const loaderLightThemePrimaryColor = "#f5f7f9";
140
140
  export const loaderDarkThemePrimaryColor = "#2e323c";
141
141
  export const loaderLightThemeSecondaryColor = "#ecebeb";
142
142
  export const loaderDarkThemeSecondaryColor = "#21272e";
143
+ export const sidebarLoaderLightThemePrimaryColor = "#0F4371";
144
+ export const sidebarLoaderLightThemeSecondaryColor = "#0C365A";
@@ -43,7 +43,7 @@ module.exports = {
43
43
  icon: "fa-warning",
44
44
  duration: 20000,
45
45
  type: "error",
46
- className: "ac-toast is-error",
46
+ className: "ac-toast is-danger",
47
47
  },
48
48
  },
49
49
  {
@@ -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>
@@ -0,0 +1,6 @@
1
+ export interface SelectedClusterType {
2
+ name: string;
3
+ displayName: string;
4
+ provider: string;
5
+ location: string;
6
+ }
@@ -0,0 +1,16 @@
1
+ interface Substep {
2
+ component: string;
3
+ identifier: number;
4
+ title: string;
5
+ isVisible: boolean;
6
+ isValid: () => boolean;
7
+ nextStep: () => void;
8
+ nextStepButtonText?: () => string;
9
+ }
10
+
11
+ export interface Step {
12
+ identifier: number;
13
+ title: string;
14
+ isVisible: boolean;
15
+ substeps: Substep[];
16
+ }
@@ -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,6 @@
1
+ import type { TaskLog } from "./longRunningTasks";
2
+
3
+ export interface Notification extends TaskLog {
4
+ id: string;
5
+ time: number;
6
+ }
@@ -0,0 +1,8 @@
1
+ export interface PreviewYamlType {
2
+ content: string;
3
+ initContent: string;
4
+ isSecret: boolean;
5
+ name: string;
6
+ type: string;
7
+ uid: string;
8
+ }
@@ -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,10 @@
1
+ interface Theme {
2
+ displayName: string;
3
+ iconClass: string;
4
+ }
5
+
6
+ export interface ThemeModes {
7
+ light: Theme;
8
+ dark: Theme;
9
+ system: Theme;
10
+ }
@@ -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,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- class="ac-single-card has-text-centered style-three"
3
+ class="ac-single-card has-text-centered vendor-card"
4
4
  :class="{ 'is-selected': isSelected }"
5
5
  @click="$emit('click', $event)"
6
6
  data-testid="card-list-item"
@@ -1,5 +1,20 @@
1
1
  <template>
2
- <div class="overview-card">
3
- <slot />
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>
@@ -7,7 +7,7 @@
7
7
  v-if="isPreviewLoading || (!isPreviewLoading && previewYamls)"
8
8
  class="left-content"
9
9
  >
10
- <div class="ac-files ac-hscrollbar pt-0">
10
+ <div class="ac-files ac-hscrollbar ac-vscrollbar pt-0">
11
11
  <ul v-if="!isPreviewLoading">
12
12
  <li
13
13
  v-for="(previewYaml, idx) in filteredYamls"
@@ -59,8 +59,8 @@
59
59
  </div>
60
60
  </template>
61
61
  <script>
62
- import Preloader from "../preloader/Preloader.vue";
63
62
  import Banner from "../banner/Banner.vue";
63
+ import Preloader from "../preloader/Preloader.vue";
64
64
  export default {
65
65
  components: {
66
66
  Editor: () => ({
@@ -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>
@@ -1,3 +1,4 @@
1
1
  <template>
2
- <i aria-hidden="true" class="fa fa-ellipsis-h"></i>
2
+ <!-- <i aria-hidden="true" class="fa fa-ellipsis-h"></i> -->
3
+ <span>More...</span>
3
4
  </template>
@@ -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 is-flex is-justify-content-center is-align-items-center"
4
+ class="drawer-icon is-flex is-justify-content-center is-align-items-center"
5
5
  >
6
6
  <svg
7
- class="gb_We"
8
- focusable="false"
9
- viewBox="0 0 24 24"
10
- style="width: 22px;margin-top: 2px;"
11
- :style="{ fill: 'white' }"
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,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM6,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM6,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM16,6c0,1.1 0.9,2 2,2s2,-0.9 2,-2 -0.9,-2 -2,-2 -2,0.9 -2,2zM12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2z"
15
- ></path>
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>
@@ -2,4 +2,6 @@
2
2
  <div class="ac-menu-item">
3
3
  <slot />
4
4
  </div>
5
- </template>
5
+ </template>
6
+
7
+ <style></style>
@@ -2,4 +2,4 @@
2
2
  <div class="ac-menu-content">
3
3
  <slot />
4
4
  </div>
5
- </template>
5
+ </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>