From fd78e6d20ddac25eb37e1950cffee80c23212e10 Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Fri, 8 Apr 2022 08:26:42 +0800 Subject: [PATCH 1/2] update README --- README.en.md | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.en.md b/README.en.md index daeaa0538..6b7ce0eff 100644 --- a/README.en.md +++ b/README.en.md @@ -11,13 +11,13 @@ This is a [vue-vben-admin](https://github.com/anncwb/vue-vben-admin) -based Abp ### 1、Install cli ```shell - dotnet tool install --global LINGYUN.Abp.Cli --version 5.1.4 + dotnet tool install --global LINGYUN.Abp.Cli --version 5.2.0 ``` ### 2、Install .NET Template ```shell - dotnet new --install LINGYUN.Abp.MicroService.Templates::5.1.4 + dotnet new --install LINGYUN.Abp.MicroService.Templates::5.2.0 ``` ### 3、Use cli create new project diff --git a/README.md b/README.md index 423d8d601..367dc3d02 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,13 @@ ### 1、安装dotnet工具 ```shell - dotnet tool install --global LINGYUN.Abp.Cli --version 5.1.4 + dotnet tool install --global LINGYUN.Abp.Cli --version 5.2.0 ``` ### 2、安装.NET模板 ```shell - dotnet new --install LINGYUN.Abp.MicroService.Templates::5.1.4 + dotnet new --install LINGYUN.Abp.MicroService.Templates::5.2.0 ``` ### 3、使用cli创建一个项目 From e2b76365d04ed4187fdf1091f498232c99ff99e3 Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Sat, 9 Apr 2022 13:39:54 +0800 Subject: [PATCH 2/2] feat: reset secret to not required --- apps/vue/src/hooks/abp/useValidation.ts | 2 +- .../components/SendAttemptModal.vue | 21 ++- .../components/SubscriptionModal.vue | 38 ++-- ...ueVbenAdminNavigationDefinitionProvider.cs | 9 +- .../LINGYUN/Abp/Webhooks/WebhookManager.cs | 2 +- .../System/AbpStringCryptographyExtensions.cs | 9 +- .../WebhookSubscriptionCreateOrUpdateInput.cs | 1 - .../WebhookSubscriptionAppService.cs | 7 +- .../WebhooksManagement/WebhookSubscription.cs | 6 +- .../WebhookSubscriptionsStore.cs | 2 +- ...agementDbContextModelCreatingExtensions.cs | 3 +- ...t-Field-Secret-To-Not-Required.Designer.cs | 162 ++++++++++++++++++ ...3632_Reset-Field-Secret-To-Not-Required.cs | 47 +++++ ...agementMigrationsDbContextModelSnapshot.cs | 7 +- 14 files changed, 280 insertions(+), 36 deletions(-) create mode 100644 aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/Migrations/20220409053632_Reset-Field-Secret-To-Not-Required.Designer.cs create mode 100644 aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/Migrations/20220409053632_Reset-Field-Secret-To-Not-Required.cs diff --git a/apps/vue/src/hooks/abp/useValidation.ts b/apps/vue/src/hooks/abp/useValidation.ts index 2cb5fa8a7..ce153854b 100644 --- a/apps/vue/src/hooks/abp/useValidation.ts +++ b/apps/vue/src/hooks/abp/useValidation.ts @@ -151,7 +151,7 @@ export function useValidation() { : L(notNameEnum, field.length); function checkLength(value: string | any[]) { - return checkMaximum ? value.length > field.length : value.length < field.length; + return checkMaximum ? field.length > value.length : value.length > field.length; } return { diff --git a/apps/vue/src/views/webhooks/send-attempts/components/SendAttemptModal.vue b/apps/vue/src/views/webhooks/send-attempts/components/SendAttemptModal.vue index f7655a864..c5cde4a72 100644 --- a/apps/vue/src/views/webhooks/send-attempts/components/SendAttemptModal.vue +++ b/apps/vue/src/views/webhooks/send-attempts/components/SendAttemptModal.vue @@ -16,6 +16,9 @@ > + + + @@ -23,11 +26,14 @@ {{ httpStatusCodeMap[modelRef.responseStatusCode] }} - +