From d09e2785ebc1a23e56385f582d559524a66970fe Mon Sep 17 00:00:00 2001
From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com>
Date: Mon, 2 Sep 2024 14:19:03 +0000
Subject: [PATCH] feat(nc-gui): customizable extension header
---
.../components/extensions/Extension.vue | 50 +--
.../extensions/Extension/Header.vue | 113 ++++---
.../extensions/Extension/HeaderMenu.vue | 12 +-
.../extensions/Extension/Wrapper.vue | 30 ++
.../nc-gui/extensions/data-exporter/index.vue | 320 +++++++++---------
.../nc-gui/extensions/json-exporter/index.vue | 12 +-
6 files changed, 278 insertions(+), 259 deletions(-)
create mode 100644 packages/nc-gui/components/extensions/Extension/Wrapper.vue
diff --git a/packages/nc-gui/components/extensions/Extension.vue b/packages/nc-gui/components/extensions/Extension.vue
index f6fe88c674..d3ef120816 100644
--- a/packages/nc-gui/components/extensions/Extension.vue
+++ b/packages/nc-gui/components/extensions/Extension.vue
@@ -222,56 +222,10 @@ eventBus.on((event, payload) => {
: {}
"
>
-
-
-
-
-
-
- {{ extension.title }}
-
-
- {{ extension.title }}
-
-
-
-
-
-
-
-
diff --git a/packages/nc-gui/components/extensions/Extension/Header.vue b/packages/nc-gui/components/extensions/Extension/Header.vue
index c901ce387b..05d1c5f66c 100644
--- a/packages/nc-gui/components/extensions/Extension/Header.vue
+++ b/packages/nc-gui/components/extensions/Extension/Header.vue
@@ -1,4 +1,11 @@
-
+
-
+
diff --git a/packages/nc-gui/components/extensions/Extension/Wrapper.vue b/packages/nc-gui/components/extensions/Extension/Wrapper.vue
new file mode 100644
index 0000000000..d859a8430a
--- /dev/null
+++ b/packages/nc-gui/components/extensions/Extension/Wrapper.vue
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
diff --git a/packages/nc-gui/extensions/data-exporter/index.vue b/packages/nc-gui/extensions/data-exporter/index.vue
index de8d815807..ce5c9a711c 100644
--- a/packages/nc-gui/extensions/data-exporter/index.vue
+++ b/packages/nc-gui/extensions/data-exporter/index.vue
@@ -203,191 +203,193 @@ onMounted(() => {
-
-
-
-
+
+
+
-
-
-
-
-
-
- {{ table.label }}
- {{ table.label }}
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ {{ table.label }}
+ {{ table.label }}
+
+
-
- {{ view.label }}
- {{ view.label }}
-
-
-
-
-
-
- The CSV file is being prepared in the background. You'll be notified once it's ready.
- {{
- isExporting ? 'Generating' : 'Export'
- }}
-
-
-
-
+