This commit is contained in:
nvrl committed 2026-10-17 14:25:32 +02:00
1 parent 8a37ca5dfe
commit 9391b10af1
18 files changed
+841 -53

No files matched your search

+8
View File
@@ -31,6 +31,12 @@ export interface WorkspaceNode extends NodeSummary {
}
/** A public key allowed to mount the workspace over SFTP. */
/** A space as the overview shows it: itself, and what was last written in it. */
export interface SpaceOverview {
space: NodeSummary
recent: NodeSummary[]
}
export interface SshKey {
id: number
name: string
@@ -152,6 +158,8 @@ export const api = {
listSpaces: () => request<NodeSummary[]>('/spaces'),
overview: () => request<SpaceOverview[]>('/spaces/overview'),
createSpace: (name: string, has_board = true) =>
request<WorkspaceNode>('/spaces', { method: 'POST', body: body({ name, has_board }) }),