Fixed website using new project
This commit is contained in:
parent
7bac6e3e16
commit
7aa40c171b
|
@ -1,9 +1,9 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.5.33502.453
|
VisualStudioVersion = 17.6.33815.320
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LearningChineseSimplified", "LearningChineseSimplified\LearningChineseSimplified.csproj", "{CB720171-DFDA-4BDC-9194-9ADE3435F41C}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LearningChineseFixed", "LearningChineseFixed\LearningChineseFixed.csproj", "{8D2A735E-A47C-4C18-81C7-0B3871BB934B}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
@ -11,15 +11,15 @@ Global
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{CB720171-DFDA-4BDC-9194-9ADE3435F41C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{8D2A735E-A47C-4C18-81C7-0B3871BB934B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{CB720171-DFDA-4BDC-9194-9ADE3435F41C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{8D2A735E-A47C-4C18-81C7-0B3871BB934B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{CB720171-DFDA-4BDC-9194-9ADE3435F41C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{8D2A735E-A47C-4C18-81C7-0B3871BB934B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{CB720171-DFDA-4BDC-9194-9ADE3435F41C}.Release|Any CPU.Build.0 = Release|Any CPU
|
{8D2A735E-A47C-4C18-81C7-0B3871BB934B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {10EDF375-4224-4022-AB7A-1C9BDE0FD305}
|
SolutionGuid = {9E15D067-7DFD-4205-AB37-6818DF38F9BE}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
|
@ -1,6 +1,7 @@
|
||||||
<Router AppAssembly="@typeof(App).Assembly">
|
<Router AppAssembly="@typeof(App).Assembly">
|
||||||
<Found Context="routeData">
|
<Found Context="routeData">
|
||||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
|
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
|
||||||
|
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
|
||||||
</Found>
|
</Found>
|
||||||
<NotFound>
|
<NotFound>
|
||||||
<PageTitle>Not found</PageTitle>
|
<PageTitle>Not found</PageTitle>
|
|
@ -1,4 +1,4 @@
|
||||||
namespace LearningChineseSimplified.Shared
|
namespace LearningChineseFixed
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// CChar stands for ChineseCharecter. Contains extra infomation about the charecter
|
/// CChar stands for ChineseCharecter. Contains extra infomation about the charecter
|
|
@ -0,0 +1,29 @@
|
||||||
|
using LearningChineseFixed;
|
||||||
|
using Microsoft.AspNetCore.Components.Web;
|
||||||
|
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||||
|
using MudBlazor;
|
||||||
|
using Blazored.LocalStorage;
|
||||||
|
using MudBlazor.Services;
|
||||||
|
|
||||||
|
namespace LearningChineseFixed
|
||||||
|
{
|
||||||
|
public class Program
|
||||||
|
{
|
||||||
|
public static async Task Main(string[] args)
|
||||||
|
{
|
||||||
|
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
||||||
|
builder.RootComponents.Add<App>("#app");
|
||||||
|
builder.RootComponents.Add<HeadOutlet>("head::after");
|
||||||
|
|
||||||
|
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
|
||||||
|
builder.Services.AddMudServices(config =>
|
||||||
|
{
|
||||||
|
config.SnackbarConfiguration.ShowTransitionDuration = 100;
|
||||||
|
config.SnackbarConfiguration.HideTransitionDuration = 100;
|
||||||
|
});
|
||||||
|
builder.Services.AddBlazoredLocalStorage();
|
||||||
|
|
||||||
|
await builder.Build().RunAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Blazored.LocalStorage" Version="4.3.0" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.19" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.19" PrivateAssets="all" />
|
||||||
|
<PackageReference Include="MudBlazor" Version="6.5.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
|
@ -1,6 +1,6 @@
|
||||||
@page "/fetchdata"
|
@page "/fetchdata"
|
||||||
@inject HttpClient Http
|
@inject HttpClient Http
|
||||||
@using LearningChineseSimplified.Shared
|
@using LearningChineseFixed;
|
||||||
|
|
||||||
<PageTitle>Weather forecast</PageTitle>
|
<PageTitle>Weather forecast</PageTitle>
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"LearningChineseFixed": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
},
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
||||||
|
"applicationUrl": "http://localhost:5198;http:/0.0.0.0:420/"
|
||||||
|
},
|
||||||
|
"IIS Express": {
|
||||||
|
"commandName": "IISExpress",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
},
|
||||||
|
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"iisSettings": {
|
||||||
|
"windowsAuthentication": false,
|
||||||
|
"anonymousAuthentication": true,
|
||||||
|
"iisExpress": {
|
||||||
|
"applicationUrl": "http://localhost:24989",
|
||||||
|
"sslPort": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -6,6 +6,7 @@
|
||||||
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
||||||
@using Microsoft.AspNetCore.Components.WebAssembly.Http
|
@using Microsoft.AspNetCore.Components.WebAssembly.Http
|
||||||
@using Microsoft.JSInterop
|
@using Microsoft.JSInterop
|
||||||
|
@using LearningChineseFixed
|
||||||
|
@using LearningChineseFixed.Shared
|
||||||
@using MudBlazor
|
@using MudBlazor
|
||||||
@using LearningChineseSimplified
|
@using Blazored.LocalStorage
|
||||||
@using LearningChineseSimplified.Shared
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue