first commit
This commit is contained in:
parent
93bceb70ac
commit
8e41a81e8a
BIN
.vs/ProjectEvaluation/wtmproject.metadata.v5.1
Normal file
BIN
.vs/ProjectEvaluation/wtmproject.metadata.v5.1
Normal file
Binary file not shown.
BIN
.vs/ProjectEvaluation/wtmproject.projects.v5.1
Normal file
BIN
.vs/ProjectEvaluation/wtmproject.projects.v5.1
Normal file
Binary file not shown.
BIN
.vs/wtmProject/DesignTimeBuild/.dtbcache.v2
Normal file
BIN
.vs/wtmProject/DesignTimeBuild/.dtbcache.v2
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0
.vs/wtmProject/FileContentIndex/read.lock
Normal file
0
.vs/wtmProject/FileContentIndex/read.lock
Normal file
1016
.vs/wtmProject/config/applicationhost.config
Normal file
1016
.vs/wtmProject/config/applicationhost.config
Normal file
File diff suppressed because it is too large
Load Diff
BIN
.vs/wtmProject/v17/.futdcache.v2
Normal file
BIN
.vs/wtmProject/v17/.futdcache.v2
Normal file
Binary file not shown.
BIN
.vs/wtmProject/v17/.suo
Normal file
BIN
.vs/wtmProject/v17/.suo
Normal file
Binary file not shown.
BIN
.vs/wtmProject/v17/HierarchyCache.v1.txt
Normal file
BIN
.vs/wtmProject/v17/HierarchyCache.v1.txt
Normal file
Binary file not shown.
BIN
.vs/wtmProject/v17/fileList.bin
Normal file
BIN
.vs/wtmProject/v17/fileList.bin
Normal file
Binary file not shown.
40
wtmProject.Client/Program.cs
Normal file
40
wtmProject.Client/Program.cs
Normal 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();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
13
wtmProject.Client/Properties/launchSettings.json
Normal file
13
wtmProject.Client/Properties/launchSettings.json
Normal 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/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
wtmProject.Client/bin/Debug/net6.0/Aliyun.OSS.Core.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/Aliyun.OSS.Core.dll
Normal file
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/BootstrapBlazor.Chart.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/BootstrapBlazor.Chart.dll
Normal file
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/BootstrapBlazor.Markdown.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/BootstrapBlazor.Markdown.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/BootstrapBlazor.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/BootstrapBlazor.dll
Normal file
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/DistributedLock.Core.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/DistributedLock.Core.dll
Normal file
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/Elsa.Abstractions.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/Elsa.Abstractions.dll
Normal file
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/Elsa.Server.Core.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/Elsa.Server.Core.dll
Normal file
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/Fare.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/Fare.dll
Normal file
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/ICSharpCode.SharpZipLib.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/ICSharpCode.SharpZipLib.dll
Normal file
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/LinqKit.Core.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/LinqKit.Core.dll
Normal file
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/MediatR.Contracts.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/MediatR.Contracts.dll
Normal file
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/MediatR.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/MediatR.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.AspNetCore.Http.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.AspNetCore.Http.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.CSharp.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.CSharp.dll
Normal file
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.Data.SqlClient.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.Data.SqlClient.dll
Normal file
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.Data.Sqlite.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.Data.Sqlite.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.Extensions.Http.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.Extensions.Http.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.Identity.Client.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.Identity.Client.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.JSInterop.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.JSInterop.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.VisualBasic.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.VisualBasic.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.Win32.Registry.dll
Normal file
BIN
wtmProject.Client/bin/Debug/net6.0/Microsoft.Win32.Registry.dll
Normal file
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user