Upload new version

This commit is contained in:
2026-01-20 01:12:22 +01:00
parent abd74a9a50
commit 3d559924a9
15 changed files with 1632 additions and 517 deletions

View File

@@ -18,6 +18,7 @@
const requestedMode = (qs.get('mode') || 'templates').toLowerCase();
B.EDITOR_MODE = (B.EDITOR_MODE || requestedMode.toUpperCase());
const EDITOR_MODE = (B.EDITOR_MODE || 'TEMPLATES').toLowerCase();
const SECTION_ID = Number(qs.get('section_id') || B.CURRENT_SECTION_ID || 0);
log(`START: SKRIPT-AUSFÜHRUNG GESTARTET. Editor Modus: ${EDITOR_MODE}.`, '#DC143C');
const TARGET_CAT_ID = 'custom';
@@ -479,7 +480,7 @@
jsonProjectDataRaw = '';
}
const resource = EDITOR_MODE;
const resource = 'content';
const action = `${resource}.update`;
const debugSave = (() => {
try {
@@ -501,6 +502,9 @@
// 🚨 KRITISCH: Server erwartet das Feld 'json'
json: jsonProjectDataRaw,
};
if (SECTION_ID) {
dataToSend.section_id = SECTION_ID;
}
if (debugSave) {
dataToSend.debug = 1;
console.log('[ET DEBUG] save-data payload', {