A focused Docker Compose management web application.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: realtime error spam

Brooke 0ebc87ed 86fd1ac1

+13 -13
+3 -3
packages/panel/src/lib/api/index.ts
··· 9 9 10 10 const TOKEN_KEY = "luminary-token"; 11 11 12 - type LuminaryFailResponse = components["schemas"]["luminary_node.api.response.LuminaryFailResponse"]; 12 + type LuminaryFailResponse = components["schemas"]["luminary.api.response.LuminaryFailResponse"]; 13 13 14 14 type LuminaryResponse = 15 - | components["schemas"]["luminary_node.api.response.LuminarySuccessResponse<()>"] 15 + | components["schemas"]["luminary.api.response.LuminarySuccessResponse<()>"] 16 16 | LuminaryFailResponse; 17 17 18 18 type ExcludeFail<T> = T extends LuminaryFailResponse ? never : T; ··· 116 116 * If successful, the token will be stored and used for future requests. 117 117 * @param credentials The credentials to use for authentication. 118 118 */ 119 - export async function login(credentials: components["schemas"]["luminary_node.api.auth.LuminaryUserCredentials"]) { 119 + export async function login(credentials: components["schemas"]["luminary.api.auth.LuminaryUserCredentials"]) { 120 120 const response = await client.POST("/api/auth/login", { body: credentials }); 121 121 putToken(response.data!); 122 122 }
+7 -7
packages/panel/src/lib/api/realtime.svelte.ts
··· 5 5 import { goto } from "$app/navigation"; 6 6 import { patch } from "ultrapatch"; 7 7 8 - export type LuminaryProjectList = components["schemas"]["luminary_node.core.model.LuminaryProjectList"]; 9 - export type LuminaryProject = components["schemas"]["luminary_node.core.model.LuminaryProject"]; 10 - type LogMessage = components["schemas"]["luminary_node.logging.LogMessage"]; 8 + export type LuminaryProjectList = components["schemas"]["luminary.core.model.LuminaryProjectList"]; 9 + export type LuminaryProject = components["schemas"]["luminary.core.model.LuminaryProject"]; 10 + type LogMessage = components["schemas"]["luminary.logging.LogMessage"]; 11 11 12 12 /** 13 13 * The current internal list of projects and their states. ··· 67 67 "Luminary will attempt to reconnect automatically. If the issue persists, please check your network connection and the server status.", 68 68 ]); 69 69 } 70 - } catch (_) { 71 - if (signal.aborted) return; 72 - await backoff.wait(); 73 - } 70 + } catch (_) {} 71 + 72 + if (signal.aborted) return; 73 + await backoff.wait(); 74 74 } 75 75 } 76 76
+1 -1
packages/panel/src/lib/component/StatusIcon.svelte
··· 1 1 <script lang="ts" module> 2 - export type LuminaryStatus = components["schemas"]["luminary_node.core.model.LuminaryStatus"]; 2 + export type LuminaryStatus = components["schemas"]["luminary.core.model.LuminaryStatus"]; 3 3 </script> 4 4 5 5 <script lang="ts">
+1 -1
packages/panel/src/routes/(authenticated)/admin/UserList.svelte
··· 5 5 import { api, isMobile, openDialog } from "$lib"; 6 6 import Fa from "svelte-fa"; 7 7 8 - type LuminaryUser = api.components["schemas"]["luminary_node.api.auth.LuminaryUser"]; 8 + type LuminaryUser = api.components["schemas"]["luminary.api.auth.LuminaryUser"]; 9 9 10 10 let users: LuminaryUser[] = $state([]); 11 11
+1 -1
packages/panel/src/routes/(authenticated)/projects/[project]/+page.ts
··· 3 3 import type { PageLoad } from "./$types"; 4 4 import { api } from "$lib"; 5 5 6 - type LuminaryProjectWithCompose = components["schemas"]["luminary_node.api.project.LuminaryProjectWithCompose"]; 6 + type LuminaryProjectWithCompose = components["schemas"]["luminary.api.project.LuminaryProjectWithCompose"]; 7 7 8 8 export const load: PageLoad = async ({ params }) => { 9 9 const response = await api.client