Skip to content

Commit

Permalink
Progress:
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingvord committed May 1, 2018
1 parent 461070a commit 0d1cfd5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
7 changes: 7 additions & 0 deletions controllers/tango_webapp/main_controller.js
Expand Up @@ -32,6 +32,13 @@ TangoWebapp.MainController = MVC.Controller.extend('main', {
body: TangoWebapp.ui.newStatefulAttrsMonitorView({id: 'configurable_monitor'})
});

ui_builder.add_mainview_item(
{
header: "<span class='webix_icon fa-terminal'></span> Terminal",
borderless: true,
body: TangoWebapp.ui.newTerminalView({id: 'terminal'})
});

ui_builder.add_mainview_item(
{
header: "<span class='webix_icon fa-gears'></span> Settings",
Expand Down
2 changes: 1 addition & 1 deletion resources/tango_webapp/setup.js
@@ -1,7 +1,7 @@
TangoWebapp.ui = {
_webix_files: [
"critical_error_no_rest",
"settings",
"settings","terminal_view",
"devices_tree","device_tree",
"plot", "device_control_panel",
"tango_host_view",
Expand Down
13 changes: 13 additions & 0 deletions resources/tango_webapp/terminal_view.js
@@ -0,0 +1,13 @@
/**
*
* @author Igor Khokhriakov <igor.khokhriakov@hzg.de>
* @since 5/1/18
*/
(function(){
TangoWebapp.ui.newTerminalView = function(config){
return webix.extend({
view: 'iframe',
src: 'http://ec2-35-156-104-8.eu-central-1.compute.amazonaws.com:8010/index.html'
}, config)
}
})();

0 comments on commit 0d1cfd5

Please sign in to comment.