Skip to content

Commit

Permalink
image style added. (dotnet-architecture#433)
Browse files Browse the repository at this point in the history
* image style added.

* JSInteropConstants added

* JSInteropConstants
  • Loading branch information
ShadyNagy authored Jul 27, 2020
1 parent 6880641 commit 40214cc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/BlazorAdmin/JavaScript/Cookies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public Cookies(IJSRuntime jsRuntime)

public async Task DeleteCookie(string name)
{
await _jsRuntime.InvokeAsync<string>("deleteCookie", name);
await _jsRuntime.InvokeAsync<string>(JSInteropConstants.DeleteCookie, name);
}

public async Task<string> GetCookie(string name)
{
return await _jsRuntime.InvokeAsync<string>("getCookie", name);
return await _jsRuntime.InvokeAsync<string>(JSInteropConstants.GetCookie, name);
}
}
}
14 changes: 14 additions & 0 deletions src/BlazorAdmin/JavaScript/JSInteropConstants.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BlazorAdmin.JavaScript
{
public static class JSInteropConstants
{
public static string DeleteCookie => "deleteCookie";
public static string GetCookie => "getCookie";
public static string RouteOutside => "routeOutside";
}
}
2 changes: 1 addition & 1 deletion src/BlazorAdmin/JavaScript/Route.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public Route(IJSRuntime jsRuntime)

public async Task RouteOutside(string path)
{
await _jsRuntime.InvokeAsync<string>("routeOutside", path);
await _jsRuntime.InvokeAsync<string>(JSInteropConstants.RouteOutside, path);
}
}
}
5 changes: 5 additions & 0 deletions src/BlazorAdmin/wwwroot/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ admin {
height: auto;
}

.esh-picture {
height: 100%;
width: 100%;
}

@media (max-width: 767.98px) {
.main .top-row:not(.auth) {
display: none;
Expand Down

0 comments on commit 40214cc

Please sign in to comment.