Browse Source

Merge branch 'dev' into pr/19919

pull/19919/head
Berkan Sasmaz 2 years ago
parent
commit
69a751226b
  1. 3
      abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json
  2. 4
      docs/en/CLI.md
  3. 7
      docs/en/Local-Event-Bus.md
  4. 8
      docs/zh-Hans/Local-Event-Bus.md
  5. 9
      framework/src/Volo.Abp.BlazoriseUI/Components/UiPageProgress.razor.cs
  6. 9
      framework/src/Volo.Abp.Caching.StackExchangeRedis/Volo/Abp/Caching/StackExchangeRedis/AbpRedisCache.cs
  7. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/ModuleInfo.cs
  8. 14
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.js
  9. 6
      npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.html
  10. 2
      npm/ng-packs/packages/identity/src/lib/defaults/default-users-form-props.ts

3
abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json

@ -621,6 +621,7 @@
"DeleteImageConfirmationMessage": "Are you sure you want to delete the image for \"{0}\"?", "DeleteImageConfirmationMessage": "Are you sure you want to delete the image for \"{0}\"?",
"DeleteImageSuccessMessage": "Image successfully deleted", "DeleteImageSuccessMessage": "Image successfully deleted",
"DeleteImage": "Delete Image", "DeleteImage": "Delete Image",
"NetTerms": "Terms (Days)" "NetTerms": "Terms (Days)",
"AbpStudioName": "Abp Studio name"
} }
} }

4
docs/en/CLI.md

@ -131,7 +131,7 @@ For more samples, go to [ABP CLI Create Solution Samples](CLI-New-Command-Sample
* `--database-provider` or `-d`: Specifies the database provider. Default provider is `ef`. Available providers: * `--database-provider` or `-d`: Specifies the database provider. Default provider is `ef`. Available providers:
* `ef`: Entity Framework Core. * `ef`: Entity Framework Core.
* `mongodb`: MongoDB. * `mongodb`: MongoDB.
* `--theme`: Specifes the theme. Default theme is `leptonx-lite`. Available themes: * `--theme`: Specifies the theme. Default theme is `leptonx-lite`. Available themes:
* `leptonx-lite`: [LeptonX Lite Theme](Themes/LeptonXLite/AspNetCore.md). * `leptonx-lite`: [LeptonX Lite Theme](Themes/LeptonXLite/AspNetCore.md).
* `basic`: [Basic Theme](UI/AspNetCore/Basic-Theme.md). * `basic`: [Basic Theme](UI/AspNetCore/Basic-Theme.md).
* **`module`**: [Module template](Startup-Templates/Module.md). Additional options: * **`module`**: [Module template](Startup-Templates/Module.md). Additional options:
@ -147,7 +147,7 @@ For more samples, go to [ABP CLI Create Solution Samples](CLI-New-Command-Sample
* `--database-provider` or `-d`: Specifies the database provider. Default provider is `ef`. Available providers: * `--database-provider` or `-d`: Specifies the database provider. Default provider is `ef`. Available providers:
* `ef`: Entity Framework Core. * `ef`: Entity Framework Core.
* `mongodb`: MongoDB. * `mongodb`: MongoDB.
* `--theme`: Specifes the theme. Default theme is `leptonx-lite`. Available themes: * `--theme`: Specifies the theme. Default theme is `leptonx-lite`. Available themes:
* `leptonx-lite`: [LeptonX Lite Theme](Themes/LeptonXLite/AspNetCore.md). * `leptonx-lite`: [LeptonX Lite Theme](Themes/LeptonXLite/AspNetCore.md).
* `basic`: [Basic Theme](UI/AspNetCore/Basic-Theme.md). * `basic`: [Basic Theme](UI/AspNetCore/Basic-Theme.md).
* **`maui`**: .NET MAUI. A minimalist .NET MAUI application will be created if you specify this option. * **`maui`**: .NET MAUI. A minimalist .NET MAUI application will be created if you specify this option.

7
docs/en/Local-Event-Bus.md

@ -235,6 +235,13 @@ Pre-build events are published when you save changes to the database;
* For EF Core, they are published on `DbContext.SaveChanges`. * For EF Core, they are published on `DbContext.SaveChanges`.
* For MongoDB, they are published when you call repository's `InsertAsync`, `UpdateAsync` or `DeleteAsync` methods (since MongoDB has not a change tracking system). * For MongoDB, they are published when you call repository's `InsertAsync`, `UpdateAsync` or `DeleteAsync` methods (since MongoDB has not a change tracking system).
#### AbpEntityChangeOptions
There is a `PublishEntityUpdatedEventWhenNavigationChanges` option in the `AbpEntityChangeOptions` class with a default value of `true`.
If you set it to `false`, the `EntityUpdatedEventData<T>` will not be published when a navigation property changes.
> This option is only used for the EF Core.
## See Also ## See Also
* [Distributed Event Bus](Distributed-Event-Bus.md) * [Distributed Event Bus](Distributed-Event-Bus.md)

8
docs/zh-Hans/Local-Event-Bus.md

@ -211,6 +211,14 @@ namespace AbpDemo
* 对于 EF Core, 他们在 `DbContext.SaveChanges` 发布. * 对于 EF Core, 他们在 `DbContext.SaveChanges` 发布.
* 对于 MongoDB, 在你调用仓储的 `InsertAsync`, `UpdateAsync` 或 `DeleteAsync` 方法发布(因为MongoDB没有更改追踪系统). * 对于 MongoDB, 在你调用仓储的 `InsertAsync`, `UpdateAsync` 或 `DeleteAsync` 方法发布(因为MongoDB没有更改追踪系统).
#### AbpEntityChangeOptions
`AbpEntityChangeOptions`类中有一个`PublishEntityUpdatedEventWhenNavigationChanges`选项,默认值为`true`。
如果将其设置为`false`,则当导航属性更改时,将不会发布`EntityUpdatedEventData<T>`事件。
> 此选项仅用于EF Core
## 另请参阅 ## 另请参阅
* [分布式事件总线](Distributed-Event-Bus.md) * [分布式事件总线](Distributed-Event-Bus.md)

9
framework/src/Volo.Abp.BlazoriseUI/Components/UiPageProgress.razor.cs

@ -7,7 +7,7 @@ namespace Volo.Abp.BlazoriseUI.Components;
public partial class UiPageProgress : ComponentBase, IDisposable public partial class UiPageProgress : ComponentBase, IDisposable
{ {
protected PageProgress PageProgressRef { get; set; } = default!; protected PageProgress? PageProgressRef { get; set; }
protected int? Percentage { get; set; } protected int? Percentage { get; set; }
@ -33,8 +33,11 @@ public partial class UiPageProgress : ComponentBase, IDisposable
Visible = e.Percentage == null || (e.Percentage >= 0 && e.Percentage <= 100); Visible = e.Percentage == null || (e.Percentage >= 0 && e.Percentage <= 100);
Color = GetColor(e.Options.Type); Color = GetColor(e.Options.Type);
await PageProgressRef.SetValueAsync(e.Percentage); if(PageProgressRef != null)
{
await PageProgressRef.SetValueAsync(e.Percentage);
}
await InvokeAsync(StateHasChanged); await InvokeAsync(StateHasChanged);
} }

9
framework/src/Volo.Abp.Caching.StackExchangeRedis/Volo/Abp/Caching/StackExchangeRedis/AbpRedisCache.cs

@ -76,14 +76,15 @@ public class AbpRedisCache : RedisCache, ICacheSupportsMultipleItems
ConnectMethod.Invoke(this, Array.Empty<object>()); ConnectMethod.Invoke(this, Array.Empty<object>());
} }
protected virtual async Task ConnectAsync(CancellationToken token = default) protected virtual async ValueTask<IDatabase> ConnectAsync(CancellationToken token = default)
{ {
if (GetRedisDatabase() != null) var redisDatabase = GetRedisDatabase();
if (redisDatabase != null)
{ {
return; return redisDatabase;
} }
await (Task)ConnectAsyncMethod.Invoke(this, new object[] { token })!; return await (ValueTask<IDatabase>)ConnectAsyncMethod.Invoke(this, new object[] { token })!;
} }
public byte[]?[] GetMany( public byte[]?[] GetMany(

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/ModuleInfo.cs

@ -4,6 +4,8 @@ public class ModuleInfo
{ {
public string Name { get; set; } public string Name { get; set; }
public string AbpStudioName { get; set; }
public string Namespace { get; set; } public string Namespace { get; set; }
public string DocumentUrl { get; set; } public string DocumentUrl { get; set; }

14
modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.js

@ -1,6 +1,12 @@
document.addEventListener('DOMContentLoaded', function (event) { document.addEventListener("DOMContentLoaded", function (event) {
setTimeout(function () { setTimeout(function () {
window.clientName = document.getElementById("redirectButton").getAttribute("cname"); var redirectButton = document.getElementById("redirectButton");
window.location = document.getElementById('redirectButton').getAttribute('href');
}, 3000); if(!redirectButton){
return;
}
redirectButton.getAttribute("cname");
redirectButton.getAttribute("href");
}, 3000)
}); });

6
npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.html

@ -161,7 +161,11 @@
@if (prop.displayTextResolver) { @if (prop.displayTextResolver) {
{{ prop.displayTextResolver(data) | abpLocalization }} {{ prop.displayTextResolver(data) | abpLocalization }}
} @else { } @else {
{{ prop.displayName | abpLocalization }} @if (prop.isExtra) {
{{ '::' + prop.displayName | abpLocalization }}
} @else {
{{ prop.displayName | abpLocalization }}
}
} }
{{ asterisk }} {{ asterisk }}
@if (prop.tooltip) { @if (prop.tooltip) {

2
npm/ng-packs/packages/identity/src/lib/defaults/default-users-form-props.ts

@ -1,5 +1,5 @@
import { Validators } from '@angular/forms'; import { Validators } from '@angular/forms';
import { ConfigStateService, CurrentUserDto } from '@abp/ng.core'; import { ConfigStateService } from '@abp/ng.core';
import { getPasswordValidators } from '@abp/ng.theme.shared'; import { getPasswordValidators } from '@abp/ng.theme.shared';
import { ePropType, FormProp } from '@abp/ng.components/extensible'; import { ePropType, FormProp } from '@abp/ng.components/extensible';
import { IdentityUserDto } from '@abp/ng.identity/proxy'; import { IdentityUserDto } from '@abp/ng.identity/proxy';

Loading…
Cancel
Save