From c97b1168be073792b02cd861056a5bdaf0c01c85 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 17 Oct 2022 21:57:44 +0200 Subject: [PATCH] refactor(nc-gui): move panels into separate components --- .../nc-gui/components/erd/ConfigPanel.vue | 61 ++++++++++++++++++ packages/nc-gui/components/erd/Flow.vue | 24 +------ .../nc-gui/components/erd/HistogramPanel.vue | 19 ++++++ packages/nc-gui/components/erd/View.vue | 63 ++----------------- packages/nc-gui/components/erd/utils.ts | 4 +- 5 files changed, 90 insertions(+), 81 deletions(-) create mode 100644 packages/nc-gui/components/erd/ConfigPanel.vue create mode 100644 packages/nc-gui/components/erd/HistogramPanel.vue diff --git a/packages/nc-gui/components/erd/ConfigPanel.vue b/packages/nc-gui/components/erd/ConfigPanel.vue new file mode 100644 index 0000000000..b168fbb2a9 --- /dev/null +++ b/packages/nc-gui/components/erd/ConfigPanel.vue @@ -0,0 +1,61 @@ + + + + + + + + {{ $t('activity.erd.showColumns') }} + + + + + + {{ $t('activity.erd.showPkAndFk') }} + + + + + {{ $t('activity.erd.showSqlViews') }} + + + + + {{ $t('activity.erd.showMMTables') }} + + + + + {{ $t('activity.erd.showJunctionTableNames') }} + + + diff --git a/packages/nc-gui/components/erd/Flow.vue b/packages/nc-gui/components/erd/Flow.vue index 4592dd1100..4a043b0b2b 100644 --- a/packages/nc-gui/components/erd/Flow.vue +++ b/packages/nc-gui/components/erd/Flow.vue @@ -1,14 +1,14 @@ + + + + + + + {{ $t('objects.table') }} + + + + + {{ $t('objects.sqlVIew') }} + + + + diff --git a/packages/nc-gui/components/erd/View.vue b/packages/nc-gui/components/erd/View.vue index a1d8f6c026..0701e7a615 100644 --- a/packages/nc-gui/components/erd/View.vue +++ b/packages/nc-gui/components/erd/View.vue @@ -1,14 +1,11 @@