feat: Initialize core backend server with authentication, WebSocket, and Docker integration, and add initial frontend editor layout.

This commit is contained in:
SaelixCode
2026-02-21 15:58:53 -05:00
parent 18c51f083e
commit 280090bd2b
2 changed files with 86 additions and 9 deletions
+3 -6
View File
@@ -247,7 +247,7 @@ export default function EditorLayout() {
if (!selectedFile) return;
const stackName = selectedFile.replace(/\.(yml|yaml)$/, '');
try {
await apiFetch(`/stacks/${stackName}/down`, {
await apiFetch(`/stacks/${stackName}/stop`, {
method: 'POST',
});
// Refresh containers after stop
@@ -265,10 +265,7 @@ export default function EditorLayout() {
if (!selectedFile) return;
const stackName = selectedFile.replace(/\.(yml|yaml)$/, '');
try {
await apiFetch(`/stacks/${stackName}/down`, {
method: 'POST',
});
await apiFetch(`/stacks/${stackName}/up`, {
await apiFetch(`/stacks/${stackName}/restart`, {
method: 'POST',
});
// Refresh containers after restart
@@ -490,7 +487,7 @@ export default function EditorLayout() {
<span className="flex items-center gap-2">
<span
className={`w-2 h-2 rounded-full ${stackStatuses[file] === 'running' ? 'bg-green-500' :
stackStatuses[file] === 'exited' ? 'bg-red-500' : 'bg-gray-400'
stackStatuses[file] === 'exited' ? 'bg-red-500' : 'bg-gray-400'
}`}
/>
{getDisplayName(file)}