From fd14b08f0e6db606c8739e157a610d1ba2def57f Mon Sep 17 00:00:00 2001 From: vicanso Date: Sat, 27 Apr 2024 09:27:18 +0800 Subject: [PATCH] chore: version 0.2.6 --- Cargo.lock | 2 +- Cargo.toml | 2 +- TODO.md | 2 +- src/webhook/mod.rs | 3 +-- web/src/components/form-editor.tsx | 4 ++-- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5ad9eacb..7b01c916 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1775,7 +1775,7 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pingap" -version = "0.2.5" +version = "0.2.6" dependencies = [ "async-trait", "base64 0.22.0", diff --git a/Cargo.toml b/Cargo.toml index 846b3271..57feae1d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pingap" -version = "0.2.5" +version = "0.2.6" authors = ["Tree Xie "] edition = "2021" categories = ["network-programming", "web-programming::http-server"] diff --git a/TODO.md b/TODO.md index bce7a38f..6edd77d8 100644 --- a/TODO.md +++ b/TODO.md @@ -7,7 +7,7 @@ - [ ] http response cache - [ ] fix not_before not_after of cert - [ ] client body size limit plugin -- [ ] send more event to webhook +- [x] send more event to webhook - [x] remove config - [x] diff config and send to webhook - [x] support pyroscope diff --git a/src/webhook/mod.rs b/src/webhook/mod.rs index 5f9f37fb..9e557970 100644 --- a/src/webhook/mod.rs +++ b/src/webhook/mod.rs @@ -48,8 +48,7 @@ pub fn send(params: WebhookSendParams) { r###"{name} >hostname: {hostname} >category: {category} - >message: {} - "###, + >message: {}"###, params.msg ); match webhook_type.to_lowercase().as_str() { diff --git a/web/src/components/form-editor.tsx b/web/src/components/form-editor.tsx index fc82fd50..d0fff3f8 100644 --- a/web/src/components/form-editor.tsx +++ b/web/src/components/form-editor.tsx @@ -1101,8 +1101,8 @@ export default function FormEditor({ {"Remove config?"} - Check whether you want to delete the configuration, and it can not - be restored after delete it. + Please confirm whether you want to delete the configuration, and it + can not be restored after delete it.