index.html 2.9 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
</head>
H
hjdhnx 已提交
13 14 15
<style>
    .btn{
        margin-bottom: 2rem;
16
        border: 1px solid #615e5e;
17
        width: 240px;
H
hjdhnx 已提交
18 19 20 21
        height: 30px;
        text-align: center;
        background-color: #1379cb;
        color: #ffffff;
22 23 24 25
        border-radius: 20px;
        line-height: 30px;
          }

H
hjdhnx 已提交
26 27 28
    .btn a{
        color: #ffffff;
    }
29 30 31 32 33 34

a {
    text-decoration: none;
    text-align: center;
    line-height: 30px;
}
35 36 37
.jyw{
    margin-bottom: 5rem;
}
H
hjdhnx 已提交
38
</style>
39 40
<body style="background: #FFFFFF url(https://cdn.seovx.com/d/?mom=302) no-repeat fixed center;max-hright;">

H
hjdhnx 已提交
41 42 43 44 45 46 47 48 49 50 51 52
<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 已提交
53 54
<h1>欢迎使用dr_py项目</h1>
<p>可以简单的自定义爬虫实现cms数据接口</p>
55

H
hjdhnx 已提交
56
<div class="btn" style="display: none">
H
hjdhnx 已提交
57 58
    <a href="/clear?rule=">缓存清理接口</a>
</div>
H
hjdhnx 已提交
59 60 61
<div class="btn">
    <a href="/vod?rule=">猫CMS接口</a>
</div>
H
hjdhnx 已提交
62 63 64 65 66
<div class="btn">
    <a href="/rules">缓存文件列表-清除</a>
</div>
<div class="btn">
    <a href="/raw">缓存文件列表-查看</a>
H
hjdhnx 已提交
67
</div>
H
hjdhnx 已提交
68
<div class="btn">
69
    <a href="{{ getHost(0) }}/config/0">本地配置地址</a>
H
hjdhnx 已提交
70
</div>
71 72
{% if is_linux %}
<div class="btn">
73
    <a href="{{ manager0 }}" target="_blank">本地在线进程管理[linux]</a>
74 75
</div>
{% endif %}
H
hjdhnx 已提交
76
<!--<a href="{{ getHost(1) }}">局域网:{{ getHost(1) }}</a>-->
77
<a class="jyw" href="https://picsum.photos/1280/720/?blur=10">局域网:{{ getHost(1) }}</a>
H
hjdhnx 已提交
78
{% if '192.168' in getHost(1) %}
H
hjdhnx 已提交
79
<div class="btn">
80
    <a href="{{ getHost(1) }}/config/1">局域网配置地址</a>
H
hjdhnx 已提交
81
</div>
82
{% if is_linux %}
83
<div class="btn">
84
    <a href="{{ manager1 }}" target="_blank">局域网在线进程管理[linux]</a>
85
</div>
86
{% endif %}
H
hjdhnx 已提交
87
<div class="btn">
88
    <a href="{{ getHost(1) }}/pics" target="_blank">局域网随机图片</a>
H
hjdhnx 已提交
89
</div>
H
hjdhnx 已提交
90
{% endif %}
H
hjdhnx 已提交
91
<div class="btn">
92
    <a href="{{ getHost(2) }}/config/2">远程配置地址</a>
H
hjdhnx 已提交
93
</div>
94 95 96 97 98
{% if is_linux %}
<div class="btn">
    <a href="{{ manager2 }}" target="_blank">远程在线进程管理[linux]</a>
</div>
{% endif %}
H
hjdhnx 已提交
99 100 101
<div class="btn">
    <a href="javascript:void(0);" id="gen_config">生成配置文件</a>
</div>
H
hjdhnx 已提交
102 103
</body>
</html>