index.html 3.3 KB
Newer Older
H
hjdhnx 已提交
1
<html lang="en">
H
hjdhnx 已提交
2

H
hjdhnx 已提交
3
<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 13
    <link rel="stylesheet" media="screen" href="/static/css/home.css">

H
hjdhnx 已提交
14
</head>
H
hjdhnx 已提交
15 16 17 18

<!--<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">
19

H
hjdhnx 已提交
20
<script>
H
hjdhnx 已提交
21 22 23 24 25 26 27 28 29
        $(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);
                }
            });
H
hjdhnx 已提交
30 31
        });
</script>
H
hjdhnx 已提交
32 33 34
<h2 class="title">欢迎使用DR-PY首页界面<div><span class="ver_title">当前版本: {{ver}}</span><span
                class="ver_title">框架开发:道长</span><span class="ver_title">框架美化:蓝莓</span></div>
</h2>
H
hjdhnx 已提交
35
<p>可以简单的自定义爬虫实现cms数据接口</p>
H
hjdhnx 已提交
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
<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 %}
85

H
hjdhnx 已提交
86 87 88 89 90
        <div class="btn">
            <a href="javascript:void(0);" id="gen_config">生成配置文件</a>
        </div>
    </div>
</center>
H
hjdhnx 已提交
91
</div>
H
hjdhnx 已提交
92 93
</body>
</html>