重构代码:Bootstrap.Admin所有页面的js/css增加asp-append-version=true

This commit is contained in:
Argo-MacBookPro 2018-09-18 01:53:20 +08:00
parent 747b88e3ba
commit b468f53e0c
26 changed files with 178 additions and 179 deletions

View File

@ -2,10 +2,10 @@
ViewBag.Title = "未授权请求";
}
@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>
@section javascript {
<script src="~/js/error.js" asp-append-version="true"></script>
}
<section class="error-wrapper">
<img src="~/images/error_icon.png" />

View File

@ -4,38 +4,38 @@
}
@section css {
<environment include="Development">
<link href="~/css/bootstrap.css" rel="stylesheet">
<link href="~/css/font-awesome.css" rel="stylesheet" />
<link href="~/css/bootstrap.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/font-awesome.css" rel="stylesheet" asp-append-version="true" />
</environment>
<environment exclude="Development">
<link href="~/css/bootstrap.min.css" rel="stylesheet">
<link href="~/css/font-awesome.min.css" rel="stylesheet" />
<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" />
</environment>
<link href="~/css/sweetalert.css" rel="stylesheet" />
<link href="~/css/theme.css" rel="stylesheet" />
<link href="~/css/login.css" rel="stylesheet" />
<link href="~/css/login-responsive.css" rel="stylesheet" />
<link href="~/css/sweetalert.css" rel="stylesheet" asp-append-version="true" />
<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" />
@if (!string.IsNullOrEmpty(Model.Theme))
{
<link href="~/css/@Model.Theme" rel="stylesheet" />
<link href="~/css/@Model.Theme" rel="stylesheet" asp-append-version="true" />
}
}
@section javascript {
<environment include="Development">
<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>
<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>
</environment>
<environment exclude="Development">
<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>
<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>
</environment>
<script src="~/js/longbow.common.js"></script>
<script src="~/js/longbow.validate.js"></script>
<script src="~/js/login.js"></script>
<script src="~/js/longbow.common.js" asp-append-version="true"></script>
<script src="~/js/longbow.validate.js" asp-append-version="true"></script>
<script src="~/js/login.js" asp-append-version="true"></script>
}
<div class="container">
<form id="login" method="post" class="form-signin">

View File

@ -1,13 +1,13 @@
@model NavigatorBarModel
@{
ViewBag.Title = "Api 文档";
Layout = "~/Views/Shared/_Admin.cshtml";
Layout = "_Admin";
}
@section javascript {
<script src="~/js/apidoc.js"></script>
<script src="~/js/apidoc.js" asp-append-version="true"></script>
}
@section css {
<link href="~/css/api.css" rel="stylesheet" />
<link href="~/css/api.css" rel="stylesheet" asp-append-version="true" />
}
<section>
<div><h3>接口返回值定义</h3></div>

View File

@ -1,11 +1,11 @@
@model NavigatorBarModel
@{
ViewBag.Title = "字典表维护";
Layout = "~/Views/Shared/_Default.cshtml";
Layout = "_Default";
}
@section Javascript {
<script src="~/js/bootstrap3-typeahead.js"></script>
<script src="~/js/dicts.js"></script>
@section javascript {
<script src="~/js/bootstrap3-typeahead.js" asp-append-version="true"></script>
<script src="~/js/dicts.js" asp-append-version="true"></script>
}
@section query {
<form class="form-inline">

View File

@ -1,19 +1,19 @@
@model NavigatorBarModel
@{
ViewBag.Title = "程序异常";
Layout = "~/Views/Shared/_Admin.cshtml";
Layout = "_Admin";
}
@section css {
<link href="~/css/bootstrap-table.css" rel="stylesheet" />
<link href="~/css/bootstrap-datetimepicker.css" rel="stylesheet" />
<link href="~/css/fa.css" rel="stylesheet" />
<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/fa.css" rel="stylesheet" asp-append-version="true" />
}
@section Javascript {
<script src="~/js/bootstrap-table.js"></script>
<script src="~/js/bootstrap-table-zh-CN.js"></script>
<script src="~/js/bootstrap-datetimepicker.js"></script>
<script src="~/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="~/js/exceptions.js"></script>
@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>
<script src="~/js/exceptions.js" asp-append-version="true"></script>
}
<div class="card">
<div class="card-header">查询条件</div>

View File

@ -1,12 +1,12 @@
@model NavigatorBarModel
@{
ViewBag.Title = "图标集";
Layout = "~/Views/Shared/_Admin.cshtml";
Layout = "_Admin";
}
@section css {
<link href="~/css/fa.css" rel="stylesheet" />
<link href="~/css/fa.css" rel="stylesheet" asp-append-version="true" />
}
@section javascript {
<script src="~/js/icon.js"></script>
<script src="~/js/icon.js" asp-append-version="true"></script>
}
<div class="text-center"><i class="fa fa-spinner fa-pulse fa-3x fa-fw"></i></div>

View File

@ -1,10 +1,10 @@
@model NavigatorBarModel
@{
ViewBag.Title = "部门管理";
Layout = "~/Views/Shared/_Default.cshtml";
Layout = "_Default";
}
@section Javascript {
<script src="~/js/groups.js"></script>
@section javascript {
<script src="~/js/groups.js" asp-append-version="true"></script>
}
@section query {
<form class="form-inline">

View File

@ -1,7 +1,7 @@
@model ModelBase
@{
ViewBag.Title = "后台管理";
Layout = "~/Views/Shared/_Admin.cshtml";
Layout = "_Admin";
}
@section css {
<style>

View File

@ -1,31 +1,31 @@
@model NavigatorBarModel
@{
ViewBag.Title = "系统日志";
Layout = "~/Views/Shared/_Admin.cshtml";
Layout = "_Admin";
}
@section css {
<environment include="Development">
<link href="~/css/bootstrap-table.css" rel="stylesheet" />
<link href="~/css/bootstrap-datetimepicker.css" rel="stylesheet" />
<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>
<environment exclude="Development">
<link href="~/css/bootstrap-table.min.css" rel="stylesheet" />
<link href="~/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
<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" />
</environment>
}
@section Javascript {
@section javascript {
<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>
<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>
</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>
<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>
</environment>
<script src="~/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="~/js/logs.js"></script>
<script src="~/js/bootstrap-datetimepicker.zh-CN.js" asp-append-version="true"></script>
<script src="~/js/logs.js" asp-append-version="true"></script>
}
<div class="card">
<div class="card-header">查询条件</div>

View File

@ -1,15 +1,15 @@
@model NavigatorBarModel
@{
ViewBag.Title = "菜单管理";
Layout = "~/Views/Shared/_Default.cshtml";
Layout = "_Default";
}
@section css {
<link href="~/css/fa.css" rel="stylesheet" />
<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"></script>
<script src="~/js/menus.js"></script>
@section javascript {
<script src="~/js/jquery.nestable.js" asp-append-version="true"></script>
<script src="~/js/menus.js" asp-append-version="true"></script>
}
@section query {
<form class="form-inline">

View File

@ -1,10 +1,10 @@
@model NavigatorBarModel
@{
ViewBag.Title = "站内消息";
Layout = "~/Views/Shared/_Admin.cshtml";
Layout = "_Admin";
}
@section Javascript {
<script src="~/js/message.js"></script>
@section javascript {
<script src="~/js/message.js" asp-append-version="true"></script>
}
<div class="mail-box">
<div class="sm-side">

View File

@ -1,7 +1,7 @@
@model ModelBase
@{
ViewBag.Title = "客户端测试";
Layout = "~/Views/Shared/_Admin.cshtml";
Layout = "_Admin";
}
@section javascript {
<script>

View File

@ -1,26 +1,26 @@
@model NavigatorBarModel
@{
ViewBag.Title = "通知管理";
Layout = "~/Views/Shared/_Admin.cshtml";
Layout = "_Admin";
}
@section css {
<environment include="Development">
<link href="~/css/bootstrap-table.css" rel="stylesheet" />
<link href="~/css/bootstrap-table.css" rel="stylesheet" asp-append-version="true" />
</environment>
<environment exclude="Development">
<link href="~/css/bootstrap-table.min.css" rel="stylesheet" />
<link href="~/css/bootstrap-table.min.css" rel="stylesheet" asp-append-version="true" />
</environment>
}
@section Javascript {
@section javascript {
<environment include="Development">
<script src="~/js/bootstrap-table.js"></script>
<script src="~/js/bootstrap-table-zh-CN.js"></script>
<script src="~/js/bootstrap-table.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table-zh-CN.js" asp-append-version="true"></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-table.min.js" asp-append-version="true"></script>
<script src="~/js/bootstrap-table-zh-CN.min.js" asp-append-version="true"></script>
</environment>
<script src="~/js/noti.js"></script>
<script src="~/js/noti.js" asp-append-version="true"></script>
}
<div class="card">
<div class="card-header">用户注册<span class="pull-right"><a id="refreshUsers" href="javascript:;" class="fa fa-refresh" title="点击刷新" data-toggle="tooltip" data-placement="left"></a></span></div>

View File

@ -1,33 +1,33 @@
@model ProfilesModel
@{
ViewBag.Title = "个人中心";
Layout = "~/Views/Shared/_Admin.cshtml";
}
@section Javascript {
<environment include="Development">
<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"></script>
<script src="~/js/jquery.validate.min.js"></script>
<script src="~/js/messages_zh.min.js"></script>
</environment>
<script src="~/js/fileinput.zh.js"></script>
<script src="~/js/longbow.dataentity.js"></script>
<script src="~/js/longbow.validate.js"></script>
<script src="~/js/profiles.js"></script>
<script src="~/js/theme.js"></script>
Layout = "_Admin";
}
@section css {
<environment include="Development">
<link href="~/css/fileinput.css" rel="stylesheet" />
<link href="~/css/fileinput.css" rel="stylesheet" asp-append-version="true" />
</environment>
<environment exclude="Development">
<link href="~/css/fileinput.min.css" rel="stylesheet" />
<link href="~/css/fileinput.min.css" rel="stylesheet" asp-append-version="true" />
</environment>
<link href="~/css/tasks.css" rel="stylesheet" />
<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>
</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>
</environment>
<script src="~/js/fileinput.zh.js" asp-append-version="true"></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

@ -1,16 +1,15 @@
@model NavigatorBarModel
@{
ViewBag.Title = "角色管理";
Layout = "~/Views/Shared/_Default.cshtml";
Layout = "_Default";
}
@section css {
<link href="~/css/fa.css" rel="stylesheet" />
<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"></script>
<script src="~/js/roles.js"></script>
@section javascript {
<script src="~/js/jquery.nestable.js" asp-append-version="true"></script>
<script src="~/js/roles.js" asp-append-version="true"></script>
}
@section query {
<form class="form-inline">

View File

@ -1,20 +1,20 @@
@model ThemeModel
@{
ViewBag.Title = "网站设置";
Layout = "~/Views/Shared/_Admin.cshtml";
Layout = "_Admin";
}
@section Javascript {
@section javascript {
<environment include="Development">
<script src="~/js/jquery.validate.js"></script>
<script src="~/js/messages_zh.js"></script>
<script src="~/js/jquery.validate.js" asp-append-version="true"></script>
<script src="~/js/messages_zh.js" asp-append-version="true"></script>
</environment>
<environment exclude="Development">
<script src="~/js/jquery.validate.min.js"></script>
<script src="~/js/messages_zh.min.js"></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>
</environment>
<script src="~/js/longbow.dataentity.js"></script>
<script src="~/js/longbow.validate.js"></script>
<script src="~/js/settings.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/settings.js" asp-append-version="true"></script>
}
<div class="card">
<div class="card-header">系统名称设置</div>

View File

@ -1,13 +1,13 @@
@model NavigatorBarModel
@{
ViewBag.Title = "任务管理";
Layout = "~/Views/Shared/_Admin.cshtml";
}
@section Javascript {
<script src="~/js/tasks.js"></script>
Layout = "_Admin";
}
@section css {
<link href="~/css/tasks.css" rel="stylesheet" />
<link href="~/css/tasks.css" rel="stylesheet" asp-append-version="true" />
}
@section javascript {
<script src="~/js/tasks.js" asp-append-version="true"></script>
}
<div class="card">
<div class="card-header">任务消息<span class="pull-right"><a id="refreshTask" href="javascript:;" class="fa fa-refresh"></a></span></div>

View File

@ -1,10 +1,10 @@
@model NavigatorBarModel
@{
ViewBag.Title = "用户管理";
Layout = "~/Views/Shared/_Default.cshtml";
Layout = "_Default";
}
@section Javascript {
<script src="~/js/users.js"></script>
@section javascript {
<script src="~/js/users.js" asp-append-version="true"></script>
}
@section query {
<form class="form-inline">

View File

@ -4,7 +4,7 @@
@section css {
<link href="~/css/error.css" rel="stylesheet" />
}
@section Javascript {
@section javascript {
<script src="~/js/error.js"></script>
}
<section class="error-wrapper">

View File

@ -1,6 +1,6 @@
@{
ViewBag.Title = "首页";
Layout = "~/Views/Shared/_Bootstrap.cshtml";
Layout = "_Bootstrap";
}
<div class="content-body welcome-bg">
</div>

View File

@ -4,7 +4,7 @@
@section css {
<link href="~/css/error.css" rel="stylesheet" />
}
@section Javascript {
@section javascript {
<script src="~/js/error.js"></script>
}
<section class="error-wrapper">

View File

@ -88,7 +88,7 @@
</div>
<div class="dropdown userinfo">
<a data-toggle="dropdown" class="dropdown-toggle shadow-default" href="#">
<img id="headerIcon" alt="" src="@Url.Content(Model.Icon)">
<img id="headerIcon" alt="" src="@Url.Content(Model.Icon)" asp-append-version="true">
<span id="userDisplayName" data-userName="@Model.UserName" class="username text-truncate d-inline-block">@Model.DisplayName</span>
</a>
<div class="dropdown-menu dropdown-menu-right">

View File

@ -1,35 +1,35 @@
@{
Layout = "~/Views/Shared/_Bootstrap.cshtml";
Layout = "_Bootstrap";
}
@section css {
<link href="~/css/nprogress.css" rel="stylesheet" />
<link href="~/css/sweetalert.css" rel="stylesheet" />
<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" />
<link href="~/css/toastr.css" rel="stylesheet" asp-append-version="true" />
</environment>
<environment exclude="Development">
<link href="~/css/toastr.min.css" rel="stylesheet" />
<link href="~/css/toastr.min.css" rel="stylesheet" asp-append-version="true" />
</environment>
@RenderSection("css", false)
<link href="~/css/admin.css" rel="stylesheet" />
<link href="~/css/admin-responsive.css" rel="stylesheet" />
<link href="~/css/admin.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/admin-responsive.css" rel="stylesheet" asp-append-version="true" />
}
@section javascript {
<environment include="Development">
<script src="~/js/sweetalert.js"></script>
<script src="~/js/jquery.scrollTo.js"></script>
<script src="~/js/jquery.nicescroll.js"></script>
<script src="~/js/sweetalert.js" asp-append-version="true"></script>
<script src="~/js/jquery.scrollTo.js" asp-append-version="true"></script>
<script src="~/js/jquery.nicescroll.js" asp-append-version="true"></script>
</environment>
<environment exclude="Development">
<script src="~/js/sweetalert.min.js"></script>
<script src="~/js/jquery.scrollTo.min.js"></script>
<script src="~/js/jquery.nicescroll.min.js"></script>
<script src="~/js/sweetalert.min.js" asp-append-version="true"></script>
<script src="~/js/jquery.scrollTo.min.js" asp-append-version="true"></script>
<script src="~/js/jquery.nicescroll.min.js" asp-append-version="true"></script>
</environment>
<script src="~/js/jquery.dcjqaccordion.2.7.js"></script>
<script src="~/js/common-scripts.js"></script>
<script src="~/js/log.js"></script>
<script src="~/js/toastr.min.js"></script>
@RenderSection("Javascript", false)
<script src="~/js/jquery.dcjqaccordion.2.7.js" asp-append-version="true"></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")
<section id="main-content" class="main-content">

View File

@ -1,36 +1,36 @@
@model ModelBase
@{
Layout = "~/Views/Shared/_Layout.cshtml";
Layout = "_Layout";
}
@section css {
<environment include="Development">
<link href="~/css/bootstrap.css" rel="stylesheet">
<link href="~/css/font-awesome.css" rel="stylesheet" />
<link href="~/css/bootstrap.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/font-awesome.css" rel="stylesheet" asp-append-version="true" />
</environment>
<environment exclude="Development">
<link href="~/css/bootstrap.min.css" rel="stylesheet">
<link href="~/css/font-awesome.min.css" rel="stylesheet" />
<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" />
</environment>
@RenderSection("css", false)
<link href="~/css/theme.css" rel="stylesheet" />
<link href="~/css/theme-responsive.css" rel="stylesheet" />
<link href="~/css/site.css" rel="stylesheet" />
<link href="~/css/site-responsive.css" rel="stylesheet" />
<link href="~/css/theme.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/theme-responsive.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/site.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/site-responsive.css" rel="stylesheet" asp-append-version="true" />
@if (!string.IsNullOrEmpty(Model.Theme))
{
<link href="~/css/@Model.Theme" rel="stylesheet" />
<link href="~/css/@Model.Theme" rel="stylesheet" asp-append-version="true" />
}
}
@section javascript {
<environment include="Development">
<script src="~/js/bootstrap.bundle.js"></script>
<script src="~/js/bootstrap.bundle.js" asp-append-version="true"></script>
</environment>
<environment exclude="Development">
<script src="~/js/bootstrap.bundle.min.js"></script>
<script src="~/js/bootstrap.bundle.min.js" asp-append-version="true"></script>
</environment>
<script src="~/js/nprogress.js"></script>
<script src="~/js/longbow.common.js"></script>
@RenderSection("Javascript", false)
<script src="~/js/nprogress.js" asp-append-version="true"></script>
<script src="~/js/longbow.common.js" asp-append-version="true"></script>
@RenderSection("javascript", false)
}
@await Html.PartialAsync("Header")
@RenderBody()

View File

@ -1,31 +1,31 @@
@{
Layout = "~/Views/Shared/_Admin.cshtml";
Layout = "_Admin";
}
@section css {
<environment include="Development">
<link href="~/css/bootstrap-table.css" rel="stylesheet" />
<link href="~/css/bootstrap-table.css" rel="stylesheet" asp-append-version="true" />
</environment>
<environment exclude="Development">
<link href="~/css/bootstrap-table.min.css" rel="stylesheet" />
<link href="~/css/bootstrap-table.min.css" rel="stylesheet" asp-append-version="true" />
</environment>
@RenderSection("css", false)
}
@section javascript {
<environment include="Development">
<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>
<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>
</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/jquery.validate.min.js"></script>
<script src="~/js/messages_zh.min.js"></script>
<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>
</environment>
<script src="~/js/longbow.dataentity.js"></script>
<script src="~/js/longbow.validate.js"></script>
@RenderSection("Javascript", false)
<script src="~/js/longbow.dataentity.js" asp-append-version="true"></script>
<script src="~/js/longbow.validate.js" asp-append-version="true"></script>
@RenderSection("javascript", false)
}
@section modal {
<div class="modal fade" id="dialogNew" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true">

View File

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