diff --git a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj index 2443f07cdc9..c0bc38c5d9d 100644 --- a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj +++ b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj @@ -20,7 +20,7 @@ - + @@ -33,14 +33,14 @@ - + - + @@ -51,7 +51,7 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListFilled.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListFilled.razor new file mode 100644 index 00000000000..96afa8de540 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListFilled.razor @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListOutlined.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListOutlined.razor new file mode 100644 index 00000000000..ee71b79a85b --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListOutlined.razor @@ -0,0 +1,447 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListTwoTone.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListTwoTone.razor new file mode 100644 index 00000000000..9d81f806415 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListTwoTone.razor @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIcons.razor similarity index 59% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIcons.razor index 002c74ab763..8d1b2d5e684 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIcons.razor @@ -1,10 +1,6 @@ @page "/ant-design-icon" -@layout MainLayout @inject IStringLocalizer Localizer - - - - +@inherits BootstrapIcon

@Localizer["AntDesignIconTitle"]

@@ -22,11 +18,23 @@
<link href="_content/BootstrapBlazor.AntDesignIcon/BootstrapBlazor.AntDesignIcon.bundle.scp.css" rel="stylesheet">
-
- - -
-
<AntDesignIcon Category="AntDesignIconCategory.Outlined" Name="github"></AntDesignIcon>
@((MarkupString)Localizer["Icons"].Value)
+ +

Outlined

+
+
+ +
+ +

Filled

+
+ +
+ +

TwoTone

+
+ +
+
diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor.cs deleted file mode 100644 index 13e96516516..00000000000 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor.cs +++ /dev/null @@ -1,14 +0,0 @@ -// 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(argo@live.ca) Website: https://www.blazor.zone - -namespace BootstrapBlazor.Server.Components.Samples.Icons; - -/// -/// IconPark 图标库示例 -/// -public partial class AntDesignIcons -{ - -} diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor new file mode 100644 index 00000000000..43ec664bd58 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor @@ -0,0 +1 @@ +@inherits WebSiteModuleComponentBase diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.cs similarity index 75% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor.cs rename to src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.cs index b7a7a1da369..70e2d765304 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.cs @@ -6,9 +6,10 @@ namespace BootstrapBlazor.Server.Components.Samples.Icons; /// -/// IconPark 图标库示例 +/// Icon component base class /// -public partial class IconParks +[JSModuleAutoLoader("Samples/Icons/BootstrapIcon.razor.js")] +public partial class BootstrapIcon { } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.js b/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.js new file mode 100644 index 00000000000..fe233f254ee --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.js @@ -0,0 +1,42 @@ +import Data from '../../../_content/BootstrapBlazor/modules/data.js'; +import EventHandler from '../../../_content/BootstrapBlazor/modules/event-handler.js'; +import { copy } from '../../../_content/BootstrapBlazor/modules/utility.js'; +export function init(id) { + const el = document.getElementById(id); + const tooltips = []; + [...el.querySelectorAll('svg')].forEach(s => { + const use = s.querySelector('use'); + const url = use.getAttribute('href'); + const segs = url.split('#'); + if (segs.length == 2) { + const title = segs[1]; + s.parentElement.setAttribute('data-bs-original-title', title); + tooltips.push(new bootstrap.Tooltip(s.parentElement)); + } + }); + EventHandler.on(el, 'click', 'div', e => { + const div = e.delegateTarget; + const href = div.querySelector('use').getAttribute('href'); + const text = ``; + copy(text); + const tooltip = bootstrap.Tooltip.getInstance(div); + tooltip.setContent({ '.tooltip-inner': 'Copy' }); + const handler = setTimeout(() => { + clearTimeout(handler); + tooltip.setContent({ '.tooltip-inner': div.getAttribute('data-bs-original-title') }); + }, 1000); + }); + Data.set(id, { + el, + tooltips + }) +} + +export function dispose(id) { + const data = Data.get(id); + Data.remove(id); + + const { el, tooltips } = data; + EventHandler.off(el, 'click'); + tooltips.forEach(t => t.dispose()); +} diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcons.razor index 7b5e45b3fd2..8937d228892 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcons.razor @@ -1,5 +1,4 @@ @page "/bs-icon" -@layout MainLayout @inject IStringLocalizer Localizer

@Localizer["Title"]

diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIconList.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIconList.razor new file mode 100644 index 00000000000..5bfc403e7a9 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIconList.razor @@ -0,0 +1,296 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIcons.razor similarity index 72% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIcons.razor index 5fa646fc271..4429b053007 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIcons.razor @@ -1,10 +1,6 @@ @page "/element-icon" -@layout MainLayout @inject IStringLocalizer Localizer - - - - +@inherits BootstrapIcon

@Localizer["ElementIconTitle"]

@@ -22,10 +18,10 @@
<link href="_content/BootstrapBlazor.ElementIcon/BootstrapBlazor.ElementIcon.bundle.scp.css" rel="stylesheet">
-
- -
-
<ElementIcon Name="upload-filled"></ElementIcon>
@((MarkupString)Localizer["Icons"].Value)
+ +
+ +
diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor.cs deleted file mode 100644 index dea29a03f45..00000000000 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor.cs +++ /dev/null @@ -1,14 +0,0 @@ -// 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(argo@live.ca) Website: https://www.blazor.zone - -namespace BootstrapBlazor.Server.Components.Samples.Icons; - -/// -/// ElementIcons 示例代码 -/// -public partial class ElementIcons -{ - -} diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/FAIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/FAIcons.razor index de08154ce33..12ad25472d5 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/FAIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/FAIcons.razor @@ -1,5 +1,4 @@ @page "/fa-icon" -@layout MainLayout @inject IStringLocalizer Localizer

@Localizer["Title"]

diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParkList.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParkList.razor new file mode 100644 index 00000000000..2458e640936 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParkList.razor @@ -0,0 +1,2658 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParks.razor similarity index 67% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParks.razor index dcb87f4c319..fd85900b721 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParks.razor @@ -1,10 +1,6 @@ @page "/icon-park" -@layout MainLayout @inject IStringLocalizer Localizer - - - - +@inherits BootstrapIcon

@Localizer["IconParkTitle"]

@@ -22,11 +18,10 @@
<link href="_content/BootstrapBlazor.IconPark/BootstrapBlazor.IconPark.bundle.scp.css" rel="stylesheet">
-
- - -
-
<ByteDanceIcon Name="github"></ByteDanceIcon>
@((MarkupString)Localizer["Icons"].Value)
+ +
+ +
diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/MaterialDesignIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/MaterialDesignIcons.razor index 9475bf14af6..b3fc8159787 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/MaterialDesignIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/MaterialDesignIcons.razor @@ -1,5 +1,4 @@ @page "/md-icon" -@layout MainLayout @inject IStringLocalizer Localizer

@Localizer["Title"]

diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OctIcons.razor similarity index 72% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OctIcons.razor index 2a0e3e4e508..a63899551dd 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OctIcons.razor @@ -1,10 +1,6 @@ @page "/oct-icon" -@layout MainLayout @inject IStringLocalizer Localizer - - - - +@inherits BootstrapIcon

@Localizer["OctIconTitle"]

@@ -22,10 +18,10 @@
<link href="_content/BootstrapBlazor.OctIcon/BootstrapBlazor.OctIcon.bundle.scp.css" rel="stylesheet">
-
- -
-
<OctIcon Name="mark-github-16"></OctIcon>
@((MarkupString)Localizer["Icons"].Value)
+ +
+ +
diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OcticonIconList.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OcticonIconList.razor new file mode 100644 index 00000000000..c1f9bd19e44 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OcticonIconList.razor @@ -0,0 +1,329 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor.cs deleted file mode 100644 index 4e232270f28..00000000000 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor.cs +++ /dev/null @@ -1,14 +0,0 @@ -// 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(argo@live.ca) Website: https://www.blazor.zone - -namespace BootstrapBlazor.Server.Components.Samples.Icons; - -/// -/// OctIcons 图标示例 -/// -public partial class OctIcons -{ - -} diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIconList.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIconList.razor similarity index 100% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIconList.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIconList.razor diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIcons.razor similarity index 92% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIcons.razor index 416b7a3abd9..d7d496da78a 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIcons.razor @@ -1,6 +1,6 @@ @page "/univer-icon" -@layout MainLayout @inject IStringLocalizer Localizer +@inherits BootstrapIcon

@Localizer["UniverIconTitle"]

@@ -22,6 +22,6 @@
@((MarkupString)Localizer["Icons"].Value)
-
+
diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor.cs deleted file mode 100644 index bc0b5ee7847..00000000000 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor.cs +++ /dev/null @@ -1,14 +0,0 @@ -// 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(argo@live.ca) Website: https://www.blazor.zone - -namespace BootstrapBlazor.Server.Components.Samples.Icons; - -/// -/// OctIcons 图标示例 -/// -public partial class UniverIcons -{ - -} diff --git a/src/BootstrapBlazor.Server/wwwroot/css/site.css b/src/BootstrapBlazor.Server/wwwroot/css/site.css index 563c14b7302..8a26f0039b2 100644 --- a/src/BootstrapBlazor.Server/wwwroot/css/site.css +++ b/src/BootstrapBlazor.Server/wwwroot/css/site.css @@ -390,3 +390,7 @@ code { background-color: var(--bb-primary-color); color: #fff; } + + .icon-list .bb-iconpark-icon { + --bb-svg-icon-width: 16px; + }