latest stages added

This commit is contained in:
felixg
2026-03-01 11:12:14 +01:00
parent 6e9956bce9
commit 7e3a1ceef4
14 changed files with 310 additions and 53 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "connections" ADD COLUMN "clipboardEnabled" BOOLEAN NOT NULL DEFAULT true;

View File

@@ -45,6 +45,7 @@ model Connection {
domain String?
osType String?
notes String?
clipboardEnabled Boolean @default(true)
folderId String?
folder Folder? @relation(fields: [folderId], references: [id], onDelete: SetNull)
userId String

View File

@@ -17,6 +17,7 @@ interface ConnectionBody {
domain?: string;
osType?: string;
notes?: string;
clipboardEnabled?: boolean;
folderId?: string | null;
}
@@ -39,6 +40,7 @@ export async function connectionRoutes(fastify: FastifyInstance) {
domain: true,
osType: true,
notes: true,
clipboardEnabled: true,
folderId: true,
createdAt: true,
// Do NOT expose encryptedPassword or privateKey in list
@@ -62,6 +64,7 @@ export async function connectionRoutes(fastify: FastifyInstance) {
domain: true,
osType: true,
notes: true,
clipboardEnabled: true,
folderId: true,
privateKey: true,
createdAt: true,
@@ -94,6 +97,7 @@ export async function connectionRoutes(fastify: FastifyInstance) {
domain: true,
osType: true,
notes: true,
clipboardEnabled: true,
folderId: true,
createdAt: true,
},
@@ -131,6 +135,7 @@ export async function connectionRoutes(fastify: FastifyInstance) {
domain: true,
osType: true,
notes: true,
clipboardEnabled: true,
folderId: true,
createdAt: true,
},

View File

@@ -76,6 +76,7 @@ export async function rdpWebsocket(fastify: FastifyInstance) {
domain: conn.domain || '',
width: 1280,
height: 720,
clipboard: conn.clipboardEnabled !== false,
});
rdpd.send(connectMsg);