51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
@page "/"
|
|
@namespace Oqtane.Pages
|
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
|
@using Microsoft.Extensions.Configuration
|
|
@inject IConfiguration Configuration
|
|
@model Oqtane.Pages.HostModel
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width">
|
|
<title>Oqtane</title>
|
|
<base href="~/" />
|
|
<link id="app-favicon" rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
|
<!-- stub the PWA manifest but defer the assignment of href -->
|
|
<link id="app-manifest" rel="manifest" />
|
|
<link rel="stylesheet" href="css/app.css" />
|
|
<script src="js/loadjs.min.js"></script>
|
|
@Html.Raw(@Model.Resources)
|
|
</head>
|
|
<body>
|
|
@(Html.AntiForgeryToken())
|
|
<app>
|
|
<component type="typeof(Oqtane.App)" render-mode="Server" />
|
|
</app>
|
|
|
|
<div id="blazor-error-ui">
|
|
<environment include="Staging,Production">
|
|
An error has occurred. This application may no longer respond until reloaded.
|
|
</environment>
|
|
<environment include="Development">
|
|
An unhandled exception has occurred. See browser dev tools for details.
|
|
</environment>
|
|
<a href="~/" class="reload">Reload</a>
|
|
<a class="dismiss">🗙</a>
|
|
</div>
|
|
|
|
<script src="js/interop.js"></script>
|
|
|
|
@if (Configuration.GetSection("Runtime").Value == "WebAssembly")
|
|
{
|
|
<script src="_framework/blazor.webassembly.js"></script>
|
|
}
|
|
else
|
|
{
|
|
<script src="_framework/blazor.server.js"></script>
|
|
}
|
|
</body>
|
|
</html>
|