From 1546732afc7c9d703006827344210db0e6b1b9b3 Mon Sep 17 00:00:00 2001 From: Vitalii Date: Tue, 28 Nov 2023 14:22:20 +0200 Subject: [PATCH] web/satellite/vuetify-poc: set input value length limits Ensure that text inputs have length limits, like in production and more. Issue: https://github.com/storj/storj/issues/6536 Change-Id: I2f216cc57d6bcb49b88c34ce53bed58327b0cdc6 --- .../src/components/AccessTableComponent.vue | 2 ++ .../src/components/BucketsDataTable.vue | 2 ++ .../src/components/TeamTableComponent.vue | 2 ++ .../components/billing/BillingHistoryTab.vue | 1 - .../dialogs/AddTeamMemberDialog.vue | 1 + .../dialogs/ApplyCouponCodeDialog.vue | 1 + .../dialogs/BrowserNewFolderDialog.vue | 5 ++--- .../components/dialogs/ChangeNameDialog.vue | 1 + .../components/dialogs/CreateAccessDialog.vue | 2 +- .../components/dialogs/CreateBucketDialog.vue | 1 - .../dialogs/CreateProjectDialog.vue | 1 + .../components/dialogs/DeleteBucketDialog.vue | 2 +- .../components/dialogs/DisableMFADialog.vue | 1 + .../dialogs/EditProjectDetailsDialog.vue | 1 + .../dialogs/EditProjectLimitDialog.vue | 1 + .../components/dialogs/EnableMFADialog.vue | 1 + .../dialogs/EnterBucketPassphraseDialog.vue | 2 +- .../src/components/dialogs/MFACodesDialog.vue | 1 + .../PassphraseGeneratedStep.vue | 2 +- .../AccessEncryptionStep.vue | 1 - .../createAccessSteps/CreateNewAccessStep.vue | 1 + .../createAccessSteps/EncryptionInfoStep.vue | 1 - .../upgradeAccountFlow/AddCreditCardStep.vue | 2 +- .../upgradeAccountFlow/UpgradeOptionsStep.vue | 2 +- .../src/layouts/default/Account.vue | 2 +- .../src/layouts/default/AllProjects.vue | 2 +- .../src/layouts/default/AppBar.vue | 5 ----- .../src/layouts/default/AuthBar.vue | 1 - .../src/layouts/default/ProjectNav.vue | 2 +- web/satellite/vuetify-poc/src/types/common.ts | 2 ++ .../vuetify-poc/src/views/Login2FA.vue | 2 ++ .../vuetify-poc/src/views/Signup.vue | 19 ++++--------------- .../src/views/SignupConfirmation.vue | 2 +- web/satellite/vuetify-poc/src/views/Team.vue | 1 - 34 files changed, 36 insertions(+), 39 deletions(-) diff --git a/web/satellite/vuetify-poc/src/components/AccessTableComponent.vue b/web/satellite/vuetify-poc/src/components/AccessTableComponent.vue index 609ee13f7..ba4d6cd56 100644 --- a/web/satellite/vuetify-poc/src/components/AccessTableComponent.vue +++ b/web/satellite/vuetify-poc/src/components/AccessTableComponent.vue @@ -14,6 +14,7 @@ clearable density="comfortable" rounded="lg" + :maxlength="MAX_SEARCH_VALUE_LENGTH" class="mx-2 mt-2" /> @@ -87,6 +88,7 @@ import { useNotify } from '@/utils/hooks'; import { useProjectsStore } from '@/store/modules/projectsStore'; import { DEFAULT_PAGE_LIMIT } from '@/types/pagination'; import { SortDirection, tableSizeOptions } from '@/types/common'; +import { MAX_SEARCH_VALUE_LENGTH } from '@poc/types/common'; import DeleteAccessDialog from '@poc/components/dialogs/DeleteAccessDialog.vue'; import IconTrash from '@poc/components/icons/IconTrash.vue'; diff --git a/web/satellite/vuetify-poc/src/components/BucketsDataTable.vue b/web/satellite/vuetify-poc/src/components/BucketsDataTable.vue index 31d877b99..b450c7608 100644 --- a/web/satellite/vuetify-poc/src/components/BucketsDataTable.vue +++ b/web/satellite/vuetify-poc/src/components/BucketsDataTable.vue @@ -14,6 +14,7 @@ clearable density="comfortable" rounded="lg" + :maxlength="MAX_SEARCH_VALUE_LENGTH" class="mx-2 mt-2" /> @@ -137,6 +138,7 @@ import { tableSizeOptions } from '@/types/common'; import { RouteConfig } from '@/types/router'; import { EdgeCredentials } from '@/types/accessGrants'; import { useAnalyticsStore } from '@/store/modules/analyticsStore'; +import { MAX_SEARCH_VALUE_LENGTH } from '@poc/types/common'; import IconTrash from '@poc/components/icons/IconTrash.vue'; import IconShare from '@poc/components/icons/IconShare.vue'; diff --git a/web/satellite/vuetify-poc/src/components/TeamTableComponent.vue b/web/satellite/vuetify-poc/src/components/TeamTableComponent.vue index 1bdb6f907..0713d34d2 100644 --- a/web/satellite/vuetify-poc/src/components/TeamTableComponent.vue +++ b/web/satellite/vuetify-poc/src/components/TeamTableComponent.vue @@ -28,6 +28,7 @@ clearable density="comfortable" rounded="lg" + :maxlength="MAX_SEARCH_VALUE_LENGTH" class="mx-2 mt-2" /> @@ -153,6 +154,7 @@ import { Project } from '@/types/projects'; import { SortDirection, tableSizeOptions } from '@/types/common'; import { useUsersStore } from '@/store/modules/usersStore'; import { useConfigStore } from '@/store/modules/configStore'; +import { MAX_SEARCH_VALUE_LENGTH } from '@poc/types/common'; import IconTrash from '@poc/components/icons/IconTrash.vue'; import IconCopy from '@poc/components/icons/IconCopy.vue'; diff --git a/web/satellite/vuetify-poc/src/components/billing/BillingHistoryTab.vue b/web/satellite/vuetify-poc/src/components/billing/BillingHistoryTab.vue index 771b7d5b3..dcd72a48c 100644 --- a/web/satellite/vuetify-poc/src/components/billing/BillingHistoryTab.vue +++ b/web/satellite/vuetify-poc/src/components/billing/BillingHistoryTab.vue @@ -62,7 +62,6 @@ \ No newline at end of file + diff --git a/web/satellite/vuetify-poc/src/views/SignupConfirmation.vue b/web/satellite/vuetify-poc/src/views/SignupConfirmation.vue index 640b76964..b9b4fc499 100644 --- a/web/satellite/vuetify-poc/src/views/SignupConfirmation.vue +++ b/web/satellite/vuetify-poc/src/views/SignupConfirmation.vue @@ -33,4 +33,4 @@ import { ref } from 'vue'; const loading = ref(false); const otp = ref(''); - \ No newline at end of file + diff --git a/web/satellite/vuetify-poc/src/views/Team.vue b/web/satellite/vuetify-poc/src/views/Team.vue index b2fe08426..865db44a3 100644 --- a/web/satellite/vuetify-poc/src/views/Team.vue +++ b/web/satellite/vuetify-poc/src/views/Team.vue @@ -42,5 +42,4 @@ const projectsStore = useProjectsStore(); const isAddMemberDialogShown = ref(false); const selectedProjectID = computed((): string => projectsStore.state.selectedProject.id); -