Skip to content

Commit

Permalink
v0.7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Kloping committed Jan 18, 2023
1 parent e127d38 commit 5889203
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/github/kloping/Plugin0AutoReply.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Plugin0AutoReply extends JavaPlugin {
public static final Plugin0AutoReply INSTANCE = new Plugin0AutoReply();

private Plugin0AutoReply() {
super(new JvmPluginDescriptionBuilder("com.hrs.kloping.AutoReply", "0.7.5")
super(new JvmPluginDescriptionBuilder("com.hrs.kloping.AutoReply", "0.7.6")
.name("Custom Reply")
.info("Custom Reply")
.author("HRS")
Expand Down
21 changes: 20 additions & 1 deletion src/main/resources/static/manager.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
<center>
<h1 style="color: aliceblue">作者QQ: 3474006766</h1> <br>
<h5 style="color: aliceblue">开关管理页面</h5>
<button type="button" class="btn btn-info" onclick="change()">显示/隐藏好友</button>
</center>
<br>
<br>

<div id="div0" class="row">
<div class="col-2"></div>
<div id="ac0" style="background-color: white" class="col-8">
Expand Down Expand Up @@ -78,6 +78,25 @@ <h5 style="color: aliceblue">开关管理页面</h5>
}
}
});

let k = false

function change() {
if (!k) {
vm1.data = vm1.data.filter(function (item) {
let v = item.id.charAt(0);
return v !== "u";
});
k = true
} else {
axios.get("/getManagerData").then(function (response) {
vm1.data = response.data;
}).catch(function (err) {
alert(err);
})
k = false
}
}
</script>
</body>
</html>

0 comments on commit 5889203

Please sign in to comment.