35 lines
972 B
Plaintext
35 lines
972 B
Plaintext
@inject IOptions<GatewayOptions> GatewayOptions
|
|
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<base href="@DashboardBaseHref" />
|
|
<link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css" />
|
|
<link rel="stylesheet" href="/css/dashboard.css" />
|
|
<HeadOutlet @rendermode="InteractiveServer" />
|
|
</head>
|
|
<body class="dashboard-body">
|
|
<Routes @rendermode="InteractiveServer" />
|
|
<script src="/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
<script src="/_framework/blazor.web.js"></script>
|
|
</body>
|
|
</html>
|
|
|
|
@code {
|
|
private string DashboardBaseHref
|
|
{
|
|
get
|
|
{
|
|
string pathBase = GatewayOptions.Value.Dashboard.PathBase.TrimEnd('/');
|
|
if (string.IsNullOrWhiteSpace(pathBase))
|
|
{
|
|
pathBase = "/dashboard";
|
|
}
|
|
|
|
return $"{pathBase}/";
|
|
}
|
|
}
|
|
}
|