From 37555ca567b22cfb9cde2dd5978293b6cceb053c Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 7 Mar 2025 10:57:31 +0800 Subject: [PATCH 01/13] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=20Oct=20?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/Icons/OctIcons.razor | 8 +- .../Samples/Icons/OcticonIconList.razor | 329 ++++++++++++++++++ 2 files changed, 333 insertions(+), 4 deletions(-) create mode 100644 src/BootstrapBlazor.Server/Components/Samples/Icons/OcticonIconList.razor diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor index 2a0e3e4e508..d736c1d2d71 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor @@ -22,10 +22,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/OcticonIconList.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/OcticonIconList.razor new file mode 100644 index 00000000000..9b4033b2ce1 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/OcticonIconList.razor @@ -0,0 +1,329 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 788a4d63b5504974dfc5826c07067e0981c70263 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 7 Mar 2025 11:11:00 +0800 Subject: [PATCH 02/13] =?UTF-8?q?doc:=20=E7=A7=BB=E9=99=A4=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/Icons/IconParks.razor | 4 ---- .../Components/Samples/Icons/OctIcons.razor | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor index dcb87f4c319..48bf89fd3e4 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor @@ -2,10 +2,6 @@ @layout MainLayout @inject IStringLocalizer Localizer - - - -

@Localizer["IconParkTitle"]

@Localizer["IconParkDescription"]

diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor index d736c1d2d71..e216f865e86 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor @@ -2,10 +2,6 @@ @layout MainLayout @inject IStringLocalizer Localizer - - - -

@Localizer["OctIconTitle"]

@Localizer["OctIconDescription"]

From f35c69c84c0a924e1f6a2702c6a62c839e8ea4b7 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 7 Mar 2025 11:12:36 +0800 Subject: [PATCH 03/13] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20OctIcon=20?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj index 2443f07cdc9..363d323d849 100644 --- a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj +++ b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj @@ -51,7 +51,7 @@ - + From 2af5d0d518c6fddd954069d90c457f0a78d8fabd Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 7 Mar 2025 12:44:42 +0800 Subject: [PATCH 04/13] =?UTF-8?q?doc:=20=E5=A2=9E=E5=8A=A0=20ant=20?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Icons/AntDesignIconListFilled.razor | 234 +++++++++ .../Icons/AntDesignIconListOutlined.razor | 447 ++++++++++++++++++ .../Icons/AntDesignIconListTwoTone.razor | 150 ++++++ 3 files changed, 831 insertions(+) create mode 100644 src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListFilled.razor create mode 100644 src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListOutlined.razor create mode 100644 src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListTwoTone.razor diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListFilled.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListFilled.razor new file mode 100644 index 00000000000..3f54c66d2aa --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListFilled.razor @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListOutlined.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListOutlined.razor new file mode 100644 index 00000000000..ea495d1addb --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListOutlined.razor @@ -0,0 +1,447 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListTwoTone.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListTwoTone.razor new file mode 100644 index 00000000000..f1215f68985 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListTwoTone.razor @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 0049faf529c55cee9af41c288607a85396fe8749 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 7 Mar 2025 12:45:00 +0800 Subject: [PATCH 05/13] =?UTF-8?q?doc:=20=E5=A2=9E=E5=8A=A0=20Element=20?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Samples/Icons/ElementIconList.razor | 296 ++++++++++++++++++ 1 file changed, 296 insertions(+) create mode 100644 src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIconList.razor diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIconList.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIconList.razor new file mode 100644 index 00000000000..ea666027efd --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIconList.razor @@ -0,0 +1,296 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 055103d87480f902011d8c8af9a19f26b6b37f9a Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 7 Mar 2025 12:45:13 +0800 Subject: [PATCH 06/13] =?UTF-8?q?doc:=20=E5=A2=9E=E5=8A=A0=20IconPark=20?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Samples/Icons/IconParkList.razor | 2658 +++++++++++++++++ 1 file changed, 2658 insertions(+) create mode 100644 src/BootstrapBlazor.Server/Components/Samples/Icons/IconParkList.razor diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParkList.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParkList.razor new file mode 100644 index 00000000000..e757daceda1 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParkList.razor @@ -0,0 +1,2658 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 6a3c0818ab6ab6cdeeac3df62489dc6e1a2ac912 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 7 Mar 2025 12:45:24 +0800 Subject: [PATCH 07/13] =?UTF-8?q?doc:=20=E5=A2=9E=E5=8A=A0=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E5=88=97=E8=A1=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Samples/Icons/AntDesignIcons.razor | 17 ++++++++++++----- .../Components/Samples/Icons/ElementIcons.razor | 8 ++++---- .../Components/Samples/Icons/IconParks.razor | 9 ++++----- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor index 002c74ab763..0d91f50c261 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor @@ -22,11 +22,18 @@
<link href="_content/BootstrapBlazor.AntDesignIcon/BootstrapBlazor.AntDesignIcon.bundle.scp.css" rel="stylesheet">
-
- - -
-
<AntDesignIcon Category="AntDesignIconCategory.Outlined" Name="github"></AntDesignIcon>
@((MarkupString)Localizer["Icons"].Value)
+ +
+ +
+ +
+ +
+ +
+ +
diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor index 5fa646fc271..df21b4de85a 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor @@ -22,10 +22,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/IconParks.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor index 48bf89fd3e4..c3ded4abc2d 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor @@ -18,11 +18,10 @@
<link href="_content/BootstrapBlazor.IconPark/BootstrapBlazor.IconPark.bundle.scp.css" rel="stylesheet">
-
- - -
-
<ByteDanceIcon Name="github"></ByteDanceIcon>
@((MarkupString)Localizer["Icons"].Value)
+ +
+ +
From 707400e3f8f6de08aaf06f2db4571b7c68f63825 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 7 Mar 2025 12:45:42 +0800 Subject: [PATCH 08/13] =?UTF-8?q?style:=20=E5=AD=97=E8=8A=82=E8=B7=B3?= =?UTF-8?q?=E5=8A=A8=E5=9B=BE=E6=A0=87=E5=A4=A7=E5=B0=8F=E6=9B=B4=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=2016px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor.Server/wwwroot/css/site.css | 4 ++++ 1 file changed, 4 insertions(+) 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; + } From 44e105d15490fce137d6cb32f9d819f5e6357e54 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 7 Mar 2025 12:45:58 +0800 Subject: [PATCH 09/13] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj index 363d323d849..c0bc38c5d9d 100644 --- a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj +++ b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj @@ -20,7 +20,7 @@ - + @@ -33,14 +33,14 @@ - + - + From d05ec27f55a801530128ccd5bc80f385e30be109 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 7 Mar 2025 12:48:57 +0800 Subject: [PATCH 10/13] =?UTF-8?q?doc:=20=E7=A7=BB=E9=99=A4=E6=89=93?= =?UTF-8?q?=E5=8C=85=E6=A0=B7=E5=BC=8F=E5=BC=95=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/Icons/AntDesignIcons.razor | 4 ---- .../Components/Samples/Icons/ElementIcons.razor | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor index 0d91f50c261..ffed9b45da3 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor @@ -2,10 +2,6 @@ @layout MainLayout @inject IStringLocalizer Localizer - - - -

@Localizer["AntDesignIconTitle"]

@Localizer["AntDesignIconDescription"]

diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor index df21b4de85a..0f4fd73743a 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor @@ -2,10 +2,6 @@ @layout MainLayout @inject IStringLocalizer Localizer - - - -

@Localizer["ElementIconTitle"]

@Localizer["ElementIconDescription"]

From ec3bbb9ab56475d7ed8c5afde2ed9ba5bb365898 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 7 Mar 2025 13:40:58 +0800 Subject: [PATCH 11/13] =?UTF-8?q?refactor:=20=E8=B0=83=E6=95=B4=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{ => AntDesign}/AntDesignIconListFilled.razor | 2 +- .../AntDesignIconListOutlined.razor | 2 +- .../{ => AntDesign}/AntDesignIconListTwoTone.razor | 2 +- .../Icons/{ => AntDesign}/AntDesignIcons.razor | 4 +++- .../Samples/Icons/AntDesignIcons.razor.cs | 14 -------------- .../Components/Samples/Icons/BootstrapIcons.razor | 1 - .../Icons/{ => ElementIcon}/ElementIconList.razor | 2 +- .../Icons/{ => ElementIcon}/ElementIcons.razor | 1 - .../Components/Samples/Icons/ElementIcons.razor.cs | 14 -------------- .../Components/Samples/Icons/FAIcons.razor | 1 - .../Icons/{ => IconPark}/IconParkList.razor | 2 +- .../Samples/Icons/{ => IconPark}/IconParks.razor | 1 - .../Components/Samples/Icons/IconParks.razor.cs | 14 -------------- .../Samples/Icons/MaterialDesignIcons.razor | 1 - .../Samples/Icons/{ => OctIcon}/OctIcons.razor | 1 - .../Icons/{ => OctIcon}/OcticonIconList.razor | 2 +- .../Components/Samples/Icons/OctIcons.razor.cs | 14 -------------- .../Icons/{ => UniverIcon}/UniverIconList.razor | 0 .../Icons/{ => UniverIcon}/UniverIcons.razor | 1 - .../Icons/{ => UniverIcon}/UniverIcons.razor.cs | 0 20 files changed, 9 insertions(+), 70 deletions(-) rename src/BootstrapBlazor.Server/Components/Samples/Icons/{ => AntDesign}/AntDesignIconListFilled.razor (99%) rename src/BootstrapBlazor.Server/Components/Samples/Icons/{ => AntDesign}/AntDesignIconListOutlined.razor (99%) rename src/BootstrapBlazor.Server/Components/Samples/Icons/{ => AntDesign}/AntDesignIconListTwoTone.razor (99%) rename src/BootstrapBlazor.Server/Components/Samples/Icons/{ => AntDesign}/AntDesignIcons.razor (89%) delete mode 100644 src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor.cs rename src/BootstrapBlazor.Server/Components/Samples/Icons/{ => ElementIcon}/ElementIconList.razor (99%) rename src/BootstrapBlazor.Server/Components/Samples/Icons/{ => ElementIcon}/ElementIcons.razor (97%) delete mode 100644 src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor.cs rename src/BootstrapBlazor.Server/Components/Samples/Icons/{ => IconPark}/IconParkList.razor (99%) rename src/BootstrapBlazor.Server/Components/Samples/Icons/{ => IconPark}/IconParks.razor (97%) delete mode 100644 src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor.cs rename src/BootstrapBlazor.Server/Components/Samples/Icons/{ => OctIcon}/OctIcons.razor (97%) rename src/BootstrapBlazor.Server/Components/Samples/Icons/{ => OctIcon}/OcticonIconList.razor (99%) delete mode 100644 src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor.cs rename src/BootstrapBlazor.Server/Components/Samples/Icons/{ => UniverIcon}/UniverIconList.razor (100%) rename src/BootstrapBlazor.Server/Components/Samples/Icons/{ => UniverIcon}/UniverIcons.razor (97%) rename src/BootstrapBlazor.Server/Components/Samples/Icons/{ => UniverIcon}/UniverIcons.razor.cs (100%) diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListFilled.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListFilled.razor similarity index 99% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListFilled.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListFilled.razor index 3f54c66d2aa..96afa8de540 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListFilled.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListFilled.razor @@ -1,4 +1,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListOutlined.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListOutlined.razor similarity index 99% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListOutlined.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListOutlined.razor index ea495d1addb..ee71b79a85b 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListOutlined.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListOutlined.razor @@ -1,4 +1,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListTwoTone.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListTwoTone.razor similarity index 99% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListTwoTone.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListTwoTone.razor index f1215f68985..9d81f806415 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIconListTwoTone.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIconListTwoTone.razor @@ -1,4 +1,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIcons.razor similarity index 89% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIcons.razor index ffed9b45da3..66468c4e8c5 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIcons.razor @@ -1,5 +1,4 @@ @page "/ant-design-icon" -@layout MainLayout @inject IStringLocalizer Localizer

@Localizer["AntDesignIconTitle"]

@@ -22,14 +21,17 @@
@((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/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/ElementIconList.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIconList.razor similarity index 99% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIconList.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIconList.razor index ea666027efd..5bfc403e7a9 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIconList.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIconList.razor @@ -1,4 +1,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIcons.razor similarity index 97% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIcons.razor index 0f4fd73743a..24734c9c914 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIcons.razor @@ -1,5 +1,4 @@ @page "/element-icon" -@layout MainLayout @inject IStringLocalizer Localizer

@Localizer["ElementIconTitle"]

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/IconParkList.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParkList.razor similarity index 99% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/IconParkList.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParkList.razor index e757daceda1..2458e640936 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParkList.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParkList.razor @@ -1,4 +1,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParks.razor similarity index 97% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParks.razor index c3ded4abc2d..3f124749ab3 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParks.razor @@ -1,5 +1,4 @@ @page "/icon-park" -@layout MainLayout @inject IStringLocalizer Localizer

@Localizer["IconParkTitle"]

diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor.cs deleted file mode 100644 index b7a7a1da369..00000000000 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.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 IconParks -{ - -} 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 97% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OctIcons.razor index e216f865e86..27d02c4ba9d 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OctIcons.razor @@ -1,5 +1,4 @@ @page "/oct-icon" -@layout MainLayout @inject IStringLocalizer Localizer

@Localizer["OctIconTitle"]

diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/OcticonIconList.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OcticonIconList.razor similarity index 99% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/OcticonIconList.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OcticonIconList.razor index 9b4033b2ce1..c1f9bd19e44 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/OcticonIconList.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OcticonIconList.razor @@ -1,4 +1,4 @@ - + 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 97% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor rename to src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIcons.razor index 416b7a3abd9..946833af914 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIcons.razor @@ -1,5 +1,4 @@ @page "/univer-icon" -@layout MainLayout @inject IStringLocalizer Localizer

@Localizer["UniverIconTitle"]

diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIcons.razor.cs similarity index 100% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor.cs rename to src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIcons.razor.cs From 979935c625b1b3d9ec7e44edcb03fbe7e03f1911 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 7 Mar 2025 14:16:05 +0800 Subject: [PATCH 12/13] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=E9=BC=A0?= =?UTF-8?q?=E6=A0=87=E9=80=89=E4=B8=AD=E8=84=9A=E6=9C=AC=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Icons/AntDesign/AntDesignIcons.razor | 27 ++++++++++--------- .../Samples/Icons/BootstrapIcon.razor | 1 + ...rIcons.razor.cs => BootstrapIcon.razor.cs} | 5 ++-- .../Samples/Icons/BootstrapIcon.razor.js | 8 ++++++ .../Icons/ElementIcon/ElementIcons.razor | 3 ++- .../Samples/Icons/IconPark/IconParks.razor | 3 ++- .../Samples/Icons/OctIcon/OctIcons.razor | 3 ++- .../Icons/UniverIcon/UniverIcons.razor | 3 ++- 8 files changed, 35 insertions(+), 18 deletions(-) create mode 100644 src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor rename src/BootstrapBlazor.Server/Components/Samples/Icons/{UniverIcon/UniverIcons.razor.cs => BootstrapIcon.razor.cs} (75%) create mode 100644 src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.js diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIcons.razor index 66468c4e8c5..8d1b2d5e684 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesign/AntDesignIcons.razor @@ -1,5 +1,6 @@ @page "/ant-design-icon" @inject IStringLocalizer Localizer +@inherits BootstrapIcon

@Localizer["AntDesignIconTitle"]

@@ -22,16 +23,18 @@
@((MarkupString)Localizer["Icons"].Value)

Outlined

-
- -
- -

Filled

-
- -
- -

TwoTone

-
- +
+
+ +
+ +

Filled

+
+ +
+ +

TwoTone

+
+ +
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/UniverIcon/UniverIcons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.cs similarity index 75% rename from src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIcons.razor.cs rename to src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.cs index bc0b5ee7847..70e2d765304 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIcons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.cs @@ -6,9 +6,10 @@ namespace BootstrapBlazor.Server.Components.Samples.Icons; /// -/// OctIcons 图标示例 +/// Icon component base class /// -public partial class UniverIcons +[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..a5c3499e302 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.js @@ -0,0 +1,8 @@ +export function init(id) { + const list = document.getElementById(id); + console.log(list); +} + +export function dispose(id) { + +} diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIcons.razor index 24734c9c914..4429b053007 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcon/ElementIcons.razor @@ -1,5 +1,6 @@ @page "/element-icon" @inject IStringLocalizer Localizer +@inherits BootstrapIcon

@Localizer["ElementIconTitle"]

@@ -21,6 +22,6 @@
@((MarkupString)Localizer["Icons"].Value)
-
+
diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParks.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParks.razor index 3f124749ab3..fd85900b721 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParks.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/IconPark/IconParks.razor @@ -1,5 +1,6 @@ @page "/icon-park" @inject IStringLocalizer Localizer +@inherits BootstrapIcon

@Localizer["IconParkTitle"]

@@ -21,6 +22,6 @@
@((MarkupString)Localizer["Icons"].Value)
-
+
diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OctIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OctIcons.razor index 27d02c4ba9d..a63899551dd 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OctIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcon/OctIcons.razor @@ -1,5 +1,6 @@ @page "/oct-icon" @inject IStringLocalizer Localizer +@inherits BootstrapIcon

@Localizer["OctIconTitle"]

@@ -21,6 +22,6 @@
@((MarkupString)Localizer["Icons"].Value)
-
+
diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIcons.razor index 946833af914..d7d496da78a 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcon/UniverIcons.razor @@ -1,5 +1,6 @@ @page "/univer-icon" @inject IStringLocalizer Localizer +@inherits BootstrapIcon

@Localizer["UniverIconTitle"]

@@ -21,6 +22,6 @@
@((MarkupString)Localizer["Icons"].Value)
-
+
From 9058762f178102aa27ec1cd83c1dd07ccba91f58 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 7 Mar 2025 14:37:17 +0800 Subject: [PATCH 13/13] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=8B=B7?= =?UTF-8?q?=E8=B4=9D=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Samples/Icons/BootstrapIcon.razor.js | 40 +++++++++++++++++-- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.js b/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.js index a5c3499e302..fe233f254ee 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.js +++ b/src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcon.razor.js @@ -1,8 +1,42 @@ -export function init(id) { - const list = document.getElementById(id); - console.log(list); +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()); }