From 21a306030c3c414fe9723b39b61fa1cbc1c0247f Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 6 Sep 2022 17:33:08 +0530 Subject: [PATCH] chore(gui-v2): base url correction (#3510) * chore(gui-v2): base url correction - support nocodb serving under a nested path Signed-off-by: Pranav C * chore(gui-v2): initial base url correction Signed-off-by: Pranav C * fix(gui-v2): redirect to dashboard with relative path Signed-off-by: Pranav C * fix(gui-v2): make plugin path relative Signed-off-by: Pranav C * fix(gui-v2): redirect path correction Signed-off-by: Pranav C * fix: allow download option migration handling Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> * fix(gui-v2): redirect old base url to new path Signed-off-by: Pranav C * fix(gui-v2): redirect old base ur with some view/table open Signed-off-by: Pranav C * fix(gui-v2): handle old tab url and navigate to the new url Signed-off-by: Pranav C * chore(gui-v2): cleanup Signed-off-by: Pranav C Signed-off-by: Pranav C Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> Co-authored-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- .run/dev.run.xml | 4 +- .../nc-gui/components/dashboard/TreeView.vue | 8 +- .../dashboard/settings/AppStore.vue | 2 +- .../dashboard/settings/Metadata.vue | 2 +- .../components/dashboard/settings/Misc.vue | 4 +- .../components/dashboard/settings/Modal.vue | 30 +- .../components/general/HelpAndSupport.vue | 2 +- .../nc-gui/components/general/PreviewAs.vue | 11 +- .../nc-gui/components/general/SocialCard.vue | 37 +- .../smartsheet-column/EditOrAdd.vue | 11 +- .../components/smartsheet-header/Menu.vue | 1 + .../components/smartsheet-toolbar/AddRow.vue | 6 +- .../smartsheet-toolbar/ColumnFilterMenu.vue | 25 +- .../smartsheet-toolbar/FieldsMenu.vue | 7 +- .../components/smartsheet-toolbar/Reload.vue | 6 +- .../smartsheet-toolbar/ShareView.vue | 2 +- .../smartsheet-toolbar/SharedViewList.vue | 2 +- .../nc-gui/components/smartsheet/Form.vue | 1 + .../nc-gui/components/smartsheet/Grid.vue | 9 +- .../components/smartsheet/Pagination.vue | 4 +- .../smartsheet/expanded-form/Comments.vue | 2 +- .../smartsheet/expanded-form/Header.vue | 1 + .../smartsheet/sidebar/MenuBottom.vue | 4 + .../components/smartsheet/sidebar/MenuTop.vue | 4 + .../smartsheet/sidebar/RenameableMenuItem.vue | 1 + .../components/smartsheet/sidebar/index.vue | 15 +- .../components/tabs/auth/UserManagement.vue | 15 +- packages/nc-gui/components/webhook/List.vue | 8 +- .../composables/useColumnCreateStore.ts | 3 + .../nc-gui/composables/useGlobal/state.ts | 2 +- packages/nc-gui/composables/useProject.ts | 4 +- packages/nc-gui/composables/useSharedView.ts | 2 +- packages/nc-gui/composables/useTable.ts | 1 + packages/nc-gui/composables/useViewColumns.ts | 18 +- packages/nc-gui/composables/useViewData.ts | 3 +- packages/nc-gui/composables/useViewFilters.ts | 14 +- packages/nc-gui/composables/useViewSorts.ts | 8 +- packages/nc-gui/layouts/base.vue | 1 + packages/nc-gui/nuxt.config.ts | 2 +- .../pages/[projectType]/[projectId]/index.vue | 25 +- .../[projectType]/[projectId]/index/index.vue | 1 + .../[projectId]/index/index/index.vue | 2 - .../pages/[projectType]/base/[baseId].vue | 15 + .../nc-gui/pages/index/index/[projectId].vue | 2 +- packages/nocodb-sdk/package-lock.json | 807 +++++++++++++++++- packages/nocodb/package-lock.json | 14 +- packages/nocodb/package.json | 2 +- packages/nocodb/src/lib/Noco.ts | 4 +- 48 files changed, 1074 insertions(+), 80 deletions(-) create mode 100644 packages/nc-gui/pages/[projectType]/base/[baseId].vue diff --git a/.run/dev.run.xml b/.run/dev.run.xml index 2aa622eedf..7ad2f35bdc 100644 --- a/.run/dev.run.xml +++ b/.run/dev.run.xml @@ -1,6 +1,6 @@ - +