This commit is contained in:
2026-09-20 10:49:14 +01:00
parent 3d122036ce
commit 6e3319b21c
23 changed files with 1331 additions and 223 deletions
+15 -2
View File
@@ -6,6 +6,7 @@ import type {
BUN_SQLITE_WGUI_MEDIA,
BUN_SQLITE_WGUI_USER_TYPES,
BUN_SQLITE_WGUI_USERS,
BUN_SQLITE_WGUI_VARIABLES,
BunSQLiteTables,
} from "@/db/types/db";
import type { SBFSusidiaries } from "../dict/subsidiaries-dict";
@@ -16,7 +17,10 @@ import type {
ClientRuleTypes,
} from "../dict/client-rules-dict";
import type { BunextPageModuleServerReturnURLObject } from "@moduletrace/bunext/types";
import type { BUN_SQLITE_WGUI_USERS_JOIN } from "./sql-joins";
import type {
BUN_SQLITE_WGUI_USERS_JOIN,
BUN_SQLITE_WGUI_HOSTS_JOIN,
} from "./sql-joins";
import type { ImageInputToBase64FunctionReturn } from "../components/twui/utils/form/imageInputToBase64";
import type { ServerQueryParam } from "@moduletrace/bun-sqlite/dist/types";
import type grabHostDirnames from "../functions/backend/setup/grab-host-dir-names";
@@ -41,8 +45,9 @@ export type PagePropsType = {
user_types?: BUN_SQLITE_WGUI_USER_TYPES[] | null;
person?: BUN_SQLITE_WGUI_USERS_JOIN | null;
persons?: BUN_SQLITE_WGUI_USERS_JOIN[] | null;
host?: BUN_SQLITE_WGUI_HOSTS | null;
host?: BUN_SQLITE_WGUI_HOSTS_JOIN | null;
hosts?: BUN_SQLITE_WGUI_HOSTS[] | null;
variables?: BUN_SQLITE_WGUI_VARIABLES[] | null;
client?: BUN_SQLITE_WGUI_CLIENTS | null;
clients?: BUN_SQLITE_WGUI_CLIENTS[] | null;
client_rules?: BUN_SQLITE_WGUI_CLIENT_RULES[] | null;
@@ -243,6 +248,7 @@ export type ApiReqParams<
media?: BUN_SQLITE_WGUI_MEDIA;
ip_address?: string;
wg_ip_address?: string | null;
};
export type UserAuthReturn = {
@@ -327,3 +333,10 @@ export type MediaDataType =
| ReadableStream
| Request
| Response;
export type AddClientFormData = {
client_name?: string;
tunnel_ip?: string;
allowed_ips?: string;
host_id: number;
};