ui: add shell panel under administration
some users prefer an inline console we still have the pop-out console in 'Administration' Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
		
				
					committed by
					
						
						Thomas Lamprecht
					
				
			
			
				
	
			
			
			
						parent
						
							fe7bdc9d29
						
					
				
				
					commit
					8e12e86f0b
				
			@ -37,6 +37,7 @@ JSSRC=							\
 | 
			
		||||
	dashboard/RunningTasks.js			\
 | 
			
		||||
	dashboard/TaskSummary.js			\
 | 
			
		||||
	panel/Tasks.js					\
 | 
			
		||||
	panel/XtermJsConsole.js				\
 | 
			
		||||
	Utils.js					\
 | 
			
		||||
	AccessControlPanel.js				\
 | 
			
		||||
	ZFSList.js					\
 | 
			
		||||
 | 
			
		||||
@ -55,6 +55,12 @@ Ext.define('PBS.store.NavigationStore', {
 | 
			
		||||
		expanded: true,
 | 
			
		||||
		leaf: false,
 | 
			
		||||
		children: [
 | 
			
		||||
		    {
 | 
			
		||||
			text: gettext('Shell'),
 | 
			
		||||
			iconCls: 'fa fa-terminal',
 | 
			
		||||
			path: 'pbsXtermJsConsole',
 | 
			
		||||
			leaf: true,
 | 
			
		||||
		    },
 | 
			
		||||
		    {
 | 
			
		||||
			text: gettext('Disks'),
 | 
			
		||||
			iconCls: 'fa fa-hdd-o',
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										25
									
								
								www/panel/XtermJsConsole.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								www/panel/XtermJsConsole.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,25 @@
 | 
			
		||||
Ext.define('PBS.panel.XtermJsConsole', {
 | 
			
		||||
    extend: 'Ext.panel.Panel',
 | 
			
		||||
    alias: 'widget.pbsXtermJsConsole',
 | 
			
		||||
 | 
			
		||||
    layout: 'fit',
 | 
			
		||||
 | 
			
		||||
    items: [
 | 
			
		||||
	{
 | 
			
		||||
	    xtype: 'uxiframe',
 | 
			
		||||
	    itemId: 'iframe',
 | 
			
		||||
	},
 | 
			
		||||
    ],
 | 
			
		||||
 | 
			
		||||
    listeners: {
 | 
			
		||||
	'afterrender': function() {
 | 
			
		||||
	    let me = this;
 | 
			
		||||
	    let params = {
 | 
			
		||||
		console: 'shell',
 | 
			
		||||
		node: 'localhost',
 | 
			
		||||
		xtermjs: 1,
 | 
			
		||||
	    };
 | 
			
		||||
	    me.getComponent('iframe').load('/?' + Ext.Object.toQueryString(params));
 | 
			
		||||
	},
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
		Reference in New Issue
	
	Block a user