Skip to content

Commit f9e7679

Browse files
committed
Refactor IconsCollection to dynamic icon loading
Replaces the hardcoded icon list in IconsCollection.razor with dynamic reflection-based loading of icon components from the BlazorOcticons assembly. This makes the icon collection automatically include all available icons and simplifies maintenance. Also removes the PreferExactMatches parameter from App.razor Router.
1 parent 7815947 commit f9e7679

6 files changed

Lines changed: 116 additions & 686 deletions

File tree

.claude/settings.local.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(dotnet build:*)",
5+
"WebFetch(domain:www.nuget.org)",
6+
"Bash(dotnet nuget:*)",
7+
"Bash(dotnet restore:*)",
8+
"Bash(dir \"C:\\GitHub\\BlazorOcticons-web\\WebApp\\obj\\Debug\\net9.0\\generated\" /s /b)",
9+
"Bash(dir \"C:\\GitHub\\BlazorOcticons-web\\WebApp\\obj\\Debug\\net9.0\" /b)",
10+
"Bash(dotnet list:*)",
11+
"Bash(dir \"%USERPROFILE%\\.nuget\\packages\\blazorocticons\\1.2.0\" /s /b)",
12+
"Bash(findstr:*)",
13+
"Bash(dotnet run:*)",
14+
"Bash(cat:*)"
15+
]
16+
}
17+
}

WebApp/App.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
1+
<Router AppAssembly="@typeof(Program).Assembly">
22
<Found Context="routeData">
33
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
44
</Found>

0 commit comments

Comments
 (0)