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