bundle.js is built by webpack as an ES module (output.library.type:
'module'), ending with named exports such as:
export { Be as ChunkUploader, s as InfiniteScroll, ... }
All three inclusion sites (App.razor, _Layout.cshtml,
ScriptLoader.razor) loaded it via a plain <script> tag, which is for
classic scripts only and does not support the 'export' keyword.
Edge throws a visible SyntaxError and uploading does not work.
Fixed by adding type="module" to the bundle.js script tag in all three
locations.
55 lines
No EOL
2.2 KiB
Text
55 lines
No EOL
2.2 KiB
Text
@using LANCommander.Server.Data
|
|
@using LANCommander.Server.Settings.Enums
|
|
@inject NavigationManager NavigationManager
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<base href="/" />
|
|
|
|
<link href="/_content/AntDesign/css/ant-design-blazor.dark.css" rel="stylesheet" />
|
|
<link rel="stylesheet" href="_content/XtermBlazor/XtermBlazor.min.css" />
|
|
<link rel="stylesheet" href="_content/PSC.Blazor.Components.MarkdownEditor/css/markdowneditor.css" />
|
|
<link rel="stylesheet" href="_content/PSC.Blazor.Components.MarkdownEditor/css/easymde.min.css" />
|
|
<link rel="stylesheet" href="_content/LANCommander.UI/ui.css" />
|
|
<link rel="stylesheet" href="css/app.css" />
|
|
<link rel="stylesheet" href="css/custom.css" />
|
|
</head>
|
|
<body data-theme="dark">
|
|
|
|
|
|
<div class="page-wrapper">
|
|
<AntContainer @rendermode="InteractiveServer" />
|
|
<LocalTimeInitializer @rendermode="InteractiveServer" />
|
|
|
|
<Routes @rendermode="new InteractiveServerRenderMode(prerender: false)" />
|
|
</div>
|
|
|
|
<script antblazor-js></script>
|
|
<script src="lib/antv/g2plot/dist/g2plot.js"></script>
|
|
<script src="_content/AntDesign.Charts/ant-design-charts-blazor.js"></script>
|
|
<script src="_framework/blazor.web.js"></script>
|
|
|
|
<script type="module" src="_content/LANCommander.UI/bundle.js"></script>
|
|
<script src="_content/PSC.Blazor.Components.MarkdownEditor/js/easymde.min.js"></script>
|
|
<script src="_content/PSC.Blazor.Components.MarkdownEditor/js/markdownEditor.js"></script>
|
|
|
|
<script src="_content/XtermBlazor/XtermBlazor.min.js"></script>
|
|
|
|
<script src="_content/BlazorMonaco/jsInterop.js"></script>
|
|
<script src="_content/BlazorMonaco/lib/monaco-editor/min/vs/loader.js"></script>
|
|
<script src="_content/BlazorMonaco/lib/monaco-editor/min/vs/editor/editor.main.js"></script>
|
|
</body>
|
|
</html>
|
|
|
|
@code {
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
if (DatabaseContext.Provider == DatabaseProvider.Unknown && !NavigationManager.Uri.Contains("/FirstTimeSetup"))
|
|
{
|
|
NavigationManager.NavigateTo("/FirstTimeSetup", true);
|
|
}
|
|
}
|
|
} |