Major Changes:
- Merged latest Qt5 devel content from dlbo (292 files changed, 7 new dirs)
- Consolidated forward-declarations and include folders
- Removed unneeded modules per Niklas' repo check list
Build System Fixes:
- Fixed CMake VERSION_GREATER syntax in ParticipantManagement/CMakeLists.txt
- Added VLC packages (libvlc-dev, vlc-plugin-base) to docker_build.sh
- Added PostgreSQL dev packages (libpq-dev, postgresql-server-dev-all) to Dockerfile
- Fixed locale warnings (ANSI_X3.4-1968 → C.UTF-8)
- Fixed ArcGIS SDK path warnings when BUILD_ARCGIS=OFF
Code Generation Fixes:
- Fixed IDL enum collisions (PortType→CorePortType/DdsutPortType, PdmEventType)
- Fixed Grantlee template svc_translation.cpp.grantlee:
- Changed {{ idl_enum.name }}_def:: to {{ idl_enum.name }}::
- Fixed .underlying() calls for C++11 scoped enums (enum class)
- Removed generated files from repo (moc_*, *_dtc.h, *_ftc.h)
Validation:
- BUILD_RTI=ON: SUCCESS
- BUILD_RTI=OFF: SUCCESS
- C++17 standard maintained for RTI 7.7 compatibility
- Ubuntu 26.04 Docker environment verified
Remaining Warnings (expected):
- BgViewer, KDChart, KDReports, Poppler-Qt6 not found (optional features)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
110 lines
4.3 KiB
JavaScript
110 lines
4.3 KiB
JavaScript
var buttonsAdded = false;
|
|
|
|
export function getLongName () {
|
|
return "Exercise Management";
|
|
}
|
|
|
|
export function createButtons (webSocket) {
|
|
//Container
|
|
if (!buttonsAdded){
|
|
//Exercise Information Request
|
|
var ExerciseInformationRequestContainer = document.createElement("div");
|
|
ExerciseInformationRequestContainer.id = "ExerciseInformationRequestContainer";
|
|
ExerciseInformationRequestContainer.className = "py-1";
|
|
//Button
|
|
var ExerciseInformationRequestBtn = document.createElement("button");
|
|
ExerciseInformationRequestBtn.id = "ExerciseInformationRequestBtn";
|
|
ExerciseInformationRequestBtn.classList.add ("btn", "btn-primary");
|
|
ExerciseInformationRequestBtn.innerHTML = "Send <i>ExerciseInformationRequest</i>";
|
|
//Append
|
|
(document.getElementById ("RequestButtonContainer")).appendChild (ExerciseInformationRequestContainer);
|
|
(document.getElementById ("ExerciseInformationRequestContainer")).appendChild (ExerciseInformationRequestBtn);
|
|
//Funktion
|
|
document.getElementById("ExerciseInformationRequestBtn").addEventListener('click', function() {
|
|
exerciseInformationRequest(webSocket);
|
|
});
|
|
|
|
//Base Dl Request
|
|
var baseDlRequestContainer = document.createElement("div");
|
|
baseDlRequestContainer.id = "BaseDlRequestContainer";
|
|
baseDlRequestContainer.className = "py-1";
|
|
//Button
|
|
var baseDlRequestBtn = document.createElement("button");
|
|
baseDlRequestBtn.id = "BaseDlRequestBtn";
|
|
baseDlRequestBtn.classList.add ("btn", "btn-primary");
|
|
baseDlRequestBtn.innerHTML = "Send <i>BaseDlRequest</i>";
|
|
//Append
|
|
(document.getElementById ("RequestButtonContainer")).appendChild (baseDlRequestContainer);
|
|
(document.getElementById ("BaseDlRequestContainer")).appendChild (baseDlRequestBtn);
|
|
//Funktion
|
|
document.getElementById("BaseDlRequestBtn").addEventListener('click', function() {
|
|
baseDlRequest(webSocket);
|
|
});
|
|
buttonsAdded = true;
|
|
}
|
|
}
|
|
|
|
export function decryptMessage (message) {
|
|
document.getElementById("OutputContainer").hidden = false
|
|
|
|
//Container fuer Accordion und Table erzeugen
|
|
var table = document.createElement ("table");
|
|
table.classList.add("table","table-hover", "table-condensed");
|
|
var tHead = document.createElement ("thead");
|
|
var tBody = document.createElement ("tbody");
|
|
var headRow = document.createElement ("tr");
|
|
var accordionItem = document.createElement ("div")
|
|
accordionItem.className = "accordion-item";
|
|
accordionItem.innerHTML = `<h2 class="accordion-header" id="heading-${JSON.parse(message.data).type}">
|
|
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-${JSON.parse(message.data).type}">
|
|
${JSON.parse(message.data).type}
|
|
</button>
|
|
</h2>
|
|
<div id="collapse-${JSON.parse(message.data).type}" class="accordion-collapse collapse show" data-bs-parent="#Output">
|
|
<div id="body-${JSON.parse(message.data).type}" class="accordion-body"></div>
|
|
</div>
|
|
</div>`
|
|
|
|
//WebSocket-Message in Table
|
|
var keys = new Map;
|
|
JSON.parse(message.data).data.forEach ((item, index, array) => {
|
|
var keyIndexCounter = keys.size;
|
|
for (var key in item){
|
|
if (!keys.has(key)){
|
|
var headCell = headRow.insertCell(keys.size);
|
|
headCell.innerHTML = key;
|
|
keys.set(key, keyIndexCounter);
|
|
keyIndexCounter++;
|
|
}
|
|
}
|
|
var row = tBody.insertRow();
|
|
for (var key of keys) {
|
|
var cell = row.insertCell (keys.get(key));
|
|
cell.innerHTML = item[key[0]];
|
|
}
|
|
});
|
|
|
|
//Append
|
|
tHead.appendChild (headRow);
|
|
table.appendChild (tHead);
|
|
table.appendChild (tBody);
|
|
document.getElementById("Output").appendChild (accordionItem);
|
|
document.getElementById("body-" + JSON.parse(message.data).type).appendChild(table);
|
|
}
|
|
|
|
//Requests
|
|
function exerciseInformationRequest (webSocket) {
|
|
|
|
webSocket.send(JSON.stringify({
|
|
type: "exerciseInformationRequest",
|
|
uuid: "UUID"
|
|
}));
|
|
}
|
|
|
|
function baseDlRequest(webSocket) {
|
|
|
|
webSocket.send(JSON.stringify({
|
|
type: "baseDlRequest",
|
|
uuid: "UUID"
|
|
}));
|
|
} |