Files
mixtape/zero.Web/Views/Index.cshtml
T
2020-04-06 13:24:46 +02:00

36 lines
1.2 KiB
Plaintext

@using zero.Core.Extensions
@using System.Text
@using Microsoft.AspNetCore.Hosting
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@model zero.Core.ZeroOptions
@inject IWebHostEnvironment Env
@{
Layout = null;
string path = System.IO.Path.Combine(Env.ContentRootPath, "Resources/Localization/zero.en-us.json");
string text = System.IO.File.ReadAllText(path, Encoding.UTF8);
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex,nofollow">
<meta name="author" content="brothers">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="expires" content="0">
<base href="~/">
<environment exclude="Development">
<link href="~/Assets/app.css" rel="stylesheet" asp-append-version="true" />
</environment>
<title>zero</title>
</head>
<body>
<div id="app"></div>
<script>
window.zero = window.zero || {};
zero.path = "@Model.BackofficePath.EnsureEndsWith('/')";
zero.translations = @Html.Raw(text);
</script>
<script src="~/Assets/app.js" asp-append-version="true"></script>
</body>
</html>