From fb9af02b5030fa73f8f75807eefa5f2fe8bb9d6e Mon Sep 17 00:00:00 2001 From: wherewhere Date: Mon, 27 May 2024 00:21:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E6=B7=BB=E5=8A=A0=E5=9B=BD?= =?UTF-8?q?=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .filenesting.json | 21 +++++ Wherlog/App.razor.cs | 24 +++++ Wherlog/Controls/NavMenu.en-US.resx | 141 ++++++++++++++++++++++++++++ Wherlog/Controls/NavMenu.razor | 18 ++-- Wherlog/Controls/NavMenu.resx | 141 ++++++++++++++++++++++++++++ Wherlog/Pages/HomePage.en-US.resx | 123 ++++++++++++++++++++++++ Wherlog/Pages/HomePage.razor | 5 +- Wherlog/Pages/HomePage.resx | 123 ++++++++++++++++++++++++ Wherlog/Program.cs | 13 --- Wherlog/Wherlog.csproj | 10 +- Wherlog/_Imports.razor | 1 + Wherlog/wwwroot/index.html | 2 +- 12 files changed, 596 insertions(+), 26 deletions(-) create mode 100644 .filenesting.json create mode 100644 Wherlog/App.razor.cs create mode 100644 Wherlog/Controls/NavMenu.en-US.resx create mode 100644 Wherlog/Controls/NavMenu.resx create mode 100644 Wherlog/Pages/HomePage.en-US.resx create mode 100644 Wherlog/Pages/HomePage.resx delete mode 100644 Wherlog/Program.cs diff --git a/.filenesting.json b/.filenesting.json new file mode 100644 index 0000000..14facae --- /dev/null +++ b/.filenesting.json @@ -0,0 +1,21 @@ +{ + "help": "https://go.microsoft.com/fwlink/?linkid=866610", + "dependentFileProviders": { + "add": { + "extensionToExtension": { + "add": { + ".resx": [ + ".razor" + ] + } + }, + "pathSegment": { + "add": { + ".*": [ + ".resx" + ] + } + } + } + } +} diff --git a/Wherlog/App.razor.cs b/Wherlog/App.razor.cs new file mode 100644 index 0000000..1ae68e4 --- /dev/null +++ b/Wherlog/App.razor.cs @@ -0,0 +1,24 @@ +using Microsoft.AspNetCore.Components.Web; +using Microsoft.AspNetCore.Components.WebAssembly.Hosting; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.FluentUI.AspNetCore.Components; +using System.Threading.Tasks; + +namespace Wherlog +{ + public partial class App + { + public static Task Main(string[] args) + { + WebAssemblyHostBuilder builder = WebAssemblyHostBuilder.CreateDefault(args); + builder.RootComponents.Add("#app"); + builder.RootComponents.Add("head::after"); + + builder.Services + .AddLocalization() + .AddFluentUIComponents(); + + return builder.Build().RunAsync(); + } + } +} diff --git a/Wherlog/Controls/NavMenu.en-US.resx b/Wherlog/Controls/NavMenu.en-US.resx new file mode 100644 index 0000000..a1eb028 --- /dev/null +++ b/Wherlog/Controls/NavMenu.en-US.resx @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Archive + + + Category + + + Home + + + Navigation menu + + + Menu expand/collapse toggle + + + Settings + + + Tag + + \ No newline at end of file diff --git a/Wherlog/Controls/NavMenu.razor b/Wherlog/Controls/NavMenu.razor index 0812972..c4d9495 100644 --- a/Wherlog/Controls/NavMenu.razor +++ b/Wherlog/Controls/NavMenu.razor @@ -1,7 +1,9 @@ -