huskies: merge 948

This commit is contained in:
dave
2026-05-13 04:43:48 +00:00
parent 2f50e2198b
commit f2943c7e69
16 changed files with 995 additions and 205 deletions
+9 -4
View File
@@ -1,3 +1,8 @@
/**
* WS-RPC client for editor and project settings.
*/
import { rpcCall } from "./rpc";
export interface EditorSettings {
editor_command: string | null;
}
@@ -47,8 +52,8 @@ async function requestJson<T>(
}
export const settingsApi = {
getProjectSettings(baseUrl?: string): Promise<ProjectSettings> {
return requestJson<ProjectSettings>("/settings", {}, baseUrl);
getProjectSettings(_baseUrl?: string): Promise<ProjectSettings> {
return rpcCall<ProjectSettings>("settings.get_project");
},
putProjectSettings(
@@ -62,8 +67,8 @@ export const settingsApi = {
);
},
getEditorCommand(baseUrl?: string): Promise<EditorSettings> {
return requestJson<EditorSettings>("/settings/editor", {}, baseUrl);
getEditorCommand(_baseUrl?: string): Promise<EditorSettings> {
return rpcCall<EditorSettings>("settings.get_editor");
},
setEditorCommand(