-
-
Notifications
You must be signed in to change notification settings - Fork 364
feat(Layout): add ShowTabContextMenu parameter #5733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,15 @@ | ||
| // Copyright (c) Argo Zhang ([email protected]). All rights reserved. | ||
| // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
| // Website: https://www.blazor.zone or https://argozhang.github.io/ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the Apache 2.0 License | ||
| // See the LICENSE file in the project root for more information. | ||
| // Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone | ||
|
|
||
| namespace BootstrapBlazor.Components; | ||
|
|
||
| internal static class BootstrapIcons | ||
| { | ||
| public static Dictionary<ComponentIcons, string> Icons => new() | ||
| { | ||
| // AnchorLink 组件 | ||
| { ComponentIcons.AnchorLinkIcon, "bi bi-link-45deg" }, | ||
|
|
||
| // Avatar 组件 | ||
| { ComponentIcons.AvatarIcon, "bi bi-person-fill" }, | ||
| { ComponentIcons.AutoFillIcon, "bi bi-chevron-up" }, | ||
| { ComponentIcons.AutoCompleteIcon, "bi bi-chevron-up" }, | ||
|
|
@@ -23,23 +21,23 @@ internal static class BootstrapIcons | |
| { ComponentIcons.CameraPlayIcon, "bi bi-circle-play" }, | ||
| { ComponentIcons.CameraStopIcon, "bi bi-circle-stop" }, | ||
| { ComponentIcons.CameraPhotoIcon, "bi bi-camera" }, | ||
|
|
||
| { ComponentIcons.CardCollapseIcon, "bi bi-arrow-right-circle-fill" }, | ||
| { ComponentIcons.CarouselPreviousIcon, "bi bi-chevron-left" }, | ||
| { ComponentIcons.CarouselNextIcon, "bi bi-chevron-right" }, | ||
| { ComponentIcons.CascaderIcon, "bi bi-chevron-up" }, | ||
| { ComponentIcons.CascaderSubMenuIcon, "bi bi-chevron-down" }, | ||
| { ComponentIcons.ConsoleClearButtonIcon, "bi bi-x" }, | ||
|
|
||
| // DateTimePicker 组件 | ||
| { ComponentIcons.DatePickBodyPreviousYearIcon, "bi bi-chevron-double-left" }, | ||
| { ComponentIcons.DatePickBodyPreviousMonthIcon, "bi bi-chevron-left" }, | ||
| { ComponentIcons.DatePickBodyNextMonthIcon, "bi bi-chevron-right" }, | ||
| { ComponentIcons.DatePickBodyNextYearIcon, "bi bi-chevron-double-right" }, | ||
| { ComponentIcons.DateTimePickerIcon, "bi bi-calendar" }, | ||
|
|
||
| { ComponentIcons.TimePickerCellUpIcon, "bi bi-chevron-up" }, | ||
| { ComponentIcons.TimePickerCellDownIcon, "bi bi-chevron-down" }, | ||
|
|
||
| // DateTimeRange 组件 | ||
| { ComponentIcons.DateTimeRangeIcon, "bi bi-calendar-range" }, | ||
| { ComponentIcons.DateTimeRangeClearIcon, "bi bi-x-circle" }, | ||
|
|
||
|
|
@@ -88,6 +86,11 @@ internal static class BootstrapIcons | |
| { ComponentIcons.InputNumberPlusIcon, "bi bi-plus-circle" }, | ||
|
|
||
| { ComponentIcons.LayoutMenuBarIcon, "bi bi-list" }, | ||
| { ComponentIcons.TabContextMenuRefreshIcon, "bi bi-arrow-clockwise" }, | ||
| { ComponentIcons.TabContextMenuCloseIcon, "bi bi-x" }, | ||
| { ComponentIcons.TabContextMenuCloseOtherIcon, "bi bi-arrow" }, | ||
| { ComponentIcons.TabContextMenuCloseAllIcon, "bi bi-arrow-left-right" }, | ||
|
|
||
| { ComponentIcons.LogoutLinkIcon, "bi bi-box-arrow-right" }, | ||
|
|
||
| { ComponentIcons.LoadingIcon, "bi bi-arrow-clockwise bi-spin" }, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,15 @@ | ||
| // Copyright (c) Argo Zhang ([email protected]). All rights reserved. | ||
| // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
| // Website: https://www.blazor.zone or https://argozhang.github.io/ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the Apache 2.0 License | ||
| // See the LICENSE file in the project root for more information. | ||
| // Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone | ||
|
|
||
| namespace BootstrapBlazor.Components; | ||
|
|
||
| internal static class MaterialDesignIcons | ||
| { | ||
| public static Dictionary<ComponentIcons, string> Icons => new() | ||
| { | ||
| // AnchorLink 组件 | ||
| { ComponentIcons.AnchorLinkIcon, "mdi mdi-link-variant" }, | ||
|
|
||
| // Avatar 组件 | ||
| { ComponentIcons.AvatarIcon, "mdi mdi-account" }, | ||
| { ComponentIcons.AutoFillIcon, "mdi mdi-chevron-up" }, | ||
| { ComponentIcons.AutoCompleteIcon, "mdi mdi-chevron-up" }, | ||
|
|
@@ -23,23 +21,23 @@ internal static class MaterialDesignIcons | |
| { ComponentIcons.CameraPlayIcon, "mdi mdi-play-circle-outline" }, | ||
| { ComponentIcons.CameraStopIcon, "mdi mdi-stop-circle-outline" }, | ||
| { ComponentIcons.CameraPhotoIcon, "mdi mdi-camera-outline" }, | ||
|
|
||
| { ComponentIcons.CardCollapseIcon, "mdi mdi-chevron-right-circle" }, | ||
| { ComponentIcons.CarouselPreviousIcon, "mdi mdi-chevron-left" }, | ||
| { ComponentIcons.CarouselNextIcon, "mdi mdi-chevron-right" }, | ||
| { ComponentIcons.CascaderIcon, "mdi mdi-chevron-up" }, | ||
| { ComponentIcons.CascaderSubMenuIcon, "mdi mdi-chevron-down" }, | ||
| { ComponentIcons.ConsoleClearButtonIcon, "mdi mdi-close" }, | ||
|
|
||
| // DateTimePicker 组件 | ||
| { ComponentIcons.DatePickBodyPreviousYearIcon, "mdi mdi-chevron-double-left" }, | ||
| { ComponentIcons.DatePickBodyPreviousMonthIcon, "mdi mdi-chevron-left" }, | ||
| { ComponentIcons.DatePickBodyNextMonthIcon, "mdi mdi-chevron-right" }, | ||
| { ComponentIcons.DatePickBodyNextYearIcon, "mdi mdi-chevron-double-right" }, | ||
| { ComponentIcons.DateTimePickerIcon, "mdi mdi-calendar-outline" }, | ||
|
|
||
| { ComponentIcons.TimePickerCellUpIcon, "mdi mdi-chevron-up" }, | ||
| { ComponentIcons.TimePickerCellDownIcon, "mdi mdi-chevron-down" }, | ||
|
|
||
| // DateTimeRange 组件 | ||
| { ComponentIcons.DateTimeRangeIcon, "mdi mdi-calendar-range-outline" }, | ||
| { ComponentIcons.DateTimeRangeClearIcon, "mdi mdi-close-circle-outline" }, | ||
|
|
||
|
|
@@ -88,6 +86,11 @@ internal static class MaterialDesignIcons | |
| { ComponentIcons.InputNumberPlusIcon, "mdi mdi-plus-circle-outline" }, | ||
|
|
||
| { ComponentIcons.LayoutMenuBarIcon, "mdi mdi-menu" }, | ||
| { ComponentIcons.TabContextMenuRefreshIcon, "mdi mdi-refresh" }, | ||
| { ComponentIcons.TabContextMenuCloseIcon, "mdi mdi-close" }, | ||
| { ComponentIcons.TabContextMenuCloseOtherIcon, "mdi mdi-menu" }, | ||
| { ComponentIcons.TabContextMenuCloseAllIcon, "mdi mdi-arrow-left-right-bold" }, | ||
|
|
||
| { ComponentIcons.LogoutLinkIcon, "mdi mdi-logout" }, | ||
|
|
||
| { ComponentIcons.LoadingIcon, "mdi mdi-loading mdi-spin" }, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
src/BootstrapBlazor/Services/Bluetooth/BluetoothDeviceInfo.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| // Copyright (c) Argo Zhang ([email protected]). All rights reserved. | ||
| // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
| // Website: https://www.blazor.zone or https://argozhang.github.io/ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the Apache 2.0 License | ||
| // See the LICENSE file in the project root for more information. | ||
| // Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone | ||
|
|
||
| namespace BootstrapBlazor.Components; | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick (typo): Typo in method name 'OnRefrsh' – consider renaming to 'OnRefresh'.
Renaming this method will improve consistency and readability for developers working with tab context menu callbacks.