mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-21 16:25:19 +00:00
Remove extra fields
This commit is contained in:
@@ -43,8 +43,6 @@ type FormState = {
|
|||||||
domain: string;
|
domain: string;
|
||||||
kdcProxyUrl: string;
|
kdcProxyUrl: string;
|
||||||
pcb: string;
|
pcb: string;
|
||||||
desktopWidth: number;
|
|
||||||
desktopHeight: number;
|
|
||||||
enableClipboard: boolean;
|
enableClipboard: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -70,8 +68,6 @@ export default function RdpClient({
|
|||||||
domain: "",
|
domain: "",
|
||||||
kdcProxyUrl: "",
|
kdcProxyUrl: "",
|
||||||
pcb: "",
|
pcb: "",
|
||||||
desktopWidth: 1280,
|
|
||||||
desktopHeight: 720,
|
|
||||||
enableClipboard: true
|
enableClipboard: true
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -238,8 +234,8 @@ export default function RdpClient({
|
|||||||
.withServerDomain(form.domain)
|
.withServerDomain(form.domain)
|
||||||
.withAuthToken("test-token")
|
.withAuthToken("test-token")
|
||||||
.withDesktopSize({
|
.withDesktopSize({
|
||||||
width: form.desktopWidth,
|
width: window.innerWidth,
|
||||||
height: form.desktopHeight
|
height: window.innerHeight
|
||||||
})
|
})
|
||||||
.withExtension(exts.displayControl(true));
|
.withExtension(exts.displayControl(true));
|
||||||
|
|
||||||
@@ -349,34 +345,7 @@ export default function RdpClient({
|
|||||||
onChange={(e) => update("pcb", e.target.value)}
|
onChange={(e) => update("pcb", e.target.value)}
|
||||||
/>
|
/>
|
||||||
</Field> */}
|
</Field> */}
|
||||||
<div className="grid grid-cols-2 gap-4">
|
|
||||||
<Field label="Desktop Width" id="desktopWidth">
|
|
||||||
<Input
|
|
||||||
id="desktopWidth"
|
|
||||||
type="number"
|
|
||||||
value={form.desktopWidth}
|
|
||||||
onChange={(e) =>
|
|
||||||
update(
|
|
||||||
"desktopWidth",
|
|
||||||
Number(e.target.value) || 0
|
|
||||||
)
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</Field>
|
|
||||||
<Field label="Desktop Height" id="desktopHeight">
|
|
||||||
<Input
|
|
||||||
id="desktopHeight"
|
|
||||||
type="number"
|
|
||||||
value={form.desktopHeight}
|
|
||||||
onChange={(e) =>
|
|
||||||
update(
|
|
||||||
"desktopHeight",
|
|
||||||
Number(e.target.value) || 0
|
|
||||||
)
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</Field>
|
|
||||||
</div>
|
|
||||||
{/* <Field
|
{/* <Field
|
||||||
label="KDC Proxy URL (optional)"
|
label="KDC Proxy URL (optional)"
|
||||||
id="kdcProxyUrl"
|
id="kdcProxyUrl"
|
||||||
@@ -389,7 +358,7 @@ export default function RdpClient({
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</Field> */}
|
</Field> */}
|
||||||
<div className="flex items-center gap-2">
|
{/* <div className="flex items-center gap-2">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
id="enable_clipboard"
|
id="enable_clipboard"
|
||||||
checked={form.enableClipboard}
|
checked={form.enableClipboard}
|
||||||
@@ -400,8 +369,7 @@ export default function RdpClient({
|
|||||||
<Label htmlFor="enable_clipboard">
|
<Label htmlFor="enable_clipboard">
|
||||||
Enable Clipboard
|
Enable Clipboard
|
||||||
</Label>
|
</Label>
|
||||||
</div>
|
</div> */}
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
onClick={startSession}
|
onClick={startSession}
|
||||||
disabled={!moduleReady}
|
disabled={!moduleReady}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import RdpClient from "./RdpClient";
|
|||||||
export const dynamic = "force-dynamic";
|
export const dynamic = "force-dynamic";
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: "RDP Test"
|
title: "RDP"
|
||||||
};
|
};
|
||||||
|
|
||||||
export default async function RdpPage() {
|
export default async function RdpPage() {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import SshClient from "./SshClient";
|
|||||||
export const dynamic = "force-dynamic";
|
export const dynamic = "force-dynamic";
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: "SSH Terminal"
|
title: "SSH"
|
||||||
};
|
};
|
||||||
|
|
||||||
export default async function SshPage() {
|
export default async function SshPage() {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import VncClient from "./VncClient";
|
|||||||
export const dynamic = "force-dynamic";
|
export const dynamic = "force-dynamic";
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: "VNC Test"
|
title: "VNC"
|
||||||
};
|
};
|
||||||
|
|
||||||
export default async function VncPage() {
|
export default async function VncPage() {
|
||||||
|
|||||||
Reference in New Issue
Block a user