@kumologica/sdk 3.4.0-beta8 → 3.4.0-beta9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/src/app/ui/editor-client/public/red/red.js +11 -8
- package/src/app/ui/editor-client/public/red/red.min.js +1 -1
- package/src/app/ui/editor-client/public/red/style.min.css +1 -1
- package/src/app/ui/editor-client/src/js/ui/common/tabs.js +5 -2
- package/src/app/ui/editor-client/src/js/ui/logviewer.js +4 -4
- package/src/app/ui/editor-client/src/js/ui/terminal.js +2 -2
- package/src/app/ui/editor-client/src/sass/terminal.scss +6 -3
- package/src/app/ui/editor-client/src/sass/workspace.scss +1 -0
|
@@ -255,6 +255,8 @@ RED.tabs = (function () {
|
|
|
255
255
|
scrollRight.removeClass('tab-disabled');
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
|
+
// Hack: update the width of the terminal
|
|
259
|
+
$('#workspace-terminal').width(ulWidth);
|
|
258
260
|
}
|
|
259
261
|
function onTabDblClick(evt) {
|
|
260
262
|
evt.preventDefault();
|
|
@@ -292,7 +294,7 @@ RED.tabs = (function () {
|
|
|
292
294
|
// const panelNavigatorWidth = 220;
|
|
293
295
|
// const tabNavigatorWidth = 21 * 2;
|
|
294
296
|
// const totalLeftWidth = panelNavigatorWidth + tabNavigatorWidth;
|
|
295
|
-
// console.log(`scrollContainer.width = `, scrollContainer.width());
|
|
297
|
+
// console.log(`[tabs::activateTabs] scrollContainer.width = `, scrollContainer.width());
|
|
296
298
|
if (scrollAllowed) {
|
|
297
299
|
// When starting the workspace, the width is 30, so we dont want to scroll. Just to make first tab fully visible and active
|
|
298
300
|
if (scrollContainer.width() < 100 ){
|
|
@@ -346,6 +348,7 @@ RED.tabs = (function () {
|
|
|
346
348
|
}
|
|
347
349
|
|
|
348
350
|
function getTabsMaxWidthAvailable() {
|
|
351
|
+
|
|
349
352
|
const workspaceWidth = $('#main-container').width();
|
|
350
353
|
|
|
351
354
|
const paletteWidth = $('#palette').is(':hidden')? 0 : $('#palette').width();
|
|
@@ -756,7 +759,7 @@ RED.tabs = (function () {
|
|
|
756
759
|
.attr('dir', RED.text.bidi.resolveBaseTextDir(label));
|
|
757
760
|
updateTabWidths();
|
|
758
761
|
} else {
|
|
759
|
-
console.log('[tabs] Tab not found')
|
|
762
|
+
// console.log('[tabs] Tab not found')
|
|
760
763
|
}
|
|
761
764
|
|
|
762
765
|
},
|
|
@@ -22,24 +22,24 @@ RED.logviewer = (function() {
|
|
|
22
22
|
//$('#terminal-separator').css('top', '4px');
|
|
23
23
|
},
|
|
24
24
|
drag: function (event, ui) {
|
|
25
|
-
console.log('[terminal] draggin. ui.position.top=', ui.position.top);
|
|
25
|
+
// console.log('[terminal] draggin. ui.position.top=', ui.position.top);
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
// update the height of terminal window
|
|
29
29
|
newHeight = Math.max(activeTerminalHeight - ui.position.top, MIN_HEIGHT);
|
|
30
|
-
console.log('[terminal] newHeight', newHeight);
|
|
30
|
+
// console.log('[terminal] newHeight', newHeight);
|
|
31
31
|
$activeTerminalID.height(newHeight);
|
|
32
32
|
ui.position.top = 0;
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
if (newHeight <= 0) {
|
|
36
|
-
console.log('Dragging beyond limits....');
|
|
36
|
+
// console.log('Dragging beyond limits....');
|
|
37
37
|
hideTerminal();
|
|
38
38
|
return false;
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
stop: function (event, ui) {
|
|
42
|
-
console.log('[terminal] stop triggered! activeTerminalHeight=', newHeight);
|
|
42
|
+
// console.log('[terminal] stop triggered! activeTerminalHeight=', newHeight);
|
|
43
43
|
activeTerminalHeight = newHeight;
|
|
44
44
|
// $activeTerminalID.height(newHeight);
|
|
45
45
|
// $('#terminal-separator').css('top', '4px');
|
|
@@ -195,8 +195,8 @@ RED.terminal = (function () {
|
|
|
195
195
|
findTerminalById(activeTerminalID).show();
|
|
196
196
|
}
|
|
197
197
|
// set the height of the selected terminal like the previous one
|
|
198
|
-
console.log('[terminal] activeTerminalID=', activeTerminalID);
|
|
199
|
-
console.log('[terminal] activeTerminalHeight=', activeTerminalHeight);
|
|
198
|
+
// console.log('[terminal] activeTerminalID=', activeTerminalID);
|
|
199
|
+
// console.log('[terminal] activeTerminalHeight=', activeTerminalHeight);
|
|
200
200
|
if (!activeTerminalHeight){
|
|
201
201
|
activeTerminalHeight = DEFAULT_HEIGHT;
|
|
202
202
|
}
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
* Default styles for xterm.js
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
#terminal-header {
|
|
39
|
+
background-color: lightgrey;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.terminal-tab-selected {
|
|
@@ -51,7 +51,10 @@
|
|
|
51
51
|
#terminal-separator {
|
|
52
52
|
height: 9px;
|
|
53
53
|
cursor: row-resize;
|
|
54
|
-
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
border-top: 4px solid #2979ff;
|
|
57
|
+
}
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
#terminal-actions {
|