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
+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);