- Replace task-only refresh flow with hydrate/assignment/group events - Add contracts, groups, and activity tabs to the client sidepanel - Introduce server-side CAD store and request handlers
27 lines
819 B
Plaintext
27 lines
819 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (isNil QGVAR(CADRepository)) then { call FUNC(initRepository); };
|
|
if (isNil QGVAR(CADUIBridge)) then { call FUNC(initUIBridge); };
|
|
|
|
[QGVAR(openCAD), {
|
|
call FUNC(openUI);
|
|
}] call CFUNC(addEventHandler);
|
|
|
|
[QGVAR(responseHydrateCad), {
|
|
params [["_payload", createHashMap, [createHashMap]]];
|
|
|
|
GVAR(CADUIBridge) call ["handleHydrateResponse", [_payload]];
|
|
}] call CFUNC(addEventHandler);
|
|
|
|
[QGVAR(responseCadAssignment), {
|
|
params [["_result", createHashMap, [createHashMap]]];
|
|
|
|
GVAR(CADUIBridge) call ["handleAssignmentResponse", [_result]];
|
|
}] call CFUNC(addEventHandler);
|
|
|
|
[QGVAR(responseCadGroupUpdate), {
|
|
params [["_result", createHashMap, [createHashMap]]];
|
|
|
|
GVAR(CADUIBridge) call ["handleGroupUpdateResponse", [_result]];
|
|
}] call CFUNC(addEventHandler);
|