index.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <html lang="en"><head>
  2. <meta charset="utf-8">
  3. <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
  4. <meta http-equiv="Cache-Control" content="no-siteapp;no-transform">
  5. <meta name="applicable-device" content="pc,mobile">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  8. <title>dr_py首页</title>
  9. <script src="/static/js/jquery.min.js"></script>
  10. <link rel="stylesheet" media="screen" href="/static/css/home.css">
  11. <script src="/static/js/grey.js"></script>
  12. <!-- <link rel="stylesheet" media="screen" href="/static/css/grey.css">-->
  13. </head>
  14. <!--<body style="opacity: 0.5;background: #FFFFFF url(https://tuapi.eees.cc/api.php?category=dongman&type=302&px=m) no-repeat fixed center;">-->
  15. <body>
  16. <div class="image">
  17. <script>
  18. $(document).ready(function () {
  19. $("#gen_config").click(function () {
  20. // let rule = this.innerText.trim();
  21. let code = $.ajax({ url: "/configs", async: false }).responseText;
  22. code = typeof (code) === "object" ? code : JSON.parse(code);
  23. alert(code.msg);
  24. });
  25. });
  26. </script>
  27. <div class="title">欢迎使用DR-PY首页界面<div class="kf"><span class="ver_title">当前版本: {{ ver }}</span>
  28. <span class="ver_title">框架开发:道长</span><span class="ver_title">框架美化:蓝莓</span></div>
  29. </div>
  30. <p class="tips">可以简单的自定义爬虫实现cms数据接口</p>
  31. <center>
  32. <div class="zt">
  33. <div class="btn" style="display: none">
  34. <a href="/clear?rule=">缓存清理接口</a>
  35. </div>
  36. <div class="btn" style="display: none">
  37. <a href="/vod?rule=">猫CMS接口</a>
  38. </div>
  39. <div class="btn">
  40. <a href="/admin">CMS后台管理</a>
  41. </div>
  42. <div class="btn">
  43. <a href="/rules/view">缓存文件列表-查看</a>
  44. </div>
  45. <div class="btn">
  46. <a href="/rules/clear">缓存文件列表-清除</a>
  47. </div>
  48. <div class="btn">
  49. <a href="{{ getHost(0) }}/config/0?ver=2&mode=1">本地配置地址JS1</a>
  50. </div>
  51. <div class="btn">
  52. <a href="{{ getHost(0) }}/config/0?ver=0&mode=0">本地配置地址JS0</a>
  53. </div>
  54. {% if is_linux %}
  55. <div class="btn">
  56. <a href="{{ manager0 }}" target="_blank">本地在线进程管理[linux]</a>
  57. </div>
  58. {% endif %}
  59. <div class="btn1">
  60. <a class="jyw" href="https://picsum.photos/1280/720/?blur=10">局域网:{{ getHost(1) }}</a>
  61. </div>
  62. {% if '192.168' in getHost(1) %}
  63. <div class="btn">
  64. <a href="{{ getHost(1) }}/config/1?ver=2&mode=1">局域网配置地址JS1</a>
  65. </div>
  66. <div class="btn">
  67. <a href="{{ getHost(1) }}/config/1?ver=0&mode=0">局域网配置地址JS0</a>
  68. </div>
  69. {% if is_linux %}
  70. <div class="btn">
  71. <a href="{{ manager1 }}" target="_blank">局域网在线进程管理[linux]</a>
  72. </div>
  73. {% endif %}
  74. <div class="btn">
  75. <a href="{{ getHost(1) }}/pics" target="_blank">局域网随机图片</a>
  76. </div>
  77. {% endif %}
  78. <div class="btn">
  79. <a href="{{ getHost(2) }}/config/2?ver=2&mode=1">远程配置地址JS1</a>
  80. </div>
  81. <div class="btn">
  82. <a href="{{ getHost(2) }}/config/2?ver=0&mode=0">远程配置地址JS0</a>
  83. </div>
  84. {% if is_linux %}
  85. <div class="btn">
  86. <a href="{{ manager2 }}" target="_blank">远程在线进程管理[linux]</a>
  87. </div>
  88. {% endif %}
  89. <div class="btn">
  90. <a href="javascript:void(0);" id="gen_config">生成配置文件</a>
  91. </div>
  92. <div class="btn">
  93. <a href="/txt/pycms2.json" target="_blank">静态配置文件</a>
  94. </div>
  95. </div>
  96. </center>
  97. </div>
  98. </body>
  99. </html>