Skip to content

Commit b85c54e

Browse files
committed
Modified the Button component WASM Sample
1 parent fbb4654 commit b85c54e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+281
-72
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.32112.339
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ButtonSample.Server", "Server\ButtonSample.Server.csproj", "{25DB30BD-AEB9-482C-9001-02D3E0BD1B1C}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ButtonSample.Client", "Client\ButtonSample.Client.csproj", "{B0E09985-AE0A-4F12-946E-F73286BA114D}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ButtonSample.Shared", "Shared\ButtonSample.Shared.csproj", "{875E8B36-1C7E-47EF-9258-28B912E5EA4D}"
11+
EndProject
12+
Global
13+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
14+
Debug|Any CPU = Debug|Any CPU
15+
Release|Any CPU = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{25DB30BD-AEB9-482C-9001-02D3E0BD1B1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{25DB30BD-AEB9-482C-9001-02D3E0BD1B1C}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{25DB30BD-AEB9-482C-9001-02D3E0BD1B1C}.Release|Any CPU.ActiveCfg = Release|Any CPU
21+
{25DB30BD-AEB9-482C-9001-02D3E0BD1B1C}.Release|Any CPU.Build.0 = Release|Any CPU
22+
{B0E09985-AE0A-4F12-946E-F73286BA114D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{B0E09985-AE0A-4F12-946E-F73286BA114D}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{B0E09985-AE0A-4F12-946E-F73286BA114D}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{B0E09985-AE0A-4F12-946E-F73286BA114D}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{875E8B36-1C7E-47EF-9258-28B912E5EA4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{875E8B36-1C7E-47EF-9258-28B912E5EA4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{875E8B36-1C7E-47EF-9258-28B912E5EA4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{875E8B36-1C7E-47EF-9258-28B912E5EA4D}.Release|Any CPU.Build.0 = Release|Any CPU
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {98F4E214-1645-4386-B4B0-68EFB3EFED44}
36+
EndGlobalSection
37+
EndGlobal
File renamed without changes.

Button/BlazorWASMApp/ButtonSample/ButtonSample.csproj renamed to Button/BlazorWASM/ButtonSample/Client/ButtonSample.Client.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@
1313
<PackageReference Include="Syncfusion.Blazor.Themes" Version="19.4.0.48" />
1414
</ItemGroup>
1515

16+
<ItemGroup>
17+
<ProjectReference Include="..\Shared\ButtonSample.Shared.csproj" />
18+
</ItemGroup>
19+
1620
</Project>

Button/BlazorWASMApp/ButtonSample/Pages/Counter.razor renamed to Button/BlazorWASM/ButtonSample/Client/Pages/Counter.razor

File renamed without changes.

Button/BlazorWASMApp/ButtonSample/Pages/FetchData.razor renamed to Button/BlazorWASM/ButtonSample/Client/Pages/FetchData.razor

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@page "/fetchdata"
2+
@using ButtonSample.Shared
23
@inject HttpClient Http
34

45
<PageTitle>Weather forecast</PageTitle>
@@ -41,17 +42,6 @@ else
4142

4243
protected override async Task OnInitializedAsync()
4344
{
44-
forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("sample-data/weather.json");
45-
}
46-
47-
public class WeatherForecast
48-
{
49-
public DateTime Date { get; set; }
50-
51-
public int TemperatureC { get; set; }
52-
53-
public string? Summary { get; set; }
54-
55-
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
45+
forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("WeatherForecast");
5646
}
5747
}
File renamed without changes.

Button/BlazorWASMApp/ButtonSample/Program.cs renamed to Button/BlazorWASM/ButtonSample/Client/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using ButtonSample;
1+
using ButtonSample.Client;
22
using Microsoft.AspNetCore.Components.Web;
33
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
44
using Syncfusion.Blazor;
55

66
var builder = WebAssemblyHostBuilder.CreateDefault(args);
77
builder.RootComponents.Add<App>("#app");
88
builder.RootComponents.Add<HeadOutlet>("head::after");
9-
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("NTc0Mzk2QDMxMzkyZTM0MmUzMGxqN2wrdVR1RlRFYnZtNTFIVldsV1Q1VkdONzFxRU5zZzlZOHJkNUR0SzA9");
9+
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("NTc0OTkyQDMxMzkyZTM0MmUzMGxqN2wrdVR1RlRFYnZtNTFIVldsV1Q1VkdONzFxRU5zZzlZOHJkNUR0SzA9");
1010

1111
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
1212
builder.Services.AddSyncfusionBlazor(options => { options.IgnoreScriptIsolation = true; });

Button/BlazorWASMApp/ButtonSample/Properties/launchSettings.json renamed to Button/BlazorWASM/ButtonSample/Client/Properties/launchSettings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"windowsAuthentication": false,
44
"anonymousAuthentication": true,
55
"iisExpress": {
6-
"applicationUrl": "http://localhost:64641",
7-
"sslPort": 44300
6+
"applicationUrl": "http://localhost:34686",
7+
"sslPort": 44351
88
}
99
},
1010
"profiles": {
@@ -13,7 +13,7 @@
1313
"dotnetRunMessages": true,
1414
"launchBrowser": true,
1515
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
16-
"applicationUrl": "https://localhost:7295;http://localhost:5295",
16+
"applicationUrl": "https://localhost:7156;http://localhost:5156",
1717
"environmentVariables": {
1818
"ASPNETCORE_ENVIRONMENT": "Development"
1919
}

Button/BlazorWASMApp/ButtonSample/Shared/MainLayout.razor renamed to Button/BlazorWASM/ButtonSample/Client/Shared/MainLayout.razor

File renamed without changes.

Button/BlazorWASMApp/ButtonSample/Shared/MainLayout.razor.css renamed to Button/BlazorWASM/ButtonSample/Client/Shared/MainLayout.razor.css

File renamed without changes.

0 commit comments

Comments
 (0)