feat: add WebServerManagerModal and DockerManagerModal components for server management
- Implemented WebServerManagerModal for managing web server configurations, including service actions and live status updates. - Introduced DockerManagerModal for Docker management, allowing installation, repair, and cleanup of Docker artifacts. - Both components include user-friendly interfaces with action confirmation dialogs and error handling.
This commit is contained in:
1 parent
92737dd892
commit
310b13f329
12 files changed
+1413
-990
No files matched your search
+7
-1
@@ -1846,7 +1846,7 @@ export const servers = {
|
||||
post<{ success: boolean; data: DockerRuntimeStatus }>(
|
||||
`/servers/${id}/docker/install`,
|
||||
{},
|
||||
{ timeoutMs: 45000 },
|
||||
{ timeoutMs: 10 * 60 * 1000 },
|
||||
),
|
||||
pruneDocker: (id: string, options?: DockerPruneOptions) =>
|
||||
post<{
|
||||
@@ -1862,6 +1862,12 @@ export const servers = {
|
||||
{},
|
||||
{ timeoutMs: 45000 },
|
||||
),
|
||||
repairDocker: (id: string) =>
|
||||
post<{ success: boolean; data: DockerRuntimeStatus }>(
|
||||
`/servers/${id}/docker/repair`,
|
||||
{},
|
||||
{ timeoutMs: 60000 },
|
||||
),
|
||||
reinstallDocker: (id: string) =>
|
||||
post<{ success: boolean; data: DockerRuntimeStatus }>(
|
||||
`/servers/${id}/docker/reinstall`,
|
||||
|
||||
Reference in new issue
Block a user