-
-
Notifications
You must be signed in to change notification settings - Fork 363
feat(UniverIcon): add UniverIcon component #5557
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 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
868226a
doc: 增加 UniverIcon 组件
ArgoZhang c841ab8
doc: 更新本地化资源文件
ArgoZhang defc28c
chore: 增加 UniverIcon 依赖包
ArgoZhang b3e41df
doc: 增加 UniverIcon 菜单
ArgoZhang c858524
doc: 增加菜单多语言支持
ArgoZhang 53864dd
chore: 更新包
ArgoZhang 2bde8d6
refactor: 微调样式
ArgoZhang d39f821
refactor: 增加 IconLayout 母版页
ArgoZhang bad0891
doc: 更新样式表路径
ArgoZhang 2fcdf4c
test: 更新单元测试
ArgoZhang 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
4 changes: 4 additions & 0 deletions
4
src/BootstrapBlazor.Server/Components/Layout/IconLayout.razor
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 |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| @inherits LayoutComponentBase | ||
| @layout MainLayout | ||
|
|
||
| @Body |
14 changes: 14 additions & 0 deletions
14
src/BootstrapBlazor.Server/Components/Layout/IconLayout.razor.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 |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // 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.Server.Components.Layout; | ||
|
|
||
| /// <summary> | ||
| /// Icon Layout Component | ||
| /// </summary> | ||
| public partial class IconLayout | ||
| { | ||
|
|
||
| } |
434 changes: 434 additions & 0 deletions
434
src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIconList.razor
Large diffs are not rendered by default.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor
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 |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| @page "/univer-icon" | ||
| @layout MainLayout | ||
| @inject IStringLocalizer<UniverIcons> Localizer | ||
|
|
||
| <h3>@Localizer["UniverIconTitle"]</h3> | ||
|
|
||
| <h4>@Localizer["UniverIconDescription"]</h4> | ||
|
|
||
| <PackageTips Name="BootstrapBlazor.UniverIcon" /> | ||
|
|
||
| <Tips class="mt-3"> | ||
| <ul class="ul-demo"> | ||
| <li>@Localizer["P1"]</li> | ||
| <li>@Localizer["P2"]</li> | ||
| </ul> | ||
| <div>@Localizer["P3"]</div> | ||
| </Tips> | ||
|
|
||
| <Pre><link href="_content/BootstrapBlazor.OctIcon/BootstrapBlazor.OctIcon.bundle.scp.css" rel="stylesheet"></Pre> | ||
|
|
||
| <Pre><UniverIcon Name="create-copy-single"></UniverIcon></Pre> | ||
|
|
||
| <div>@((MarkupString)Localizer["Icons"].Value)</div> | ||
|
|
||
| <div class="icon-list"> | ||
| <UniverIconList></UniverIconList> | ||
| </div> | ||
14 changes: 14 additions & 0 deletions
14
src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor.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 |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // 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.Server.Components.Samples.Icons; | ||
|
|
||
| /// <summary> | ||
| /// OctIcons 图标示例 | ||
| /// </summary> | ||
| public partial class UniverIcons | ||
| { | ||
|
|
||
| } |
1 change: 1 addition & 0 deletions
1
src/BootstrapBlazor.Server/Components/Samples/Icons/_Imports.razor
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| @layout IconLayout |
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
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.
Uh oh!
There was an error while loading. Please reload this page.