update database schema and update editor script
Sonarqube Scanner / Build and analyze (push) Failing after 26s

This commit is contained in:
Florian Zumpe
2026-09-02 00:53:22 +02:00
parent d6228e7e32
commit a66482a137
8 changed files with 455 additions and 55 deletions
+1 -1
View File
@@ -328,7 +328,7 @@
<button id="editor-close" type="button" aria-label="Streckeneditor schließen" title="Schließen">×</button>
</header>
<p id="editor-status" class="editor-status" role="status" aria-live="polite" hidden></p>
<output id="editor-status" class="editor-status" aria-live="polite" hidden></output>
<section id="editor-route-list-view" class="editor-view" aria-labelledby="editor-route-list-title">
<div class="editor-toolbar">
+46 -4
View File
@@ -564,14 +564,56 @@ globalThis.Wegwichtel = globalThis.Wegwichtel || {};
return Object.values(classes);
}
function init() {
bind();
ns.EditorUi = Object.freeze({
function testHooks() {
return Object.freeze({
apiUrl,
classNames,
closeEditor,
fillPoiForm,
fillRouteForm,
handleResponse,
isActivation,
loadRoute,
loadRoutes,
newPoi,
newRoute,
poiArray,
poiFromForm,
poiItem,
parseJson,
readJson,
renderPoiList,
renderRouteList,
routeArray,
routeFromForm,
routeItem,
savePoi,
sendForm,
sendJson,
setStatus,
savePoiOrder,
saveRoute,
state,
swapPois,
uploadPoiMedia
});
}
function editorApi() {
const api = {
close: closeEditor,
classNames,
open: openEditor,
refresh: loadRoutes
});
};
if (globalThis.WegwichtelEditorTestHooks === true) api.testHooks = testHooks();
return Object.freeze(api);
}
function init() {
bind();
ns.EditorUi = editorApi();
}
ready(init);