Skip to content

Commit

Permalink
Udate to 3.0.0. Aslo updated (recreated) server side and client side …
Browse files Browse the repository at this point in the history
…demo.

Added guid to polyline to access it from script
  • Loading branch information
valentasm1 committed Sep 26, 2019
1 parent 079ccc3 commit 4f034e9
Show file tree
Hide file tree
Showing 70 changed files with 3,940 additions and 25 deletions.
38 changes: 16 additions & 22 deletions BlazorGoogleMaps.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,40 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28803.202
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServerBlazorDemo.Server", "ServerBlazorDemo.Server\ServerBlazorDemo.Server.csproj", "{EEA24CC8-8600-4679-9939-A78534559AA7}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServerBlazorDemo.Client", "ServerBlazorDemo.Client\ServerBlazorDemo.Client.csproj", "{864C22DD-D8AC-477F-BCE5-247497A46ED0}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GoogleMapsComponents", "GoogleMapsComponents\GoogleMapsComponents.csproj", "{EEFC0113-D075-4F36-ABC8-EAAB3A138079}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServerBlazorDemo.Shared", "ServerBlazorDemo.Shared\ServerBlazorDemo.Shared.csproj", "{09D054DB-184B-4D68-9111-AA6DCE7EC988}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{575D69F2-3102-4FE1-A094-23A553B772AA}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GoogleMapsComponents", "GoogleMapsComponents\GoogleMapsComponents.csproj", "{EEFC0113-D075-4F36-ABC8-EAAB3A138079}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServerSideDemo", "ServerSideDemo\ServerSideDemo.csproj", "{4529EAF0-F632-485C-B76D-3B908767D0ED}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClientBlazorDemo", "ClientBlazorDemo\ClientBlazorDemo.csproj", "{39392AAF-3D63-4D0C-88B8-A1CFE6FC9EFF}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientSideDemo", "ClientSideDemo\ClientSideDemo.csproj", "{4391E333-F33D-4E18-8D45-1C6E73B77285}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EEA24CC8-8600-4679-9939-A78534559AA7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EEA24CC8-8600-4679-9939-A78534559AA7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EEA24CC8-8600-4679-9939-A78534559AA7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EEA24CC8-8600-4679-9939-A78534559AA7}.Release|Any CPU.Build.0 = Release|Any CPU
{864C22DD-D8AC-477F-BCE5-247497A46ED0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{864C22DD-D8AC-477F-BCE5-247497A46ED0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{864C22DD-D8AC-477F-BCE5-247497A46ED0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{864C22DD-D8AC-477F-BCE5-247497A46ED0}.Release|Any CPU.Build.0 = Release|Any CPU
{09D054DB-184B-4D68-9111-AA6DCE7EC988}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{09D054DB-184B-4D68-9111-AA6DCE7EC988}.Debug|Any CPU.Build.0 = Debug|Any CPU
{09D054DB-184B-4D68-9111-AA6DCE7EC988}.Release|Any CPU.ActiveCfg = Release|Any CPU
{09D054DB-184B-4D68-9111-AA6DCE7EC988}.Release|Any CPU.Build.0 = Release|Any CPU
{EEFC0113-D075-4F36-ABC8-EAAB3A138079}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EEFC0113-D075-4F36-ABC8-EAAB3A138079}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EEFC0113-D075-4F36-ABC8-EAAB3A138079}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EEFC0113-D075-4F36-ABC8-EAAB3A138079}.Release|Any CPU.Build.0 = Release|Any CPU
{39392AAF-3D63-4D0C-88B8-A1CFE6FC9EFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{39392AAF-3D63-4D0C-88B8-A1CFE6FC9EFF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{39392AAF-3D63-4D0C-88B8-A1CFE6FC9EFF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{39392AAF-3D63-4D0C-88B8-A1CFE6FC9EFF}.Release|Any CPU.Build.0 = Release|Any CPU
{4529EAF0-F632-485C-B76D-3B908767D0ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4529EAF0-F632-485C-B76D-3B908767D0ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4529EAF0-F632-485C-B76D-3B908767D0ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4529EAF0-F632-485C-B76D-3B908767D0ED}.Release|Any CPU.Build.0 = Release|Any CPU
{4391E333-F33D-4E18-8D45-1C6E73B77285}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4391E333-F33D-4E18-8D45-1C6E73B77285}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4391E333-F33D-4E18-8D45-1C6E73B77285}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4391E333-F33D-4E18-8D45-1C6E73B77285}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{4529EAF0-F632-485C-B76D-3B908767D0ED} = {575D69F2-3102-4FE1-A094-23A553B772AA}
{4391E333-F33D-4E18-8D45-1C6E73B77285} = {575D69F2-3102-4FE1-A094-23A553B772AA}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {631CEE94-77D6-4F14-B8C6-4E51C2A924AE}
EndGlobalSection
Expand Down
10 changes: 10 additions & 0 deletions ClientSideDemo/App.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Router AppAssembly="@typeof(Program).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
</Found>
<NotFound>
<LayoutView Layout="@typeof(MainLayout)">
<p>Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
21 changes: 21 additions & 0 deletions ClientSideDemo/ClientSideDemo.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<OutputType>Exe</OutputType>
<LangVersion>7.3</LangVersion>
<RazorLangVersion>3.0</RazorLangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview9.19424.4" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.0.0-preview9.19424.4" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.0.0-preview9.19424.4" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.0.0-preview9.19424.4" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\GoogleMapsComponents\GoogleMapsComponents.csproj" />
</ItemGroup>

</Project>
16 changes: 16 additions & 0 deletions ClientSideDemo/Pages/Counter.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@page "/counter"

<h1>Counter</h1>

<p>Current count: @currentCount</p>

<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>

@code {
int currentCount = 0;

void IncrementCount()
{
currentCount++;
}
}
55 changes: 55 additions & 0 deletions ClientSideDemo/Pages/FetchData.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
@page "/fetchdata"
@inject HttpClient Http

<h1>Weather forecast</h1>

<p>This component demonstrates fetching data from the server.</p>

@if (forecasts == null)
{
<p><em>Loading...</em></p>
}
else
{
<table class="table">
<thead>
<tr>
<th>Date</th>
<th>Temp. (C)</th>
<th>Temp. (F)</th>
<th>Summary</th>
</tr>
</thead>
<tbody>
@foreach (var forecast in forecasts)
{
<tr>
<td>@forecast.Date.ToShortDateString()</td>
<td>@forecast.TemperatureC</td>
<td>@forecast.TemperatureF</td>
<td>@forecast.Summary</td>
</tr>
}
</tbody>
</table>
}

@code {
WeatherForecast[] forecasts;

protected override async Task OnInitializedAsync()
{
forecasts = await Http.GetJsonAsync<WeatherForecast[]>("sample-data/weather.json");
}

public class WeatherForecast
{
public DateTime Date { get; set; }

public int TemperatureC { get; set; }

public string Summary { get; set; }

public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
}
}
7 changes: 7 additions & 0 deletions ClientSideDemo/Pages/Index.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@page "/"

<h1>Hello, world!</h1>

Welcome to your new app.

<SurveyPrompt Title="How is Blazor working for you?" />
Loading

0 comments on commit 4f034e9

Please sign in to comment.