From 5276704a7e37f54e940596d9f72794a4fd82773b Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 11 Aug 2022 18:31:00 +0200 Subject: [PATCH 01/17] refactor(gui-v2): rename signup to [[token]] --- packages/nc-gui-v2/pages/{signup.vue => signup/[[token]].vue} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename packages/nc-gui-v2/pages/{signup.vue => signup/[[token]].vue} (100%) diff --git a/packages/nc-gui-v2/pages/signup.vue b/packages/nc-gui-v2/pages/signup/[[token]].vue similarity index 100% rename from packages/nc-gui-v2/pages/signup.vue rename to packages/nc-gui-v2/pages/signup/[[token]].vue From ea2d01b5418a80cb64e3f60e92fe556522985ca0 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 11 Aug 2022 18:59:21 +0200 Subject: [PATCH 02/17] chore(gui-v2): update `AppInfo` interface --- packages/nc-gui-v2/composables/useGlobal/types.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/nc-gui-v2/composables/useGlobal/types.ts b/packages/nc-gui-v2/composables/useGlobal/types.ts index 82ab8b8ed5..0e57222752 100644 --- a/packages/nc-gui-v2/composables/useGlobal/types.ts +++ b/packages/nc-gui-v2/composables/useGlobal/types.ts @@ -13,6 +13,18 @@ export interface FeedbackForm { export interface AppInfo { ncSiteUrl: string + authType: 'jwt' | 'masterKey' | 'none' + connectToExternalDB: boolean + defaultLimit: number + firstUser: boolean + githubAuthEnabled: boolean + googleAuthEnabled: boolean + ncMin: boolean + oneClick: boolean + projectHasAdmin: boolean + teleEnabled: boolean + type: string + version: string } export interface StoredState { From 47f974146a91f0e4aad1baf06720e099d3dc5aef Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 11 Aug 2022 18:59:35 +0200 Subject: [PATCH 03/17] chore(gui-v2): update `components.d.ts` --- packages/nc-gui-v2/components.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index e7ed044756..848e4f8155 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -71,7 +71,9 @@ declare module '@vue/runtime-core' { MaterialSymbolsChevronLeftRounded: typeof import('~icons/material-symbols/chevron-left-rounded')['default'] MaterialSymbolsChevronRightRounded: typeof import('~icons/material-symbols/chevron-right-rounded')['default'] MaterialSymbolsFileCopyOutline: typeof import('~icons/material-symbols/file-copy-outline')['default'] + MaterialSymbolsRocketLaunchOutline: typeof import('~icons/material-symbols/rocket-launch-outline')['default'] MaterialSymbolsTranslate: typeof import('~icons/material-symbols/translate')['default'] + MaterialSymbolsWarning: typeof import('~icons/material-symbols/warning')['default'] MdiAccountCircle: typeof import('~icons/mdi/account-circle')['default'] MdiAccountGroup: typeof import('~icons/mdi/account-group')['default'] MdiAccountIcon: typeof import('~icons/mdi/account-icon')['default'] From 20b9d621e82ab5395fb07e359ac0eacf8e5be807 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 11 Aug 2022 18:59:49 +0200 Subject: [PATCH 04/17] chore(gui-v2): update signup form --- packages/nc-gui-v2/pages/signup/[[token]].vue | 47 +++++++++++++------ 1 file changed, 32 insertions(+), 15 deletions(-) diff --git a/packages/nc-gui-v2/pages/signup/[[token]].vue b/packages/nc-gui-v2/pages/signup/[[token]].vue index 47272faaaa..b87ac748e7 100644 --- a/packages/nc-gui-v2/pages/signup/[[token]].vue +++ b/packages/nc-gui-v2/pages/signup/[[token]].vue @@ -1,19 +1,26 @@ @@ -80,7 +89,15 @@ const resetError = () => { > -

{{ $t('general.signUp') }}

+

+ {{ $t('general.signUp') }} + {{ $route.query.redirect_to === '/referral' ? '& REFER' : '' }} + {{ $route.query.redirect_to === '/pricing' ? '& BUY' : '' }} +

+ +

+ {{ $t('msg.info.signUp.superAdmin') }} +

From 39caacc627e66afc1111d1c0122a0a38a7bb3e16 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 11 Aug 2022 19:32:59 +0200 Subject: [PATCH 05/17] chore(gui-v2): fix signup signin form styles --- packages/nc-gui-v2/pages/signin.vue | 19 +++-- packages/nc-gui-v2/pages/signup/[[token]].vue | 75 +++++++++++-------- 2 files changed, 58 insertions(+), 36 deletions(-) diff --git a/packages/nc-gui-v2/pages/signin.vue b/packages/nc-gui-v2/pages/signin.vue index e1eef56585..9406d83878 100644 --- a/packages/nc-gui-v2/pages/signin.vue +++ b/packages/nc-gui-v2/pages/signin.vue @@ -108,18 +108,17 @@ const resetError = () => { /> -