👽 压缩后台代码,加快响应速度

pull/18/head
ruibaby 2018-06-25 23:41:16 +08:00
parent 191d69d287
commit 77f1dda005
12 changed files with 27 additions and 134 deletions

View File

@ -1,3 +1,4 @@
<#compress >
<#include "module/_macro.ftl">
<@head title="${options.blog_title} | 后台管理:备份"></@head>
<div class="wrapper">
@ -229,3 +230,4 @@
<#include "module/_footer.ftl">
</div>
<@footer></@footer>
</#compress>

View File

@ -1,3 +1,4 @@
<#compress >
<#include "module/_macro.ftl">
<@head title="${options.blog_title} | 后台管理:评论"></@head>
<div class="wrapper">
@ -164,3 +165,4 @@
<#include "module/_footer.ftl">
</div>
<@footer></@footer>
</#compress>

View File

@ -1,3 +1,4 @@
<#compress >
<#include "module/_macro.ftl">
<@head title="关于Halo"></@head>
<div class="wrapper">
@ -40,4 +41,5 @@
</div>
<#include "module/_footer.ftl">
</div>
<@footer></@footer>
<@footer></@footer>
</#compress>

View File

@ -1,3 +1,4 @@
<#compress >
<#include "module/_macro.ftl">
<@head title="${options.blog_title} | 后台管理"></@head>
<div class="wrapper">
@ -363,4 +364,5 @@
</div>
<#include "module/_footer.ftl">
</div>
<@footer></@footer>
<@footer></@footer>
</#compress>

View File

@ -46,4 +46,4 @@
<script src="/static/js/app.js"></script>
<script src="/static/js/login.js"></script>
</html>
</#compress>
</#compress>

View File

@ -1,3 +1,4 @@
<#compress >
<#include "module/_macro.ftl">
<@head title="${options.blog_title} | 后台管理:菜单设置"></@head>
<div class="wrapper">
@ -174,3 +175,4 @@
<#include "module/_footer.ftl">
</div>
<@footer></@footer>
</#compress>

View File

@ -1,3 +1,4 @@
<#compress >
<#include "module/_macro.ftl">
<@head title="${options.blog_title} | 后台管理:页面编辑"></@head>
<div class="wrapper">
@ -314,3 +315,4 @@
<#include "module/_footer.ftl">
</div>
<@footer></@footer>
</#compress>

View File

@ -1,3 +1,4 @@
<#compress >
<#include "module/_macro.ftl">
<@head title="${options.blog_title} | 后台管理:文章编辑"></@head>
<div class="wrapper">
@ -405,3 +406,4 @@
<#include "module/_footer.ftl">
</div>
<@footer></@footer>
</#compress>

View File

@ -226,4 +226,4 @@
<#include "module/_footer.ftl">
</div>
<@footer></@footer>
</#compress>
</#compress>

View File

@ -9,132 +9,7 @@
<#include "module/_sidebar.ftl">
<div class="content-wrapper">
<style>
.tags {
zoom: 1;
margin: 0;
padding: 0;
}
.tags:before, .tags:after {
content: '';
display: table;
}
.tags:after {
clear: both;
}
.tags li {
position: relative;
float: left;
margin: 0 0 8px 12px;
list-style: none;
}
.tags li:active {
margin-top: 1px;
margin-bottom: 7px;
}
.tags li:after {
content: '';
z-index: 2;
position: absolute;
top: 10px;
right: -2px;
width: 5px;
height: 6px;
opacity: .95;
background: #eb6b22;
border-radius: 3px 0 0 3px;
-webkit-box-shadow: inset 1px 0 #99400e;
box-shadow: inset 1px 0 #99400e;
}
.tags a, .tags span {
display: block;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.tags a {
height: 26px;
line-height: 23px;
padding: 0 9px 0 8px;
font-size: 12px;
color: #555;
text-decoration: none;
text-shadow: 0 1px white;
background: #fafafa;
border-width: 1px 0 1px 1px;
border-style: solid;
border-color: #dadada #d2d2d2 #c5c5c5;
border-radius: 3px 0 0 3px;
background-image: -webkit-linear-gradient(top, #fcfcfc, #f0f0f0);
background-image: -moz-linear-gradient(top, #fcfcfc, #f0f0f0);
background-image: -o-linear-gradient(top, #fcfcfc, #f0f0f0);
background-image: linear-gradient(to bottom, #fcfcfc, #f0f0f0);
-webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.tags a:hover span {
padding: 0 7px 0 6px;
max-width: 40px;
-webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 1px 1px 2px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.tags span {
position: absolute;
top: 1px;
left: 100%;
z-index: 2;
overflow: hidden;
max-width: 0;
height: 24px;
line-height: 21px;
padding: 0 0 0 2px;
color: white;
text-shadow: 0 -1px rgba(0, 0, 0, 0.3);
background: #eb6b22;
border: 1px solid;
border-color: #d15813 #c85412 #bf5011;
border-radius: 0 2px 2px 0;
opacity: .95;
background-image: -webkit-linear-gradient(top, #ed7b39, #df5e14);
background-image: -moz-linear-gradient(top, #ed7b39, #df5e14);
background-image: -o-linear-gradient(top, #ed7b39, #df5e14);
background-image: linear-gradient(to bottom, #ed7b39, #df5e14);
-webkit-transition: 0.3s ease-out;
-moz-transition: 0.3s ease-out;
-o-transition: 0.3s ease-out;
transition: 0.3s ease-out;
-webkit-transition-property: padding, max-width;
-moz-transition-property: padding, max-width;
-o-transition-property: padding, max-width;
transition-property: padding, max-width;
}
.green li:after {
background: #65bb34;
-webkit-box-shadow: inset 1px 0 #3a6b1e;
box-shadow: inset 1px 0 #3a6b1e;
}
.green span {
background: #65bb34;
border-color: #549b2b #4f9329 #4b8b27;
background-image: -webkit-linear-gradient(top, #71ca3f, #5aa72e);
background-image: -moz-linear-gradient(top, #71ca3f, #5aa72e);
background-image: -o-linear-gradient(top, #71ca3f, #5aa72e);
background-image: linear-gradient(to bottom, #71ca3f, #5aa72e);
}
.blue li:after {
background: #56a3d5;
-webkit-box-shadow: inset 1px 0 #276f9e;
box-shadow: inset 1px 0 #276f9e;
}
.blue span {
background: #56a3d5;
border-color: #3591cd #318cc7 #2f86be;
background-image: -webkit-linear-gradient(top, #6aaeda, #4298d0);
background-image: -moz-linear-gradient(top, #6aaeda, #4298d0);
background-image: -o-linear-gradient(top, #6aaeda, #4298d0);
background-image: linear-gradient(to bottom, #6aaeda, #4298d0);
}
.tags{zoom:1;margin:0;padding:0}.tags:after,.tags:before{content:'';display:table}.tags:after{clear:both}.tags li{position:relative;float:left;margin:0 0 8px 12px;list-style:none}.tags li:active{margin-top:1px;margin-bottom:7px}.tags li:after{content:'';z-index:2;position:absolute;top:10px;right:-2px;width:5px;height:6px;opacity:.95;background:#eb6b22;border-radius:3px 0 0 3px;-webkit-box-shadow:inset 1px 0 #99400e;box-shadow:inset 1px 0 #99400e}.tags a,.tags span{display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.tags a{height:26px;line-height:23px;padding:0 9px 0 8px;font-size:12px;color:#555;text-decoration:none;text-shadow:0 1px #fff;background:#fafafa;border-width:1px 0 1px 1px;border-style:solid;border-color:#dadada #d2d2d2 #c5c5c5;border-radius:3px 0 0 3px;background-image:-webkit-linear-gradient(top,#fcfcfc,#f0f0f0);background-image:-moz-linear-gradient(top,#fcfcfc,#f0f0f0);background-image:-o-linear-gradient(top,#fcfcfc,#f0f0f0);background-image:linear-gradient(to bottom,#fcfcfc,#f0f0f0);-webkit-box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 1px 2px rgba(0,0,0,.05)}.tags a:hover span{padding:0 7px 0 6px;max-width:40px;-webkit-box-shadow:inset 0 0 0 1px rgba(255,255,255,.15),1px 1px 2px rgba(0,0,0,.2);box-shadow:inset 0 0 0 1px rgba(255,255,255,.15),1px 1px 2px rgba(0,0,0,.2)}.tags span{position:absolute;top:1px;left:100%;z-index:2;overflow:hidden;max-width:0;height:24px;line-height:21px;padding:0 0 0 2px;color:#fff;text-shadow:0 -1px rgba(0,0,0,.3);background:#eb6b22;border:1px solid;border-color:#d15813 #c85412 #bf5011;border-radius:0 2px 2px 0;opacity:.95;background-image:-webkit-linear-gradient(top,#ed7b39,#df5e14);background-image:-moz-linear-gradient(top,#ed7b39,#df5e14);background-image:-o-linear-gradient(top,#ed7b39,#df5e14);background-image:linear-gradient(to bottom,#ed7b39,#df5e14);-webkit-transition:.3s ease-out;-moz-transition:.3s ease-out;-o-transition:.3s ease-out;transition:.3s ease-out;-webkit-transition-property:padding,max-width;-moz-transition-property:padding,max-width;-o-transition-property:padding,max-width;transition-property:padding,max-width}.green li:after{background:#65bb34;-webkit-box-shadow:inset 1px 0 #3a6b1e;box-shadow:inset 1px 0 #3a6b1e}.green span{background:#65bb34;border-color:#549b2b #4f9329 #4b8b27;background-image:-webkit-linear-gradient(top,#71ca3f,#5aa72e);background-image:-moz-linear-gradient(top,#71ca3f,#5aa72e);background-image:-o-linear-gradient(top,#71ca3f,#5aa72e);background-image:linear-gradient(to bottom,#71ca3f,#5aa72e)}.blue li:after{background:#56a3d5;-webkit-box-shadow:inset 1px 0 #276f9e;box-shadow:inset 1px 0 #276f9e}.blue span{background:#56a3d5;border-color:#3591cd #318cc7 #2f86be;background-image:-webkit-linear-gradient(top,#6aaeda,#4298d0);background-image:-moz-linear-gradient(top,#6aaeda,#4298d0);background-image:-o-linear-gradient(top,#6aaeda,#4298d0);background-image:linear-gradient(to bottom,#6aaeda,#4298d0)}
</style>
<section class="content-header">
<h1>
@ -156,7 +31,7 @@
<div class="box box-primary">
<#if updateTag??>
<div class="box-header with-border">
<h3 class="box-title">修改标签<#if tag??>[${updateTag.tagName}]</#if></h3>
<h3 class="box-title">修改标签<#if updateTag??>[${updateTag.tagName}]</#if></h3>
</div>
<form action="/admin/tag/save" method="post" role="form">
<input type="hidden" name="tagId" value="${updateTag.tagId?c}">

View File

@ -1,3 +1,4 @@
<#compress >
<#include "module/_macro.ftl">
<@head title="${options.blog_title} | 后台管理:主题编辑"></@head>
<div class="wrapper">
@ -134,7 +135,7 @@
$('#tplNameTitle').html('');
}
}
function saveTpl() {
$.ajax({
type: 'POST',
@ -181,4 +182,5 @@
</div>
<#include "module/_footer.ftl">
</div>
<@footer></@footer>
<@footer></@footer>
</#compress>

View File

@ -1,3 +1,4 @@
<#compress >
<#include "module/_macro.ftl">
<@head title="${options.blog_title} | 后台管理:主题"></@head>
<div class="wrapper">
@ -82,7 +83,7 @@
<div class="row">
<#if themes?? && (themes?size>0)>
<#list themes as theme>
<div class="col-md-3 theme-body">
<div class="col-md-6 col-lg-3 col theme-body">
<div class="box box-solid">
<div class="box-body theme-thumbnail" style="background-image: url(/${theme.themeName?if_exists}/screenshot.png)">
<div class="pull-right btn-delete" style="display: none" onclick="modelShow('/admin/themes/remove?themeName=${theme.themeName}')"><i class="fa fa-times fa-lg" aria-hidden="true"></i></div>
@ -277,3 +278,4 @@
<#include "module/_footer.ftl">
</div>
<@footer></@footer>
</#compress>