From be2bc9093d924f4d873dcff637028dddb7411ff4 Mon Sep 17 00:00:00 2001 From: Pranav C <61551451+pranavxc@users.noreply.github.com> Date: Fri, 9 Jul 2021 19:27:31 +0530 Subject: [PATCH] feat: M2M corrections Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com> --- .../nc-gui/components/ProjectTreeViewOld.vue | 2 +- .../nc-gui/components/createOrEditProject.vue | 2 +- .../project/appStore/inputs/booleanCell.vue | 70 ----- .../appStore/inputs/datePickerCell.vue | 76 ------ .../appStore/inputs/dateTimePickerCell.vue | 92 ------- .../appStore/inputs/enumListEditableCell.vue | 89 ------ .../appStore/inputs/enumRadioEditableCell.vue | 101 ------- .../project/appStore/inputs/floatCell.vue | 69 ----- .../project/appStore/inputs/integerCell.vue | 69 ----- .../project/appStore/inputs/jsonCell.vue | 97 ------- .../appStore/inputs/setListCheckboxCell.vue | 100 ------- .../appStore/inputs/setListEditableCell.vue | 91 ------- .../appStore/inputs/timePickerCell.vue | 78 ------ .../components/cell/setListCell.vue | 33 ++- .../spreadsheet/components/editColumn.vue | 6 + .../editColumn/linkedToAnotherOptions.vue | 23 +- .../components/editColumn/relationOptions.vue | 29 +- .../components/editVirtualColumn.vue | 18 +- .../editableCell/datePickerCell.vue | 6 +- .../editableCell/dateTimePickerCell.vue | 18 +- .../editableCell/enumListEditableCell.vue | 6 +- .../components/editableCell/floatCell.vue | 2 +- .../editableCell/setListEditableCell.vue | 5 +- .../components/editableCell/textAreaCell.vue | 7 +- .../spreadsheet/components/expandedForm.vue | 36 ++- .../spreadsheet/components/headerCell.vue | 1 + .../spreadsheet/components/virtualCell.vue | 9 + .../components/virtualCell/belogsToCell.vue | 9 +- .../virtualCell/components/listChildItems.vue | 2 +- .../virtualCell/components/listItems.vue | 16 +- .../components/virtualCell/hasManyCell.vue | 10 +- .../components/virtualCell/manyToManyCell.vue | 7 + .../components/virtualHeaderCell.vue | 4 +- .../project/spreadsheet/rowsXcDataTable.vue | 21 +- .../project/spreadsheet/views/xcGridView.vue | 14 +- .../components/project/tableTabs/columns.vue | 26 +- packages/nc-gui/components/project/xcInfo.vue | 4 +- .../components/utils/dlgProjectCreate.vue | 2 +- packages/nc-gui/helpers/treeViewIcons.js | 12 +- .../nc-gui/helpers/treeViewIconsColors.js | 4 +- packages/nc-gui/layouts/default.vue | 22 +- packages/nc-gui/nuxt.config.js | 14 +- packages/nc-gui/pages/project/id.vue | 2 +- packages/nc-gui/pages/project/name.vue | 2 +- packages/nc-gui/pages/project/xcdb.vue | 2 +- packages/nc-gui/pages/projects/index.vue | 2 +- packages/nc-gui/store/sqlMgr.js | 7 +- packages/nocodb/package-lock.json | 42 ++- .../lib/dataMapper/lib/sql/BaseModelSql.ts | 3 +- .../nocodb/src/lib/noco/NcProjectBuilder.ts | 4 + .../src/lib/noco/common/BaseApiBuilder.ts | 16 +- .../nocodb/src/lib/noco/gql/GqlApiBuilder.ts | 3 +- .../nocodb/src/lib/noco/gql/GqlResolver.ts | 4 +- .../nocodb/src/lib/noco/meta/NcMetaMgr.ts | 256 ++++++++++-------- .../gql-schema/xc-ts/GqlXcTsSchemaMysql.ts | 2 +- 55 files changed, 437 insertions(+), 1210 deletions(-) delete mode 100644 packages/nc-gui/components/project/appStore/inputs/booleanCell.vue delete mode 100644 packages/nc-gui/components/project/appStore/inputs/datePickerCell.vue delete mode 100644 packages/nc-gui/components/project/appStore/inputs/dateTimePickerCell.vue delete mode 100644 packages/nc-gui/components/project/appStore/inputs/enumListEditableCell.vue delete mode 100644 packages/nc-gui/components/project/appStore/inputs/enumRadioEditableCell.vue delete mode 100644 packages/nc-gui/components/project/appStore/inputs/floatCell.vue delete mode 100644 packages/nc-gui/components/project/appStore/inputs/integerCell.vue delete mode 100644 packages/nc-gui/components/project/appStore/inputs/jsonCell.vue delete mode 100644 packages/nc-gui/components/project/appStore/inputs/setListCheckboxCell.vue delete mode 100644 packages/nc-gui/components/project/appStore/inputs/setListEditableCell.vue delete mode 100644 packages/nc-gui/components/project/appStore/inputs/timePickerCell.vue diff --git a/packages/nc-gui/components/ProjectTreeViewOld.vue b/packages/nc-gui/components/ProjectTreeViewOld.vue index 9e7da6f4c8..918185c85c 100644 --- a/packages/nc-gui/components/ProjectTreeViewOld.vue +++ b/packages/nc-gui/components/ProjectTreeViewOld.vue @@ -153,7 +153,7 @@ diff --git a/packages/nc-gui/components/createOrEditProject.vue b/packages/nc-gui/components/createOrEditProject.vue index f5395c4841..bbb5babc4c 100644 --- a/packages/nc-gui/components/createOrEditProject.vue +++ b/packages/nc-gui/components/createOrEditProject.vue @@ -1043,7 +1043,7 @@ export default { { text: 'Disabled', value: 'none' }, ], projectTypes: [ - { text: 'REST APIs', value: 'rest', icon: 'mdi-json', iconColor: 'green' }, + { text: 'REST APIs', value: 'rest', icon: 'mdi-code-json', iconColor: 'green' }, { text: 'GRAPHQL APIs', value: 'graphql', icon: 'mdi-graphql', iconColor: 'pink' }, // { // text: 'Automatic gRPC APIs on database', diff --git a/packages/nc-gui/components/project/appStore/inputs/booleanCell.vue b/packages/nc-gui/components/project/appStore/inputs/booleanCell.vue deleted file mode 100644 index 7534df4318..0000000000 --- a/packages/nc-gui/components/project/appStore/inputs/booleanCell.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - diff --git a/packages/nc-gui/components/project/appStore/inputs/datePickerCell.vue b/packages/nc-gui/components/project/appStore/inputs/datePickerCell.vue deleted file mode 100644 index e162da1b89..0000000000 --- a/packages/nc-gui/components/project/appStore/inputs/datePickerCell.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - diff --git a/packages/nc-gui/components/project/appStore/inputs/dateTimePickerCell.vue b/packages/nc-gui/components/project/appStore/inputs/dateTimePickerCell.vue deleted file mode 100644 index a67fecc846..0000000000 --- a/packages/nc-gui/components/project/appStore/inputs/dateTimePickerCell.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - diff --git a/packages/nc-gui/components/project/appStore/inputs/enumListEditableCell.vue b/packages/nc-gui/components/project/appStore/inputs/enumListEditableCell.vue deleted file mode 100644 index 779d528d96..0000000000 --- a/packages/nc-gui/components/project/appStore/inputs/enumListEditableCell.vue +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - diff --git a/packages/nc-gui/components/project/appStore/inputs/enumRadioEditableCell.vue b/packages/nc-gui/components/project/appStore/inputs/enumRadioEditableCell.vue deleted file mode 100644 index dccf444a3e..0000000000 --- a/packages/nc-gui/components/project/appStore/inputs/enumRadioEditableCell.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - diff --git a/packages/nc-gui/components/project/appStore/inputs/floatCell.vue b/packages/nc-gui/components/project/appStore/inputs/floatCell.vue deleted file mode 100644 index a167ec14c3..0000000000 --- a/packages/nc-gui/components/project/appStore/inputs/floatCell.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - diff --git a/packages/nc-gui/components/project/appStore/inputs/integerCell.vue b/packages/nc-gui/components/project/appStore/inputs/integerCell.vue deleted file mode 100644 index a1d5d1db04..0000000000 --- a/packages/nc-gui/components/project/appStore/inputs/integerCell.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - diff --git a/packages/nc-gui/components/project/appStore/inputs/jsonCell.vue b/packages/nc-gui/components/project/appStore/inputs/jsonCell.vue deleted file mode 100644 index e0d32844e8..0000000000 --- a/packages/nc-gui/components/project/appStore/inputs/jsonCell.vue +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - diff --git a/packages/nc-gui/components/project/appStore/inputs/setListCheckboxCell.vue b/packages/nc-gui/components/project/appStore/inputs/setListCheckboxCell.vue deleted file mode 100644 index 9c02b862f9..0000000000 --- a/packages/nc-gui/components/project/appStore/inputs/setListCheckboxCell.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - diff --git a/packages/nc-gui/components/project/appStore/inputs/setListEditableCell.vue b/packages/nc-gui/components/project/appStore/inputs/setListEditableCell.vue deleted file mode 100644 index dbb53ddcfc..0000000000 --- a/packages/nc-gui/components/project/appStore/inputs/setListEditableCell.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - diff --git a/packages/nc-gui/components/project/appStore/inputs/timePickerCell.vue b/packages/nc-gui/components/project/appStore/inputs/timePickerCell.vue deleted file mode 100644 index f9a2a5bafc..0000000000 --- a/packages/nc-gui/components/project/appStore/inputs/timePickerCell.vue +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - diff --git a/packages/nc-gui/components/project/spreadsheet/components/cell/setListCell.vue b/packages/nc-gui/components/project/spreadsheet/components/cell/setListCell.vue index 6bc827691e..117973046e 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/cell/setListCell.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/cell/setListCell.vue @@ -1,38 +1,43 @@