cleanup , header & logo
This commit is contained in:
@@ -1,107 +0,0 @@
|
||||
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);
|
||||
@@ -1,82 +0,0 @@
|
||||
{
|
||||
"routes": [
|
||||
{
|
||||
"url": "/control",
|
||||
"role": "*",
|
||||
"controller" : "/system/systemController",
|
||||
"method": "control"
|
||||
},
|
||||
{
|
||||
"url": "/healthcheck",
|
||||
"role": "*",
|
||||
"controller" : "/system/systemController",
|
||||
"method": "healthcheck"
|
||||
},
|
||||
{
|
||||
"url": "/styleguide",
|
||||
"role": "*",
|
||||
"controller" : "/system/systemController",
|
||||
"method": "styleguide"
|
||||
},
|
||||
{
|
||||
"url": "/eicui",
|
||||
"role": "*",
|
||||
"controller" : "/system/systemController",
|
||||
"method": "eicui"
|
||||
},
|
||||
{
|
||||
"url": "/sampler",
|
||||
"role": "*",
|
||||
"controller" : "/system/systemController",
|
||||
"method": "sampler"
|
||||
},
|
||||
{
|
||||
"url": "/chalkboard",
|
||||
"role": "*",
|
||||
"controller" : "/system/systemController",
|
||||
"method": "chalkboard"
|
||||
},
|
||||
{
|
||||
"url": "/explorer",
|
||||
"role": "*",
|
||||
"controller" : "/system/systemController",
|
||||
"method": "explore"
|
||||
}
|
||||
],
|
||||
"models": [
|
||||
"system/PlatformModel",
|
||||
"system/MarklogicModel"
|
||||
],
|
||||
"views": [
|
||||
"system/admin/platform-control/AdminAccessControlView",
|
||||
"system/lab/SamplerView",
|
||||
"system/lab/ChalkboardView",
|
||||
"system/lab/ComponentLabView",
|
||||
"system/tools/statusView",
|
||||
"system/admin/explorer/DataExplorerView",
|
||||
"system/admin/platform-control/dialogs/PlatformUserMessageDialog",
|
||||
"system/admin/platform-control/dialogs/PlatformDownDialog",
|
||||
"system/admin/platform-control/dialogs/PlatformConfigViewDialog",
|
||||
"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" }
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user