Browse Source
image style added. (#433)
* image style added.
* JSInteropConstants added
* JSInteropConstants
main
Shady Nagy
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
22 additions and
3 deletions
-
src/BlazorAdmin/JavaScript/Cookies.cs
-
src/BlazorAdmin/JavaScript/JSInteropConstants.cs
-
src/BlazorAdmin/JavaScript/Route.cs
-
src/BlazorAdmin/wwwroot/css/admin.css
|
|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -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) |
|
|
|
{ |
|
|
|
await _jsRuntime.InvokeAsync<string>("routeOutside", path); |
|
|
|
await _jsRuntime.InvokeAsync<string>(JSInteropConstants.RouteOutside, path); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -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; |
|
|
|
|