styles and startmenuItems
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
<span class="copy-icon" onclick="copyToClipboard(`${document.getElementById('pid').textContent}`)">⧉</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="table-wrapper" style="max-height: 350px;">
|
||||
<div class="card" styles="max-height:350px;">
|
||||
<div class="table-wrapper">
|
||||
<table id="releaseNotes">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -24,8 +24,8 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div id="package" style="overflow:auto"></div>
|
||||
<div class="card static" style="min-height:150px">
|
||||
<div id="package" style="overflow:auto"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -88,14 +88,13 @@
|
||||
});
|
||||
|
||||
vt.addData(json.releaseNotes)
|
||||
document.querySelector('#package').innerHTML = JSON.stringify(json.package).split(',').join('<br>');
|
||||
/*
|
||||
//document.querySelector('#package').innerHTML = JSON.stringify(json.package).split(',').join('<br>');
|
||||
|
||||
createJsonTree({
|
||||
container: document.getElementById("package-json"),
|
||||
data: json,
|
||||
expandInitially: true,
|
||||
onSave: () => { }
|
||||
container: document.getElementById("package"),
|
||||
data: json.package,
|
||||
expandInitially: true
|
||||
});
|
||||
*/
|
||||
|
||||
});
|
||||
</script>
|
||||
@@ -21,7 +21,7 @@
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<script type="text/javascript">
|
||||
<script defer type="text/javascript">
|
||||
|
||||
createNewPlugin.onclick = () => {
|
||||
feedbox({
|
||||
@@ -62,16 +62,42 @@
|
||||
"active":true
|
||||
}
|
||||
}*/
|
||||
fetch('/api/plugins/integrated', { method: 'POST' })
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
|
||||
createTab(pluginTabs, 'Integrierte Plugins', { onclick:
|
||||
async (tabElement) => {
|
||||
pluginsTabWrapper.innerHTML = '';
|
||||
|
||||
const objectsContainer = document.createElement('div');
|
||||
objectsContainer.className = 'card';
|
||||
|
||||
createJsonTree({
|
||||
container: objectsContainer,
|
||||
data: data,
|
||||
expandInitially: true,
|
||||
onSave: () => {}
|
||||
})
|
||||
pluginsTabWrapper.appendChild(objectsContainer);
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
fetch('/api/plugins/getAll', { method: 'POST' })
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
data.forEach(async metaData => {
|
||||
createTab(pluginTabs, metaData.name, async (tabElement) => {
|
||||
createTab(pluginTabs, metaData.name, { onclick:
|
||||
async (tabElement) => {
|
||||
pluginsTabWrapper.innerHTML = '';
|
||||
|
||||
const objectsContainer = document.createElement('div');
|
||||
objectsContainer.className = 'card grid';
|
||||
objectsContainer.className = 'card static';
|
||||
objectsContainer.style = ``;
|
||||
const card = document.createElement('div');
|
||||
card.className = 'card static row';
|
||||
@@ -140,8 +166,8 @@
|
||||
|
||||
if(typeof value === 'object') {
|
||||
const objectCard = document.createElement('div');
|
||||
objectCard.className = 'card';
|
||||
objectCard.style = `height:100%`;
|
||||
objectCard.className = 'card static';
|
||||
objectCard.style = `min-height:400px;`;
|
||||
objectCard.innerHTML = `
|
||||
<label style="font-weight:bold">${key}</label>
|
||||
<div style="overflow:auto" id="${metaData.name}-${key}"></div>
|
||||
@@ -151,9 +177,6 @@
|
||||
const menu = createJsonTree({
|
||||
container: document.getElementById(`${metaData.name}-${key}`),
|
||||
data: metaData[key],
|
||||
schema: {
|
||||
"active": { type: "boolean" }
|
||||
},
|
||||
onChange: (data) => { },
|
||||
onSave: async (data) => {
|
||||
await pluginAPI.update(metaData.name, { [key]: data });
|
||||
@@ -163,80 +186,10 @@
|
||||
}
|
||||
}
|
||||
pluginsTabWrapper.appendChild(objectsContainer);
|
||||
|
||||
|
||||
|
||||
|
||||
/*pluginsTabWrapper.innerHTML = `
|
||||
<div class="card static row" style="grid-column: span 3;height:50px;">
|
||||
<label class="cb cb-modern">
|
||||
<label for="plugin-${plugin.name}" style="font-weight:bold">Aktiv</label>
|
||||
<input onchange="pluginAPI.activation('${plugin.name}', this.checked);" id="plugin-${plugin.name}" data-status="${plugin.name}" type="checkbox" ${plugin.active ? 'checked' : ''}>
|
||||
<span class="cb-box" aria-hidden="true"></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="card static row" style="gap:0 10px;min-height:fit-content;">
|
||||
<div style="flex:0 0 auto">
|
||||
<label style="font-weight:bold">Name</label>
|
||||
<input type="text" data-name="${plugin.name}" data-field="name" value="${plugin.name}" />
|
||||
</div>
|
||||
|
||||
<div style="flex:0 0 auto">
|
||||
<label style="font-weight:bold">Version</label>
|
||||
<input type="text" data-name="${plugin.name}" data-field="version" value="${plugin.version}" />
|
||||
</div>
|
||||
|
||||
<div style="flex:1 1 auto">
|
||||
<label style="font-weight:bold">Beschreibung</label>
|
||||
<input type="text" data-name="${plugin.name}" data-field="description" style="width:100%" value="${plugin.description}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card static" style="grid-column: span 3;">
|
||||
<label style="font-weight:bold">Startmenüeinträge</label>
|
||||
<div style="overflow:auto" id="${plugin.name}-menu"></div>
|
||||
</div>
|
||||
`;
|
||||
createJsonTree({
|
||||
container: document.getElementById(`${plugin.name}-menu`),
|
||||
data: plugin,
|
||||
schema: {
|
||||
"active": { type: "boolean" }
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
});
|
||||
|
||||
/*
|
||||
{
|
||||
"name": "TEST",
|
||||
"description": "Remote Desktop Verbindungen über MSRA realisieren",
|
||||
"version": "0.2025.11.07",
|
||||
"config": {},
|
||||
"menu": {
|
||||
"label": "TEST",
|
||||
"items": [
|
||||
{
|
||||
"label": "Remoteunterstützung",
|
||||
"view": "index",
|
||||
"icon": "remoteServer.png",
|
||||
"permissions": [
|
||||
"Administration"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"active": true
|
||||
}
|
||||
*/
|
||||
/*
|
||||
new AttachOnBlurChange(document.querySelector(`[data-name="${plugin.name}"][data-field="name"]`), async (newValue, oldValue) => { await pluginAPI.rename(`${plugin.name}`, newValue); });
|
||||
new AttachOnBlurChange(document.querySelector(`[data-name="${plugin.name}"][data-field="version"]`), async (newValue, oldValue) => await pluginAPI.update(`${plugin.name}`, { version: newValue }))
|
||||
new AttachOnBlurChange(document.querySelector(`[data-name="${plugin.name}"][data-field="description"]`), async (newValue, oldValue) => await pluginAPI.update(`${plugin.name}`, { description: newValue }))
|
||||
*/
|
||||
}
|
||||
});
|
||||
});
|
||||
pluginTabs.querySelectorAll('.tab')[0]?.click();
|
||||
})
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user