Browse Source

image style added. (#433)

* image style added.

* JSInteropConstants added

* JSInteropConstants
main
Shady Nagy 5 years ago
committed by GitHub
parent
commit
40214cc6e0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/BlazorAdmin/JavaScript/Cookies.cs
  2. 14
      src/BlazorAdmin/JavaScript/JSInteropConstants.cs
  3. 2
      src/BlazorAdmin/JavaScript/Route.cs
  4. 5
      src/BlazorAdmin/wwwroot/css/admin.css

4
src/BlazorAdmin/JavaScript/Cookies.cs

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

@ -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
src/BlazorAdmin/JavaScript/Route.cs

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

5
src/BlazorAdmin/wwwroot/css/admin.css

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

Loading…
Cancel
Save