From 7a08c19c5353d5808b7c32ef749eca0347ff5309 Mon Sep 17 00:00:00 2001 From: Vitalii Shpital Date: Thu, 12 Aug 2021 15:45:44 +0300 Subject: [PATCH] web/satellite: initial setup for onboarding CLI flow Added components for the new flow. Removed onboarding logic from regular access grant wizard. Updated routes to include new flow. Change-Id: I52ca6eb3da1e4e3a4b465ed58cd45398d10fd268 --- .../components/accessGrants/ProgressBar.vue | 10 +- .../components/accessGrants/steps/CLIStep.vue | 28 +--- .../steps/CreatePassphraseStep.vue | 37 ------ .../steps/EnterPassphraseStep.vue | 2 +- .../accessGrants/steps/GatewayStep.vue | 30 +---- .../accessGrants/steps/NameStep.vue | 21 +-- .../accessGrants/steps/PermissionsStep.vue | 43 +----- .../accessGrants/steps/ResultStep.vue | 42 +----- .../onboardingTour/steps/CLIStep.vue | 18 +++ .../steps/CreateAccessGrantStep.vue | 113 ---------------- .../onboardingTour/steps/OverviewStep.vue | 2 +- .../onboardingTour/steps/cliFlow/APIKey.vue | 14 ++ .../steps/cliFlow/CLIInstall.vue | 14 ++ .../onboardingTour/steps/cliFlow/CLISetup.vue | 14 ++ .../steps/cliFlow/CreateBucket.vue | 14 ++ .../steps/cliFlow/DownloadObject.vue | 14 ++ .../steps/cliFlow/EncryptYourData.vue | 14 ++ .../steps/cliFlow/GenerateAG.vue | 14 ++ .../steps/cliFlow/GeneratedAG.vue | 14 ++ .../onboardingTour/steps/cliFlow/ImportAG.vue | 14 ++ .../steps/cliFlow/ListObject.vue | 14 ++ .../steps/cliFlow/ShareObject.vue | 14 ++ .../steps/cliFlow/SuccessScreen.vue | 14 ++ .../steps/cliFlow/UploadObject.vue | 14 ++ web/satellite/src/router/index.ts | 122 ++++++++++++------ 25 files changed, 302 insertions(+), 348 deletions(-) create mode 100644 web/satellite/src/components/onboardingTour/steps/CLIStep.vue delete mode 100644 web/satellite/src/components/onboardingTour/steps/CreateAccessGrantStep.vue create mode 100644 web/satellite/src/components/onboardingTour/steps/cliFlow/APIKey.vue create mode 100644 web/satellite/src/components/onboardingTour/steps/cliFlow/CLIInstall.vue create mode 100644 web/satellite/src/components/onboardingTour/steps/cliFlow/CLISetup.vue create mode 100644 web/satellite/src/components/onboardingTour/steps/cliFlow/CreateBucket.vue create mode 100644 web/satellite/src/components/onboardingTour/steps/cliFlow/DownloadObject.vue create mode 100644 web/satellite/src/components/onboardingTour/steps/cliFlow/EncryptYourData.vue create mode 100644 web/satellite/src/components/onboardingTour/steps/cliFlow/GenerateAG.vue create mode 100644 web/satellite/src/components/onboardingTour/steps/cliFlow/GeneratedAG.vue create mode 100644 web/satellite/src/components/onboardingTour/steps/cliFlow/ImportAG.vue create mode 100644 web/satellite/src/components/onboardingTour/steps/cliFlow/ListObject.vue create mode 100644 web/satellite/src/components/onboardingTour/steps/cliFlow/ShareObject.vue create mode 100644 web/satellite/src/components/onboardingTour/steps/cliFlow/SuccessScreen.vue create mode 100644 web/satellite/src/components/onboardingTour/steps/cliFlow/UploadObject.vue diff --git a/web/satellite/src/components/accessGrants/ProgressBar.vue b/web/satellite/src/components/accessGrants/ProgressBar.vue index 3231f691e..1eb627c07 100644 --- a/web/satellite/src/components/accessGrants/ProgressBar.vue +++ b/web/satellite/src/components/accessGrants/ProgressBar.vue @@ -38,35 +38,35 @@ export default class ProgressBar extends Vue { * Indicates if current route is on name step. */ public get isNameStep(): boolean { - return this.$route.name === RouteConfig.NameStep.name || this.$route.name === RouteConfig.AccessGrantName.name; + return this.$route.name === RouteConfig.NameStep.name; } /** * Indicates if current route is on permissions step. */ public get isPermissionsStep(): boolean { - return this.$route.name === RouteConfig.PermissionsStep.name || this.$route.name === RouteConfig.AccessGrantPermissions.name; + return this.$route.name === RouteConfig.PermissionsStep.name; } /** * Indicates if current route is on passphrase step. */ public get isPassphraseStep(): boolean { - return this.$route.name === RouteConfig.CreatePassphraseStep.name || this.$route.name === RouteConfig.EnterPassphraseStep.name || this.$route.name === RouteConfig.AccessGrantPassphrase.name; + return this.$route.name === RouteConfig.CreatePassphraseStep.name || this.$route.name === RouteConfig.EnterPassphraseStep.name; } /** * Indicates if current route is on result step. */ public get isResultStep(): boolean { - return this.$route.name === RouteConfig.ResultStep.name || this.$route.name === RouteConfig.AccessGrantResult.name; + return this.$route.name === RouteConfig.ResultStep.name; } /** * Indicates if current route is on gateway step. */ public get isGatewayStep(): boolean { - return this.$route.name === RouteConfig.GatewayStep.name || this.$route.name === RouteConfig.AccessGrantGateway.name; + return this.$route.name === RouteConfig.GatewayStep.name; } } diff --git a/web/satellite/src/components/accessGrants/steps/CLIStep.vue b/web/satellite/src/components/accessGrants/steps/CLIStep.vue index d1df47197..25e3fca62 100644 --- a/web/satellite/src/components/accessGrants/steps/CLIStep.vue +++ b/web/satellite/src/components/accessGrants/steps/CLIStep.vue @@ -2,7 +2,7 @@ // See LICENSE for copying information.