|
26 | 26 |
|
27 | 27 | <link rel="shortcut icon" href="~/img/favicon.ico">
|
28 | 28 | <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
|
29 |
| - <link href="~/libs/font-awesome/css/all.min.css" rel="stylesheet" /> |
30 |
| - <link href="~/libs/flag-icon/css/flag-icon.min.css" rel="stylesheet" /> |
31 |
| - <link href="~/libs/icheck-bootstrap/icheck-bootstrap.min.css" rel="stylesheet" /> |
32 |
| - <link href="~/libs/toastr/toastr.min.css" rel="stylesheet" /> |
33 |
| - <link href="~/libs/admin-lte/dist/css/adminlte.min.css" rel="stylesheet" /> |
34 |
| - <link href="~/css/main.css" rel="stylesheet" /> |
35 |
| - <link href="~/css/style.css" rel="stylesheet" /> |
| 29 | + |
| 30 | + <environment names="Development"> |
| 31 | + <link href="~/libs/font-awesome/css/all.css" rel="stylesheet" asp-append-version="true" /> |
| 32 | + <link href="~/libs/flag-icon/css/flag-icon.css" rel="stylesheet" asp-append-version="true" /> |
| 33 | + <link href="~/libs/icheck-bootstrap/icheck-bootstrap.css" rel="stylesheet" asp-append-version="true" /> |
| 34 | + <link href="~/libs/toastr/toastr.css" rel="stylesheet" asp-append-version="true" /> |
| 35 | + <link href="~/libs/animate.css/animate.css" rel="stylesheet" asp-append-version="true" /> |
| 36 | + <link href="~/libs/admin-lte/dist/css/adminlte.css" rel="stylesheet" asp-append-version="true" /> |
| 37 | + <link href="~/css/style.css" rel="stylesheet" asp-append-version="true" /> |
| 38 | + <link href="~/view-resources/Views/Account/_Layout.css" rel="stylesheet" asp-append-version="true" /> |
| 39 | + </environment> |
| 40 | + |
| 41 | + <environment names="Staging,Production"> |
| 42 | + <link rel="stylesheet" href="~/view-resources/Views/_Bundles/account-layout.min.css" asp-append-version="true" /> |
| 43 | + </environment> |
36 | 44 |
|
37 | 45 | @RenderSection("styles", required: false)
|
38 | 46 | </head>
|
|
61 | 69 | </div>
|
62 | 70 | </div>
|
63 | 71 | </div>
|
64 |
| - <script src="~/libs/jquery/jquery.min.js"></script> |
65 |
| - <script src="~/libs/bootstrap/js/bootstrap.bundle.min.js"></script> |
66 |
| - <script src="~/libs/admin-lte/dist/js/adminlte.min.js"></script> |
67 |
| - <script src="~/libs/jquery-validate/jquery.validate.min.js"></script> |
| 72 | + <script type="text/javascript"> |
| 73 | + // This is used to get the application's root path from javascript. |
| 74 | + // It's useful if you're running application in a virtual directory under IIS. |
| 75 | + var abp = abp || {}; |
| 76 | + abp.appPath = '@ApplicationPath'; |
| 77 | + </script> |
| 78 | + <environment names="Development"> |
| 79 | + <script src="~/libs/jquery/jquery.js" asp-append-version="true"></script> |
| 80 | + <script src="~/libs/bootstrap/js/bootstrap.bundle.js" asp-append-version="true"></script> |
| 81 | + <script src="~/libs/admin-lte/dist/js/adminlte.js" asp-append-version="true"></script> |
| 82 | + <script src="~/libs/jquery-validate/jquery.validate.js" asp-append-version="true"></script> |
| 83 | + <script src="~/libs/jquery-validate/jquery.validate.unobtrusive.js" asp-append-version="true"></script> |
| 84 | + <script src="~/libs/toastr/toastr.min.js" asp-append-version="true"></script> |
| 85 | + <script src="~/libs/block-ui/jquery.blockUI.js" asp-append-version="true"></script> |
| 86 | + <script src="~/libs/spin/spin.js" asp-append-version="true"></script> |
| 87 | + <script src="~/libs-ext/spin/jquery.spin.js" asp-append-version="true"></script> |
| 88 | + <script src="~/libs/sweetalert/sweetalert.min.js" asp-append-version="true"></script> |
| 89 | + <script src="~/libs/moment/moment-with-locales.js" asp-append-version="true"></script> |
| 90 | + <script src="~/libs/abp-web-resources/Abp/Framework/scripts/abp.js" asp-append-version="true"></script> |
| 91 | + <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.jquery.js" asp-append-version="true"></script> |
| 92 | + <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.toastr.js" asp-append-version="true"></script> |
| 93 | + <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.blockUI.js" asp-append-version="true"></script> |
| 94 | + <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.spin.js" asp-append-version="true"></script> |
| 95 | + <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.sweet-alert.js" asp-append-version="true"></script> |
| 96 | + <script src="~/js/main.js" asp-append-version="true"></script> |
| 97 | + </environment> |
| 98 | + |
| 99 | + <environment names="Staging,Production"> |
| 100 | + <script src="~/view-resources/Views/_Bundles/account-layout.min.js" asp-append-version="true"></script> |
| 101 | + </environment> |
| 102 | + |
68 | 103 | @if (CultureInfo.CurrentUICulture.Name != "en")
|
69 | 104 | {
|
70 |
| - < script src= "~/libs/jquery-validate/localization/[email protected](CultureInfo.CurrentUICulture.Name.Replace("-", "_" ) + ".js" )" asp-append-version= "true"></ script> |
| 105 | + < script src= "~/libs/jquery-validate/localization/[email protected](CultureInfo.CurrentUICulture.Name.Replace("-", "_") + ".js")" asp-append-version= "true"></ script> |
71 | 106 | }
|
72 |
| - <script src="~/libs/jquery-validate/jquery.validate.unobtrusive.min.js"></script> |
73 |
| - <script src="~/libs/toastr/toastr.min.js"></script> |
74 |
| - <script src="~/libs/block-ui/jquery.blockUI.min.js"></script> |
75 |
| - <script src="~/libs/spin/spin.min.js"></script> |
76 |
| - <script src="~/libs-ext/spin/jquery.spin.js"></script> |
77 |
| - <script src="~/libs/sweetalert/sweetalert.min.js"></script> |
78 |
| - <script src="~/libs/moment/moment-with-locales.min.js"></script> |
| 107 | + |
79 | 108 | <script type="text/javascript">
|
80 | 109 | // Localizing momentjs
|
81 | 110 | moment.locale('@CultureInfo.CurrentUICulture.Name');
|
82 |
| -
|
83 |
| - // This is used to get the application's root path from javascript. |
84 |
| - // It's useful if you're running application in a virtual directory under IIS. |
85 |
| - var abp = abp || {}; |
86 |
| - abp.appPath = '@ApplicationPath'; |
87 | 111 | </script>
|
88 |
| - <script src="~/libs/abp-web-resources/Abp/Framework/scripts/abp.js" asp-append-version="true"></script> |
89 |
| - <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.jquery.js" asp-append-version="true"></script> |
90 |
| - <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.toastr.js" asp-append-version="true"></script> |
91 |
| - <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.blockUI.js" asp-append-version="true"></script> |
92 |
| - <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.spin.js" asp-append-version="true"></script> |
93 |
| - <script src="~/libs/abp-web-resources/Abp/Framework/scripts/libs/abp.sweet-alert.js" asp-append-version="true"></script> |
| 112 | + |
94 | 113 | <!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
|
95 | 114 | <script src="~/AbpServiceProxies/GetAll?v=@(AppTimes.StartupTime.Ticks)" type="text/javascript"></script>
|
96 | 115 | <script src="~/AbpScripts/GetScripts?v=@(AppTimes.StartupTime.Ticks)" type="text/javascript"></script>
|
97 |
| - <script src="~/js/main.js"></script> |
98 |
| - <script src="~/js/script.js"></script> |
99 | 116 |
|
100 | 117 | @WebResourceManager.RenderScripts()
|
101 | 118 | @RenderSection("scripts", required: false)
|
|
0 commit comments