mirror of
https://github.com/hjdhnx/dr_py.git
synced 2024-11-21 08:28:24 -06:00
87 lines
2.3 KiB
HTML
87 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||
<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">
|
||
<title>查看已缓存规则列表-{{rules.count}}</title>
|
||
<script src="/static/js/jquery.min.js"></script>
|
||
<script src="/static/js/grey.js"></script>
|
||
</head>
|
||
<style>
|
||
.red {
|
||
color:red;
|
||
font-weight: bold
|
||
}
|
||
.yellow {
|
||
color:yellow;
|
||
font-weight: bold
|
||
}
|
||
.refresh{
|
||
|
||
}
|
||
</style>
|
||
<body>
|
||
<script>
|
||
$(document).ready(function(){
|
||
$(".refresh").click(function(){
|
||
// location.reload();
|
||
let rule = this.innerText.trim();
|
||
location.href = '/plugin/'+rule+'.js';
|
||
});
|
||
|
||
$(".cls").click(function(){
|
||
// location.reload();
|
||
let cls = this.innerText.trim();
|
||
location.href = '/cls/get/'+cls;
|
||
});
|
||
});
|
||
|
||
</script>
|
||
<h1>缓存规则列表-{{rules.count}}</h1>
|
||
{% if rules.count < 1 %}
|
||
<h3>暂无已缓存的规则</h3>
|
||
{% endif %}
|
||
|
||
{% for rule in rules.list %}
|
||
|
||
{% if rule.name|length > 2 %}
|
||
<!-- | 为过滤条件 -->
|
||
<li class="red">
|
||
<!-- <a class="refresh" href="/clear?rule={{rule}}" target="_blank">{{ rule }}</a>-->
|
||
<a class="refresh" href="javascript:void(0);">{{ rule.name }}</a>
|
||
</li>
|
||
|
||
{% else %}
|
||
<!-- 如果是if条件,最后必须要有else,否则就会报错 -->
|
||
<li class="yellow">
|
||
<a class="refresh" href="javascript:void(0);">{{ rule.name }}</a>
|
||
</li>
|
||
|
||
{% endif %}
|
||
<!-- if条件必须有endif,否则会报错 -->
|
||
|
||
{% endfor %}
|
||
<h1>缓存分类列表-{{ classes|length }}</h1>
|
||
{% if classes|length < 1 %}
|
||
<h3>暂无已缓存的分类</h3>
|
||
{% endif %}
|
||
{% for cls in classes %}
|
||
{% if cls|length > 2 %}
|
||
<li class="red">
|
||
<a class="cls" href="javascript:void(0);">{{ cls }}</a>
|
||
</li>
|
||
|
||
{% else %}
|
||
<li class="yellow">
|
||
<a class="cls" href="javascript:void(0);">{{ cls }}</a>
|
||
</li>
|
||
|
||
{% endif %}
|
||
{% endfor %}
|
||
</body>
|
||
|
||
</html> |