Skip to content

Commit e55eb3c

Browse files
committed
modified the getting started sample for Blazor components in WASM App
1 parent b85c54e commit e55eb3c

File tree

249 files changed

+1795
-542
lines changed

Some content is hidden

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

249 files changed

+1795
-542
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}") = "AccordionSample.Server", "Server\AccordionSample.Server.csproj", "{A55A99B7-B55C-4D17-A9E5-EE302570DD80}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AccordionSample.Client", "Client\AccordionSample.Client.csproj", "{ECFC662D-5111-4C03-9CDC-4B9DBB994697}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AccordionSample.Shared", "Shared\AccordionSample.Shared.csproj", "{694E77F3-935E-4317-A409-680F37327B1A}"
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+
{A55A99B7-B55C-4D17-A9E5-EE302570DD80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{A55A99B7-B55C-4D17-A9E5-EE302570DD80}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{A55A99B7-B55C-4D17-A9E5-EE302570DD80}.Release|Any CPU.ActiveCfg = Release|Any CPU
21+
{A55A99B7-B55C-4D17-A9E5-EE302570DD80}.Release|Any CPU.Build.0 = Release|Any CPU
22+
{ECFC662D-5111-4C03-9CDC-4B9DBB994697}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{ECFC662D-5111-4C03-9CDC-4B9DBB994697}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{ECFC662D-5111-4C03-9CDC-4B9DBB994697}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{ECFC662D-5111-4C03-9CDC-4B9DBB994697}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{694E77F3-935E-4317-A409-680F37327B1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{694E77F3-935E-4317-A409-680F37327B1A}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{694E77F3-935E-4317-A409-680F37327B1A}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{694E77F3-935E-4317-A409-680F37327B1A}.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 = {05A88277-E294-4761-B4CB-069E9D2A2EF6}
36+
EndGlobalSection
37+
EndGlobal

Breadcrumb/BlazorWASMApp/BreadcrumbSample/BreadcrumbSample.csproj renamed to Accordion/BlazorWASM/AccordionSample/Client/AccordionSample.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\AccordionSample.Shared.csproj" />
18+
</ItemGroup>
19+
1620
</Project>
File renamed without changes.

Accordion/BlazorWASMApp/AccordionSample/Pages/Counter.razor renamed to Accordion/BlazorWASM/AccordionSample/Client/Pages/Counter.razor

File renamed without changes.

AutoComplete/BlazorWASMApp/AutoCompleteSample/Pages/FetchData.razor renamed to Accordion/BlazorWASM/AccordionSample/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 AccordionSample.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
}

Accordion/BlazorWASMApp/AccordionSample/Pages/Index.razor renamed to Accordion/BlazorWASM/AccordionSample/Client/Pages/Index.razor

File renamed without changes.

Badge/BlazorWASMApp/BadgeSample/Program.cs renamed to Accordion/BlazorWASM/AccordionSample/Client/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using BadgeSample;
1+
using AccordionSample.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; });

Accordion/BlazorWASMApp/AccordionSample/Properties/launchSettings.json renamed to Accordion/BlazorWASM/AccordionSample/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:63729",
7-
"sslPort": 44396
6+
"applicationUrl": "http://localhost:36332",
7+
"sslPort": 44354
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:7291;http://localhost:5291",
16+
"applicationUrl": "https://localhost:7164;http://localhost:5164",
1717
"environmentVariables": {
1818
"ASPNETCORE_ENVIRONMENT": "Development"
1919
}

Accordion/BlazorWASMApp/AccordionSample/Shared/MainLayout.razor renamed to Accordion/BlazorWASM/AccordionSample/Client/Shared/MainLayout.razor

File renamed without changes.

Accordion/BlazorWASMApp/AccordionSample/Shared/MainLayout.razor.css renamed to Accordion/BlazorWASM/AccordionSample/Client/Shared/MainLayout.razor.css

File renamed without changes.

0 commit comments

Comments
 (0)