From 5d7b9bb7d415c661ab6fd441bc7e69e89ad49a79 Mon Sep 17 00:00:00 2001 From: honurbu Date: Fri, 26 Jan 2024 14:22:50 +0300 Subject: [PATCH 01/18] ExpirationWarnings added en.json --- .../Commercial/Localization/Resources/en.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json index dcf3423484..068fc824c9 100644 --- a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json +++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json @@ -1119,7 +1119,7 @@ "AutoLicenseRenewalIsNotEnabled": "Auto license renewal is not enabled.", "SetAsDefaultPaymentMethod": "Set as default payment method", "{0}PerAdditionalDeveloper": "{0} per additional developer", - "CardAlias": "Card Alias", + "CardAlias": "Card Alias (Optional)", "AbpDoesNotSaveYourPaymentDetails_Description": "The payment data will be saved in {2} security vaults and you can remove stored data anytime. Enabling auto-renewal ensures that your ABP subscription will automatically renew prior to expiration, providing a valid credit card. Disabling auto-renewal means you will have to renew your subscription manually. To continue your project development without interruption, we suggest you enable the Auto-Renewal option.", "AddBillingInformation": "Add Billing Information", "YouHaveNoCardsSaved": "You have no cards saved.", @@ -1130,6 +1130,8 @@ "BillingDetails": "Billing Details", "ThereIsNoDeveloper": "There is no developer.", "CardDetails": "Debit/Credit Card Details", - "NoActiveLicence": "You are not eligible for this action! You have no active license." + "NoActiveLicence": "You are not eligible for this action! You have no active license.", + "ExpirationMonthWarning": "Month should be 12 or less.", + "ExpirationYearWarning": "Year should be 24 or more." } } From 99fbe58685efd6179b4c26d213c5213bc0580a25 Mon Sep 17 00:00:00 2001 From: honurbu Date: Fri, 26 Jan 2024 18:35:01 +0300 Subject: [PATCH 02/18] Update en.json --- .../AbpIoLocalization/Commercial/Localization/Resources/en.json | 1 + 1 file changed, 1 insertion(+) diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json index 068fc824c9..40c085e3ad 100644 --- a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json +++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json @@ -1132,6 +1132,7 @@ "CardDetails": "Debit/Credit Card Details", "NoActiveLicence": "You are not eligible for this action! You have no active license.", "ExpirationMonthWarning": "Month should be 12 or less.", + "ExpirationMoreMonthWarning": "Month should be 1 or more.", "ExpirationYearWarning": "Year should be 24 or more." } } From 5f26da944ce982c6b653797c971da89c8cda9f30 Mon Sep 17 00:00:00 2001 From: honurbu Date: Mon, 29 Jan 2024 15:53:00 +0300 Subject: [PATCH 03/18] Update en.json --- .../Commercial/Localization/Resources/en.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json index 40c085e3ad..b3f7ed583b 100644 --- a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json +++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json @@ -1133,6 +1133,7 @@ "NoActiveLicence": "You are not eligible for this action! You have no active license.", "ExpirationMonthWarning": "Month should be 12 or less.", "ExpirationMoreMonthWarning": "Month should be 1 or more.", - "ExpirationYearWarning": "Year should be 24 or more." + "ExpirationYearWarning": "Year should be 24 or more.", + "YearCantBeNull": "Year field cannot be empty." } } From 938162a20c60c9f24a4878b9237f56bb27bd39fe Mon Sep 17 00:00:00 2001 From: honurbu Date: Tue, 30 Jan 2024 17:38:36 +0300 Subject: [PATCH 04/18] Added parameter to ExpirationYearWarning localization --- .../AbpIoLocalization/Commercial/Localization/Resources/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json index b3f7ed583b..dd6e429640 100644 --- a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json +++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json @@ -1133,7 +1133,7 @@ "NoActiveLicence": "You are not eligible for this action! You have no active license.", "ExpirationMonthWarning": "Month should be 12 or less.", "ExpirationMoreMonthWarning": "Month should be 1 or more.", - "ExpirationYearWarning": "Year should be 24 or more.", + "ExpirationYearWarning": "Year should be {0} or more.", "YearCantBeNull": "Year field cannot be empty." } } From 8a53836212a4d1a7412467142bbc5e535f8b0030 Mon Sep 17 00:00:00 2001 From: honurbu Date: Wed, 31 Jan 2024 15:04:05 +0300 Subject: [PATCH 05/18] Update en.json --- .../Commercial/Localization/Resources/en.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json index dd6e429640..c7af1fb072 100644 --- a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json +++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json @@ -1134,6 +1134,10 @@ "ExpirationMonthWarning": "Month should be 12 or less.", "ExpirationMoreMonthWarning": "Month should be 1 or more.", "ExpirationYearWarning": "Year should be {0} or more.", - "YearCantBeNull": "Year field cannot be empty." + "YearCantBeNull": "Year field cannot be empty.", + "CardHolderName": "Name on Card", + "ExpireDate": "Expiration Date", + "DisplayName:ExpireDate": "Expiration Date", + "DisplayName:CardHolderName": "Name on Card" } } From ef53b5837cf6845b5ef1eb0021699bf40ea21b44 Mon Sep 17 00:00:00 2001 From: Salih Date: Wed, 31 Jan 2024 17:35:02 +0300 Subject: [PATCH 06/18] Fix: Error occurs when js is minified in date picker --- .../date-range-picker/date-range-picker-extensions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/date-range-picker/date-range-picker-extensions.js b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/date-range-picker/date-range-picker-extensions.js index f45f0b1ff8..276f417219 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/date-range-picker/date-range-picker-extensions.js +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/date-range-picker/date-range-picker-extensions.js @@ -693,12 +693,12 @@ changeDate(isTrigger, isInputTrigger, isDateRangePickerTrigger); } - const setStartDateByMomentDate = (momentDate) => { + function setStartDateByMomentDate (momentDate) { oldStartDate = startDate; startDate = AbpDate(momentDate, options); } - const setEndDateByMomentEndDate = (momentDate) => { + function setEndDateByMomentEndDate(momentDate){ if(singleDatePicker){ return; } From ded10f48a8923bc878940775c0ab75fc9a184f8d Mon Sep 17 00:00:00 2001 From: Muhlis <8949037+muhlisatac@users.noreply.github.com> Date: Wed, 31 Jan 2024 17:56:21 +0300 Subject: [PATCH 07/18] Update Buttons.md Add busy-text usage to abp-button tag helper. Add busy-text usage to abp-button tag helper. --- docs/en/UI/AspNetCore/Tag-Helpers/Buttons.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/en/UI/AspNetCore/Tag-Helpers/Buttons.md b/docs/en/UI/AspNetCore/Tag-Helpers/Buttons.md index ae62c7f2b7..65e3ee2cf8 100644 --- a/docs/en/UI/AspNetCore/Tag-Helpers/Buttons.md +++ b/docs/en/UI/AspNetCore/Tag-Helpers/Buttons.md @@ -56,6 +56,18 @@ A value indicates the size of the button. Should be one of the following values: A text that is shown when the button is busy. +To be able to make the button busy: + +````xml +$('#btnTest').buttonBusy(true); +```` + +To make it usable again: + +````xml +$('#btnTest').buttonBusy(false); +```` + ### text The text of the button. This is a shortcut if you simply want to set a text to the button. Example: @@ -83,4 +95,4 @@ If you don't want to use font-awesome, you have two options: ### disabled -Set `true` to make the button initially disabled. \ No newline at end of file +Set `true` to make the button initially disabled. From 4f3ea9d874e14ba573a7c9464da28f2c7839118c Mon Sep 17 00:00:00 2001 From: maliming Date: Thu, 1 Feb 2024 09:45:25 +0800 Subject: [PATCH 08/18] Update Concurrency-Check.md --- docs/en/Concurrency-Check.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/en/Concurrency-Check.md b/docs/en/Concurrency-Check.md index bf31d3db10..56c5c21895 100644 --- a/docs/en/Concurrency-Check.md +++ b/docs/en/Concurrency-Check.md @@ -29,6 +29,8 @@ public interface IHasConcurrencyStamp * While a new record is **creating**, if the entity implements the `IHasConcurrencyStamp` interface, ABP Framework automatically sets a unique value to the **ConcurrencyStamp** property. * While a record is **updating**, ABP Framework compares the **ConcurrencyStamp** property of the entity with the provided **ConcurrencyStamp** value by the user and if the values match, it automatically updates the **ConcurrencyStamp** property with the new unique value. If there is a mismatch, `AbpDbConcurrencyException` is thrown. +> If there is a unit of work, You need to call the [SaveChangesAsync](./Unit-Of-Work.md#savechangesasync) method to get the generated `ConcurrencyStamp` when creating or updating. + **Example: Applying Concurrency Control for the Book Entity** Implement the `IHasConcurrencyStamp` interface for your entity: From 1843db905b4a890ca1c218202ceab5ba0df5488d Mon Sep 17 00:00:00 2001 From: Berkan Sasmaz Date: Thu, 1 Feb 2024 09:34:21 +0300 Subject: [PATCH 09/18] Update Concurrency-Check.md --- docs/en/Concurrency-Check.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/Concurrency-Check.md b/docs/en/Concurrency-Check.md index 56c5c21895..a0a97d8d98 100644 --- a/docs/en/Concurrency-Check.md +++ b/docs/en/Concurrency-Check.md @@ -29,7 +29,7 @@ public interface IHasConcurrencyStamp * While a new record is **creating**, if the entity implements the `IHasConcurrencyStamp` interface, ABP Framework automatically sets a unique value to the **ConcurrencyStamp** property. * While a record is **updating**, ABP Framework compares the **ConcurrencyStamp** property of the entity with the provided **ConcurrencyStamp** value by the user and if the values match, it automatically updates the **ConcurrencyStamp** property with the new unique value. If there is a mismatch, `AbpDbConcurrencyException` is thrown. -> If there is a unit of work, You need to call the [SaveChangesAsync](./Unit-Of-Work.md#savechangesasync) method to get the generated `ConcurrencyStamp` when creating or updating. +> If there is a unit of work, you need to call the [SaveChangesAsync](./Unit-Of-Work.md#savechangesasync) method to get the generated `ConcurrencyStamp` when creating or updating. **Example: Applying Concurrency Control for the Book Entity** From d978a036ec0add068154712486b5e61d24fe291e Mon Sep 17 00:00:00 2001 From: maliming Date: Thu, 1 Feb 2024 14:49:20 +0800 Subject: [PATCH 10/18] Update `Concurrency-Check.md`. --- docs/en/Concurrency-Check.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/Concurrency-Check.md b/docs/en/Concurrency-Check.md index a0a97d8d98..25e60713c7 100644 --- a/docs/en/Concurrency-Check.md +++ b/docs/en/Concurrency-Check.md @@ -76,8 +76,8 @@ public class BookAppService : ApplicationService, IBookAppService book.ConcurrencyStamp = input.ConcurrencyStamp; //set other input values to the entity ... - - await BookRepository.UpdateAsync(book); + //use autoSave: true to get the latest ConcurrencyStamp + await BookRepository.UpdateAsync(book, autoSave: true); } } ``` @@ -136,8 +136,8 @@ public class BookAppService : ApplicationService, IBookAppService book.ConcurrencyStamp = input.ConcurrencyStamp; //set other input values to the entity ... - - await BookRepository.UpdateAsync(book); + //use autoSave: true to get the latest ConcurrencyStamp + await BookRepository.UpdateAsync(book, autoSave: true); } } ``` From 60fe904b1a425cd62121f2a38d9c38cc996d6b65 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Thu, 1 Feb 2024 10:45:32 +0300 Subject: [PATCH 11/18] Update AbpIoSourceCodeStore.cs --- .../Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs index 0415b088cc..40a15bad65 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs @@ -140,9 +140,8 @@ public class AbpIoSourceCodeStore : ISourceCodeStore, ITransientDependency ? $"> dotnet tool install -g volo.abp.cli --version \"{templateVersion.Major}.{templateVersion.Minor}.*\"" : $"> dotnet tool install -g volo.abp.cli --version {templateVersion}"); - if (!userSpecifiedVersion) + if (userSpecifiedVersion) { - version = currentCliVersion.ToString(); Logger.LogWarning($"We have changed the template version as the cli version."); Logger.LogWarning($"New version: {version}"); } From 3db52c3e9d01dcf1cb450da15b2c4901dc77a266 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Thu, 1 Feb 2024 10:59:40 +0300 Subject: [PATCH 12/18] =?UTF-8?q?Cl=C4=B1:=20Added=20trustUserVersion=20op?= =?UTF-8?q?tion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Commands/ProjectCreationCommandBase.cs | 10 +++- .../ProjectBuilding/AbpIoSourceCodeStore.cs | 56 ++++++++++--------- .../Cli/ProjectBuilding/ISourceCodeStore.cs | 3 +- .../Cli/ProjectBuilding/ProjectBuildArgs.cs | 6 +- .../ProjectBuilding/TemplateProjectBuilder.cs | 3 +- 5 files changed, 48 insertions(+), 30 deletions(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProjectCreationCommandBase.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProjectCreationCommandBase.cs index ae018a88c7..60e6d99e34 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProjectCreationCommandBase.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProjectCreationCommandBase.cs @@ -233,6 +233,8 @@ public abstract class ProjectCreationCommandBase var skipCache = commandLineArgs.Options.ContainsKey(Options.SkipCache.Long) || commandLineArgs.Options.ContainsKey(Options.SkipCache.Short); + var trustUserVersion = !version.IsNullOrEmpty() && commandLineArgs.Options.ContainsKey(Options.TrustUserVersion.Long) || commandLineArgs.Options.ContainsKey(Options.TrustUserVersion.Short); + return new ProjectBuildArgs( solutionName, template, @@ -251,7 +253,8 @@ public abstract class ProjectCreationCommandBase pwa, theme, themeStyle, - skipCache + skipCache, + trustUserVersion ); } @@ -902,6 +905,11 @@ public abstract class ProjectCreationCommandBase public const string Long = "skip-cache"; } + public static class TrustUserVersion + { + public const string Short = "tv"; + public const string Long = "trust-version"; + } public static class Tiered { diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs index 40a15bad65..e39daf60c8 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs @@ -65,7 +65,8 @@ public class AbpIoSourceCodeStore : ISourceCodeStore, ITransientDependency string version = null, string templateSource = null, bool includePreReleases = false, - bool skipCache = false) + bool skipCache = false, + bool trustUserVersion = false) { DirectoryHelper.CreateIfNotExists(CliPaths.TemplateCache); var userSpecifiedVersion = version != null; @@ -96,33 +97,36 @@ public class AbpIoSourceCodeStore : ISourceCodeStore, ITransientDependency var templateVersion = SemanticVersion.Parse(version); var outputWarning = false; - if (currentCliVersion.Major != templateVersion.Major || currentCliVersion.Minor != templateVersion.Minor) + if (!trustUserVersion) { - // major and minor version are different - outputWarning = true; - } - else if (currentCliVersion.Major == templateVersion.Major && - currentCliVersion.Minor == templateVersion.Minor && - currentCliVersion.Patch < templateVersion.Patch) - { - // major and minor version are same but patch version is lower - outputWarning = true; - } - else if(currentCliVersion.Major == templateVersion.Major && - currentCliVersion.Minor == templateVersion.Minor && - currentCliVersion.Patch == templateVersion.Patch && - currentCliVersion.IsPrerelease && templateVersion.IsPrerelease) - { - // major and minor and patch version are same but prerelease version may be lower - var cliRcVersion = currentCliVersion.ReleaseLabels.LastOrDefault(); - var templateRcVersion = templateVersion.ReleaseLabels.LastOrDefault(); - if (cliRcVersion != null && templateRcVersion != null) + if (currentCliVersion.Major != templateVersion.Major || currentCliVersion.Minor != templateVersion.Minor) + { + // major and minor version are different + outputWarning = true; + } + else if (currentCliVersion.Major == templateVersion.Major && + currentCliVersion.Minor == templateVersion.Minor && + currentCliVersion.Patch < templateVersion.Patch) + { + // major and minor version are same but patch version is lower + outputWarning = true; + } + else if(currentCliVersion.Major == templateVersion.Major && + currentCliVersion.Minor == templateVersion.Minor && + currentCliVersion.Patch == templateVersion.Patch && + currentCliVersion.IsPrerelease && templateVersion.IsPrerelease) { - if (int.TryParse(cliRcVersion, out var cliRcVersionNumber) && int.TryParse(templateRcVersion, out var templateRcVersionNumber)) + // major and minor and patch version are same but prerelease version may be lower + var cliRcVersion = currentCliVersion.ReleaseLabels.LastOrDefault(); + var templateRcVersion = templateVersion.ReleaseLabels.LastOrDefault(); + if (cliRcVersion != null && templateRcVersion != null) { - if (cliRcVersionNumber < templateRcVersionNumber) + if (int.TryParse(cliRcVersion, out var cliRcVersionNumber) && int.TryParse(templateRcVersion, out var templateRcVersionNumber)) { - outputWarning = true; + if (cliRcVersionNumber < templateRcVersionNumber) + { + outputWarning = true; + } } } } @@ -147,12 +151,12 @@ public class AbpIoSourceCodeStore : ISourceCodeStore, ITransientDependency } } - if (!await IsVersionExists(name, version)) + if (!trustUserVersion && !await IsVersionExists(name, version)) { throw new Exception("There is no version found with given version: " + version); } - var nugetVersion = (await GetTemplateNugetVersionAsync(name, type, version)) ?? version; + var nugetVersion = await GetTemplateNugetVersionAsync(name, type, version) ?? version; if (!string.IsNullOrWhiteSpace(templateSource) && !IsNetworkSource(templateSource)) { diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/ISourceCodeStore.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/ISourceCodeStore.cs index c503b87b6e..813f524982 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/ISourceCodeStore.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/ISourceCodeStore.cs @@ -11,6 +11,7 @@ public interface ISourceCodeStore [CanBeNull] string version = null, [CanBeNull] string templateSource = null, bool includePreReleases = false, - bool skipCache = false + bool skipCache = false, + bool trustUserVersion = false ); } diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/ProjectBuildArgs.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/ProjectBuildArgs.cs index cdeba4eaeb..220c2cbe9b 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/ProjectBuildArgs.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/ProjectBuildArgs.cs @@ -15,6 +15,8 @@ public class ProjectBuildArgs [CanBeNull] public string Version { get; set; } + public bool TrustUserVersion { get; set; } + public DatabaseProvider DatabaseProvider { get; set; } public DatabaseManagementSystem DatabaseManagementSystem { get; set; } @@ -69,7 +71,8 @@ public class ProjectBuildArgs bool pwa = false, Theme? theme = null, ThemeStyle? themeStyle = null, - bool skipCache = false) + bool skipCache = false, + bool trustUserVersion = false) { SolutionName = Check.NotNull(solutionName, nameof(solutionName)); TemplateName = templateName; @@ -89,5 +92,6 @@ public class ProjectBuildArgs Theme = theme; ThemeStyle = themeStyle; SkipCache = skipCache; + TrustUserVersion = trustUserVersion; } } diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateProjectBuilder.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateProjectBuilder.cs index 9ab587e3ec..0865049382 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateProjectBuilder.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateProjectBuilder.cs @@ -68,7 +68,8 @@ public class TemplateProjectBuilder : IProjectBuilder, ITransientDependency SourceCodeTypes.Template, args.Version, args.TemplateSource, - args.ExtraProperties.ContainsKey(NewCommand.Options.Preview.Long) + args.ExtraProperties.ContainsKey(NewCommand.Options.Preview.Long), + trustUserVersion: args.TrustUserVersion ); ConfigureThemeOptions(args, templateFile.Version); From f74166af83023dd9e73151a33ebc6147d73f3e86 Mon Sep 17 00:00:00 2001 From: honurbu Date: Thu, 1 Feb 2024 13:49:50 +0300 Subject: [PATCH 13/18] Update en.json --- .../Commercial/Localization/Resources/en.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json index c7af1fb072..344360912c 100644 --- a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json +++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json @@ -1131,13 +1131,12 @@ "ThereIsNoDeveloper": "There is no developer.", "CardDetails": "Debit/Credit Card Details", "NoActiveLicence": "You are not eligible for this action! You have no active license.", - "ExpirationMonthWarning": "Month should be 12 or less.", - "ExpirationMoreMonthWarning": "Month should be 1 or more.", - "ExpirationYearWarning": "Year should be {0} or more.", "YearCantBeNull": "Year field cannot be empty.", "CardHolderName": "Name on Card", "ExpireDate": "Expiration Date", "DisplayName:ExpireDate": "Expiration Date", - "DisplayName:CardHolderName": "Name on Card" + "DisplayName:CardHolderName": "Name on Card", + "CreditCardNumberLengthWarning": "Invalid card number", + "ExpirationWarning": "Invalid expiration date" } -} +} \ No newline at end of file From d2308ca85a4b68bb248b0bcd050ead465342b3d7 Mon Sep 17 00:00:00 2001 From: Salih Date: Thu, 1 Feb 2024 17:32:45 +0300 Subject: [PATCH 14/18] Add new localization --- .../Commercial/Localization/Resources/en.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json index 7d89d00b2c..63053a4fdf 100644 --- a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json +++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json @@ -1133,6 +1133,7 @@ "BillingDetails": "Billing Details", "ThereIsNoDeveloper": "There is no developer.", "CardDetails": "Debit/Credit Card Details", - "NoActiveLicence": "You are not eligible for this action! You have no active license." + "NoActiveLicence": "You are not eligible for this action! You have no active license.", + "CreateCreditCardModal_Description" : "When saving your credit/debit card, a temporary $1 charge will be authorized for verification and promptly refunded." } } \ No newline at end of file From a0dcd924370fce85ef8e8b45d6c5562e24f8bc45 Mon Sep 17 00:00:00 2001 From: Salih Date: Thu, 1 Feb 2024 17:34:20 +0300 Subject: [PATCH 15/18] Update en.json --- .../Commercial/Localization/Resources/en.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json index 63053a4fdf..7d89d00b2c 100644 --- a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json +++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json @@ -1133,7 +1133,6 @@ "BillingDetails": "Billing Details", "ThereIsNoDeveloper": "There is no developer.", "CardDetails": "Debit/Credit Card Details", - "NoActiveLicence": "You are not eligible for this action! You have no active license.", - "CreateCreditCardModal_Description" : "When saving your credit/debit card, a temporary $1 charge will be authorized for verification and promptly refunded." + "NoActiveLicence": "You are not eligible for this action! You have no active license." } } \ No newline at end of file From eacde9afaaf5baee7529923195a4c4c334c56779 Mon Sep 17 00:00:00 2001 From: Salih Date: Thu, 1 Feb 2024 17:34:35 +0300 Subject: [PATCH 16/18] Update en.json --- .../Commercial/Localization/Resources/en.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json index 45e7184c39..658159b89c 100644 --- a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json +++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json @@ -1140,6 +1140,7 @@ "DisplayName:ExpireDate": "Expiration Date", "DisplayName:CardHolderName": "Name on Card", "CreditCardNumberLengthWarning": "Invalid card number", - "ExpirationWarning": "Invalid expiration date" + "ExpirationWarning": "Invalid expiration date", + "CreateCreditCardModal_Description" : "When saving your credit/debit card, a temporary $1 charge will be authorized for verification and promptly refunded." } } \ No newline at end of file From 8aa49e627710176b6310d5df6501719768f270a6 Mon Sep 17 00:00:00 2001 From: Salih Date: Thu, 1 Feb 2024 17:35:26 +0300 Subject: [PATCH 17/18] Update en.json --- .../AbpIoLocalization/Commercial/Localization/Resources/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json index 658159b89c..58fa205dd1 100644 --- a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json +++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json @@ -1141,6 +1141,6 @@ "DisplayName:CardHolderName": "Name on Card", "CreditCardNumberLengthWarning": "Invalid card number", "ExpirationWarning": "Invalid expiration date", - "CreateCreditCardModal_Description" : "When saving your credit/debit card, a temporary $1 charge will be authorized for verification and promptly refunded." + "CreateCreditCardModal_Description" : "When saving your debit/credit card, a temporary $1 charge will be authorized for verification and promptly refunded." } } \ No newline at end of file From bfb9dd05555ec915cc307e0765fcfdda04a33774 Mon Sep 17 00:00:00 2001 From: Salih Date: Fri, 2 Feb 2024 09:36:01 +0300 Subject: [PATCH 18/18] Add new localization --- .../AbpIoLocalization/Admin/Localization/Resources/en.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json index f3b0dad66c..18dc42a2ad 100644 --- a/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json +++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json @@ -596,6 +596,7 @@ "DisplayName:DontSendEmailForLicenseExpire": "Don't Send Email For License Expire", "DontSendEmailForLicenseExpire": "Don't Send Email For License Expire", "SuccessfullyChanged": "Successfully changed", - "WinnerCountMustBeLessThanMaxWinnerCount": "Winner count must be less than max winner count" + "WinnerCountMustBeLessThanMaxWinnerCount": "Winner count must be less than max winner count", + "NoChangesDetected": "No changes detected" } }