Skip to content

Commit

Permalink
Upgraded 3.2.0 preview1
Browse files Browse the repository at this point in the history
  • Loading branch information
chanan committed Feb 2, 2020
1 parent d325f55 commit a496c48
Show file tree
Hide file tree
Showing 49 changed files with 330 additions and 341 deletions.
Binary file modified docs/_framework/_bin/BlazorPrettyCode.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/BlazorPrettyCode.pdb
Binary file not shown.
Binary file modified docs/_framework/_bin/BlazorStyled.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/BlazorTypography.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/ClientSideSample.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/ClientSideSample.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/_framework/_bin/Microsoft.AspNetCore.Blazor.dll
Binary file not shown.
Binary file not shown.
Binary file modified docs/_framework/_bin/Microsoft.AspNetCore.Components.Web.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/Microsoft.AspNetCore.Components.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/_framework/_bin/Microsoft.Extensions.Primitives.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/Microsoft.JSInterop.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/Mono.WebAssembly.Interop.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/SamplePages.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/SamplePages.pdb
Binary file not shown.
Binary file not shown.
Binary file modified docs/_framework/_bin/System.Core.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/System.Net.Http.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/System.Runtime.CompilerServices.Unsafe.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/System.Text.Encodings.Web.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/System.Text.Json.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/System.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/WebAssembly.Bindings.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/WebAssembly.Net.Http.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/mscorlib.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_framework/blazor.boot.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"assemblies":["BlazorPrettyCode.dll","BlazorStyled.dll","BlazorTypography.dll","ClientSideSample.dll","CSHTMLTokenizer.dll","Microsoft.AspNetCore.Authorization.dll","Microsoft.AspNetCore.Blazor.dll","Microsoft.AspNetCore.Blazor.HttpClient.dll","Microsoft.AspNetCore.Components.dll","Microsoft.AspNetCore.Components.Forms.dll","Microsoft.AspNetCore.Components.Web.dll","Microsoft.AspNetCore.Metadata.dll","Microsoft.Bcl.AsyncInterfaces.dll","Microsoft.Extensions.DependencyInjection.Abstractions.dll","Microsoft.Extensions.DependencyInjection.dll","Microsoft.Extensions.Logging.Abstractions.dll","Microsoft.Extensions.Options.dll","Microsoft.Extensions.Primitives.dll","Microsoft.JSInterop.dll","Mono.WebAssembly.Interop.dll","mscorlib.dll","Polished.net.dll","SamplePages.dll","Stateless.dll","System.ComponentModel.DataAnnotations.dll","System.Core.dll","System.dll","System.Net.Http.dll","System.Runtime.CompilerServices.Unsafe.dll","System.Text.Encodings.Web.dll","System.Text.Json.dll","WebAssembly.Bindings.dll","WebAssembly.Net.Http.dll","BlazorPrettyCode.pdb","ClientSideSample.pdb","SamplePages.pdb"],"entryAssembly":"ClientSideSample","linkerEnabled":true}
{"assemblies":["BlazorPrettyCode.dll","BlazorPrettyCode.pdb","BlazorPrettyCode.pdb","BlazorStyled.dll","BlazorTypography.dll","CSHTMLTokenizer.dll","ClientSideSample.dll","ClientSideSample.pdb","Microsoft.AspNetCore.Blazor.dll","Microsoft.AspNetCore.Components.Web.dll","Microsoft.AspNetCore.Components.dll","Microsoft.Bcl.AsyncInterfaces.dll","Microsoft.Extensions.Configuration.Abstractions.dll","Microsoft.Extensions.Configuration.dll","Microsoft.Extensions.DependencyInjection.Abstractions.dll","Microsoft.Extensions.DependencyInjection.dll","Microsoft.Extensions.Logging.Abstractions.dll","Microsoft.Extensions.Primitives.dll","Microsoft.JSInterop.dll","Mono.WebAssembly.Interop.dll","Polished.net.dll","SamplePages.dll","SamplePages.pdb","SamplePages.pdb","Stateless.dll","System.Core.dll","System.Net.Http.dll","System.Runtime.CompilerServices.Unsafe.dll","System.Text.Encodings.Web.dll","System.Text.Json.dll","System.dll","WebAssembly.Bindings.dll","WebAssembly.Net.Http.dll","mscorlib.dll"],"entryAssembly":"ClientSideSample","linkerEnabled":true}
2 changes: 1 addition & 1 deletion docs/_framework/blazor.webassembly.js

Large diffs are not rendered by default.

280 changes: 280 additions & 0 deletions docs/_framework/wasm/dotnet.js

Large diffs are not rendered by default.

Binary file added docs/_framework/wasm/dotnet.wasm
Binary file not shown.
280 changes: 0 additions & 280 deletions docs/_framework/wasm/mono.js

This file was deleted.

Binary file removed docs/_framework/wasm/mono.wasm
Binary file not shown.
8 changes: 4 additions & 4 deletions src/BlazorPrettyCode/BlazorPrettyCode.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<LangVersion>7.3</LangVersion>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<PackageId>BlazorPrettyCode</PackageId>
<Version>1.1.0</Version>
<Version>1.2.0</Version>
<Authors>Chanan Braunstein</Authors>
<Title>Blazor PrettyCode</Title>
<Description>Razor Code Display Component</Description>
Expand All @@ -15,9 +15,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BlazorStyled" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.0" />
<PackageReference Include="BlazorStyled" Version="1.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.1" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/Sample/ClientSideSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.1.0-preview4.19579.2" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.1.0-preview4.19579.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.1.0-preview4.19579.2" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.1.0-preview4.19579.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.2.0-preview1.20073.1" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.2.0-preview1.20073.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.2.0-preview1.20073.1" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.2.0-preview1.20073.1" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down
27 changes: 19 additions & 8 deletions src/Sample/Program.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
using Microsoft.AspNetCore.Blazor.Hosting;
using BlazorPrettyCode;
using BlazorStyled;
using BlazorTypography;
using Microsoft.AspNetCore.Blazor.Hosting;
using SamplePages;
using System.Threading.Tasks;

namespace Sample
{
public class Program
{
public static void Main(string[] args)
public static async Task Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
var builder = WebAssemblyHostBuilder.CreateDefault(args);

public static IWebAssemblyHostBuilder CreateHostBuilder(string[] args)
{
return BlazorWebAssemblyHost.CreateDefaultBuilder()
.UseBlazorStartup<Startup>();
//Configure Services
builder.Services.AddBlazorPrettyCode();
builder.Services.AddTypography();
//End Configure Services

builder.RootComponents.Add<App>("app");

//Add BlazorStyled to root components
builder.RootComponents.Add<ClientSideStyled>("#styled");

await builder.Build().RunAsync();
}
}
}
24 changes: 0 additions & 24 deletions src/Sample/Startup.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/SamplePages/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
In the <code>Configure</code> method add <code>app.AddComponent&lt;ClientSideStyled>("#styled");</code> as well as shown below:
</p>

<PrettyCode CodeFile="_content/SamplePages/snippets/startup.html" HighlightLines="5,11" Title="Startup.cs" />
<PrettyCode CodeFile="_content/SamplePages/snippets/program.html" HighlightLines="7,11" Title="Program.cs" />

<p>For Client Side Blazor, in your <code>index.html</code> add a <code>style</code> tag:</p>

Expand Down
6 changes: 3 additions & 3 deletions src/SamplePages/SamplePages.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BlazorTypography" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.0" />
<PackageReference Include="BlazorTypography" Version="1.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.1" />
</ItemGroup>

<ItemGroup>
Expand Down
15 changes: 15 additions & 0 deletions src/SamplePages/wwwroot/snippets/program.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
public class Program
{
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);

builder.Services.AddBlazorPrettyCode();
builder.RootComponents.Add<App>("app");

//Add BlazorStyled to root components
builder.RootComponents.Add<ClientSideStyled>("#styled");

await builder.Build().RunAsync();
}
}
4 changes: 2 additions & 2 deletions src/SamplePages/wwwroot/snippets/serverside.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Blazor Pretty Code Server Side Sample</title>
<base href="~/" />
@(await Html.RenderComponentAsync<BlazorStyled.ServerSideStyled>())
@(await Html.RenderComponentAsync<BlazorStyled.ServerSideStyled>(RenderMode.Server))
</head>
<body>
<app>@(await Html.RenderComponentAsync<SamplePages.App>())</app>
<app>@(await Html.RenderComponentAsync<SamplePages.App>(RenderMode.Server))</app>

<script src="_framework/blazor.server.js"></script>
</body>
Expand Down
13 changes: 0 additions & 13 deletions src/SamplePages/wwwroot/snippets/startup.html

This file was deleted.

0 comments on commit a496c48

Please sign in to comment.