image style added. (#433)

* image style added.

* JSInteropConstants added

* JSInteropConstants
This commit is contained in:
Shady Nagy
2020-07-27 16:07:15 +02:00
committed by GitHub
parent 688064199d
commit 40214cc6e0
4 changed files with 22 additions and 3 deletions

View File

@@ -14,12 +14,12 @@ namespace BlazorAdmin.JavaScript
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);
}
}
}

View File

@@ -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";
}
}

View File

@@ -14,7 +14,7 @@ namespace BlazorAdmin.JavaScript
public async Task RouteOutside(string path)
{
await _jsRuntime.InvokeAsync<string>("routeOutside", path);
await _jsRuntime.InvokeAsync<string>(JSInteropConstants.RouteOutside, path);
}
}
}

View File

@@ -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;