fix .json overwriting

This commit is contained in:
2026-04-23 15:40:07 +02:00
parent 31dd117d91
commit 44f8ecdc85
7 changed files with 130 additions and 172 deletions

View File

@@ -18,15 +18,15 @@
"label": "Configs",
"view": "serverconfig",
"icon": "app.png",
"defaultSize": {
"width": "900px",
"height": "900px"
},
"permissions": [
"Administration"
]
}
]
},
"defaultSize": {
"width": 800,
"height": 600
}
},
{
@@ -49,10 +49,6 @@
]
}
]
},
"defaultSize": {
"width": "1200px",
"height": "1200px"
}
},
{
@@ -75,10 +71,6 @@
]
}
]
},
"defaultSize": {
"width": "900px",
"height": "800px"
}
},
{
@@ -101,10 +93,6 @@
]
}
]
},
"defaultSize": {
"width": "900px",
"height": "500px"
}
},
{
@@ -127,10 +115,6 @@
]
}
]
},
"defaultSize": {
"width": "460px",
"height": "515px"
}
},
{

View File

@@ -54,5 +54,12 @@
"datetime": "2026-04-21",
"value": "Plugin-System + JSONtree bugfixes",
"finish": true
},
{
"sAMAccountName": "manuel.sowada",
"plugin": "System",
"datetime": "2026-04-23",
"value": "Neues Stylesheet, integratedStartMenuItems JS > JSON, JSONtree Updates, OS-Styles (Mauszeiger, Scrollbalken, Responsive Design, Window-Resize)",
"finish": true
}
]

View File

@@ -28,7 +28,7 @@ module.exports = {
let context = fs.existsSync(pluginPath)
? service.get('fileSystemManager').loadJSON(pluginPath)
: (global.json.startMenuItems.live).find(item => item.name == name);
: (JSON.parse(JSON.stringify(global.json.startMenuItems.live))).find(item => item.name == name);
context.defaultSize =
context.menu.items.find(item => item.label == viewLabel)?.defaultSize ||