index.html 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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=0">本地配置地址</a>
  50. </div>
  51. {% if is_linux %}
  52. <div class="btn">
  53. <a href="{{ manager0 }}" target="_blank">本地在线进程管理[linux]</a>
  54. </div>
  55. {% endif %}
  56. <div class="btn1">
  57. <a class="jyw" href="https://picsum.photos/1280/720/?blur=10">局域网:{{ getHost(1) }}</a>
  58. </div>
  59. {% if '192.168' in getHost(1) %}
  60. <div class="btn">
  61. <a href="{{ getHost(1) }}/config/1?ver=0">局域网配置地址</a>
  62. </div>
  63. {% if is_linux %}
  64. <div class="btn">
  65. <a href="{{ manager1 }}" target="_blank">局域网在线进程管理[linux]</a>
  66. </div>
  67. {% endif %}
  68. <div class="btn">
  69. <a href="{{ getHost(1) }}/pics" target="_blank">局域网随机图片</a>
  70. </div>
  71. {% endif %}
  72. <div class="btn">
  73. <a href="{{ getHost(2) }}/config/2?ver=0">远程配置地址</a>
  74. </div>
  75. {% if is_linux %}
  76. <div class="btn">
  77. <a href="{{ manager2 }}" target="_blank">远程在线进程管理[linux]</a>
  78. </div>
  79. {% endif %}
  80. <div class="btn">
  81. <a href="javascript:void(0);" id="gen_config">生成配置文件</a>
  82. </div>
  83. <div class="btn">
  84. <a href="/txt/pycms2.json" target="_blank">静态配置文件</a>
  85. </div>
  86. </div>
  87. </center>
  88. </div>
  89. </body>
  90. </html>