mirror of
https://github.com/narrrl/narl-workspace.git
synced 2026-11-03 16:41:27 +01:00
hyprland
This commit is contained in:
1 parent
8a37ca5dfe
commit
9391b10af1
18 files changed
+841
-53
No files matched your search
@@ -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 }) }),
|
||||
|
||||
|
||||
Reference in new issue
Block a user