first commit

This commit is contained in:
何美荣 2024-05-16 17:30:33 +08:00 committed by 何美荣
parent 93bceb70ac
commit 8e41a81e8a
9174 changed files with 453194 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

BIN
.vs/wtmProject/v17/.suo Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,40 @@
using System.Globalization;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.JSInterop;
using WalkingTec.Mvvm.Core;
using WtmBlazorUtils;
namespace wtmProject.Client
{
public class Program
{
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
var configs = builder.Configuration.Get<Configs>();
builder.RootComponents.Add<Shared.App>("app");
builder.Services.AddLocalization(option => option.ResourcesPath = "Resources");
builder.Services.AddBootstrapBlazor(null, options => { options.ResourceManagerStringLocalizerType = typeof(Shared.Program); });
builder.Services.AddWtmBlazor(configs, builder.HostEnvironment.BaseAddress);
var host = builder.Build();
var jsInterop = host.Services.GetRequiredService<IJSRuntime>();
var result = await jsInterop.InvokeAsync<string>("localStorageFuncs.get", "wtmculture");
CultureInfo culture = null;
if (result == null)
{
culture = configs.SupportLanguages[0];
}
else
{
culture = new CultureInfo(result);
}
CultureInfo.DefaultThreadCurrentCulture = culture;
CultureInfo.DefaultThreadCurrentUICulture = culture;
await host.RunAsync();
}
}
}

View File

@ -0,0 +1,13 @@
{
"profiles": {
"wtmProject": {
"commandName": "Project",
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
},
"applicationUrl": "http://localhost:6051/"
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More