Skip to content

Commit

Permalink
1.0.0-preview8-03
Browse files Browse the repository at this point in the history
  • Loading branch information
chanan committed Aug 15, 2019
1 parent fee26b4 commit 475b02b
Show file tree
Hide file tree
Showing 66 changed files with 204 additions and 498 deletions.
60 changes: 0 additions & 60 deletions docs/_content/BlazorPrettyCode/PrettyCodeDefault.json

This file was deleted.

56 changes: 0 additions & 56 deletions docs/_content/BlazorPrettyCode/SolarizedDark.json

This file was deleted.

57 changes: 0 additions & 57 deletions docs/_content/BlazorPrettyCode/SolarizedLight.json

This file was deleted.

2 changes: 0 additions & 2 deletions docs/_content/SamplePages/snippets/badHtml.html

This file was deleted.

15 changes: 0 additions & 15 deletions docs/_content/SamplePages/snippets/clientside.html

This file was deleted.

3 changes: 0 additions & 3 deletions docs/_content/SamplePages/snippets/collapseExample.html

This file was deleted.

5 changes: 0 additions & 5 deletions docs/_content/SamplePages/snippets/demo.html

This file was deleted.

1 change: 0 additions & 1 deletion docs/_content/SamplePages/snippets/demoAttributes.html

This file was deleted.

9 changes: 0 additions & 9 deletions docs/_content/SamplePages/snippets/demoSnippet.html

This file was deleted.

4 changes: 0 additions & 4 deletions docs/_content/SamplePages/snippets/githubSnippet.html

This file was deleted.

7 changes: 0 additions & 7 deletions docs/_content/SamplePages/snippets/highlights.html

This file was deleted.

20 changes: 0 additions & 20 deletions docs/_content/SamplePages/snippets/hover.html

This file was deleted.

19 changes: 0 additions & 19 deletions docs/_content/SamplePages/snippets/serverside.html

This file was deleted.

13 changes: 0 additions & 13 deletions docs/_content/SamplePages/snippets/startup.html

This file was deleted.

3 changes: 0 additions & 3 deletions docs/_content/SamplePages/snippets/titleExample.html

This file was deleted.

1 change: 0 additions & 1 deletion docs/_content/SamplePages/snippets/usingSimple.html

This file was deleted.

1 change: 0 additions & 1 deletion docs/_content/SamplePages/snippets/usingThemes.html

This file was deleted.

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 modified docs/_framework/_bin/Microsoft.AspNetCore.Authorization.dll
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.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/Microsoft.AspNetCore.Metadata.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/Microsoft.Bcl.AsyncInterfaces.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/_framework/_bin/Microsoft.Extensions.Options.dll
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.Security.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 modified docs/_framework/_bin/System.ComponentModel.Annotations.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/System.Core.dll
Binary file not shown.
Binary file removed docs/_framework/_bin/System.Data.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/System.Net.Http.dll
Binary file not shown.
Binary file removed docs/_framework/_bin/System.Numerics.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/System.Runtime.CompilerServices.Unsafe.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/_framework/_bin/System.Text.Json.dll
Binary file not shown.
Binary file removed docs/_framework/_bin/System.Xml.Linq.dll
Binary file not shown.
Binary file removed docs/_framework/_bin/System.Xml.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/System.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 @@
{"main":"ClientSideSample.dll","entryPoint":"Sample.Program::Main","assemblyReferences":["BlazorPrettyCode.dll","BlazorStyled.dll","BlazorTypography.dll","CSHTMLTokenizer.dll","Microsoft.AspNetCore.Authorization.dll","Microsoft.AspNetCore.Blazor.dll","Microsoft.AspNetCore.Components.Browser.dll","Microsoft.AspNetCore.Components.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.Security.dll","Mono.WebAssembly.Interop.dll","mscorlib.dll","Newtonsoft.Json.dll","Polished.net.dll","SamplePages.dll","Stateless.dll","System.Buffers.dll","System.ComponentModel.Annotations.dll","System.Core.dll","System.Data.dll","System.dll","System.Memory.dll","System.Net.Http.dll","System.Numerics.dll","System.Numerics.Vectors.dll","System.Runtime.CompilerServices.Unsafe.dll","System.Runtime.Serialization.dll","System.Text.Json.dll","System.Threading.Tasks.Extensions.dll","System.Xml.dll","System.Xml.Linq.dll","BlazorPrettyCode.pdb","ClientSideSample.pdb","SamplePages.pdb"],"cssReferences":[],"jsReferences":[],"linkerEnabled":true}
{"main":"ClientSideSample.dll","entryPoint":"Sample.Program::Main","assemblyReferences":["BlazorPrettyCode.dll","BlazorStyled.dll","BlazorTypography.dll","CSHTMLTokenizer.dll","Microsoft.AspNetCore.Authorization.dll","Microsoft.AspNetCore.Blazor.dll","Microsoft.AspNetCore.Blazor.HttpClient.dll","Microsoft.AspNetCore.Components.Browser.dll","Microsoft.AspNetCore.Components.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.Security.dll","Mono.WebAssembly.Interop.dll","mscorlib.dll","Newtonsoft.Json.dll","Polished.net.dll","SamplePages.dll","Stateless.dll","System.Buffers.dll","System.ComponentModel.Annotations.dll","System.Core.dll","System.dll","System.Memory.dll","System.Net.Http.dll","System.Numerics.Vectors.dll","System.Runtime.CompilerServices.Unsafe.dll","System.Text.Encodings.Web.dll","System.Text.Json.dll","System.Threading.Tasks.Extensions.dll","BlazorPrettyCode.pdb","ClientSideSample.pdb","SamplePages.pdb"],"cssReferences":[],"jsReferences":[],"linkerEnabled":true}
6 changes: 3 additions & 3 deletions docs/_framework/blazor.server.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/_framework/blazor.webassembly.js

Large diffs are not rendered by default.

325 changes: 166 additions & 159 deletions docs/_framework/wasm/mono.js

Large diffs are not rendered by default.

Binary file modified docs/_framework/wasm/mono.wasm
Binary file not shown.
24 changes: 8 additions & 16 deletions src/BlazorPrettyCode/BlazorPrettyCode.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>true</IsPackable>
<RestoreAdditionalProjectSources>
https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json;
https://dotnet.myget.org/F/blazor-dev/api/v3/index.json;
</RestoreAdditionalProjectSources>
<RazorLangVersion>3.0</RazorLangVersion>
<LangVersion>7.3</LangVersion>
<RazorLangVersion>3.0</RazorLangVersion>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<PackageId>BlazorPrettyCode</PackageId>
<Version>1.0.0-preview7-07</Version>
<Version>1.0.0-preview8-03</Version>
<Authors>Chanan Braunstein</Authors>
<Title>Blazor PrettyCode</Title>
<Description>Razor Code Display Component</Description>
Expand All @@ -20,17 +16,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BlazorStyled" Version="1.0.0-preview7-05" />
<PackageReference Include="CSHTMLTokenizer" Version="0.7.4" />
<PackageReference Include="Microsoft.AspNetCore.Components.Browser" Version="3.0.0-preview7.19365.7" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="BlazorStyled" Version="1.0.0-preview8-02" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.0.0-preview8.19405.7" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.0.0-preview8.19405.7" />
</ItemGroup>

<ItemGroup>
<!-- .js/.css files will be referenced via <script>/<link> tags; other content files will just be included in the app's 'dist' directory without any tags referencing them -->
<EmbeddedResource Include="wwwroot\**\*.js" LogicalName="blazor:js:%(RecursiveDir)%(Filename)%(Extension)" />
<EmbeddedResource Include="wwwroot\**\*.css" LogicalName="blazor:css:%(RecursiveDir)%(Filename)%(Extension)" />
<EmbeddedResource Include="wwwroot\**" Exclude="**\*.js;**\*.css" LogicalName="blazor:file:%(RecursiveDir)%(Filename)%(Extension)" />

<ItemGroup>
<PackageReference Include="CSHTMLTokenizer" Version="0.7.4" />
</ItemGroup>

</Project>
30 changes: 15 additions & 15 deletions src/BlazorPrettyCode/PrettyCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ namespace BlazorPrettyCode
{
public class PrettyCode : ComponentBase
{
[Parameter] private bool? Debug { get; set; } = null;
[Parameter] private string CodeFile { get; set; }
[Parameter] private string CodeFileLineNumbers { get; set; }
[Parameter] private string CodeSectionFile { get; set; }
[Parameter] private string CodeSectionFileLineNumbers { get; set; }
[Parameter] private string Theme { get; set; }
[Parameter] private bool? ShowLineNumbers { get; set; } = null;
[Parameter] private string HighlightLines { get; set; }
[Parameter] private bool? ShowException { get; set; } = null;
[Parameter] private bool? ShowCollapse { get; set; } = null;
[Parameter] private string Title { get; set; } = null;
[Parameter] private bool? IsCollapsed { get; set; } = null;
[Parameter] private bool? AttemptToFixTabs { get; set; } = null;
[Parameter] private bool? KeepOriginalLineNumbers { get; set; } = false;
[Parameter] public bool? Debug { get; set; } = null;
[Parameter] public string CodeFile { get; set; }
[Parameter] public string CodeFileLineNumbers { get; set; }
[Parameter] public string CodeSectionFile { get; set; }
[Parameter] public string CodeSectionFileLineNumbers { get; set; }
[Parameter] public string Theme { get; set; }
[Parameter] public bool? ShowLineNumbers { get; set; } = null;
[Parameter] public string HighlightLines { get; set; }
[Parameter] public bool? ShowException { get; set; } = null;
[Parameter] public bool? ShowCollapse { get; set; } = null;
[Parameter] public string Title { get; set; } = null;
[Parameter] public bool? IsCollapsed { get; set; } = null;
[Parameter] public bool? AttemptToFixTabs { get; set; } = null;
[Parameter] public bool? KeepOriginalLineNumbers { get; set; } = false;

private List<Line> Lines { get; set; } = new List<Line>();
private int i = 0;
Expand Down Expand Up @@ -77,7 +77,7 @@ public class PrettyCode : ComponentBase

private IStyled _styled;

protected override async Task OnInitAsync()
protected override async Task OnInitializedAsync()
{
_styled = Styled.WithId("pretty-code");
bool debug = Debug ?? DefaultConfig.IsDevelopmentMode;
Expand Down
Loading

0 comments on commit 475b02b

Please sign in to comment.