feat: init api, db, app

This commit is contained in:
2024-11-07 19:07:41 +00:00
parent ab9b3368d1
commit 11b063c2fa
43 changed files with 1487 additions and 137 deletions
+20 -16
View File
@@ -12,24 +12,28 @@ const HomePage = () => {
const [sessions, setSessions] = useState<Session[]>([
{
id: "1",
type: "ssh",
params: { hostId: "01jc3v9w609f8e2wzw60amv195" },
},
{
id: "2",
type: "pve",
params: { client: "vnc", hostId: "01jc3wp2b3zvgr777f4e3caw4w" },
},
{
id: "3",
type: "pve",
params: { client: "xtermjs", hostId: "01jc3z3yyn2fgb77tyfxc1tkfy" },
},
{
id: "4",
type: "incus",
params: { client: "xtermjs", serverId: "1", shell: "bash" },
params: {
client: "xtermjs",
hostId: "01jc3xz9db0v54dg10hk70a13b",
shell: "fish",
},
},
// {
// id: "1",
// type: "ssh",
// params: { serverId: "1" },
// },
// {
// id: "2",
// type: "pve",
// params: { client: "vnc", serverId: "2" },
// },
// {
// id: "3",
// type: "pve",
// params: { client: "xtermjs", serverId: "3" },
// },
]);
const [curSession, setSession] = useState(0);