mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-11-29 18:49:08 +08:00
doc(Tab): update NotAuthorized parameter documentation (#4613)
* doc: 增加 404 重定向
* feat(Tab): 移除 NotAuthorized/NotFound 参数
* feat(Layout): 移除 NotAuthorized/NotFound 参数
* Revert "feat(Layout): 移除 NotAuthorized/NotFound 参数"
This reverts commit f5e5f49583998913d531474a01c4afa99126042c.
* Revert "feat(Tab): 移除 NotAuthorized/NotFound 参数"
This reverts commit df041c745b47a72b45c6f2c541b858333cffe1b3.
* refactor: 更新参数文档
* refactor: 更新私有变量
* refactor: 代码格式化
* Revert "chore(Qodana): add qodana CI checks (#4610)"
This reverts commit 52449392b0
.
This commit is contained in:
parent
52449392b0
commit
e35bbdc9ea
28
.github/workflows/qodana_code_quality.yml
vendored
28
.github/workflows/qodana_code_quality.yml
vendored
@ -1,28 +0,0 @@
|
||||
name: Qodana
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
push:
|
||||
branches: # Specify your branches here
|
||||
- main # The 'main' branch
|
||||
- 'releases/*' # The release branches
|
||||
|
||||
jobs:
|
||||
qodana:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
checks: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
|
||||
fetch-depth: 0 # a full history is required for pull request analysis
|
||||
- name: 'Qodana Scan'
|
||||
uses: JetBrains/qodana-action@v2024.1
|
||||
with:
|
||||
pr-mode: false
|
||||
env:
|
||||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_1246412647 }}
|
||||
QODANA_ENDPOINT: 'https://qodana.cloud'
|
@ -1,6 +0,0 @@
|
||||
version: "1.0"
|
||||
linter: jetbrains/qodana-dotnet:2024.1
|
||||
profile:
|
||||
name: qodana.recommended
|
||||
include:
|
||||
- name: CheckDependencyLicenses
|
@ -3,7 +3,7 @@
|
||||
@attribute [BootstrapModuleAutoLoader(JSObjectReference = true)]
|
||||
|
||||
<CascadingValue Value="this" IsFixed="true">
|
||||
@if (IsInit)
|
||||
@if (_init)
|
||||
{
|
||||
@if (IsAuthenticated)
|
||||
{
|
||||
@ -118,11 +118,10 @@
|
||||
@<main class="@MainClassString">
|
||||
@if (UseTabSet)
|
||||
{
|
||||
<Tab ClickTabToNavigation="ClickTabToNavigation"
|
||||
ShowExtendButtons="ShowTabExtendButtons" ShowClose="ShowTabItemClose" AllowDrag="AllowDragTab"
|
||||
AdditionalAssemblies="@AdditionalAssemblies" NotFoundTabText="@NotFoundTabText"
|
||||
<Tab ClickTabToNavigation="ClickTabToNavigation" AdditionalAssemblies="@AdditionalAssemblies"
|
||||
ShowExtendButtons="ShowTabExtendButtons" ShowClose="ShowTabItemClose" AllowDrag="AllowDragTab"
|
||||
DefaultUrl="@TabDefaultUrl" ExcludeUrls="@ExcludeUrls" IsOnlyRenderActiveTab="IsOnlyRenderActiveTab"
|
||||
Body="@Main" NotAuthorized="NotAuthorized!" NotFound="NotFound!">
|
||||
Body="@Main" NotAuthorized="NotAuthorized!" NotFound="NotFound!" NotFoundTabText="@NotFoundTabText">
|
||||
</Tab>
|
||||
}
|
||||
else
|
||||
|
@ -67,19 +67,19 @@ public partial class Layout : IHandlerException
|
||||
public RenderFragment? Side { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获得/设置 NotAuthorized 模板
|
||||
/// 获得/设置 NotAuthorized 模板 默认 null NET6.0/7.0 有效
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public RenderFragment? NotAuthorized { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获得/设置 NotFound 模板
|
||||
/// 获得/设置 NotFound 模板 默认 null NET6.0/7.0 有效
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public RenderFragment? NotFound { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获得/设置 NotFound 标签文本
|
||||
/// 获得/设置 NotFound 标签文本 默认 null NET6.0/7.0 有效
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
[NotNull]
|
||||
@ -337,7 +337,7 @@ public partial class Layout : IHandlerException
|
||||
[Inject]
|
||||
private IAuthorizationService? AuthorizationService { get; set; }
|
||||
|
||||
private bool IsInit { get; set; }
|
||||
private bool _init { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
@ -387,7 +387,7 @@ public partial class Layout : IHandlerException
|
||||
IsAuthenticated = true;
|
||||
}
|
||||
|
||||
IsInit = true;
|
||||
_init = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -137,17 +137,24 @@ public partial class Tab : IHandlerException
|
||||
public RenderFragment? ChildContent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获得/设置 NotAuthorized 模板
|
||||
/// 获得/设置 NotAuthorized 模板 默认 null NET6.0/7.0 有效
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public RenderFragment? NotAuthorized { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获得/设置 NotFound 模板
|
||||
/// 获得/设置 NotFound 模板 默认 null NET6.0/7.0 有效
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public RenderFragment? NotFound { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获得/设置 NotFound 标签文本 默认 null NET6.0/7.0 有效
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
[NotNull]
|
||||
public string? NotFoundTabText { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获得/设置 TabItems 模板
|
||||
/// </summary>
|
||||
@ -179,13 +186,6 @@ public partial class Tab : IHandlerException
|
||||
[Parameter]
|
||||
public Func<TabItem, Task>? OnClickTabItemAsync { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获得/设置 NotFound 标签文本
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
[NotNull]
|
||||
public string? NotFoundTabText { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获得/设置 关闭当前 TabItem 菜单文本
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user