@appscode/design-system 1.0.43-alpha.16 → 1.0.43-alpha.162

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 (109) hide show
  1. package/base/utilities/_default.scss +269 -4
  2. package/base/utilities/_derived-variables.scss +0 -1
  3. package/base/utilities/_initial-variables.scss +17 -176
  4. package/base/utilities/_mixin.scss +1 -17
  5. package/base/utilities/_typography.scss +14 -4
  6. package/base/utilities/dark-theme.scss +25 -0
  7. package/components/_ac-alert-box.scss +13 -5
  8. package/components/_ac-card.scss +44 -8
  9. package/components/_ac-code-highlight.scss +5 -1
  10. package/components/_ac-content-layout.scss +2 -2
  11. package/components/_ac-input.scss +63 -23
  12. package/components/_ac-multi-select.scss +187 -5
  13. package/components/_ac-options.scss +24 -9
  14. package/components/_ac-select-box.scss +14 -4
  15. package/components/_ac-table.scss +5 -3
  16. package/components/_ac-tabs.scss +39 -3
  17. package/components/_ac-terminal.scss +270 -0
  18. package/components/_app-drawer.scss +2 -2
  19. package/components/_breadcumb.scss +2 -0
  20. package/components/_buttons.scss +39 -7
  21. package/components/_card-body-wrapper.scss +2 -2
  22. package/components/_dashboard-header.scss +32 -0
  23. package/components/_direct-deploy.scss +69 -0
  24. package/components/_go-to-top.scss +1 -1
  25. package/components/_graph.scss +45 -0
  26. package/components/_image-upload.scss +5 -3
  27. package/components/_left-sidebar-menu.scss +193 -39
  28. package/components/_monaco-editor.scss +1 -1
  29. package/components/_navbar.scss +108 -7
  30. package/components/_overview-info.scss +4 -4
  31. package/components/_pagination.scss +8 -0
  32. package/components/_payment-card.scss +10 -1
  33. package/components/_preview-modal.scss +15 -4
  34. package/components/_pricing-table.scss +1 -1
  35. package/components/_progress-bar.scss +4 -4
  36. package/components/_subscription-card.scss +12 -5
  37. package/components/_table-of-content.scss +1 -1
  38. package/components/_tfa.scss +69 -0
  39. package/components/_transitions.scss +261 -0
  40. package/components/_wizard.scss +15 -3
  41. package/components/ac-toaster/_ac-toasted.scss +1 -1
  42. package/components/bbum/_card-team.scss +15 -7
  43. package/components/bbum/_information-center.scss +15 -1
  44. package/components/bbum/_mobile-desktop.scss +1 -1
  45. package/components/bbum/_sign-up-notification.scss +3 -3
  46. package/components/bbum/_single-post-preview.scss +1 -1
  47. package/components/bbum/_user-profile.scss +97 -90
  48. package/components/ui-builder/_ui-builder.scss +19 -2
  49. package/components/ui-builder/_vue-open-api.scss +104 -0
  50. package/main.scss +4 -0
  51. package/package.json +2 -7
  52. package/plugins/theme.js +4 -0
  53. package/plugins/vue-toaster.js +3 -0
  54. package/vue-components/v2/banner/Banner.vue +2 -2
  55. package/vue-components/v2/breadcrumbs/Breadcrumb.vue +97 -0
  56. package/vue-components/v2/button/Button.vue +5 -0
  57. package/vue-components/v2/button/DownloadBtn.vue +45 -0
  58. package/vue-components/v2/card/PaymentCards.vue +11 -2
  59. package/vue-components/v2/content/ContentTable.vue +12 -7
  60. package/vue-components/v2/editor/Editor.vue +36 -5
  61. package/vue-components/v2/editor/FilteredFileEditor.vue +188 -0
  62. package/vue-components/v2/editor/MonacoEditor.vue +125 -0
  63. package/vue-components/v2/editor/ResourceKeyValueEditor.vue +209 -0
  64. package/vue-components/v2/loaders/ResourceLoader.vue +101 -0
  65. package/vue-components/v2/loaders/SidebarLoader.vue +43 -0
  66. package/vue-components/v2/modal/Modal.vue +38 -13
  67. package/vue-components/v2/modals/DeleteConfirmationModal.vue +77 -0
  68. package/vue-components/v2/modals/JsonShowModal.vue +12 -2
  69. package/vue-components/v2/navbar/Appdrawer.vue +10 -9
  70. package/vue-components/v2/navbar/ThemeMode.vue +120 -0
  71. package/vue-components/v2/navbar/User.vue +202 -19
  72. package/vue-components/v2/preloader/Preloader.vue +5 -5
  73. package/vue-components/v2/sidebar/ClusterSwitcher.vue +126 -0
  74. package/vue-components/v2/sidebar/SidebarItem.vue +23 -1
  75. package/vue-components/v2/sidebar/SidebarItemWithDropDown.vue +19 -20
  76. package/vue-components/v2/table/Table.vue +44 -8
  77. package/vue-components/v2/table/TableRow.vue +17 -8
  78. package/vue-components/v2/table/table-cell/CellValue.vue +31 -4
  79. package/vue-components/v2/table/table-cell/GenericCell.vue +56 -0
  80. package/vue-components/v2/table/table-cell/ObjectCell.vue +4 -1
  81. package/vue-components/v2/tabs/EditorTabs.vue +1 -1
  82. package/vue-components/v3/button/Button.vue +5 -0
  83. package/vue-components/v3/content/ContentTable.vue +5 -0
  84. package/vue-components/v3/editor/Editor.vue +50 -30
  85. package/vue-components/v3/editor/FilteredFileEditor.vue +166 -0
  86. package/vue-components/v3/editor/MonacoEditor.vue +131 -0
  87. package/vue-components/v3/editor/ResourceKeyValueEditor.vue +124 -0
  88. package/vue-components/v3/form/Form.vue +63 -0
  89. package/vue-components/v3/form-fields/Input.vue +10 -10
  90. package/vue-components/v3/header/HeaderItem.vue +5 -0
  91. package/vue-components/v3/header/HeaderItems.vue +5 -0
  92. package/vue-components/v3/loaders/ResourceLoader.vue +83 -0
  93. package/vue-components/v3/loaders/SidebarLoader.vue +34 -0
  94. package/vue-components/v3/modal/Modal.vue +39 -16
  95. package/vue-components/v3/modals/DeleteConfirmationModal.vue +83 -0
  96. package/vue-components/v3/modals/JsonShowModal.vue +25 -16
  97. package/vue-components/v3/navbar/Appdrawer.vue +12 -7
  98. package/vue-components/v3/navbar/ThemeMode.vue +123 -0
  99. package/vue-components/v3/navbar/User.vue +176 -16
  100. package/vue-components/v3/sidebar/ClusterSwitcher.vue +133 -0
  101. package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +120 -0
  102. package/vue-components/v3/table/MultiInfoTable.vue +143 -0
  103. package/vue-components/v3/table/Table.vue +34 -11
  104. package/vue-components/v3/table/TableContainer.vue +34 -0
  105. package/vue-components/v3/table/TableRow.vue +1 -1
  106. package/vue-components/v3/table/table-cell/CellValue.vue +26 -3
  107. package/vue-components/v3/table/table-cell/GenericCell.vue +62 -0
  108. package/vue-components/v3/table/table-cell/ObjectCell.vue +5 -1
  109. package/vue-components/v3/tabs/EditorTabs.vue +1 -1
@@ -0,0 +1,209 @@
1
+ <template>
2
+ <content-table
3
+ :table-title="title"
4
+ :searchable="isSearchable"
5
+ :hide-header="hideHeader"
6
+ >
7
+ <template #content-controls>
8
+ <header-item v-if="showHideBtn">
9
+ <ac-button
10
+ modifier-classes="is-square is-primary"
11
+ :icon-class="toggleHideValue ? 'eye-slash' : 'eye'"
12
+ @click.prevent="toggleHideValue = !toggleHideValue"
13
+ />
14
+ </header-item>
15
+ <header-item v-if="showCopyBtn">
16
+ <ac-button
17
+ modifier-classes="is-square is-primary"
18
+ icon-class="copy"
19
+ v-clipboard:copy="decode(activeFile)"
20
+ v-clipboard:success="onCopy"
21
+ v-clipboard:error="onError"
22
+ />
23
+ </header-item>
24
+ <header-item v-if="showDownloadBtn">
25
+ <download-btn
26
+ :file-data="decode(activeFile)"
27
+ :file-name="activeFile.name"
28
+ />
29
+ </header-item>
30
+ <header-item v-if="showUpdateBtn && !isEditorReadOnly">
31
+ <ac-button
32
+ modifier-classes="is-square is-primary"
33
+ icon-class="floppy-o"
34
+ :class="{ 'is-loading': isUpdateActive }"
35
+ @click.prevent="$emit('updateData', activeKey, activeFile)"
36
+ />
37
+ </header-item>
38
+ <header-item v-if="showDeleteBtn">
39
+ <ac-button
40
+ modifier-classes="is-square is-danger"
41
+ icon-class="trash"
42
+ @click.prevent="showDeleteDataModal = true"
43
+ />
44
+ <delete-confirmation-modal
45
+ title="Delete Resource"
46
+ message="Do you want to delete "
47
+ :item-name="activeFile.name"
48
+ :open="showDeleteDataModal"
49
+ :is-delete-active="deleteModalStatus === 'loading'"
50
+ @delete-confirmation-modal$confirm="confirmDelete"
51
+ @closemodal="showDeleteDataModal = false"
52
+ />
53
+ </header-item>
54
+ <slot name="content-action" />
55
+ </template>
56
+ <template #content="{ searchText }">
57
+ <filtered-file-editor
58
+ :search-text="searchText"
59
+ :toggle-hide-value="toggleHideValue"
60
+ :is-preview-loading="isPreviewLoading"
61
+ :is-editor-read-only="isEditorReadOnly"
62
+ :preview-yamls="previewYamls"
63
+ :show-minimap="showMinimap"
64
+ :editor-height="editorHeight"
65
+ :loader-color="loaderColor"
66
+ :theme="theme"
67
+ :key="theme"
68
+ @setActiveKey="setActiveKey"
69
+ />
70
+ </template>
71
+ </content-table>
72
+ </template>
73
+ <script>
74
+ export default {
75
+ components: {
76
+ AcButton: () => import("./../button/Button.vue"),
77
+ Editor: () => import("./../editor/Editor.vue"),
78
+ ContentTable: () => import("./../content/ContentTable.vue"),
79
+ HeaderItem: () => import("./../header/HeaderItem.vue"),
80
+ DownloadBtn: () => import("./../button/DownloadBtn.vue"),
81
+ DeleteConfirmationModal: () =>
82
+ import("./../modals/DeleteConfirmationModal.vue"),
83
+ FilteredFileEditor: () => import("./FilteredFileEditor.vue")
84
+ },
85
+ props: {
86
+ title: {
87
+ type: String,
88
+ default: "Title"
89
+ },
90
+ isSearchable: {
91
+ type: Boolean,
92
+ default: false
93
+ },
94
+ isPreviewLoading: {
95
+ type: Boolean,
96
+ default: false
97
+ },
98
+ isEditorReadOnly: {
99
+ type: Boolean,
100
+ default: false
101
+ },
102
+ previewYamls: {
103
+ type: Array,
104
+ default: () => {
105
+ [];
106
+ }
107
+ },
108
+ visibleBtn: {
109
+ type: Object,
110
+ default: () => {
111
+ return {};
112
+ }
113
+ },
114
+ showMinimap: {
115
+ type: Boolean,
116
+ default: false
117
+ },
118
+ isUpdateActive: {
119
+ type: Boolean,
120
+ default: false
121
+ },
122
+ deleteModalStatus: {
123
+ type: String,
124
+ default: "closed"
125
+ },
126
+ editorHeight: {
127
+ type: Number,
128
+ default: 60
129
+ },
130
+ hideHeader: {
131
+ type: Boolean,
132
+ default: false
133
+ },
134
+ loaderColor: {
135
+ type: Object,
136
+ default: () => {
137
+ return {};
138
+ }
139
+ },
140
+ theme: {
141
+ type: String,
142
+ default: "light"
143
+ }
144
+ },
145
+ data() {
146
+ return {
147
+ activeKey: 0,
148
+ toggleHideValue: "",
149
+ showDeleteDataModal: false
150
+ };
151
+ },
152
+ computed: {
153
+ activeFile() {
154
+ const activeFile = this.previewYamls.find(
155
+ element => element.uid === this.activeKey
156
+ );
157
+ return activeFile || { content: "", format: "yaml" };
158
+ },
159
+ showCopyBtn() {
160
+ if (this.visibleBtn.showCopyBtn) return true;
161
+ else return false;
162
+ },
163
+ showHideBtn() {
164
+ if (this.visibleBtn.showHideBtn) return true;
165
+ else return false;
166
+ },
167
+ showUpdateBtn() {
168
+ if (this.visibleBtn.showUpdateBtn) return true;
169
+ else return false;
170
+ },
171
+ showDownloadBtn() {
172
+ if (this.visibleBtn.showDownloadBtn) return true;
173
+ else return false;
174
+ },
175
+ showDeleteBtn() {
176
+ if (this.visibleBtn.showDeleteBtn) return true;
177
+ else return false;
178
+ }
179
+ },
180
+ methods: {
181
+ onCopy() {
182
+ this.$toasted.global.success("Value copied successfully").goAway(1000);
183
+ },
184
+ onError() {
185
+ this.$toasted.global.error("Copying failed").goAway(1000);
186
+ },
187
+ decode(str) {
188
+ if (str) return str.content;
189
+ else return "";
190
+ },
191
+ encode(str) {
192
+ if (str) return str.content;
193
+ else return "";
194
+ },
195
+ confirmDelete(flag) {
196
+ if (flag) this.$emit("deleteResource", this.activeKey);
197
+ },
198
+ setActiveKey(key) {
199
+ this.activeKey = key;
200
+ this.toggleHideValue = this.activeFile.isSecret;
201
+ }
202
+ },
203
+ watch: {
204
+ deleteModalStatus(n) {
205
+ if (n === "closed") this.showDeleteDataModal = false;
206
+ }
207
+ }
208
+ };
209
+ </script>
@@ -0,0 +1,101 @@
1
+ <template>
2
+ <div>
3
+ <content-loader
4
+ :width="100"
5
+ :height="40"
6
+ :speed="2"
7
+ :primaryColor="primaryLoaderColor"
8
+ :secondaryColor="secondaryLoaderColor"
9
+ >
10
+ <rect x="1" y="1" rx="1" ry="1" width="14" height="1" />
11
+ <rect x="17" y="1" rx="1" ry="1" width="13" height="1" />
12
+ <rect x="32" y="1" rx="1" ry="1" width="8" height="1" />
13
+
14
+ <rect x="7" y="3" rx="1" ry="1" width="14" height="1" />
15
+ <rect x="23" y="3" rx="1" ry="1" width="13" height="1" />
16
+ <rect x="38" y="3" rx="1" ry="1" width="8" height="1" />
17
+
18
+ <rect x="13" y="5" rx="1" ry="1" width="8" height="1" />
19
+ <rect x="23" y="5" rx="1" ry="1" width="15" height="1" />
20
+ <rect x="40" y="5" rx="1" ry="1" width="4" height="1" />
21
+
22
+ <rect x="13" y="7" rx="1" ry="1" width="10" height="1" />
23
+ <rect x="25" y="7" rx="1" ry="1" width="20" height="1" />
24
+
25
+ <rect x="7" y="10" rx="1" ry="1" width="14" height="1" />
26
+ <rect x="23" y="10" rx="1" ry="1" width="13" height="1" />
27
+ <rect x="38" y="10" rx="1" ry="1" width="8" height="1" />
28
+
29
+ <rect x="13" y="12" rx="1" ry="1" width="8" height="1" />
30
+ <rect x="23" y="12" rx="1" ry="1" width="15" height="1" />
31
+ <rect x="40" y="12" rx="1" ry="1" width="4" height="1" />
32
+
33
+ <rect x="13" y="14" rx="1" ry="1" width="10" height="1" />
34
+ <rect x="25" y="14" rx="1" ry="1" width="20" height="1" />
35
+
36
+ <rect x="7" y="17" rx="1" ry="1" width="14" height="1" />
37
+ <rect x="23" y="17" rx="1" ry="1" width="13" height="1" />
38
+ <rect x="38" y="17" rx="1" ry="1" width="8" height="1" />
39
+
40
+ <rect x="13" y="19" rx="1" ry="1" width="8" height="1" />
41
+ <rect x="23" y="19" rx="1" ry="1" width="15" height="1" />
42
+ <rect x="40" y="19" rx="1" ry="1" width="4" height="1" />
43
+
44
+ <rect x="7" y="22" rx="1" ry="1" width="14" height="1" />
45
+ <rect x="23" y="22" rx="1" ry="1" width="13" height="1" />
46
+ <rect x="38" y="22" rx="1" ry="1" width="8" height="1" />
47
+
48
+ <rect x="13" y="24" rx="1" ry="1" width="8" height="1" />
49
+ <rect x="23" y="24" rx="1" ry="1" width="15" height="1" />
50
+ <rect x="40" y="24" rx="1" ry="1" width="4" height="1" />
51
+
52
+ <rect x="1" y="26" rx="1" ry="1" width="14" height="1" />
53
+ <rect x="17" y="26" rx="1" ry="1" width="13" height="1" />
54
+ <rect x="32" y="26" rx="1" ry="1" width="8" height="1" />
55
+
56
+ <rect x="7" y="29" rx="1" ry="1" width="14" height="1" />
57
+ <rect x="23" y="29" rx="1" ry="1" width="13" height="1" />
58
+ <rect x="38" y="29" rx="1" ry="1" width="8" height="1" />
59
+
60
+ <rect x="13" y="31" rx="1" ry="1" width="8" height="1" />
61
+ <rect x="23" y="31" rx="1" ry="1" width="15" height="1" />
62
+ <rect x="40" y="31" rx="1" ry="1" width="4" height="1" />
63
+
64
+ <rect x="7" y="33" rx="1" ry="1" width="14" height="1" />
65
+ <rect x="23" y="33" rx="1" ry="1" width="13" height="1" />
66
+ <rect x="38" y="33" rx="1" ry="1" width="8" height="1" />
67
+
68
+ <rect x="13" y="35" rx="1" ry="1" width="8" height="1" />
69
+ <rect x="23" y="35" rx="1" ry="1" width="15" height="1" />
70
+ <rect x="40" y="35" rx="1" ry="1" width="4" height="1" />
71
+
72
+ <rect x="13" y="37" rx="1" ry="1" width="8" height="1" />
73
+ <rect x="23" y="37" rx="1" ry="1" width="15" height="1" />
74
+ <rect x="40" y="37" rx="1" ry="1" width="4" height="1" />
75
+
76
+ <rect x="1" y="39" rx="1" ry="1" width="14" height="1" />
77
+ <rect x="17" y="39" rx="1" ry="1" width="13" height="1" />
78
+ <rect x="32" y="39" rx="1" ry="1" width="8" height="1" />
79
+ </content-loader>
80
+ </div>
81
+ </template>
82
+
83
+ <script>
84
+ import { ContentLoader } from "vue-content-loader";
85
+
86
+ export default {
87
+ components: {
88
+ ContentLoader
89
+ },
90
+ props: {
91
+ primaryLoaderColor: {
92
+ type: String,
93
+ default: "#f5f7f9"
94
+ },
95
+ secondaryLoaderColor: {
96
+ type: String,
97
+ default: "#ecebeb"
98
+ }
99
+ }
100
+ };
101
+ </script>
@@ -0,0 +1,43 @@
1
+ <template>
2
+ <div>
3
+ <content-loader
4
+ :width="100"
5
+ :height="175"
6
+ :speed="2"
7
+ :primaryColor="primaryLoaderColor"
8
+ :secondaryColor="secondaryLoaderColor"
9
+ >
10
+ <rect x="2" y="1" rx="3" ry="3" width="96" height="20" />
11
+ <rect x="15" y="23" rx="3" ry="3" width="83" height="15" />
12
+ <rect x="15" y="40" rx="3" ry="3" width="83" height="15" />
13
+ <rect x="15" y="57" rx="3" ry="3" width="83" height="15" />
14
+
15
+ <rect x="2" y="78" rx="3" ry="3" width="96" height="20" />
16
+ <rect x="15" y="100" rx="3" ry="3" width="83" height="15" />
17
+ <rect x="15" y="117" rx="3" ry="3" width="83" height="15" />
18
+ <rect x="15" y="134" rx="3" ry="3" width="83" height="15" />
19
+
20
+ <rect x="2" y="155" rx="3" ry="3" width="96" height="20" />
21
+ </content-loader>
22
+ </div>
23
+ </template>
24
+
25
+ <script>
26
+ import { ContentLoader } from "vue-content-loader";
27
+
28
+ export default {
29
+ components: {
30
+ ContentLoader
31
+ },
32
+ props: {
33
+ primaryLoaderColor: {
34
+ type: String,
35
+ default: "#f5f7f9"
36
+ },
37
+ secondaryLoaderColor: {
38
+ type: String,
39
+ default: "#ecebeb"
40
+ }
41
+ }
42
+ };
43
+ </script>
@@ -6,7 +6,7 @@
6
6
  v-if="showModal"
7
7
  class="ac-modal is-middle-alignment"
8
8
  :class="modifierClasses"
9
- @click.self="destroyModal"
9
+ @click.self="onModalOutsideClick"
10
10
  >
11
11
  <div class="ac-modal-inner">
12
12
  <!-- modal header start -->
@@ -17,7 +17,10 @@
17
17
  <header-item>
18
18
  <ac-button
19
19
  modifier-classes="is-square is-transparent"
20
- :icon-image="require('@/assets/images/icons/close-icon.svg')"
20
+ :disabled="isCloseOptionDisabled"
21
+ :icon-image="
22
+ require('@appscode/design-system-images/icons/close-icon.svg')
23
+ "
21
24
  @click.stop="destroyModal"
22
25
  />
23
26
  </header-item>
@@ -26,7 +29,7 @@
26
29
  <!-- modal header end -->
27
30
 
28
31
  <!-- modal body start -->
29
- <div class="ac-modal-body">
32
+ <div class="ac-modal-body ac-vscrollbar">
30
33
  <div class="ac-modal-content">
31
34
  <!-- freedom content start -->
32
35
  <slot />
@@ -36,7 +39,12 @@
36
39
  <!-- modal body end -->
37
40
 
38
41
  <!-- modal footer start -->
39
- <div class="ac-modal-footer action-footer">
42
+ <div v-if="!hideActionFooter"
43
+ class="ac-modal-footer action-footer is-flex is-align-items-center is-justify-content-space-between"
44
+ >
45
+ <div>
46
+ <slot name="modal-footer-left" />
47
+ </div>
40
48
  <buttons class="has-text-right is-block">
41
49
  <slot name="modal-footer-controls" />
42
50
  </buttons>
@@ -52,28 +60,40 @@ export default {
52
60
  props: {
53
61
  open: {
54
62
  type: Boolean,
55
- default: false,
63
+ default: false
56
64
  },
57
65
  title: {
58
66
  type: String,
59
- default: "Modal",
67
+ default: "Modal"
60
68
  },
61
69
  modifierClasses: {
62
70
  type: String,
63
- default: "",
71
+ default: ""
72
+ },
73
+ isCloseOptionDisabled: {
74
+ type: Boolean,
75
+ default: false
64
76
  },
77
+ ignoreOutsideClick: {
78
+ type: Boolean,
79
+ default: false
80
+ },
81
+ hideActionFooter: {
82
+ type: Boolean,
83
+ default: false
84
+ }
65
85
  },
66
86
 
67
87
  components: {
68
88
  HeaderItems: () => import("../header/HeaderItems.vue"),
69
89
  HeaderItem: () => import("../header/HeaderItem.vue"),
70
90
  Buttons: () => import("../button/Buttons.vue"),
71
- AcButton: () => import("../button/Button.vue"),
91
+ AcButton: () => import("../button/Button.vue")
72
92
  },
73
93
 
74
94
  data() {
75
95
  return {
76
- showModal: false,
96
+ showModal: false
77
97
  };
78
98
  },
79
99
 
@@ -86,8 +106,8 @@ export default {
86
106
  } else {
87
107
  this.destroyModal();
88
108
  }
89
- },
90
- },
109
+ }
110
+ }
91
111
  },
92
112
 
93
113
  methods: {
@@ -97,16 +117,21 @@ export default {
97
117
  this.destroyModal();
98
118
  }
99
119
  },
120
+ onModalOutsideClick() {
121
+ if (this.ignoreOutsideClick) return;
122
+ this.destroyModal();
123
+ },
100
124
  initializeModal() {
101
125
  this.showModal = true;
102
126
  document.addEventListener("keydown", this.onKeyDown);
103
127
  },
104
128
  destroyModal() {
129
+ if (this.isCloseOptionDisabled) return;
105
130
  this.showModal = false;
106
131
  document.removeEventListener("keydown", this.onKeyDown);
107
132
 
108
133
  this.$emit("closemodal", true);
109
- },
110
- },
134
+ }
135
+ }
111
136
  };
112
137
  </script>
@@ -0,0 +1,77 @@
1
+ <template>
2
+ <!-- modal start -->
3
+ <modal
4
+ :title="title"
5
+ modifier-classes="is-normal"
6
+ :open="open"
7
+ @closemodal="closeModal"
8
+ >
9
+ <!-- freedom content start -->
10
+ <div class="action-message pt-35 pb-35 has-text-centered">
11
+ <h5 class="is-message">{{ message }} {{ itemName ? "" : "?" }}</h5>
12
+ <p class="is-description">{{ itemName }} {{ itemName ? "?" : "" }}</p>
13
+ </div>
14
+
15
+ <!-- freedom content end -->
16
+
17
+ <!-- modal footer start -->
18
+ <template #modal-footer-controls>
19
+ <ac-button
20
+ @click.stop="closeModal"
21
+ title="Cancel"
22
+ modifier-classes="is-outlined"
23
+ />
24
+ <ac-button
25
+ modifier-classes="is-danger"
26
+ :is-loader-active="isDeleteActive"
27
+ title="Yes"
28
+ @click.stop="confirm(true)"
29
+ />
30
+ </template>
31
+ </modal>
32
+ <!-- modal end -->
33
+ </template>
34
+
35
+ <script>
36
+ export default {
37
+ components: {
38
+ Modal: () => import("./../modal/Modal.vue"),
39
+ AcButton: () => import("./../button/Button.vue")
40
+ },
41
+ props: {
42
+ open: {
43
+ type: Boolean,
44
+ default: false
45
+ },
46
+ title: {
47
+ type: String,
48
+ default: ""
49
+ },
50
+ message: {
51
+ type: String,
52
+ default: ""
53
+ },
54
+ itemName: {
55
+ type: String,
56
+ default: ""
57
+ },
58
+ isLoading: {
59
+ type: Boolean,
60
+ default: false
61
+ },
62
+ isDeleteActive: {
63
+ type: Boolean,
64
+ default: false
65
+ }
66
+ },
67
+ methods: {
68
+ confirm(response) {
69
+ this.$emit("delete-confirmation-modal$confirm", response);
70
+ },
71
+ closeModal() {
72
+ this.confirm(false);
73
+ this.$emit("closemodal", true);
74
+ }
75
+ }
76
+ };
77
+ </script>
@@ -10,7 +10,9 @@
10
10
  <ac-button
11
11
  modifier-classes="is-square is-primary"
12
12
  icon-class="copy"
13
- v-clipboard:copy="`${editorTitle}: &quot;${editorContent}&quot;`"
13
+ v-clipboard:copy="
14
+ `${editorTitle}: ${JSON.stringify(parsedContent, null, 4)}`
15
+ "
14
16
  v-clipboard:success="onCopy"
15
17
  v-clipboard:error="onError"
16
18
  />
@@ -26,6 +28,8 @@
26
28
  </template>
27
29
 
28
30
  <script>
31
+ import Preloader from "../preloader/Preloader.vue";
32
+ import Banner from "../banner/Banner.vue";
29
33
  export default {
30
34
  props: {
31
35
  open: {
@@ -43,7 +47,13 @@ export default {
43
47
  },
44
48
  components: {
45
49
  Modal: () => import("../modal/Modal.vue"),
46
- Editor: () => import("../editor/Editor.vue"),
50
+ Editor: () => ({
51
+ component: import("../editor/Editor.vue"),
52
+ loading: Preloader,
53
+ delay: 200,
54
+ error: Banner,
55
+ timeout: 100000,
56
+ }),
47
57
  AcButton: () => import("../button/Button.vue"),
48
58
  HeaderItem: () => import("../header/HeaderItem.vue"),
49
59
  },
@@ -1,10 +1,13 @@
1
1
  <template>
2
- <div class="app-drawer-wrapper d-table-cell">
3
- <div class="drawer-icon">
2
+ <div class="app-drawer-wrapper is-flex">
3
+ <div
4
+ class="drawer-icon is-flex is-justify-content-center is-align-items-center"
5
+ >
4
6
  <svg
5
7
  class="gb_We"
6
8
  focusable="false"
7
9
  viewBox="0 0 24 24"
10
+ style="width: 22px;margin-top: 2px;"
8
11
  :style="{ fill: 'white' }"
9
12
  >
10
13
  <path
@@ -20,16 +23,14 @@
20
23
  <article class="media">
21
24
  <figure class="media-left">
22
25
  <p class="image">
23
- <img
24
- :src="app.icon_url"
25
- />
26
+ <img :src="app.icon_url" />
26
27
  </p>
27
28
  </figure>
28
29
  <div class="media-content">
29
30
  <div class="content">
30
31
  <p>
31
- <strong>{{app.title}}</strong>
32
- <span>{{app.sub_title}}</span>
32
+ <strong>{{ app.title }}</strong>
33
+ <span>{{ app.sub_title }}</span>
33
34
  </p>
34
35
  </div>
35
36
  </div>
@@ -50,7 +51,7 @@ export default {
50
51
  }
51
52
  },
52
53
  components: {
53
- NavbarItemContent: () => import("./NavbarItemContent.vue"),
54
- },
54
+ NavbarItemContent: () => import("./NavbarItemContent.vue")
55
+ }
55
56
  };
56
57
  </script>