Files
mixtape/zero.Web/Views/Index.cshtml
T

36 lines
1.2 KiB
Plaintext
Raw Normal View History

@using zero.Core.Extensions
2020-04-06 13:24:46 +02:00
@using System.Text
@using Microsoft.AspNetCore.Hosting
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@model zero.Core.ZeroOptions
2020-04-06 13:24:46 +02:00
@inject IWebHostEnvironment Env
2020-03-22 14:18:34 +01:00
@{
Layout = null;
2020-04-06 13:24:46 +02:00
string path = System.IO.Path.Combine(Env.ContentRootPath, "Resources/Localization/zero.en-us.json");
string text = System.IO.File.ReadAllText(path, Encoding.UTF8);
2020-03-22 14:18:34 +01:00
}
<!DOCTYPE html>
2020-03-22 14:47:59 +01:00
<html>
2020-03-22 14:18:34 +01:00
<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="~/">
2020-03-23 19:39:48 +01:00
<environment exclude="Development">
2020-03-22 14:18:34 +01:00
<link href="~/Assets/app.css" rel="stylesheet" asp-append-version="true" />
2020-03-23 19:39:48 +01:00
</environment>
2020-03-24 23:09:29 +01:00
<title>zero</title>
2020-03-22 14:18:34 +01:00
</head>
<body>
<div id="app"></div>
<script>
window.zero = window.zero || {};
zero.path = "@Model.BackofficePath.EnsureEndsWith('/')";
2020-04-06 13:24:46 +02:00
zero.translations = @Html.Raw(text);
</script>
2020-03-23 19:39:48 +01:00
<script src="~/Assets/app.js" asp-append-version="true"></script>
2020-03-22 14:18:34 +01:00
</body>
</html>