
@page "_Host"
@using Microsoft.AspNetCore.Components.Web;
@using Microsoft.AspNetCore.Authorization;
@using BootstrapBlazor.Components
@using Microsoft.Extensions.Localization
@using ThingsGateway.Razor
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@namespace ThingsGateway.UpgradeServer

<!DOCTYPE html>
<html lang="en" data-bs-theme='light'>

<head>
    <base href="~/" />
    <meta charset="utf-8" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="keywords" content="thingsgateway,iot,netcore,blazor">
    <meta name="description" content="ThingsGateway边缘采集网关">
    <meta name="author" content="Diego">
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <link rel="apple-touch-icon" href="favicon.png">
    <title>ThingsGateway</title>
    <link rel="stylesheet" href="_content/BootstrapBlazor.FontAwesome/css/font-awesome.min.css" />
    <link rel="stylesheet" href="_content/BootstrapBlazor/css/bootstrap.blazor.bundle.min.css" />
    <link rel="stylesheet" href="_content/BootstrapBlazor/css/motronic.min.css" />
    <link rel="stylesheet" href="ThingsGateway.UpgradeServer.styles.css" />
    <link rel="stylesheet" href=@($"{WebsiteConst.DefaultResourceUrl}css/site.css") />
    @* <script src=@($"{WebsiteConst.DefaultResourceUrl}js/theme.js") type="module"></script><!-- 初始主题 --> *@
    <!-- PWA Manifest -->
    <link rel="manifest" href="./manifest.json" />

</head>


<body>

    <app>
        <component type="typeof(ThingsGateway.UpgradeServer.Routes)" render-mode="Server" />
        <component type="typeof(ReconnectorOutlet)" param-AutoReconnect="true" render-mode="Server" />
        <component type="typeof(BlazorReconnector)" render-mode="Server" />
    </app>
    
    <script src="_content/BootstrapBlazor/js/bootstrap.blazor.bundle.min.js"></script>
    <script src=@($"{WebsiteConst.DefaultResourceUrl}js/culture.js")></script>
    <script src="_framework/blazor.server.js"></script>

       <!-- PWA Service Worker -->
    <script type="text/javascript">'serviceWorker' in navigator && navigator.serviceWorker.register('./service-worker.js')</script>

</body>

</html>
