提交 c279f62d 编写于 作者: H hjdhnx

首页美化并升级了版本号

上级 c2005e61
...@@ -17,6 +17,7 @@ from utils.system import cfg,getHost,is_linux ...@@ -17,6 +17,7 @@ from utils.system import cfg,getHost,is_linux
from utils import parser from utils import parser
from utils.log import logger from utils.log import logger
from utils.files import getAlist,get_live_url from utils.files import getAlist,get_live_url
from utils.update import getLocalVer
from js.rules import getJxs from js.rules import getJxs
import random import random
...@@ -43,7 +44,8 @@ def index(): ...@@ -43,7 +44,8 @@ def index():
manager0 += f':{sup_port}' manager0 += f':{sup_port}'
manager1 += f':{sup_port}' manager1 += f':{sup_port}'
manager2 += f':{sup_port}' manager2 += f':{sup_port}'
return render_template('index.html',getHost=getHost,manager0=manager0,manager1=manager1,manager2=manager2,is_linux=is_linux()) ver = getLocalVer()
return render_template('index.html',ver=ver,getHost=getHost,manager0=manager0,manager1=manager1,manager2=manager2,is_linux=is_linux())
@home.route('/rules/clear') @home.route('/rules/clear')
def rules_to_clear(): def rules_to_clear():
......
3.2.1 3.2.2
\ No newline at end of file \ No newline at end of file
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
- [X] 6.升级到3.2.0,进行了全面后端重构用了蓝图写法,app.py文件以后尽量不动 - [X] 6.升级到3.2.0,进行了全面后端重构用了蓝图写法,app.py文件以后尽量不动
- [X] 7.后台管理界面显示美化-感谢蓝莓果酱 - [X] 7.后台管理界面显示美化-感谢蓝莓果酱
- [X] 8.打包升级后的三平台镜像(v3.2.1) - [X] 8.打包升级后的三平台镜像(v3.2.1)
- [X] 9.首页美化,升级版本号(v3.2.2)
###### 2022/09/05 ###### 2022/09/05
- [X] 1.内置jar修复了原本tv_box无法播放直播的问题 - [X] 1.内置jar修复了原本tv_box无法播放直播的问题
- [X] 2.重新构建了三种平台的镜像 amd64,armv7,arm64 - [X] 2.重新构建了三种平台的镜像 amd64,armv7,arm64
......
body {
text-align: center;
margin: 0 auto;
}
.title {
background-image: linear-gradient(to right, orange, purple);
-webkit-background-clip: text;
color: transparent;
font-size: 30px;
text-align: center;
line-height: height;
}
.ver_title {
font-size: 15px;
padding-left: 5px
}
.image{
width: 100%;
height: 100%;
position: relative;
/*position: fixed;*/
text-align: center;
/*fixed center;*/
}
.image::after{
content: "";
background:url('https://tuapi.eees.cc/api.php?category=dongman&type=302&px=m');
background-repeat: no-repeat;
opacity: 0.5;
/*position: fixed;*/
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: -1;
}
.btn {
margin-bottom: 1rem;
border: 1px solid #5fdefe;
width: 360px;
height: 30px;
text-align: center;
background-color: #1379cb;
color: #ffffff;
border-radius: 50px;
line-height: 30px;
}
.btn1 {
margin-bottom: 1rem;
border: 1px solid #5c6cf6;
width: 360px;
height: 30px;
text-align: center;
border-radius: 50px;
line-height: 30px;
}
.btn1 a {
color: #000000;
}
.btn a {
color: #ffffff;
}
a {
text-decoration: none;
text-align: center;
line-height: 30px;
}
.jyw {
margin-bottom: 5rem;
}
\ No newline at end of file
<!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<meta http-equiv="Cache-Control" content="no-siteapp;no-transform"> <meta http-equiv="Cache-Control" content="no-siteapp;no-transform">
<meta name="applicable-device" content="pc,mobile"> <meta name="applicable-device" content="pc,mobile">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>dr_py首页</title> <title>dr_py首页</title>
<script src="/static/js/jquery.min.js"></script> <script src="/static/js/jquery.min.js"></script>
<link rel="stylesheet" media="screen" href="/static/css/index.css"/> <link rel="stylesheet" media="screen" href="/static/css/home.css">
</head> </head>
<style>
.title { <!--<body style="opacity: 0.5;background: #FFFFFF url(https://tuapi.eees.cc/api.php?category=dongman&type=302&px=m) no-repeat fixed center;">-->
font-size: 18px; <body>
} <div class="image">
</style>
<body style="background: #FFFFFF url(https://cdn.seovx.com/d/?mom=302) no-repeat fixed center;max-hright;">
<script> <script>
$(document).ready(function(){ $(document).ready(function () {
$("#gen_config").click(function(){ $("#gen_config").click(function () {
// let rule = this.innerText.trim(); // let rule = this.innerText.trim();
let code = $.ajax({url:"/configs",async:false}).responseText; let code = $.ajax({ url: "/configs", async: false }).responseText;
code = typeof(code) === "object"?code:JSON.parse(code); code = typeof (code) === "object" ? code : JSON.parse(code);
if(code.code === 200){ if (code.code === 200) {
alert(code.msg); alert(code.msg);
} }
});
}); });
});
</script> </script>
<h1>欢迎使用drpy项目</h1> <h2 class="title">欢迎使用DR-PY首页界面<div><span class="ver_title">当前版本: {{ver}}</span><span
class="ver_title">框架开发:道长</span><span class="ver_title">框架美化:蓝莓</span></div>
</h2>
<p>可以简单的自定义爬虫实现cms数据接口</p> <p>可以简单的自定义爬虫实现cms数据接口</p>
<center>
<div class="zt">
<div class="btn" style="display: none">
<a href="/clear?rule=">缓存清理接口</a>
</div>
<div class="btn" style="display: none">
<a href="/vod?rule=">猫CMS接口</a>
</div>
<div class="btn">
<a href="/admin">CMS后台管理</a>
</div>
<div class="btn">
<a href="/rules/view">缓存文件列表-查看</a>
</div>
<div class="btn">
<a href="/rules/clear">缓存文件列表-清除</a>
</div>
<div class="btn">
<a href="{{ getHost(0) }}/config/0">本地配置地址</a>
</div>
{% if is_linux %}
<div class="btn">
<a href="{{ manager0 }}" target="_blank">本地在线进程管理[linux]</a>
</div>
{% endif %}
<div class="btn1">
<a class="jyw" href="https://picsum.photos/1280/720/?blur=10">局域网:{{ getHost(1) }}</a>
</div>
{% if '192.168' in getHost(1) %}
<div class="btn">
<a href="{{ getHost(1) }}/config/1">局域网配置地址</a>
</div>
{% if is_linux %}
<div class="btn">
<a href="{{ manager1 }}" target="_blank">局域网在线进程管理[linux]</a>
</div>
{% endif %}
<div class="btn">
<a href="{{ getHost(1) }}/pics" target="_blank">局域网随机图片</a>
</div>
{% endif %}
<div class="btn">
<a href="{{ getHost(2) }}/config/2">远程配置地址</a>
</div>
{% if is_linux %}
<div class="btn">
<a href="{{ manager2 }}" target="_blank">远程在线进程管理[linux]</a>
</div>
{% endif %}
<div class="btn" style="display: none"> <div class="btn">
<a href="/clear?rule=">缓存清理接口</a> <a href="javascript:void(0);" id="gen_config">生成配置文件</a>
</div> </div>
<div class="btn" style="display: none"> </div>
<a href="/vod?rule=">猫CMS接口</a> </center>
</div>
<div class="btn">
<!-- <a href="/admin" target="_blank">CMS后台管理</a>-->
<a href="/admin">CMS后台管理</a>
</div>
<div class="btn">
<a href="/rules/view">缓存文件列表-查看</a>
</div>
<div class="btn">
<a href="/rules/clear">缓存文件列表-清除</a>
</div>
<div class="btn">
<a href="{{ getHost(0) }}/config/0">本地配置地址</a>
</div>
{% if is_linux %}
<div class="btn">
<a href="{{ manager0 }}" target="_blank">本地在线进程管理[linux]</a>
</div>
{% endif %}
<!--<a href="{{ getHost(1) }}">局域网:{{ getHost(1) }}</a>-->
<a class="jyw" href="https://picsum.photos/1280/720/?blur=10">局域网:{{ getHost(1) }}</a>
{% if '192.168' in getHost(1) %}
<div class="btn">
<a href="{{ getHost(1) }}/config/1">局域网配置地址</a>
</div>
{% if is_linux %}
<div class="btn">
<a href="{{ manager1 }}" target="_blank">局域网在线进程管理[linux]</a>
</div>
{% endif %}
<div class="btn">
<a href="{{ getHost(1) }}/pics" target="_blank">局域网随机图片</a>
</div>
{% endif %}
<div class="btn">
<a href="{{ getHost(2) }}/config/2">远程配置地址</a>
</div>
{% if is_linux %}
<div class="btn">
<a href="{{ manager2 }}" target="_blank">远程在线进程管理[linux]</a>
</div>
{% endif %}
<div class="btn">
<a href="javascript:void(0);" id="gen_config">生成配置文件</a>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册