Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
iqingyuan
dr_py
提交
c279f62d
dr_py
项目概览
iqingyuan
/
dr_py
与 Fork 源项目一致
Fork自
晚风拂柳颜 / dr_py
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
dr_py
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c279f62d
编写于
9月 06, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
首页美化并升级了版本号
上级
c2005e61
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
156 addition
and
71 deletion
+156
-71
controllers/home.py
controllers/home.py
+3
-1
js/version.txt
js/version.txt
+1
-1
readme.md
readme.md
+1
-0
static/css/home.css
static/css/home.css
+77
-0
templates/index.html
templates/index.html
+74
-69
未找到文件。
controllers/home.py
浏览文件 @
c279f62d
...
...
@@ -17,6 +17,7 @@ from utils.system import cfg,getHost,is_linux
from
utils
import
parser
from
utils.log
import
logger
from
utils.files
import
getAlist
,
get_live_url
from
utils.update
import
getLocalVer
from
js.rules
import
getJxs
import
random
...
...
@@ -43,7 +44,8 @@ def index():
manager0
+=
f
':
{
sup_port
}
'
manager1
+=
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'
)
def
rules_to_clear
():
...
...
js/version.txt
浏览文件 @
c279f62d
3.2.1
\ No newline at end of file
3.2.2
\ No newline at end of file
readme.md
浏览文件 @
c279f62d
...
...
@@ -55,6 +55,7 @@
-
[X] 6.升级到3.2.0,进行了全面后端重构用了蓝图写法,app.py文件以后尽量不动
-
[X] 7.后台管理界面显示美化-感谢蓝莓果酱
-
[X] 8.打包升级后的三平台镜像(v3.2.1)
-
[X] 9.首页美化,升级版本号(v3.2.2)
###### 2022/09/05
-
[X] 1.内置jar修复了原本tv_box无法播放直播的问题
-
[X] 2.重新构建了三种平台的镜像 amd64,armv7,arm64
...
...
static/css/home.css
0 → 100644
浏览文件 @
c279f62d
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
templates/index.html
浏览文件 @
c279f62d
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<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
name=
"applicable-device"
content=
"pc,mobile"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
>
<title>
dr_py首页
</title>
<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>
<style>
.title
{
font-size
:
18px
;
}
</style>
<body
style=
"background: #FFFFFF url(https://cdn.seovx.com/d/?mom=302) no-repeat fixed center;max-hright;"
>
<!--<body style="opacity: 0.5;background: #FFFFFF url(https://tuapi.eees.cc/api.php?category=dongman&type=302&px=m) no-repeat fixed center;">-->
<body>
<div
class=
"image"
>
<script>
$
(
document
).
ready
(
function
(){
$
(
"
#gen_config
"
).
click
(
function
(){
// let rule = this.innerText.trim();
let
code
=
$
.
ajax
({
url
:
"
/configs
"
,
async
:
false
}).
responseText
;
code
=
typeof
(
code
)
===
"
object
"
?
code
:
JSON
.
parse
(
code
);
if
(
code
.
code
===
200
){
alert
(
code
.
msg
);
}
$
(
document
).
ready
(
function
()
{
$
(
"
#gen_config
"
).
click
(
function
()
{
// let rule = this.innerText.trim();
let
code
=
$
.
ajax
({
url
:
"
/configs
"
,
async
:
false
}).
responseText
;
code
=
typeof
(
code
)
===
"
object
"
?
code
:
JSON
.
parse
(
code
);
if
(
code
.
code
===
200
)
{
alert
(
code
.
msg
);
}
});
});
});
</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>
<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"
>
<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" 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
class=
"btn"
>
<a
href=
"javascript:void(0);"
id=
"gen_config"
>
生成配置文件
</a>
</div>
</div>
</center>
</div>
</body>
</html>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录