From f3f46b2502901e5afc11e4a0062624d27399be46 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 18 Jul 2022 15:52:47 +0200 Subject: [PATCH] refactor(gui-v2): rename projects dir to `index` --- packages/nc-gui-v2/app.vue | 4 ++-- packages/nc-gui-v2/pages/index.vue | 13 ------------- .../pages/{projects => index}/create-external.vue | 0 .../nc-gui-v2/pages/{projects => index}/create.vue | 0 .../nc-gui-v2/pages/{projects => index}/index.vue | 12 ++++++------ .../pages/{projects => index}/index/index.vue | 4 ++-- .../pages/{projects => index}/index/list.vue | 0 packages/nc-gui-v2/pages/signin.vue | 2 +- packages/nc-gui-v2/pages/signup.vue | 2 +- 9 files changed, 12 insertions(+), 25 deletions(-) delete mode 100644 packages/nc-gui-v2/pages/index.vue rename packages/nc-gui-v2/pages/{projects => index}/create-external.vue (100%) rename packages/nc-gui-v2/pages/{projects => index}/create.vue (100%) rename packages/nc-gui-v2/pages/{projects => index}/index.vue (91%) rename packages/nc-gui-v2/pages/{projects => index}/index/index.vue (97%) rename packages/nc-gui-v2/pages/{projects => index}/index/list.vue (100%) diff --git a/packages/nc-gui-v2/app.vue b/packages/nc-gui-v2/app.vue index 106cb7108f..be28380e7f 100644 --- a/packages/nc-gui-v2/app.vue +++ b/packages/nc-gui-v2/app.vue @@ -26,7 +26,7 @@ const signOut = () => {
- NocoDB + NocoDB
@@ -67,7 +67,7 @@ const signOut = () => {   {{ email }} diff --git a/packages/nc-gui-v2/pages/index.vue b/packages/nc-gui-v2/pages/index.vue deleted file mode 100644 index 1f2c1a34b3..0000000000 --- a/packages/nc-gui-v2/pages/index.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/packages/nc-gui-v2/pages/projects/create-external.vue b/packages/nc-gui-v2/pages/index/create-external.vue similarity index 100% rename from packages/nc-gui-v2/pages/projects/create-external.vue rename to packages/nc-gui-v2/pages/index/create-external.vue diff --git a/packages/nc-gui-v2/pages/projects/create.vue b/packages/nc-gui-v2/pages/index/create.vue similarity index 100% rename from packages/nc-gui-v2/pages/projects/create.vue rename to packages/nc-gui-v2/pages/index/create.vue diff --git a/packages/nc-gui-v2/pages/projects/index.vue b/packages/nc-gui-v2/pages/index/index.vue similarity index 91% rename from packages/nc-gui-v2/pages/projects/index.vue rename to packages/nc-gui-v2/pages/index/index.vue index 43dbcdbc7e..3e9ea84796 100644 --- a/packages/nc-gui-v2/pages/projects/index.vue +++ b/packages/nc-gui-v2/pages/index/index.vue @@ -57,14 +57,14 @@ const activePage = $ref(navDrawerOptions[0].title)
{{ $t('activity.createProject') }}
@@ -113,14 +113,14 @@ const activePage = $ref(navDrawerOptions[0].title)
diff --git a/packages/nc-gui-v2/pages/projects/index/index.vue b/packages/nc-gui-v2/pages/index/index/index.vue similarity index 97% rename from packages/nc-gui-v2/pages/projects/index/index.vue rename to packages/nc-gui-v2/pages/index/index/index.vue index c4c6152c84..21b8c7d7e8 100644 --- a/packages/nc-gui-v2/pages/projects/index/index.vue +++ b/packages/nc-gui-v2/pages/index/index/index.vue @@ -50,14 +50,14 @@ const formatTitle = (title: string) =>
{{ $t('activity.createProject') }}
diff --git a/packages/nc-gui-v2/pages/projects/index/list.vue b/packages/nc-gui-v2/pages/index/index/list.vue similarity index 100% rename from packages/nc-gui-v2/pages/projects/index/list.vue rename to packages/nc-gui-v2/pages/index/index/list.vue diff --git a/packages/nc-gui-v2/pages/signin.vue b/packages/nc-gui-v2/pages/signin.vue index f51318646a..b5c3fa084b 100644 --- a/packages/nc-gui-v2/pages/signin.vue +++ b/packages/nc-gui-v2/pages/signin.vue @@ -55,7 +55,7 @@ const signIn = async () => { try { const { token } = await $api.auth.signin(form) $state.signIn(token!) - await navigateTo('/projects') + await navigateTo('/') } catch (e: any) { // todo: errors should not expose what was wrong (i.e. do not show "Password is wrong" messages) error = await extractSdkResponseErrorMsg(e) diff --git a/packages/nc-gui-v2/pages/signup.vue b/packages/nc-gui-v2/pages/signup.vue index 21477202de..3c886d3f62 100644 --- a/packages/nc-gui-v2/pages/signup.vue +++ b/packages/nc-gui-v2/pages/signup.vue @@ -46,7 +46,7 @@ const signUp = async () => { try { const { token } = await $api.auth.signup(form) $state.signIn(token!) - await navigateTo('/projects') + await navigateTo('/') } catch (e: any) { error = await extractSdkResponseErrorMsg(e) }