mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
fix: type errors and lint failures from merged plugin prs
This commit is contained in:
1 parent
9b690b9935
commit
f4c9090b88
8 files changed
+14
-11
No files matched your search
@@ -1,3 +1,4 @@
|
||||
/// <reference types="vite/client" />
|
||||
import ts from "typescript";
|
||||
import Guacamole from "guacamole-common-js";
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"uses": ["session.remoteDisplay.token", "terminal.open"]
|
||||
"uses": ["session.remoteDisplay.token", "terminal.open", "terminal.overlay"]
|
||||
},
|
||||
"locales": "locales",
|
||||
"platforms": ["linux", "win32", "darwin"]
|
||||
|
||||
@@ -92,14 +92,13 @@ export async function startServer(
|
||||
},
|
||||
});
|
||||
const refs = await db.database.refs();
|
||||
db.database.refs = async () =>
|
||||
({
|
||||
...refs,
|
||||
hosts: sqliteTable("ssh_data", {
|
||||
id: integer("id").primaryKey(),
|
||||
syncId: text("sync_id"),
|
||||
}),
|
||||
}) as Awaited<ReturnType<typeof db.database.refs>>;
|
||||
db.database.refs = (async () => ({
|
||||
...(refs as object),
|
||||
hosts: sqliteTable("ssh_data", {
|
||||
id: integer("id").primaryKey(),
|
||||
syncId: text("sync_id"),
|
||||
}),
|
||||
})) as typeof db.database.refs;
|
||||
for (const user of options.users ?? ["alice", "bob", "carol"]) {
|
||||
db.sqlite
|
||||
.prepare("INSERT INTO users (id, username, is_admin) VALUES (?, ?, ?)")
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/// <reference types="vite/client" />
|
||||
import ts from "typescript";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import roomSource from "../../src/frontend/CollabRoomTab.tsx?raw";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/// <reference types="vite/client" />
|
||||
import ts from "typescript";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import sourceText from "../../../src/frontend/terminal/Terminal.tsx?raw";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/// <reference types="vite/client" />
|
||||
import ts from "typescript";
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
import sourceText from "../../../src/frontend/terminal/Terminal.tsx?raw";
|
||||
|
||||
@@ -52,7 +52,7 @@ describe("interactive client relay", () => {
|
||||
return { client, dispose, host: host(), jumpClient: null };
|
||||
},
|
||||
);
|
||||
mock.ctx.ssh.connect = connect as typeof mock.ctx.ssh.connect;
|
||||
mock.ctx.ssh.connect = connect as unknown as typeof mock.ctx.ssh.connect;
|
||||
const handle = createC2SRelay(mock.ctx);
|
||||
const anchor = new Socket();
|
||||
const socket = new Socket();
|
||||
|
||||
Reference in new issue
Block a user