feat(): 添加待审核
@@ -4197,7 +4197,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tauri-app"
|
||||
version = "0.1.0"
|
||||
version = "0.1.2"
|
||||
dependencies = [
|
||||
"env_logger",
|
||||
"log",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "tauri-app"
|
||||
version = "0.1.0"
|
||||
version = "0.1.2"
|
||||
description = "A Tauri App"
|
||||
authors = ["you"]
|
||||
edition = "2021"
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
"core:window:allow-show",
|
||||
"core:window:allow-hide",
|
||||
"core:window:allow-set-focus",
|
||||
"core:window:allow-set-title",
|
||||
"core:window:allow-unminimize",
|
||||
"core:image:default",
|
||||
"core:image:allow-from-path"
|
||||
|
||||
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 407 B |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 555 B |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 407 B |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 401 B |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 404 B |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 401 B |
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 387 B |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 637 B |
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 387 B |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 467 B |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 467 B |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 641 B |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 641 B |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 452 B |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 824 B |
|
Before Width: | Height: | Size: 974 B After Width: | Height: | Size: 353 B |
|
After Width: | Height: | Size: 440 B |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 358 B |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 488 B |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 522 B |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 929 B |
|
Before Width: | Height: | Size: 903 B After Width: | Height: | Size: 340 B |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 1015 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 381 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 324 B |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 364 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 405 B |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 283 B |
|
After Width: | Height: | Size: 372 B |
|
After Width: | Height: | Size: 372 B |
|
After Width: | Height: | Size: 421 B |
|
After Width: | Height: | Size: 342 B |
|
After Width: | Height: | Size: 435 B |
|
After Width: | Height: | Size: 435 B |
|
After Width: | Height: | Size: 366 B |
|
After Width: | Height: | Size: 372 B |
|
After Width: | Height: | Size: 421 B |
|
After Width: | Height: | Size: 421 B |
|
After Width: | Height: | Size: 429 B |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 429 B |
|
After Width: | Height: | Size: 577 B |
|
After Width: | Height: | Size: 347 B |
|
After Width: | Height: | Size: 487 B |
|
After Width: | Height: | Size: 543 B |
@@ -52,7 +52,7 @@ fn handle_callback_request(app_handle: &tauri::AppHandle, mut stream: std::net::
|
||||
|
||||
let (action, body) = if request.contains("GET /postpone") {
|
||||
let _ = app_handle.emit("notification-action", "postpone_1h");
|
||||
("postpone", simple_page("已推迟1小时,监控将在1小时后恢复"))
|
||||
("postpone", simple_page("已推迟1小时,监测将在1小时后恢复"))
|
||||
} else if request.contains("GET /handle") {
|
||||
let _ = app_handle.emit("notification-action", "go_handle");
|
||||
("handle", redirect_page("https://crm.yunvip123.com/index.html"))
|
||||
|
||||
@@ -18,7 +18,7 @@ fn xml_escape(s: &str) -> String {
|
||||
/// 发送带交互按钮的 Toast 通知
|
||||
///
|
||||
/// - 点击消息体 → 关闭通知(非打包应用不支持 foreground 激活)
|
||||
/// - 点击"推迟1小时" → 通过 localhost 回调暂停监控并弹出应用窗口
|
||||
/// - 点击"推迟1小时" → 通过 localhost 回调暂停监测并弹出应用窗口
|
||||
/// - 点击"去处理" → 直接打开 CRM 网站
|
||||
#[cfg(target_os = "windows")]
|
||||
pub fn send_interactive_toast(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "工单系统监测",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"identifier": "com.administrator.tauri-app",
|
||||
"build": {
|
||||
"beforeDevCommand": "pnpm dev",
|
||||
|
||||