diff --git a/app/components/config/componentsConfig.json b/app/components/config/componentsConfig.json index a8bd56e..352a6e1 100644 --- a/app/components/config/componentsConfig.json +++ b/app/components/config/componentsConfig.json @@ -227,7 +227,8 @@ "filter": { "services": {}, "hosts": {}, - "events": {} + "events": {}, + "commands": {} } } }, @@ -281,6 +282,11 @@ "provider": "config", "endpoint": "hosts", "filter": "allHostConfigTemplate" + }, + "commands": { + "provider": "config", + "endpoint": "commands", + "filter": "all" } } } diff --git a/app/components/config/defaultLayoutConfig.json b/app/components/config/defaultLayoutConfig.json index 3079a17..86000b0 100644 --- a/app/components/config/defaultLayoutConfig.json +++ b/app/components/config/defaultLayoutConfig.json @@ -872,5 +872,87 @@ ] } ] + }, + "commands": { + "template": "page", + "components": [ + { + "type": "panel", + "components": [ + { + "type": "title", + "attributes": { + "title": "Commands" + } + }, + { + "type": "actionbar", + "attributes": { + "tableId": [ + 0 + ] + }, + "components": [ + { + "type": "actionbar-recheck", + "attributes": {} + }, + { + "type": "actionbar-more", + "attributes": {} + }, + { + "type": "actionbar-search-filter", + "attributes": {} + } + ] + }, + { + "type": "table", + "attributes": { + "tableId": 0, + "headerFollow": true, + "inputSource": "commands", + "isWrappable": false, + "noRepeatCell": "", + "checkColumn": false, + "pagingbar": true, + "cellUrls": { + "command_name": { + "view": "command", + "params": [ + "command_name" + ] + } + } + } + } + ] + } + ] + }, + "command": { + "template": "page", + "components": [ + { + "type": "panel", + "components": [ + { + "type": "container", + "components": [ + { + "type": "info", + "attributes": { + "datamodel": { + "Command": "command" + } + } + } + ] + } + ] + } + ] + } } diff --git a/app/components/directive/table/table.html b/app/components/directive/table/table.html index 9bd9f4a..d9ec901 100644 --- a/app/components/directive/table/table.html +++ b/app/components/directive/table/table.html @@ -1,17 +1,22 @@
|
- + + | {{cellsText[i]}} - | + + + ++ {{key}} + + | +
|
- + + | {{cellsText[i]}} - | + + + ++ {{key}} + + | + - -
---|---|---|---|
+ | |||
|
+ + | ||
+ |
- - | + + {{entry[key]}} + + + {{entry[key]}} + + | +