Files
admin f21fa5b5e8 cdrop — 跨 OS 剪贴板与文件传输服务
Commilitia Drop:自托管的跨设备剪贴板同步与点对点文件传输。

- 后端 Go(chi / SQLite WAL / SSE Hub / WebRTC signaling + 状态机 / Relay ring buffer),编译进单个 distroless 镜像(前端 go:embed)。
- 前端 React + TanStack Router + Zustand,自实现 SSE + WebRTC P2P,NAT 受阻时回退服务端中继;聚珍(Juzhen)CJK 综合排版。
- 桌面端 Wails v2(macOS / Windows),瘦客户端复用 web。
- 鉴权 OIDC PKCE(自建 Casdoor 等),refresh_token 信封加密存系统密钥库;iOS Shortcut 用 HS256 scoped token。

架构文档与变更记录见 docs 分支(PROJECT_BRIEF / FRONTEND_DESIGN / CHANGELOG)。

本次为公开发布初始提交:完整开发历史(含部署细节)留存于私有归档,公开仓库自此干净起步。
2026-06-15 21:38:28 +08:00

20 lines
740 B
Go

//go:build !darwin && !windows
package platform
// Non-darwin stubs. The menu bar item + Dock activation policy are macOS
// concepts; Windows/Linux equivalents (tray + window-to-tray) land when those
// platforms are targeted. Kept as no-ops so cross-platform builds compile.
//
// 当实现 Windows 托盘时,交互须与 macOS 对齐(见 statusbar_darwin.m):
// 左键单击 → 打开主窗口;右键 → 菜单(显示主窗 / 设置 / 退出)。托盘图标用同一
// 彩色品牌图(menubar-icon.png)。
// InstallStatusBar is a no-op outside macOS.
func InstallStatusBar(_ StatusBarMenu, h StatusBarHandler) {
statusBarHandler = h
}
// SetDockVisible is a no-op outside macOS.
func SetDockVisible(_ bool) {}