Update clients fetch function

This commit is contained in:
2026-09-27 06:59:16 +01:00
parent c23c8f73cd
commit 8ed5fd1845
24 changed files with 280 additions and 151 deletions
+3 -2
View File
@@ -20,6 +20,7 @@ import type { BunextPageModuleServerReturnURLObject } from "@moduletrace/bunext/
import type {
BUN_SQLITE_WGUI_USERS_JOIN,
BUN_SQLITE_WGUI_HOSTS_JOIN,
BUN_SQLITE_WGUI_CLIENTS_JOIN,
} from "./sql-joins";
import type { ImageInputToBase64FunctionReturn } from "../components/twui/utils/form/imageInputToBase64";
import type { ServerQueryParam } from "@moduletrace/bun-sqlite/dist/types";
@@ -53,8 +54,8 @@ export type PagePropsType = {
single_user?: BUN_SQLITE_WGUI_USERS_JOIN | null;
single_users?: BUN_SQLITE_WGUI_USERS_JOIN[] | null;
variables?: BUN_SQLITE_WGUI_VARIABLES[] | null;
client?: BUN_SQLITE_WGUI_CLIENTS | null;
clients?: BUN_SQLITE_WGUI_CLIENTS[] | null;
client?: BUN_SQLITE_WGUI_CLIENTS_JOIN | null;
clients?: BUN_SQLITE_WGUI_CLIENTS_JOIN[] | null;
client_rules?: BUN_SQLITE_WGUI_CLIENT_RULES[] | null;
client_config?: string | null;
client_config_path?: string | null;
+5
View File
@@ -1,4 +1,5 @@
import type {
BUN_SQLITE_WGUI_CLIENTS,
BUN_SQLITE_WGUI_HOSTS,
BUN_SQLITE_WGUI_MEDIA,
BUN_SQLITE_WGUI_MEDIA_PARADIGMS,
@@ -26,3 +27,7 @@ export type BUN_SQLITE_WGUI_MEDIA_JOIN = BUN_SQLITE_WGUI_MEDIA & {
export type BUN_SQLITE_WGUI_HOSTS_JOIN = BUN_SQLITE_WGUI_HOSTS & {
dir_names?: ReturnType<typeof grabHostDirnames>;
};
export type BUN_SQLITE_WGUI_CLIENTS_JOIN = BUN_SQLITE_WGUI_CLIENTS & {
host_name?: string;
};