mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
WorkflowEditor (325→80): CWorkflowState.qml + WorkflowConnectionState.js DashboardView (121→95): DashboardDBAL.js + config/dashboard-config.json Storybook (114→78): StorybookSidebar + config/storybook-components.json + 7 components compacted to under 100 via formatting (no logic changes) + Multiple view/component splits across all remaining 100+ LOC files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15 lines
380 B
JavaScript
15 lines
380 B
JavaScript
.pragma library
|
|
|
|
// DBAL health-check helper for the dashboard view.
|
|
// Keeps the ping + health fetch logic out of the QML file.
|
|
|
|
function refreshHealth(dbal, callback) {
|
|
dbal.ping(function(success, error) {
|
|
if (success) {
|
|
dbal.execute("health", {}, function(result, err) {
|
|
if (result) callback(result);
|
|
});
|
|
}
|
|
});
|
|
}
|