mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-25 02:41:07 +01:00
Remove unnecessary ctx.file APIs - plugins can use node:fs directly
This commit is contained in:
@@ -163,11 +163,6 @@ pub enum InternalEventPayload {
|
||||
GetThemesRequest(GetThemesRequest),
|
||||
GetThemesResponse(GetThemesResponse),
|
||||
|
||||
WriteTextFileRequest(WriteTextFileRequest),
|
||||
WriteTextFileResponse(EmptyPayload),
|
||||
ReadTextFileRequest(ReadTextFileRequest),
|
||||
ReadTextFileResponse(ReadTextFileResponse),
|
||||
|
||||
/// Returned when a plugin doesn't get run, just so the server
|
||||
/// has something to listen for
|
||||
EmptyResponse(EmptyPayload),
|
||||
@@ -1319,25 +1314,3 @@ pub struct DeleteKeyValueRequest {
|
||||
pub struct DeleteKeyValueResponse {
|
||||
pub deleted: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default, Serialize, Deserialize, TS)]
|
||||
#[serde(default, rename_all = "camelCase")]
|
||||
#[ts(export, export_to = "gen_events.ts")]
|
||||
pub struct WriteTextFileRequest {
|
||||
pub file_path: String,
|
||||
pub content: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default, Serialize, Deserialize, TS)]
|
||||
#[serde(default, rename_all = "camelCase")]
|
||||
#[ts(export, export_to = "gen_events.ts")]
|
||||
pub struct ReadTextFileRequest {
|
||||
pub file_path: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default, Serialize, Deserialize, TS)]
|
||||
#[serde(default, rename_all = "camelCase")]
|
||||
#[ts(export, export_to = "gen_events.ts")]
|
||||
pub struct ReadTextFileResponse {
|
||||
pub content: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user