mirror of https://github.com/abpframework/abp.git
26 changed files with 283 additions and 107 deletions
@ -0,0 +1,45 @@ |
|||
@using Volo.Abp.Localization |
|||
@using System.Globalization |
|||
@using Microsoft.Extensions.Hosting |
|||
@using Volo.Abp.AspNetCore.Components.Server.Theming.Bundling |
|||
@using Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme.Bundling |
|||
@inject IHostEnvironment Env |
|||
@{ |
|||
var rtl = CultureHelper.IsRtl ? "rtl" : string.Empty; |
|||
} |
|||
|
|||
<!DOCTYPE html> |
|||
<html lang="@CultureInfo.CurrentCulture.Name" dir="@rtl"> |
|||
|
|||
<head> |
|||
<meta charset="utf-8" /> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|||
<title>MyCompanyName.MyProjectName.Blazor.Server</title> |
|||
<base href="/" /> |
|||
|
|||
<AbpStyles BundleName="@BlazorLeptonXLiteThemeBundles.Styles.Global" /> |
|||
|
|||
<HeadOutlet @rendermode="InteractiveServer" /> |
|||
|
|||
</head> |
|||
<body> |
|||
|
|||
<Routes @rendermode="InteractiveServer" /> |
|||
|
|||
<AbpScripts BundleName="@BlazorLeptonXLiteThemeBundles.Scripts.Global" /> |
|||
|
|||
<div id="blazor-error-ui"> |
|||
@if (Env.IsDevelopment()) |
|||
{ |
|||
<text>An unhandled exception has occurred. See browser dev tools for details.</text> |
|||
} |
|||
else if (Env.IsStaging() || Env.IsProduction()) |
|||
{ |
|||
<text>An error has occurred. This application may no longer respond until reloaded.</text> |
|||
} |
|||
<a href="" class="reload">Reload</a> |
|||
<a class="dismiss">🗙</a> |
|||
</div> |
|||
|
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,14 @@ |
|||
@using Volo.Abp.AspNetCore.Components.Web.LeptonXLiteTheme.Themes.LeptonXLite |
|||
@using Volo.Abp.AspNetCore.Components.Web.Theming.Routing |
|||
@using Microsoft.Extensions.Options |
|||
@inject IOptions<AbpRouterOptions> RouterOptions |
|||
<Router AppAssembly="typeof(Program).Assembly" AdditionalAssemblies="RouterOptions.Value.AdditionalAssemblies"> |
|||
<Found Context="routeData"> |
|||
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)"> |
|||
<NotAuthorized> |
|||
<RedirectToLogin /> |
|||
</NotAuthorized> |
|||
</AuthorizeRouteView> |
|||
<FocusOnNavigate RouteData="routeData" Selector="h1" /> |
|||
</Found> |
|||
</Router> |
|||
@ -1,39 +0,0 @@ |
|||
@page "/" |
|||
@namespace MyCompanyName.MyProjectName.Blazor.Server.Pages |
|||
@using System.Globalization |
|||
@using Volo.Abp.AspNetCore.Components.Web.LeptonXLiteTheme.Themes.LeptonXLite |
|||
@using Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme.Bundling |
|||
@using Volo.Abp.Localization |
|||
@{ |
|||
Layout = null; |
|||
var rtl = CultureHelper.IsRtl ? "rtl" : string.Empty; |
|||
} |
|||
|
|||
<!DOCTYPE html> |
|||
<html lang="@CultureInfo.CurrentCulture.Name" dir="@rtl"> |
|||
<head> |
|||
<meta charset="utf-8" /> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|||
<title>MyCompanyName.MyProjectName.Blazor.Server</title> |
|||
<base href="~/" /> |
|||
|
|||
<abp-style-bundle name="@BlazorLeptonXLiteThemeBundles.Styles.Global"/> |
|||
</head> |
|||
<body class="abp-application-layout bg-light @rtl"> |
|||
|
|||
<component type="typeof(App)" render-mode="Server" /> |
|||
|
|||
<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> |
|||
|
|||
<abp-script-bundle name="@BlazorLeptonXLiteThemeBundles.Scripts.Global" /> |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,45 @@ |
|||
@using Volo.Abp.Localization |
|||
@using System.Globalization |
|||
@using Microsoft.Extensions.Hosting |
|||
@using Volo.Abp.AspNetCore.Components.Server.Theming.Bundling |
|||
@using Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme.Bundling |
|||
@inject IHostEnvironment Env |
|||
@{ |
|||
var rtl = CultureHelper.IsRtl ? "rtl" : string.Empty; |
|||
} |
|||
|
|||
<!DOCTYPE html> |
|||
<html lang="@CultureInfo.CurrentCulture.Name" dir="@rtl"> |
|||
|
|||
<head> |
|||
<meta charset="utf-8" /> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|||
<title>MyCompanyName.MyProjectName.Blazor.Server</title> |
|||
<base href="/" /> |
|||
|
|||
<AbpStyles BundleName="@BlazorLeptonXLiteThemeBundles.Styles.Global" /> |
|||
|
|||
<HeadOutlet @rendermode="InteractiveServer" /> |
|||
|
|||
</head> |
|||
<body> |
|||
|
|||
<Routes @rendermode="InteractiveServer" /> |
|||
|
|||
<AbpScripts BundleName="@BlazorLeptonXLiteThemeBundles.Scripts.Global" /> |
|||
|
|||
<div id="blazor-error-ui"> |
|||
@if (Env.IsDevelopment()) |
|||
{ |
|||
<text>An unhandled exception has occurred. See browser dev tools for details.</text> |
|||
} |
|||
else if (Env.IsStaging() || Env.IsProduction()) |
|||
{ |
|||
<text>An error has occurred. This application may no longer respond until reloaded.</text> |
|||
} |
|||
<a href="" class="reload">Reload</a> |
|||
<a class="dismiss">🗙</a> |
|||
</div> |
|||
|
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,14 @@ |
|||
@using Volo.Abp.AspNetCore.Components.Web.LeptonXLiteTheme.Themes.LeptonXLite |
|||
@using Volo.Abp.AspNetCore.Components.Web.Theming.Routing |
|||
@using Microsoft.Extensions.Options |
|||
@inject IOptions<AbpRouterOptions> RouterOptions |
|||
<Router AppAssembly="typeof(Program).Assembly" AdditionalAssemblies="RouterOptions.Value.AdditionalAssemblies"> |
|||
<Found Context="routeData"> |
|||
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)"> |
|||
<NotAuthorized> |
|||
<RedirectToLogin /> |
|||
</NotAuthorized> |
|||
</AuthorizeRouteView> |
|||
<FocusOnNavigate RouteData="routeData" Selector="h1" /> |
|||
</Found> |
|||
</Router> |
|||
@ -1,39 +0,0 @@ |
|||
@page "/" |
|||
@namespace MyCompanyName.MyProjectName.Blazor.Server.Pages |
|||
@using System.Globalization |
|||
@using Volo.Abp.AspNetCore.Components.Web.LeptonXLiteTheme.Themes.LeptonXLite |
|||
@using Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme.Bundling |
|||
@using Volo.Abp.Localization |
|||
@{ |
|||
Layout = null; |
|||
var rtl = CultureHelper.IsRtl ? "rtl" : string.Empty; |
|||
} |
|||
|
|||
<!DOCTYPE html> |
|||
<html lang="@CultureInfo.CurrentCulture.Name" dir="@rtl"> |
|||
<head> |
|||
<meta charset="utf-8" /> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|||
<title>MyCompanyName.MyProjectName.Blazor.Server</title> |
|||
<base href="~/" /> |
|||
|
|||
<abp-style-bundle name="@BlazorLeptonXLiteThemeBundles.Styles.Global"/> |
|||
</head> |
|||
<body class="abp-application-layout bg-light @rtl"> |
|||
|
|||
<component type="typeof(App)" render-mode="Server" /> |
|||
|
|||
<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> |
|||
|
|||
<abp-script-bundle name="@BlazorLeptonXLiteThemeBundles.Scripts.Global" /> |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,12 @@ |
|||
@using Volo.Abp.AspNetCore.Components.WebAssembly.WebApp |
|||
@using Volo.Abp.AspNetCore.Components.Web.LeptonXLiteTheme.Themes.LeptonXLite |
|||
<Router AppAssembly="typeof(Program).Assembly" AdditionalAssemblies="WebAppAdditionalAssembliesHelper.GetAssemblies<MyProjectNameBlazorModule>()"> |
|||
<Found Context="routeData"> |
|||
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)"> |
|||
<NotAuthorized> |
|||
<RedirectToLogin /> |
|||
</NotAuthorized> |
|||
</AuthorizeRouteView> |
|||
<FocusOnNavigate RouteData="routeData" Selector="h1" /> |
|||
</Found> |
|||
</Router> |
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,43 @@ |
|||
@using Microsoft.AspNetCore.Components.Web |
|||
<!DOCTYPE html> |
|||
<html> |
|||
|
|||
<head> |
|||
<meta charset="utf-8" /> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> |
|||
<title>MyCompanyName.MyProjectName.Blazor</title> |
|||
<base href="/" /> |
|||
|
|||
<!--ABP:Styles--> |
|||
<link href="global.css?_v=638424860497814240" rel="stylesheet"/> |
|||
<link href="main.css" rel="stylesheet"/> |
|||
<!--/ABP:Styles--> |
|||
|
|||
<!-- <TEMPLATE-REMOVE IF-NOT='PWA'> --> |
|||
<link href="manifest.json" rel="manifest" /> |
|||
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" /> |
|||
<link rel="apple-touch-icon" sizes="192x192" href="icon-192.png" /> |
|||
<!-- </TEMPLATE-REMOVE> --> |
|||
|
|||
<HeadOutlet @rendermode="new InteractiveWebAssemblyRenderMode(prerender: false)" /> |
|||
</head> |
|||
|
|||
<body class="abp-application-layout bg-light"> |
|||
|
|||
<script src="_framework/blazor.web.js"></script> |
|||
|
|||
<div id="ApplicationContainer"> |
|||
<div class="spinner"> |
|||
<div class="double-bounce1"></div> |
|||
<div class="double-bounce2"></div> |
|||
</div> |
|||
|
|||
<Routes @rendermode="new InteractiveWebAssemblyRenderMode(prerender: false)"/> |
|||
</div> |
|||
|
|||
<!--ABP:Scripts--> |
|||
<script src="global.js?_v=638424860499290294"></script> |
|||
<!--/ABP:Scripts--> |
|||
|
|||
</body> |
|||
</html> |
|||
Loading…
Reference in new issue