image style added. (#433)
* image style added. * JSInteropConstants added * JSInteropConstants
This commit is contained in:
@@ -14,12 +14,12 @@ namespace BlazorAdmin.JavaScript
|
|||||||
|
|
||||||
public async Task DeleteCookie(string name)
|
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)
|
public async Task<string> GetCookie(string name)
|
||||||
{
|
{
|
||||||
return await _jsRuntime.InvokeAsync<string>("getCookie", name);
|
return await _jsRuntime.InvokeAsync<string>(JSInteropConstants.GetCookie, name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
14
src/BlazorAdmin/JavaScript/JSInteropConstants.cs
Normal file
14
src/BlazorAdmin/JavaScript/JSInteropConstants.cs
Normal 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";
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -14,7 +14,7 @@ namespace BlazorAdmin.JavaScript
|
|||||||
|
|
||||||
public async Task RouteOutside(string path)
|
public async Task RouteOutside(string path)
|
||||||
{
|
{
|
||||||
await _jsRuntime.InvokeAsync<string>("routeOutside", path);
|
await _jsRuntime.InvokeAsync<string>(JSInteropConstants.RouteOutside, path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,6 +145,11 @@ admin {
|
|||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.esh-picture {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 767.98px) {
|
@media (max-width: 767.98px) {
|
||||||
.main .top-row:not(.auth) {
|
.main .top-row:not(.auth) {
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user