Skip to content

Commit

Permalink
rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
chanan committed Sep 17, 2019
1 parent de61603 commit 2a9f02a
Show file tree
Hide file tree
Showing 43 changed files with 139 additions and 12 deletions.
93 changes: 93 additions & 0 deletions docs/_content/BlazorStrap/blazorStrap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
var link;

window.blazorStrap = {
log: function (message) {
console.log("message: ", message);
return true;
},
changeBody: function (classname) {
document.body.className = classname;
return true;
},
changeBodyModal: function (padding) {
document.body.style.paddingRight = padding;
return true;
},
popper: function (target, popperId, arrow, placement) {
var reference = document.getElementById(target);
var popper = document.getElementById(popperId);
showPopper(reference, popper, arrow, placement);
return true;
},
tooltip: function (target, tooltip, arrow, placement) {
var instance;
var reference = document.getElementById(target);
function mouseoverHandler() {
reference.removeEventListener("mouseover", mouseoverHandler);
reference.addEventListener("mouseout", mouseoutHandler);
tooltip.className = "tooltip fade show bs-tooltip-" + placement;
instance = showPopper(reference, tooltip, arrow, placement);
}
function mouseoutHandler() {
reference.removeEventListener("mouseout", mouseoutHandler);
reference.addEventListener("mouseover", mouseoverHandler);
tooltip.className = "tooltip d-none";
if (instance) {
instance.destroy && instance.destroy();
instance = undefined;
}
}
reference.addEventListener("mouseover", mouseoverHandler);
return true;
},
modelEscape: function () {
document.body.onkeydown = function (e) {
if (e.key == "Escape") {
document.body.onkeydown = null;
DotNet.invokeMethodAsync("BlazorStrap", "OnEscape");
}
};
},
focusElement: function (element) {
element.focus();
},
setBootstrapCSS: function (theme, version) {
if (link === undefined) {
link = document.createElement('link');
document.head.insertBefore(link, document.head.firstChild);
link.type = 'text/css';
link.rel = 'stylesheet';
}
if (theme === 'bootstrap') {
link.href = `https://stackpath.bootstrapcdn.com/bootstrap/${version}/css/bootstrap.min.css`;
} else {
link.href = `https://stackpath.bootstrapcdn.com/bootswatch/${version}/${theme}/bootstrap.min.css`;
}
return true;
}
};

function showPopper(reference, popper, arrow, placement) {
var thePopper = new Popper(reference, popper,
{
placement,
modifiers: {
offset: {
offset: 0
},
flip: {
behavior: "flip"
},
arrow: {
element: arrow,
enabled: true
},
preventOverflow: {
boundary: "scrollParent"
}

}
}
);
return thePopper;
}
4 changes: 4 additions & 0 deletions docs/_content/BlazorStrap/css/cromefix.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
div.modal > div:focus,
div.modal-header > button.close:focus {
outline: 0px;
}
27 changes: 27 additions & 0 deletions docs/_content/BlazorStrap/css/submenu.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.dropdown-submenu {
position: relative;
}
.dropdown-submenu button.dropdown-toggle {
width: 100%;
}
.dropdown-submenu button.dropdown-toggle::after,
.dropdown-submenu a::after {
transform: rotate(-90deg);
position:absolute;
right: 10%;
top: 45%;
}

.dropdown-submenu::after {
transform: rotate(-90deg);
position: absolute;
right: 6px;
top: .8em;
}

.dropdown-submenu .dropdown-menu {
top: 0;
left: 100%;
margin-left: 0rem;
margin-right: .1rem;
}
5 changes: 5 additions & 0 deletions docs/_content/BlazorStrap/popper.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/_content/BlazorStrap/popper.min.js.map

Large diffs are not rendered by default.

Binary file not shown.
Binary file modified docs/_framework/_bin/BlazorPrettyCode.dll
Binary file not shown.
Binary file added docs/_framework/_bin/BlazorStrap.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/BlazorStyled.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/BlazorStyled.pdb
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 modified docs/_framework/_bin/Microsoft.AspNetCore.Blazor.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/Microsoft.AspNetCore.Components.Forms.dll
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 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/SampleCore.dll
Binary file not shown.
Binary file modified docs/_framework/_bin/SampleCore.pdb
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/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.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.Security.dll","Mono.WebAssembly.Interop.dll","mscorlib.dll","Polished.net.dll","SampleCore.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","BlazorStyled.pdb","ClientSideSample.pdb","SampleCore.pdb"],"cssReferences":[],"jsReferences":[],"linkerEnabled":true}
{"main":"ClientSideSample.dll","entryPoint":"Sample.Program::Main","assemblyReferences":["BlazorComponentUtilities.dll","BlazorPrettyCode.dll","BlazorStrap.dll","BlazorStyled.dll","BlazorTypography.dll","CSHTMLTokenizer.dll","Microsoft.AspNetCore.Authorization.dll","Microsoft.AspNetCore.Blazor.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.Security.dll","Mono.WebAssembly.Interop.dll","mscorlib.dll","Polished.net.dll","SampleCore.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","BlazorStyled.pdb","ClientSideSample.pdb","SampleCore.pdb"],"cssReferences":["_content/BlazorStrap/css/cromefix.css","_content/BlazorStrap/css/submenu.css"],"jsReferences":["_content/BlazorStrap/blazorStrap.js","_content/BlazorStrap/popper.min.js"],"linkerEnabled":true}
6 changes: 3 additions & 3 deletions src/BlazorStyled/BlazorStyled.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<LangVersion>8.0</LangVersion>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<PackageId>BlazorStyled</PackageId>
<Version>1.0.0-preview9-01</Version>
<Version>1.0.0-rc1-01</Version>
<Authors>Chanan Braunstein</Authors>
<Title>BlazorStyled</Title>
<Description>CSS in Blazor Components</Description>
Expand All @@ -16,8 +16,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview9.19424.4" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.0.0-preview9.19424.4" />
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview9.19457.4" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.0.0-rc1.19457.4" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion src/HostedSample/HostedSample.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Blazor.Server" Version="3.0.0-preview9.19424.4" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.0.0-preview9.19424.4" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion src/HostedSample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public class Startup
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().AddNewtonsoftJson();
services.AddResponseCompression(opts =>
{
opts.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(
Expand Down
3 changes: 1 addition & 2 deletions src/Sample/ClientSideSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview9.19424.4" />
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview9.19457.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>

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

<ItemGroup>
<PackageReference Include="BlazorPrettyCode" Version="1.0.0-preview9-01" />
<PackageReference Include="BlazorTypography" Version="1.0.0-preview9-01" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.0.0-preview9.19424.4" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.0.0-preview9.19424.4" />
<PackageReference Include="BlazorPrettyCode" Version="1.0.0-rc1-01" />
<PackageReference Include="BlazorTypography" Version="1.0.0-rc1-01" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.0.0-rc1.19457.4" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.0.0-rc1.19457.4" />
<PackageReference Include="Polished" Version="1.0.0-preview-02" />
</ItemGroup>

Expand Down

0 comments on commit 2a9f02a

Please sign in to comment.