menus, better routes, dev tools, styling

This commit is contained in:
STEINNI
2025-10-04 20:27:47 +00:00
parent b5b76d51cc
commit 213dcb6c4c
20 changed files with 1902 additions and 159 deletions
+107
View File
@@ -0,0 +1,107 @@
class systemController extends EICController {
/**
* Platform access control
*
* @param {*} params
*/
control() {
app.meta.add('user-roles', app.Assets.Store.json['user-roles']);
app.meta.add('user-messages', app.Assets.Store.json['user-messages']);
let models = {
platform: new PlatformModel()
}
this.loadWindow(
'system/admin/platform-control/AdminAccessControlView',
{ title: 'Platform Control', static: true, expanded: true },
{ models: models }
);
}
explore() {
app.User.getBusinessPermissions([ '/storage/entities' ], 'EIC_Admin')
.then(payload => {
console.log(payload)
let models = {
ml: new MarklogicModel(payload['/storage/entities'].permissions)
}
this.loadWindow(
'system/admin/explorer/DataExplorerView',
{ title: 'Data explorer', static: true, expanded: true },
{ models: models }
);
})
}
/**
* System Health check content
*
* @param {*} params
*/
healthcheck() {
this.loadWindow('system/tools/statusView', {
title: 'Health Check',
static: true,
expanded: true
}
);
}
/**
*
*/
async styleguide() {
await Loader.loadViews(["system/tools/styleguideView"]);
this.loadWindow('system/tools/styleguideView', {
title: 'Style guide',
static: true,
expanded: true
});
}
/**
*
*/
async eicui() {
await Loader.loadViews(["system/tools/EICUIView"]);
this.loadWindow(
'system/tools/EICUIView',
{ title: 'EICUI', static: true, expanded: true}
);
}
sampler(params) {
this.loadWindow(
'system/lab/SamplerView',
{ title: 'SAMPLER3000', static: true, expanded: true }
);
}
chalkboard(params) {
this.loadWindow(
'system/lab/ChalkboardView',
{ title: 'Chalkboard', static: true, expanded: true }
);
}
components(params) {
this.loadWindow('system/lab/ComponentLabView', {
title: 'Component Lab',
static: true,
expanded: true
});
}
}
app.registerClass('systemController', systemController);
+48
View File
@@ -0,0 +1,48 @@
{
"routes": [
{
"url": "/healthcheck",
"role": "*",
"controller" : "/system/systemController",
"method": "healthcheck"
},
{
"url": "/styleguide",
"role": "*",
"controller" : "/system/systemController",
"method": "styleguide"
},
{
"url": "/eicui",
"role": "*",
"controller" : "/system/systemController",
"method": "eicui"
}
],
"models": [
],
"views": [
"system/tools/statusView",
"system/tools/dialogs/codeTemplateDialog"
],
"controllerDependencies": [
"/thirdparty/eicui/plugins/FileUpload/FileUpload",
"/thirdparty/eicui/plugins/Charts/Charts",
"/thirdparty/beautify/beautify.min",
"/thirdparty/beautify/beautify.html.min",
"/thirdparty/beautify/beautify.css.min",
"/thirdparty/highlight/highlight.min",
"/helpers/basicDialogs"
],
"assets": {
"styles": [
{ "name":"FileUpload.css", "path":"/app/thirdparty/eicui/plugins/FileUpload/" },
{ "name":"Charts.css", "path":"/app/thirdparty/eicui/plugins/Charts/" },
{ "name":"monokai.min.css", "path":"/app/thirdparty/highlight/styles/" }
],
"json": [
{ "id": "user-roles", "name": "global/user-roles.json" },
{ "id": "user-messages", "name": "system/user-messages.json" }
]
}
}