forked from mirror/MrDoc
新增meta标签,在双核浏览器中默认使用极速内核
This commit is contained in:
parent
70ecdd2e6a
commit
b203113582
@ -23,32 +23,40 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="layui-card" style="display: none;">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
<div class="layui-card-header" style="margin-bottom: 10px;">
|
||||
<blockquote id="check_update_div" class="layui-elem-quote" style="border-left: 5px solid #ff213b !important;">{% trans "检测到新版本发布,请及时更新!下载地址:" %}<a href="https://github.com/zmister2016/MrDoc" target="_blank">GitHub</a>、<a href="https://gitee.com/zmister/MrDoc" target="_blank">码云</a></blockquote>
|
||||
|
||||
<div class="" style="margin-bottom: 10px;font-weight: 700;color: red;">
|
||||
<a href="https://curl.qcloud.com/rVF2jfrZ" style="color: #2176ff;" target="_blank">👉【腾讯云】云产品限时秒杀,爆款1核2G云服务器,首年99元</a><br>
|
||||
<a href="https://curl.qcloud.com/NbjvQGEE" style="color: #2176ff;" target="_blank">👉【腾讯云】境外1核2G服务器低至2折,半价续费券限量免费领取!</a><br>
|
||||
<a href="https://curl.qcloud.com/psEDIE4h" style="color: #2176ff;" target="_blank">👉【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。</a><br>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="layer-photos-demo" class="layer-photos-demo" style="display: none;">
|
||||
<img layer-src="{% static 'dashang/dashang_wx.webp' %}" src="{% static 'dashang/dashang_wx.webp' %}" alt="蜜源">
|
||||
</div>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
<script src="{% static 'PearAdminLayui/component/layui/layui.js' %}?version={{mrdoc_version}}"></script>
|
||||
<script src="{% static 'PearAdminLayui/component/pear/pear.js' %}?version={{mrdoc_version}}"></script>
|
||||
<script async>
|
||||
layui.use(['jquery'], function() {
|
||||
layui.use(['jquery','layer'], function() {
|
||||
let $ = layui.jquery;
|
||||
let layer = layui.layer;
|
||||
// 检测版本更新
|
||||
checkUpdate = function(){
|
||||
$.get("{% url 'check_update' %}",function(r){
|
||||
// console.log(r)
|
||||
if(r.status){
|
||||
var new_version = r.data.name.slice(1,5)
|
||||
var current_version = '{{mrdoc_version}}'
|
||||
// 如果存在新版本,顶部提示div
|
||||
if(new_version > current_version){
|
||||
$("#check_update_div").show()
|
||||
}
|
||||
var new_version = r.data.name.slice(1,5)
|
||||
var current_version = '{{mrdoc_version}}'
|
||||
// 如果存在新版本,顶部提示div
|
||||
if(new_version > current_version){
|
||||
$("#check_update_div").show()
|
||||
layer.msg("发现新版本,请更新!")
|
||||
}else{
|
||||
layer.msg("当前已是最新版本!")
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -57,17 +65,17 @@
|
||||
// console.log(check_update)
|
||||
// 如果没有检测过,立即检测
|
||||
if(check_update == null){
|
||||
checkUpdate();
|
||||
window.localStorage.setItem('check_update',new Date().getTime())
|
||||
}else{
|
||||
// 如果上次检测时间距今超过5天,再次检测
|
||||
var time_diff = (new Date().getTime() - check_update)/86400000
|
||||
// console.log(time_diff)
|
||||
if(time_diff > 5){
|
||||
checkUpdate()
|
||||
checkUpdate();
|
||||
window.localStorage.setItem('check_update',new Date().getTime())
|
||||
}
|
||||
}
|
||||
}else{
|
||||
// 如果上次检测时间距今超过5天,再次检测
|
||||
var time_diff = (new Date().getTime() - check_update)/86400000
|
||||
// console.log(time_diff)
|
||||
if(time_diff > 5){
|
||||
checkUpdate()
|
||||
window.localStorage.setItem('check_update',new Date().getTime())
|
||||
}
|
||||
};
|
||||
})
|
||||
</script>
|
||||
{% block custom_script %}
|
||||
|
@ -4,6 +4,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name=renderer content=webkit>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<title>后台管理{% if site_name != None and site_name != '' %} - {{site_name}} {% endif %} - 觅道文档</title>
|
||||
<link rel="icon" href="{% static 'search/mrdoc_logo_300.png' %}" sizes="192x192" />
|
||||
|
@ -10,7 +10,7 @@
|
||||
{% block content %}
|
||||
<div>
|
||||
<div class="layui-row layui-col-space10">
|
||||
<div class="layui-col-xs6 layui-col-md9 layui-col-space5">
|
||||
<div class="layui-col-xs6 layui-col-md8 layui-col-space5">
|
||||
<div class="layui-col-xs6 layui-col-md3">
|
||||
<div class="layui-card top-panel">
|
||||
<div class="layui-card-header">用户总数</div>
|
||||
@ -88,33 +88,28 @@
|
||||
|
||||
</div>
|
||||
<!-- 觅道文档版本信息 -->
|
||||
<div class="layui-col-xs6 layui-col-md3">
|
||||
<div class="layui-col-xs6 layui-col-md4">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">觅道文档 {{mrdoc_version}}</div>
|
||||
<div class="layui-card-body">
|
||||
<div style="margin-bottom: 5px;">
|
||||
<a href="https://gitee.com/zmister/MrDoc" class="pear-btn layui-btn-fluid" target="_blank">Gitee</a>
|
||||
<a href="https://gitee.com/zmister/MrDoc" class="pear-btn layui-btn-fluid" target="_blank">访问 Gitee</a>
|
||||
</div>
|
||||
<div style="margin-bottom: 5px;">
|
||||
<a href="https://github.com/zmister2016/MrDoc" class="pear-btn layui-btn-fluid" target="_blank">GitHub</a>
|
||||
<a href="https://github.com/zmister2016/MrDoc" class="pear-btn layui-btn-fluid" target="_blank">访问 GitHub</a>
|
||||
</div>
|
||||
<div style="margin-bottom: 5px;">
|
||||
<a href="http://shang.qq.com/wpa/qunwpa?idkey=143c23a4ffbd0ba9137d2bce3ee86c83532c05259a0542a69527e36615e64dba" class="pear-btn layui-btn-fluid" target="_blank">QQ群</a>
|
||||
<a href="http://shang.qq.com/wpa/qunwpa?idkey=143c23a4ffbd0ba9137d2bce3ee86c83532c05259a0542a69527e36615e64dba" class="pear-btn layui-btn-fluid" target="_blank">加入 QQ群</a>
|
||||
</div>
|
||||
<div style="margin-bottom: 5px;">
|
||||
<button class="pear-btn layui-btn-fluid" onclick="checkUpdate()">检查版本更新</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-row layui-col-space10">
|
||||
<div class="layui-col-md6">
|
||||
<!-- <div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
<div class="layui-tab custom-tab layui-tab-brief" lay-filter="docDemoTabBrief">
|
||||
<div id="echarts-records" style="background-color:#ffffff;min-height:400px;padding: 10px"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">动态</div>
|
||||
<div class="layui-card-body">
|
||||
@ -187,25 +182,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">
|
||||
链接
|
||||
</div>
|
||||
<div class="layui-card-header">捐赠 - 请作者喝杯奶茶吧</div>
|
||||
<div class="layui-card-body">
|
||||
<a target="_blank" href="http://mrdoc.zmister.com/project-7/doc-434/" class="pear-btn pear-btn-primary layui-btn-fluid" style="height: 50px;line-height: 50px;">
|
||||
<i class="layui-icon layui-icon-praise"></i> 支持项目发展
|
||||
</a>
|
||||
<br/>
|
||||
<a target="_blank" href="https://zmister.com/mrdoc/" class="pear-btn pear-btn-success layui-btn-fluid" style="margin-top: 8px;height: 50px;line-height: 50px;">
|
||||
<i class="layui-icon layui-icon-website"></i> 觅 道 文 档 官 网
|
||||
</a>
|
||||
<br/>
|
||||
<a target="_blank" href="http://mrdoc.zmister.com" class="pear-btn layui-btn-fluid" style="margin-top: 8px;height: 50px;line-height: 50px;">
|
||||
<i class="layui-icon layui-icon-read"></i> 使 用 手 册
|
||||
</a>
|
||||
<br/>
|
||||
<a target="_blank" href="https://gitee.com/zmister/MrDoc" class="pear-btn layui-btn-fluid" style="margin-top: 8px;height: 50px;line-height: 50px;">
|
||||
<i class="layui-icon layui-icon-download-circle"></i> 源 码 下 载
|
||||
</a>
|
||||
<p align="center">
|
||||
<img src="{% static 'dashang/dashang_wx.webp' %}" height=200>
|
||||
<img src="{% static 'dashang/dashang_alipay.webp' %}" height=200>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -226,37 +208,6 @@
|
||||
$.ajaxSetup({
|
||||
data: {csrfmiddlewaretoken: '{{ csrf_token }}' },
|
||||
});
|
||||
// count.up("pro_cnt", {
|
||||
// time: 4000,
|
||||
// num: {{ pro_cnt }},
|
||||
// bit: 0,
|
||||
// regulator: 50
|
||||
// });
|
||||
|
||||
// count.up("doc_cnt", {
|
||||
// time: 4000,
|
||||
// num: {{ doc_cnt }},
|
||||
// bit: 0,
|
||||
// regulator: 50
|
||||
// });
|
||||
|
||||
// count.up("img_cnt", {
|
||||
// time: 4000,
|
||||
// num: {{ img_cnt }},
|
||||
// bit: 0,
|
||||
// regulator: 50
|
||||
// });
|
||||
|
||||
// count.up("attachment_cnt", {
|
||||
// time: 4000,
|
||||
// bit: 0,
|
||||
// num: {{ attachment_cnt }},
|
||||
// regulator: 50
|
||||
// });
|
||||
|
||||
// window.onresize = function() {
|
||||
// echartsRecords.resize();
|
||||
// };
|
||||
// 保存文档草稿
|
||||
manage_overview_save_doc = function(){
|
||||
$('button.pear-btn').attr("disabled",true);
|
||||
|
@ -4,6 +4,7 @@
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=renderer content=webkit>
|
||||
<title>{% trans "页面未找到" %} - {% if site_name != None %}{{site_name}} {% else %}{% trans "觅道文档" %}{% endif %}</title>
|
||||
<link href="{% static 'layui/css/layui.css' %}" rel="stylesheet">
|
||||
<link href="{% static 'mrdoc/mrdoc.css' %}" rel="stylesheet">
|
||||
|
@ -4,6 +4,7 @@
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=renderer content=webkit>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||||
<meta http-equiv="Cache-Control" content="no-transform" />
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||||
|
@ -4,6 +4,7 @@
|
||||
<html lang='zh-CN'>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=renderer content=webkit>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||||
<meta http-equiv="Cache-Control" content="no-transform" />
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||||
|
@ -4,6 +4,7 @@
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=renderer content=webkit>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||||
<meta http-equiv="Cache-Control" content="no-transform" />
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||||
|
@ -4,6 +4,7 @@
|
||||
<html lang="zh-cn" style="font-size: 15px;">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=renderer content=webkit>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||||
<meta http-equiv="Cache-Control" content="no-transform" />
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||||
|
@ -4,6 +4,7 @@
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=renderer content=webkit>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||||
<meta http-equiv="Cache-Control" content="no-transform" />
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||||
|
@ -4,6 +4,7 @@
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=renderer content=webkit>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||||
<meta http-equiv="Cache-Control" content="no-transform" />
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||||
|
@ -4,6 +4,7 @@
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=renderer content=webkit>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp">
|
||||
<link href="{% static 'mrdoc/mrdoc-search.css' %}?version={{mrdoc_version}}" rel="stylesheet">
|
||||
|
@ -4,6 +4,7 @@
|
||||
<html lang='zh-CN'>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=renderer content=webkit>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||||
<meta http-equiv="Cache-Control" content="no-transform" />
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||||
|
@ -4,6 +4,7 @@
|
||||
<html lang="zh-cn" style="font-size: 14px;">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=renderer content=webkit>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||||
<meta http-equiv="Cache-Control" content="no-transform" />
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||||
|
@ -4,6 +4,7 @@
|
||||
<html lang="zh-cn" style="font-size: 14px;">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=renderer content=webkit>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||||
<meta http-equiv="Cache-Control" content="no-transform" />
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||||
|
@ -4,6 +4,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name=renderer content=webkit>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<title>{% trans "个人中心" %}{% if site_name != None and site_name != '' %} - {{site_name}} {% endif %} - {% trans "觅道文档" %}</title>
|
||||
<link rel="icon" href="{% static 'search/mrdoc_logo_300.png' %}" sizes="192x192" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user