| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- @using Abp.Configuration.Startup
- @using Abp.Web.Security.AntiForgery
- @using VberAdmin
- @using VberAdmin.DomainService.Settings
- @using VberAdmin.Resources
- @using VberAdmin.Timing
- @using VberZero
- @using VberZero.Tools.StringModel
- @using System.Globalization
- @inject AppTimes _appTimes
- @inject IAbpAntiForgeryManager AbpAntiForgeryManager
- @inject IWebResourceManager WebResourceManager
- @inject ILanguageManager LanguageManager
- @inject IMultiTenancyConfig MultiTenancyConfig
- @{
- Layout = null;
- AbpAntiForgeryManager.SetCookie(Context);
- var lang = CultureInfo.CurrentUICulture.Name == "zh-Hans" ? "zh-CN" : CultureInfo.CurrentUICulture.Name;
- var pageTitle = !string.IsNullOrWhiteSpace(ViewBag.Title) ? ViewBag.Title + " / " : "";
- pageTitle += "VberAdmin";
- }
- <!DOCTYPE html>
- <html lang="@LanguageManager.CurrentLanguage.Name">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <title>@pageTitle</title>
- <environment names="Development">
- <link href="/Metronic/assets/plugins/global/plugins.bundle.css" rel="stylesheet" asp-append-version="false"/>
- <link href="/Metronic/assets/1/css/style.bundle.css" rel="stylesheet" asp-append-version="false"/>
- </environment>
- <environment names="Staging,Production">
- <link href="/css/_bundles/account.bundle.min.css" rel="stylesheet" asp-append-version="true"/>
- </environment>
- <style>
- *:focus {
- outline: none;
- }
- *{
- box-sizing: border-box;
- }
- html {
- background-color: #56baed;
- }
- body {
- font-family: "Poppins", sans-serif;
- height: 100vh;
- background-color: #56baed;
- }
-
- .account-wrapper {
- display: flex;
- align-items: center;
- flex-direction: column;
- justify-content: center;
- width: 100%;
- min-height: 100%;
- padding-bottom: 10%;
- }
- .card {
- width: 90%;
- padding:0;
- background: #fff;
- }
- .card-footer {
- background-color: #f6f6f6;
- border-top: 1px solid #dce8f1;
- padding: 25px;
- text-align: center;
- }
- button[type=submit] {
- background-color: #56baed;
- border: none;
- color: white;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- text-transform: uppercase;
- font-weight: 500;
- line-height: 1.5;
- padding: calc(.75rem + 1px) calc(1.5rem + 1px);
- box-shadow: 0 10px 30px 0 #5fbae9;
- box-shadow: 0 10px 30px 0 rgba(95,186,233,0.4);
- border-radius: .475rem;
- transition: all 0.3s ease-in-out;
- vertical-align: middle;
- cursor: pointer;
- user-select: none;
- }
- button[type=submit]:hover {
- background-color: #39ace7;
- }
- button:active {
- transform: scale(0.95);
- }
- input[type=text], input[type=password] {
- background-color: #f6f6f6;
- border: none;
- color: #0d0d0d;
- text-align: center;
- text-decoration: none;
- border-color: #5fbae9;
- }
- input[type=text]:focus,input[type=password]:focus,input[type=text]:active ,input[type=password]:active {
- background-color: #fff;
- border: none!important;
- border-bottom: 5px solid #5fbae9!important;
- }
- input[type=text]::placeholder, input[type=password]::placeholder {
- color: #cccccc;
- }
- </style>
- <style>
- .fadeInDown {
- animation-name: fadeInDown;
- animation-duration: 1s;
- animation-fill-mode: both;
- }
- .fadeIn {
- opacity:0;
- animation:fadeIn ease-in 1;
- animation-fill-mode:forwards;
- animation-duration:1s;
- }
- .fadeIn.fadeIn-1 {
- animation-delay: 0.4s;
- }
- .fadeIn.fadeIn-2 {
- animation-delay: 0.6s;
- }
- .fadeIn.fadeIn-3 {
- animation-delay: 0.8s;
- }
- .fadeIn.fadeIn-4 {
- animation-delay: 1s;
- }
- .fadeIn.fadeIn-5 {
- animation-delay: 1.2s;
- }
- .fadeIn.fadeIn-6 {
- animation-delay: 1.4s;
- }
- .fadeIn.fadeIn-7 {
- animation-delay: 1.5s;
- }
- .fadeIn.fadeIn-8 {
- animation-delay: 1.6s;
- }
- @@keyframes fadeInDown {
- from {
- opacity: 0;
- transform: translate3d(0, -100%, 0);
- }
- to {
- opacity: 1;
- transform: none;
- }
- }
- @@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
- </style>
- @await RenderSectionAsync("styles", required: false)
- </head>
- <body>
- <div class="account-wrapper fadeInDown">
- <div class="card mw-400px">
- <div class="card-body">
- @RenderBody()
- </div>
- @if (VberAdminConsts.MultiLanguageEnabled && (await SettingManager.GetSettingValueAsync(SettingNames.MultiLanguages))==VzDefinition.MultiLanguages.Multi.ToInt()+"")
- {
- <div class="card-footer">
- <vc:account-languages></vc:account-languages>
- </div>
- }
-
- </div>
- @* <div class="row">
- <div class="col-md-12 text-center">
- <small>© @DateTime.Now.Year VberAdmin. <b>Version </b> @AppVersionHelper.Version [@AppVersionHelper.ReleaseDate.ToString("yyyyMMdd")]</small>
- </div>
- </div>*@
- </div>
-
- <environment names="Development">
- <script src="/Metronic/assets/plugins/global/plugins.bundle.js" asp-append-version="false"></script>
- <script src="/Metronic/assets/1/js/scripts.bundle.js" asp-append-version="false"></script>
- <script src="/libs/sweetalert/sweetalert.min.js" asp-append-version="false"></script>
- <script src="/libs/block-ui/jquery.blockUI.js" asp-append-version="false"></script>
- <script src="/js/abp/abp.js" asp-append-version="false"></script>
- <script src="/js/abp/libs/abp.jquery.js" asp-append-version="false"></script>
- <script src="/js/abp/libs/abp.sweet-alert.js" asp-append-version="false"></script>
- <script src="/libs/jquery-validate/jquery.validate.js" asp-append-version="false"></script>
- <script src="/libs-ext/select2/select2tree.js" asp-append-version="false"></script>
- <script src="/js/vber.base.js" asp-append-version="false"></script>
- </environment>
- <environment names="Staging,Production">
- <script src="/Metronic/assets/plugins/global/plugins.bundle.js" asp-append-version="true"></script>
- <script src="/Metronic/assets/1/js/scripts.bundle.js" asp-append-version="true"></script>
- <script src="/js/_bundles/account.bundle.min.js" asp-append-version="true"></script>
- </environment>
- <script type="text/javascript">
- // This is used to get the application's root path from javascript.
- // It's useful if you're running application in a virtual directory under IIS.
- var abp = abp || {};
- abp.appPath = '@ApplicationPath';
- abp.apiPath = '@(VzConsts.ApiAppUrl)';
- abp.appUrl = '@(VzConsts.ApiAppUrl)';
- var lang = '@(lang)';
- abp.security.antiForgery.tokenCookieName = 'XSRF-TOKEN-VberAdmin';
- //abp.security.antiForgery.tokenHeaderName = 'X-XSRF-TOKEN-VberAdmin';
- abp.localization.VberZero = abp.localization.getSource('@(VzConsts.LocalizationSourceName)');
- var l = abp.localization.getSource('@(VzConsts.LocalizationSourceName)');
- </script>
- @if (CultureInfo.CurrentUICulture.Name != "en")
- {
- switch (lang)
- {
- case "zh-CN":
- <script src="~/libs/jquery-validate/localization/messages_zh.min.js" asp-append-version="false"></script>
- <script src="~/libs/flatpickr/dist/l10n/zh.min.js" asp-append-version="false"></script>
- <script src="/libs/select2/dist/js/i18n/zh-CN.js" asp-append-version="false"></script>
- @*
- <script src="~/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js" asp-append-version="false"></script>*@
- break;
- default:
- <script src="~/libs/jquery-validate/localization/messages_@(lang.Replace("-", "_")).min.js" asp-append-version="false"></script>
- <script src="~/libs/flatpickr/dist/l10n/@(lang).js" asp-append-version="false"></script>
- <script src="/libs/select2/dist/js/i18n/@(lang).js" asp-append-version="false"></script>
- @* <script src="~/libs/bootstrap-table/locale/bootstrap-table-@(lang).min.js" asp-append-version="false"></script>*@
- break;
- }
- }
- <script type="text/javascript">
- // Localizing moment js
- moment.locale('@lang');
- </script>
- <!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
- <script src="~/AbpServiceProxies/GetAll?v=@(_appTimes.StartupTime.Ticks)" type="text/javascript"></script>
- <script src="~/AbpScripts/GetScripts?v=@(_appTimes.StartupTime.Ticks)" type="text/javascript"></script>
- @await RenderSectionAsync("scripts", required: false)
- @WebResourceManager.RenderScripts()
- </body>
- </html>
|