重构代码:移除第三方脚本asp-append-version修饰

This commit is contained in:
Argo-MacBookPro 2018-10-06 13:45:35 +08:00
parent b19cdd079d
commit faf92e10db
17 changed files with 111 additions and 98 deletions

View File

@ -5,14 +5,14 @@
}
@section css {
<environment include="Development">
<link href="~/css/bootstrap.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/font-awesome.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap.css" rel="stylesheet" />
<link href="~/css/font-awesome.css" rel="stylesheet" />
</environment>
<environment exclude="Development">
<link href="~/css/bootstrap.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/font-awesome.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap.min.css" rel="stylesheet" />
<link href="~/css/font-awesome.min.css" rel="stylesheet" />
</environment>
<link href="~/css/sweetalert.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/sweetalert.css" rel="stylesheet" />
<link href="~/css/theme.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/login.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/login-responsive.css" rel="stylesheet" asp-append-version="true" />
@ -23,16 +23,16 @@
}
@section javascript {
<environment include="Development">
<script src="~/js/bootstrap.bundle.js" asp-append-version="true"></script>
<script src="~/js/jquery.validate.js" asp-append-version="true"></script>
<script src="~/js/messages_zh.js" asp-append-version="true"></script>
<script src="~/js/sweetalert.js" asp-append-version="true"></script>
<script src="~/js/bootstrap.bundle.js"></script>
<script src="~/js/jquery.validate.js"></script>
<script src="~/js/messages_zh.js"></script>
<script src="~/js/sweetalert.js"></script>
</environment>
<environment exclude="Development">
<script src="~/js/bootstrap.bundle.min.js" asp-append-version="true"></script>
<script src="~/js/jquery.validate.min.js" asp-append-version="true"></script>
<script src="~/js/messages_zh.min.js" asp-append-version="true"></script>
<script src="~/js/sweetalert.min.js" asp-append-version="true"></script>
<script src="~/js/bootstrap.bundle.min.js"></script>
<script src="~/js/jquery.validate.min.js"></script>
<script src="~/js/messages_zh.min.js"></script>
<script src="~/js/sweetalert.min.js"></script>
</environment>
<script src="~/js/longbow.common.js" asp-append-version="true"></script>
<script src="~/js/longbow.validate.js" asp-append-version="true"></script>

View File

@ -4,7 +4,7 @@
Layout = "_Default";
}
@section javascript {
<script src="~/js/bootstrap3-typeahead.js" asp-append-version="true"></script>
<script src="~/js/bootstrap3-typeahead.js"></script>
<script src="~/js/dicts.js" asp-append-version="true"></script>
}
@section query {

View File

@ -3,15 +3,28 @@
ViewBag.Title = "程序异常";
}
@section css {
<link href="~/css/bootstrap-table.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap-datetimepicker.css" rel="stylesheet" asp-append-version="true" />
<environment include="Development">
<link href="~/css/bootstrap-table.css" rel="stylesheet" />
<link href="~/css/bootstrap-datetimepicker.css" rel="stylesheet" />
</environment>
<environment exclude="Development">
<link href="~/css/bootstrap-table.min.css" rel="stylesheet" />
<link href="~/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
</environment>
<link href="~/css/fa.css" rel="stylesheet" asp-append-version="true" />
}
@section javascript {
<script src="~/js/bootstrap-table.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table-zh-CN.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-datetimepicker.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-datetimepicker.zh-CN.js" asp-append-version="true"></script>
<environment include="Development">
<script src="~/js/bootstrap-table.js"></script>
<script src="~/js/bootstrap-table-zh-CN.js"></script>
<script src="~/js/bootstrap-datetimepicker.js"></script>
</environment>
<environment exclude="Development">
<script src="~/js/bootstrap-table.min.js"></script>
<script src="~/js/bootstrap-table-zh-CN.min.js"></script>
<script src="~/js/bootstrap-datetimepicker.min.js"></script>
</environment>
<script src="~/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="~/js/exceptions.js" asp-append-version="true"></script>
}
<div class="card">

View File

@ -4,26 +4,26 @@
}
@section css {
<environment include="Development">
<link href="~/css/bootstrap-table.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap-datetimepicker.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap-table.css" rel="stylesheet" />
<link href="~/css/bootstrap-datetimepicker.css" rel="stylesheet" />
</environment>
<environment exclude="Development">
<link href="~/css/bootstrap-table.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap-datetimepicker.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap-table.min.css" rel="stylesheet" />
<link href="~/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
</environment>
}
@section javascript {
<environment include="Development">
<script src="~/js/bootstrap-table.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table-zh-CN.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-datetimepicker.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table.js"></script>
<script src="~/js/bootstrap-table-zh-CN.js"></script>
<script src="~/js/bootstrap-datetimepicker.js"></script>
</environment>
<environment exclude="Development">
<script src="~/js/bootstrap-table.min.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table-zh-CN.min.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-datetimepicker.min.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table.min.js"></script>
<script src="~/js/bootstrap-table-zh-CN.min.js"></script>
<script src="~/js/bootstrap-datetimepicker.min.js"></script>
</environment>
<script src="~/js/bootstrap-datetimepicker.zh-CN.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="~/js/logs.js" asp-append-version="true"></script>
}
<div class="card">

View File

@ -4,11 +4,11 @@
Layout = "_Default";
}
@section css {
<link href="~/css/jquery.nestable.css" rel="stylesheet" />
<link href="~/css/fa.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/jquery.nestable.css" rel="stylesheet" asp-append-version="true" />
}
@section javascript {
<script src="~/js/jquery.nestable.js" asp-append-version="true"></script>
<script src="~/js/jquery.nestable.js"></script>
<script src="~/js/menus.js" asp-append-version="true"></script>
}
@section query {

View File

@ -4,20 +4,20 @@
}
@section css {
<environment include="Development">
<link href="~/css/bootstrap-table.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap-table.css" rel="stylesheet" />
</environment>
<environment exclude="Development">
<link href="~/css/bootstrap-table.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap-table.min.css" rel="stylesheet" />
</environment>
}
@section javascript {
<environment include="Development">
<script src="~/js/bootstrap-table.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table-zh-CN.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table.js"></script>
<script src="~/js/bootstrap-table-zh-CN.js"></script>
</environment>
<environment exclude="Development">
<script src="~/js/bootstrap-table.min.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table-zh-CN.min.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table.min.js"></script>
<script src="~/js/bootstrap-table-zh-CN.min.js"></script>
</environment>
<script src="~/js/noti.js" asp-append-version="true"></script>
}

View File

@ -4,29 +4,29 @@
}
@section css {
<environment include="Development">
<link href="~/css/fileinput.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/fileinput.css" rel="stylesheet" />
</environment>
<environment exclude="Development">
<link href="~/css/fileinput.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/fileinput.min.css" rel="stylesheet" />
</environment>
<link href="~/css/tasks.css" rel="stylesheet" asp-append-version="true" />
}
@section javascript {
<environment include="Development">
<script src="~/js/fileinput.js" asp-append-version="true"></script>
<script src="~/js/jquery.validate.js" asp-append-version="true"></script>
<script src="~/js/messages_zh.js" asp-append-version="true"></script>
<script src="~/js/fileinput.js"></script>
<script src="~/js/jquery.validate.js"></script>
<script src="~/js/messages_zh.js"></script>
</environment>
<environment exclude="Development">
<script src="~/js/fileinput.min.js" asp-append-version="true"></script>
<script src="~/js/jquery.validate.min.js" asp-append-version="true"></script>
<script src="~/js/messages_zh.min.js" asp-append-version="true"></script>
<script src="~/js/fileinput.min.js"></script>
<script src="~/js/jquery.validate.min.js"></script>
<script src="~/js/messages_zh.min.js"></script>
</environment>
<script src="~/js/fileinput.zh.js" asp-append-version="true"></script>
<script src="~/js/fileinput.zh.js"></script>
<script src="~/js/theme.js"></script>
<script src="~/js/longbow.dataentity.js" asp-append-version="true"></script>
<script src="~/js/longbow.validate.js" asp-append-version="true"></script>
<script src="~/js/profiles.js" asp-append-version="true"></script>
<script src="~/js/theme.js" asp-append-version="true"></script>
}
<div class="card">
<div class="card-header">基本资料</div>

View File

@ -4,11 +4,11 @@
Layout = "_Default";
}
@section css {
<link href="~/css/jquery.nestable.css" rel="stylesheet" />
<link href="~/css/fa.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/jquery.nestable.css" rel="stylesheet" asp-append-version="true" />
}
@section javascript {
<script src="~/js/jquery.nestable.js" asp-append-version="true"></script>
<script src="~/js/jquery.nestable.js"></script>
<script src="~/js/roles.js" asp-append-version="true"></script>
}
@section query {

View File

@ -4,12 +4,12 @@
}
@section javascript {
<environment include="Development">
<script src="~/js/jquery.validate.js" asp-append-version="true"></script>
<script src="~/js/messages_zh.js" asp-append-version="true"></script>
<script src="~/js/jquery.validate.js"></script>
<script src="~/js/messages_zh.js"></script>
</environment>
<environment exclude="Development">
<script src="~/js/jquery.validate.min.js" asp-append-version="true"></script>
<script src="~/js/messages_zh.min.js" asp-append-version="true"></script>
<script src="~/js/jquery.validate.min.js"></script>
<script src="~/js/messages_zh.min.js"></script>
</environment>
<script src="~/js/longbow.dataentity.js" asp-append-version="true"></script>
<script src="~/js/longbow.validate.js" asp-append-version="true"></script>

View File

@ -2,31 +2,31 @@
Layout = "_Bootstrap";
}
@section css {
<link href="~/css/nprogress.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/sweetalert.css" rel="stylesheet" asp-append-version="true" />
<environment include="Development">
<link href="~/css/toastr.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/toastr.css" rel="stylesheet" />
<link href="~/css/jquery.mCustomScrollbar.css" rel="stylesheet" />
</environment>
<environment exclude="Development">
<link href="~/css/toastr.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/toastr.min.css" rel="stylesheet" />
<link href="~/css/jquery.mCustomScrollbar.min.css" rel="stylesheet" />
</environment>
<link href="~/css/nprogress.css" rel="stylesheet" />
<link href="~/css/sweetalert.css" rel="stylesheet" />
@RenderSection("css", false)
}
@section javascript {
<environment include="Development">
<script src="~/js/sweetalert.js" asp-append-version="true"></script>
<script src="~/js/sweetalert.js"></script>
<script src="~/js/jquery.mCustomScrollbar.js"></script>
</environment>
<environment exclude="Development">
<script src="~/js/sweetalert.min.js" asp-append-version="true"></script>
<script src="~/js/sweetalert.min.js"></script>
<script src="~/js/jquery.mCustomScrollbar.concat.min.js"></script>
</environment>
<script src="~/js/jquery.dcjqaccordion.2.7.js" asp-append-version="true"></script>
<script src="~/js/jquery.dcjqaccordion.2.7.js"></script>
<script src="~/js/toastr.min.js"></script>
<script src="~/js/common-scripts.js" asp-append-version="true"></script>
<script src="~/js/log.js" asp-append-version="true"></script>
<script src="~/js/toastr.min.js" asp-append-version="true"></script>
@RenderSection("javascript", false)
}
@await Html.PartialAsync("navigator")

View File

@ -4,12 +4,12 @@
}
@section css {
<environment include="Development">
<link href="~/css/bootstrap.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/font-awesome.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap.css" rel="stylesheet" />
<link href="~/css/font-awesome.css" rel="stylesheet" />
</environment>
<environment exclude="Development">
<link href="~/css/bootstrap.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/font-awesome.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap.min.css" rel="stylesheet" />
<link href="~/css/font-awesome.min.css" rel="stylesheet" />
</environment>
@RenderSection("css", false)
<link href="~/css/site.css" rel="stylesheet" asp-append-version="true" />
@ -23,12 +23,12 @@
}
@section javascript {
<environment include="Development">
<script src="~/js/bootstrap.bundle.js" asp-append-version="true"></script>
<script src="~/js/bootstrap.bundle.js"></script>
</environment>
<environment exclude="Development">
<script src="~/js/bootstrap.bundle.min.js" asp-append-version="true"></script>
<script src="~/js/bootstrap.bundle.min.js"></script>
</environment>
<script src="~/js/nprogress.js" asp-append-version="true"></script>
<script src="~/js/nprogress.js"></script>
<script src="~/js/longbow.common.js" asp-append-version="true"></script>
@RenderSection("javascript", false)
}

View File

@ -3,25 +3,25 @@
}
@section css {
<environment include="Development">
<link href="~/css/bootstrap-table.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap-table.css" rel="stylesheet" />
</environment>
<environment exclude="Development">
<link href="~/css/bootstrap-table.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap-table.min.css" rel="stylesheet" />
</environment>
@RenderSection("css", false)
}
@section javascript {
<environment include="Development">
<script src="~/js/bootstrap-table.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table-zh-CN.js" asp-append-version="true"></script>
<script src="~/js/jquery.validate.js" asp-append-version="true"></script>
<script src="~/js/messages_zh.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table.js"></script>
<script src="~/js/bootstrap-table-zh-CN.js"></script>
<script src="~/js/jquery.validate.js"></script>
<script src="~/js/messages_zh.js"></script>
</environment>
<environment exclude="Development">
<script src="~/js/bootstrap-table.min.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table-zh-CN.min.js" asp-append-version="true"></script>
<script src="~/js/jquery.validate.min.js" asp-append-version="true"></script>
<script src="~/js/messages_zh.min.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table.min.js"></script>
<script src="~/js/bootstrap-table-zh-CN.min.js"></script>
<script src="~/js/jquery.validate.min.js"></script>
<script src="~/js/messages_zh.min.js"></script>
</environment>
<script src="~/js/longbow.dataentity.js" asp-append-version="true"></script>
<script src="~/js/longbow.validate.js" asp-append-version="true"></script>

View File

@ -21,10 +21,10 @@
<a id="pathBase" href="~/" hidden></a>
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<environment include="Development">
<script src="~/js/jquery-3.3.1.js" asp-append-version="true"></script>
<script src="~/js/jquery-3.3.1.js"></script>
</environment>
<environment exclude="Development">
<script src="~/js/jquery-3.3.1.min.js" asp-append-version="true"></script>
<script src="~/js/jquery-3.3.1.min.js"></script>
</environment>
@RenderSection("javascript", false)
</body>

View File

@ -3,10 +3,10 @@
Layout = "_Layout";
}
@section css {
<link href="~/css/error.css" rel="stylesheet" />
<link href="~/css/error.css" rel="stylesheet" asp-append-version="true" />
}
@section javascript {
<script src="~/js/error.js"></script>
<script src="~/js/error.js" asp-append-version="true"></script>
}
<section class="error-wrapper">
<img src="~/images/error_icon.png" />

View File

@ -3,10 +3,10 @@
Layout = "_Root";
}
@section css {
<link href="~/css/error.css" rel="stylesheet" />
<link href="~/css/error.css" rel="stylesheet" asp-append-version="true" />
}
@section Javascript {
<script src="~/js/error.js"></script>
<script src="~/js/error.js" asp-append-version="true"></script>
}
<section class="error-wrapper">
<img src="~/images/error_icon.png" />

View File

@ -4,15 +4,15 @@
}
@section css {
<environment include="Development">
<link href="~/css/bootstrap.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/font-awesome.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/toastr.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap.css" rel="stylesheet" />
<link href="~/css/font-awesome.css" rel="stylesheet" />
<link href="~/css/toastr.css" rel="stylesheet" />
<link href="~/css/jquery.mCustomScrollbar.css" rel="stylesheet" />
</environment>
<environment exclude="Development">
<link href="~/css/bootstrap.min.css" rel="stylesheet" asp-append-version="true">
<link href="~/css/font-awesome.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/toastr.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/bootstrap.min.css" rel="stylesheet">
<link href="~/css/font-awesome.min.css" rel="stylesheet" />
<link href="~/css/toastr.min.css" rel="stylesheet" />
<link href="~/css/jquery.mCustomScrollbar.min.css" rel="stylesheet" />
</environment>
@RenderSection("css", false)
@ -27,16 +27,16 @@
}
@section javascript {
<environment include="Development">
<script src="~/js/bootstrap.bundle.js" asp-append-version="true"></script>
<script src="~/js/bootstrap.bundle.js"></script>
<script src="~/js/jquery.mCustomScrollbar.js"></script>
</environment>
<environment exclude="Development">
<script src="~/js/bootstrap.bundle.min.js" asp-append-version="true"></script>
<script src="~/js/bootstrap.bundle.min.js"></script>
<script src="~/js/jquery.mCustomScrollbar.concat.min.js"></script>
</environment>
<script src="~/js/toastr.min.js" asp-append-version="true"></script>
<script src="~/js/jquery.dcjqaccordion.2.7.js"></script>
<script src="~/js/toastr.min.js"></script>
<script src="~/js/longbow.common.js" asp-append-version="true"></script>
<script src="~/js/jquery.dcjqaccordion.2.7.js" asp-append-version="true"></script>
<script src="~/js/common-scripts.js" asp-append-version="true"></script>
@RenderSection("javascript", false)
}

View File

@ -21,10 +21,10 @@
<a id="pathBase" href="~/" hidden></a>
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<environment include="Development">
<script src="~/js/jquery-3.3.1.js" asp-append-version="true"></script>
<script src="~/js/jquery-3.3.1.js"></script>
</environment>
<environment exclude="Development">
<script src="~/js/jquery-3.3.1.min.js" asp-append-version="true"></script>
<script src="~/js/jquery-3.3.1.min.js"></script>
</environment>
@RenderSection("javascript", false)
</body>