index.html 2.7 KB
Newer Older
H
hjdhnx 已提交
1 2 3
<!DOCTYPE html>
<html lang="en">
<head>
H
hjdhnx 已提交
4
    <meta charset="utf-8">
H
hjdhnx 已提交
5
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
H
hjdhnx 已提交
6 7 8 9
    <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">
H
hjdhnx 已提交
10
    <title>dr_py首页</title>
H
hjdhnx 已提交
11
    <script src="/static/js/jquery.min.js"></script>
H
hjdhnx 已提交
12
    <link rel="stylesheet" media="screen" href="/static/css/index.css"/>
H
hjdhnx 已提交
13
</head>
H
hjdhnx 已提交
14
<style>
H
hjdhnx 已提交
15 16
.title {
    font-size: 18px;
17
}
H
hjdhnx 已提交
18
</style>
19 20
<body style="background: #FFFFFF url(https://cdn.seovx.com/d/?mom=302) no-repeat fixed center;max-hright;">

H
hjdhnx 已提交
21 22 23 24 25 26 27 28 29 30 31 32
<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);
            }
        });
});
</script>
H
hjdhnx 已提交
33
<h1>欢迎使用drpy项目</h1>
H
hjdhnx 已提交
34
<p>可以简单的自定义爬虫实现cms数据接口</p>
35

H
hjdhnx 已提交
36
<div class="btn" style="display: none">
H
hjdhnx 已提交
37 38
    <a href="/clear?rule=">缓存清理接口</a>
</div>
H
hjdhnx 已提交
39
<div class="btn" style="display: none">
H
hjdhnx 已提交
40 41
    <a href="/vod?rule=">猫CMS接口</a>
</div>
H
hjdhnx 已提交
42 43 44 45
<div class="btn">
<!--    <a href="/admin" target="_blank">CMS后台管理</a>-->
    <a href="/admin">CMS后台管理</a>
</div>
H
hjdhnx 已提交
46
<div class="btn">
H
hjdhnx 已提交
47
    <a href="/rules/view">缓存文件列表-查看</a>
H
hjdhnx 已提交
48 49
</div>
<div class="btn">
H
hjdhnx 已提交
50
    <a href="/rules/clear">缓存文件列表-清除</a>
H
hjdhnx 已提交
51
</div>
H
hjdhnx 已提交
52

H
hjdhnx 已提交
53
<div class="btn">
54
    <a href="{{ getHost(0) }}/config/0">本地配置地址</a>
H
hjdhnx 已提交
55
</div>
56 57
{% if is_linux %}
<div class="btn">
58
    <a href="{{ manager0 }}" target="_blank">本地在线进程管理[linux]</a>
59 60
</div>
{% endif %}
H
hjdhnx 已提交
61
<!--<a href="{{ getHost(1) }}">局域网:{{ getHost(1) }}</a>-->
62
<a class="jyw" href="https://picsum.photos/1280/720/?blur=10">局域网:{{ getHost(1) }}</a>
H
hjdhnx 已提交
63
{% if '192.168' in getHost(1) %}
H
hjdhnx 已提交
64
<div class="btn">
65
    <a href="{{ getHost(1) }}/config/1">局域网配置地址</a>
H
hjdhnx 已提交
66
</div>
67
{% if is_linux %}
68
<div class="btn">
69
    <a href="{{ manager1 }}" target="_blank">局域网在线进程管理[linux]</a>
70
</div>
71
{% endif %}
H
hjdhnx 已提交
72
<div class="btn">
73
    <a href="{{ getHost(1) }}/pics" target="_blank">局域网随机图片</a>
H
hjdhnx 已提交
74
</div>
H
hjdhnx 已提交
75
{% endif %}
H
hjdhnx 已提交
76
<div class="btn">
77
    <a href="{{ getHost(2) }}/config/2">远程配置地址</a>
H
hjdhnx 已提交
78
</div>
79 80 81 82 83
{% if is_linux %}
<div class="btn">
    <a href="{{ manager2 }}" target="_blank">远程在线进程管理[linux]</a>
</div>
{% endif %}
H
hjdhnx 已提交
84 85 86
<div class="btn">
    <a href="javascript:void(0);" id="gen_config">生成配置文件</a>
</div>
H
hjdhnx 已提交
87 88
</body>
</html>