index.html 3.4 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
        $(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);
H
hjdhnx 已提交
26
                alert(code.msg);
H
hjdhnx 已提交
27
            });
H
hjdhnx 已提交
28 29
        });
</script>
H
hjdhnx 已提交
30
<h2 class="title">欢迎使用DR-PY首页界面<div class="kf"><span class="ver_title">当前版本: {{ver}}</span><span
H
hjdhnx 已提交
31 32
                class="ver_title">框架开发:道长</span><span class="ver_title">框架美化:蓝莓</span></div>
</h2>
H
hjdhnx 已提交
33
<p class="tips">可以简单的自定义爬虫实现cms数据接口</p>
H
hjdhnx 已提交
34 35 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
<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 %}
83

H
hjdhnx 已提交
84 85 86
        <div class="btn">
            <a href="javascript:void(0);" id="gen_config">生成配置文件</a>
        </div>
H
hjdhnx 已提交
87 88 89
        <div class="btn">
            <a href="/txt/pycms2.json" target="_blank">静态配置文件</a>
        </div>
H
hjdhnx 已提交
90 91
    </div>
</center>
H
hjdhnx 已提交
92
</div>
H
hjdhnx 已提交
93 94
</body>
</html>