feat: commit hash in banner, version command, file upload/download
This commit is contained in:
parent
cb86894369
commit
f7d29a98d3
8 changed files with 202 additions and 9 deletions
|
|
@ -47,6 +47,19 @@ pub enum ServerMessage {
|
|||
FocusWindowRequest { request_id: Uuid, window_id: u64 },
|
||||
/// Maximize a window and bring it to the foreground
|
||||
MaximizeAndFocusRequest { request_id: Uuid, window_id: u64 },
|
||||
/// Request client version info
|
||||
VersionRequest { request_id: Uuid },
|
||||
/// Upload a file to the client
|
||||
UploadRequest {
|
||||
request_id: Uuid,
|
||||
path: String,
|
||||
content_base64: String,
|
||||
},
|
||||
/// Download a file from the client
|
||||
DownloadRequest {
|
||||
request_id: Uuid,
|
||||
path: String,
|
||||
},
|
||||
}
|
||||
|
||||
/// Messages sent from the client to the relay server
|
||||
|
|
@ -81,6 +94,18 @@ pub enum ClientMessage {
|
|||
request_id: Uuid,
|
||||
windows: Vec<WindowInfo>,
|
||||
},
|
||||
/// Response to a version request
|
||||
VersionResponse {
|
||||
request_id: Uuid,
|
||||
version: String,
|
||||
commit: String,
|
||||
},
|
||||
/// Response to a download request
|
||||
DownloadResponse {
|
||||
request_id: Uuid,
|
||||
content_base64: String,
|
||||
size: u64,
|
||||
},
|
||||
}
|
||||
|
||||
/// Mouse button variants
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue