Finalized ssh tunnels, updatetd database schemas, started on config editor.

This commit is contained in:
LukeGus
2025-07-21 01:25:38 -05:00
parent cfaa04e42c
commit 547701378f
18 changed files with 4791 additions and 25 deletions
+23 -8
View File
@@ -1,18 +1,33 @@
import React, { useState } from "react";
import {ConfigEditorSidebar} from "@/apps/Config Editor/ConfigEditorSidebar.tsx";
import React from "react";
import {ConfigCodeEditor} from "@/apps/Config Editor/ConfigCodeEditor.tsx";
import {ConfigTopbar} from "@/apps/Config Editor/ConfigTopbar.tsx";
interface ConfigEditorProps {
onSelectView: (view: string) => void;
}
export function ConfigEditor({ onSelectView }: ConfigEditorProps): React.ReactElement {
export function ConfigEditor({onSelectView}: ConfigEditorProps): React.ReactElement {
const [content, setContent] = useState<string>("");
const [fileName, setFileName] = useState<string>("config.yaml");
return (
<div>
<ConfigEditorSidebar
onSelectView={onSelectView}
/>
Config Editor
<div style={{ position: 'relative', width: '100vw', height: '100vh', overflow: 'hidden' }}>
{/* Sidebar - fixed width, full height */}
<div style={{ position: 'absolute', top: 0, left: 0, width: 256, height: '100vh', zIndex: 20 }}>
<ConfigEditorSidebar onSelectView={onSelectView} />
</div>
{/* Topbar - fixed height, full width minus sidebar */}
<div style={{ position: 'absolute', top: 0, left: 256, right: 0, height: 46, zIndex: 30 }}>
<ConfigTopbar />
</div>
{/* Editor area - fills remaining space, with padding for sidebar and topbar */}
<div style={{ position: 'absolute', top: 46, left: 256, right: 0, bottom: 0, overflow: 'hidden', zIndex: 10 }}>
<ConfigCodeEditor
content={content}
fileName={fileName}
onContentChange={setContent}
/>
</div>
</div>
)
}