project map script | semantic parcer

This commit is contained in:
2026-01-01 16:58:21 +03:00
parent a747a163c8
commit 4c6fc8256d
84 changed files with 10178 additions and 537 deletions

View File

@@ -64,7 +64,7 @@
loading = false;
}
}
// [/DEF:fetchEnvironments]
// [/DEF:fetchEnvironments:Function]
// [DEF:fetchDashboards:Function]
/**
@@ -83,7 +83,7 @@
dashboards = [];
}
}
// [/DEF:fetchDashboards]
// [/DEF:fetchDashboards:Function]
onMount(fetchEnvironments);
@@ -123,7 +123,7 @@
fetchingDbs = false;
}
}
// [/DEF:fetchDatabases]
// [/DEF:fetchDatabases:Function]
// [DEF:handleMappingUpdate:Function]
/**
@@ -158,18 +158,20 @@
error = e.message;
}
}
// [/DEF:handleMappingUpdate]
// [/DEF:handleMappingUpdate:Function]
// [DEF:handleViewLogs:Function]
// @PURPOSE: Opens the log viewer for a specific task.
function handleViewLogs(event: CustomEvent) {
const task = event.detail;
logViewerTaskId = task.id;
logViewerTaskStatus = task.status;
showLogViewer = true;
}
// [/DEF:handleViewLogs]
// [/DEF:handleViewLogs:Function]
// [DEF:handlePasswordPrompt:Function]
// @PURPOSE: Reactive logic to show password prompt when a task is awaiting input.
// This is triggered by TaskRunner or TaskHistory when a task needs input
// For now, we rely on the WebSocket or manual check.
// Ideally, TaskHistory or TaskRunner emits an event when input is needed.
@@ -188,7 +190,10 @@
// showPasswordPrompt = false;
// Actually, don't auto-close, let the user or success handler close it.
}
// [/DEF:handlePasswordPrompt:Function]
// [DEF:handleResumeMigration:Function]
// @PURPOSE: Resumes a migration task with provided passwords.
async function handleResumeMigration(event: CustomEvent) {
if (!$selectedTask) return;
@@ -203,6 +208,7 @@
// Keep prompt open
}
}
// [/DEF:handleResumeMigration:Function]
// [DEF:startMigration:Function]
/**
@@ -270,7 +276,7 @@
error = e.message;
}
}
// [/DEF:startMigration]
// [/DEF:startMigration:Function]
</script>
<!-- [SECTION: TEMPLATE] -->
@@ -396,4 +402,4 @@
/* Page specific styles */
</style>
<!-- [/DEF:MigrationDashboard] -->
<!-- [/DEF:MigrationDashboard:Component] -->

View File

@@ -30,6 +30,8 @@
let success = "";
// [/SECTION]
// [DEF:fetchEnvironments:Function]
// @PURPOSE: Fetches the list of environments.
async function fetchEnvironments() {
try {
const response = await fetch('/api/environments');
@@ -41,6 +43,7 @@
loading = false;
}
}
// [/DEF:fetchEnvironments:Function]
onMount(fetchEnvironments);
@@ -78,7 +81,7 @@
fetchingDbs = false;
}
}
// [/DEF:fetchDatabases]
// [/DEF:fetchDatabases:Function]
// [DEF:handleUpdate:Function]
/**
@@ -114,7 +117,7 @@
error = e.message;
}
}
// [/DEF:handleUpdate]
// [/DEF:handleUpdate:Function]
</script>
<!-- [SECTION: TEMPLATE] -->
@@ -180,4 +183,4 @@
/* Page specific styles */
</style>
<!-- [/DEF:MappingManagement] -->
<!-- [/DEF:MappingManagement:Component] -->