mirror of
https://github.com/cap153/LANChat.git
synced 2026-12-05 08:00:36 +00:00
系统通知(Closes #5) - 桌面端:Windows PowerShell / Linux notify-send / macOS 原生通知 - Web 端:Notification API - Android 端:tauri-plugin-notification 原生通知 - 通知开关:托盘菜单 CheckMenuItem + DB 持久化(仅桌面端) - Android 通知点击导航(MainActivity.onNewIntent + localStorage) 托盘图标闪烁 - 500ms 间隔交替正常/空白图标(std::thread) - 红点出现/消失时自动启停(updateTrayFlash) - 左键/右键「显示窗口」跳转最新未读 - 多次点击逐个跳转未读用户(消费 pendingNotificationFromId + fallback) Cargo 条件编译优化 - tauri-plugin-single-instance / opener 移入 desktop-only cfg - tauri-plugin-notification 仅 macOS/Android 编译 - reqwest: Android 用 rustls-tls(避免 vendored OpenSSL 交叉编译失败) - tokio/chrono 按需启用特性缩小体积 - 修复 TOML 表格结构导致全部依赖被吞入 cfg 区块的 bug
60 lines
1.5 KiB
JSON
60 lines
1.5 KiB
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "default",
|
|
"description": "enables the default permissions",
|
|
"windows": [
|
|
"main"
|
|
],
|
|
"permissions": [
|
|
"core:default",
|
|
"core:event:default",
|
|
"core:path:default",
|
|
"fs:default",
|
|
"fs:allow-write-file",
|
|
"fs:allow-remove",
|
|
"fs:allow-stat",
|
|
"dialog:default",
|
|
"sql:default",
|
|
"log:default",
|
|
"shell:default",
|
|
"allow-show-notification",
|
|
"allow-get-notifications-enabled",
|
|
"allow-set-notifications-enabled",
|
|
"allow-start-tray-flash",
|
|
"allow-stop-tray-flash",
|
|
"allow-get-my-name",
|
|
"allow-get-my-id",
|
|
"allow-update-my-name",
|
|
"allow-get-peers",
|
|
"allow-send-message",
|
|
"allow-get-chat-history",
|
|
"allow-get-chat-history-with-offset",
|
|
"allow-send-file",
|
|
"allow-get-settings",
|
|
"allow-update-settings",
|
|
"allow-get-theme-list",
|
|
"allow-get-theme-css",
|
|
"allow-save-current-theme",
|
|
"allow-get-current-theme",
|
|
"allow-accept-file",
|
|
"allow-get-default-download-path",
|
|
"allow-request-storage-permission",
|
|
"allow-save-file-message",
|
|
"allow-open-file-location",
|
|
"allow-read-clipboard-files",
|
|
"allow-delete-messages",
|
|
"allow-clear-chat-history",
|
|
"allow-delete-user-complete",
|
|
"allow-get-custom-peers",
|
|
"allow-add-custom-peer",
|
|
"allow-remove-custom-peer",
|
|
{
|
|
"identifier": "fs:scope",
|
|
"allow": [
|
|
{ "path": "$TEMP/**" },
|
|
{ "path": "**" }
|
|
]
|
|
}
|
|
]
|
|
}
|