Skip to content

Commit 03be7b8

Browse files
committed
update backoffice submodule
1 parent 365e3b3 commit 03be7b8

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed
Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,73 @@
11
@using Microsoft.Extensions.Options
22
@using Umbraco.Cms.Api.Management.Extensions
33
@using Umbraco.Cms.Core.Configuration.Models
4+
@using Umbraco.Cms.Core.Logging
45
@using Umbraco.Cms.Core.Manifest
56
@using Umbraco.Cms.Core.Serialization
67
@using Umbraco.Cms.Web.Common.Hosting
78
@using Umbraco.Extensions
89
@inject IBackOfficePathGenerator BackOfficePathGenerator
910
@inject IPackageManifestService PackageManifestService
1011
@inject IJsonSerializer JsonSerializer
12+
@inject IProfilerHtml ProfilerHtml
1113
@inject IOptions<GlobalSettings> GlobalSettings
14+
@inject IOptions<ContentSettings> ContentSettings
1215

1316
@{
17+
bool.TryParse(Context.Request.Query["umbDebug"], out var isDebug);
1418
var backOfficePath = BackOfficePathGenerator.BackOfficePath;
1519
var backOfficeAssetsPath = BackOfficePathGenerator.BackOfficeAssetsPath;
20+
var loginLogoImage = ContentSettings.Value.LoginLogoImage;
1621
}
1722

1823
<!DOCTYPE html>
1924
<html lang="@GlobalSettings.Value.DefaultUILanguage">
2025

2126
<head>
22-
<base href="@backOfficePath.EnsureEndsWith('/')" />
2327
<meta charset="UTF-8" />
28+
<base href="@backOfficePath.EnsureEndsWith('/')" />
2429
<link rel="icon" type="image/svg+xml" href="@backOfficeAssetsPath/assets/favicon.svg" />
2530
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
31+
<meta name="apple-mobile-web-app-capable" content="yes"/>
32+
<meta name="robots" content="noindex, nofollow"/>
33+
<meta name="pinterest" content="nopin"/>
2634
<title>Umbraco</title>
2735

36+
<link rel="stylesheet" href="@backOfficeAssetsPath/css/user-defined.css" />
2837
<link rel="stylesheet" href="@backOfficeAssetsPath/css/umb-css.css" />
2938
<link rel="stylesheet" href="@backOfficeAssetsPath/css/uui-css.css" />
3039
@await Html.BackOfficeImportMapScriptAsync(JsonSerializer, BackOfficePathGenerator, PackageManifestService)
3140
<script type="module" src="@backOfficeAssetsPath/apps/app/app.element.js"></script>
3241
</head>
3342

3443
<body class="uui-font uui-text" style="margin: 0; padding: 0; overflow: hidden">
35-
<umb-app></umb-app>
44+
<noscript>
45+
<style>
46+
#noscript-container {
47+
display: flex;
48+
flex-wrap: wrap;
49+
flex-direction: column;
50+
align-items: center;
51+
justify-content: center;
52+
height: 100vh;
53+
padding: 0 20px;
54+
text-align: center;
55+
}
56+
</style>
57+
<div id="noscript-container">
58+
<h1 class="uui-h3" style="display: inline-flex; align-items: center; gap: 10px">
59+
<img aria-hidden="true" alt="logo" src="@loginLogoImage" style="width: 100%" />
60+
</h1>
61+
<p>For full functionality of Umbraco CMS it is necessary to enable JavaScript.</p>
62+
<p>Here are the <a href="https://www.enable-javascript.com/" target="_blank" rel="noopener" style="text-decoration: underline;">instructions how to enable JavaScript in your web browser</a>.</p>
63+
</div>
64+
</noscript>
65+
<umb-app></umb-app>
66+
67+
@if (isDebug)
68+
{
69+
@Html.Raw(ProfilerHtml.Render())
70+
}
3671
</body>
3772

3873
</html>

src/Umbraco.Web.UI.Client

0 commit comments

Comments
 (0)