@kumologica/sdk 3.4.0-beta4 → 3.4.0-beta7

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.
@@ -246,7 +246,8 @@ RED.modalNodeLibrary = (function () {
246
246
  // Attach click event to launch the node library from the sidebar-footer
247
247
  $('#launch-node-library').click((event) => {
248
248
  event.preventDefault();
249
- window.__kumologica.main.dispatch('show-node-library-modal', null);
249
+ window.__kumologica.electron.shell.openExternal('https://kumologica.com/nodes/index.html');
250
+ // window.__kumologica.main.dispatch('show-node-library-modal', null);
250
251
  });
251
252
  }
252
253
  return {
@@ -148,7 +148,7 @@ RED.header = (function () {
148
148
  RED.actions.invoke('core:deploy');
149
149
  });
150
150
 
151
- // RED.popover.tooltip($('#btn-deploy'), 'Save & Deploy');
151
+ RED.popover.tooltip($('#btn-deploy'), 'Save & Deploy');
152
152
  }
153
153
 
154
154
  function deployFlow() {
@@ -30,6 +30,8 @@ RED.palette.explorer = (function () {
30
30
  ];
31
31
 
32
32
  try{
33
+ if (!window.jqtree) return; // Hack - otherwise the nodeLibrary modal fail to load due to this library being missed
34
+
33
35
  $('#exp-open-project').tree({
34
36
  data:data,
35
37
  autoOpen: true,
@@ -46,7 +48,11 @@ RED.palette.explorer = (function () {
46
48
  usecontextmenu: true,
47
49
  closedIcon: $('<i class="icofont-rounded-right"></i>'),
48
50
  openedIcon: $('<i class="icofont-rounded-down"></i>'),
49
- onCreateLi: function(node, $li) { }
51
+ onCreateLi: function(node, $li) {
52
+ if (node.id !== '__root__'){
53
+ $li.find('.jqtree-title').before('<span class="icon tab-icon">T</span>');
54
+ }
55
+ }
50
56
  });
51
57
 
52
58
  // Add the context menu
@@ -166,7 +166,7 @@ RED.search = (function () {
166
166
  */
167
167
  function searchCommands() {
168
168
  return [
169
- { type: 'command', title: 'Open Settings', action: 'core:settings:open', shortcut: `${CtrlOrCmd()} ,` },
169
+ { type: 'command', title: 'Open Settings', action: 'core:settings:open', shortcut: `${CtrlOrCmd()} Y` },
170
170
  { type: 'command', title: 'Show Project Info', action: 'core:project-info' },
171
171
  { type: 'command', title: 'Run Test...', cb: () => {
172
172
  if (!$('.sidebar-test').is(':visible')){
@@ -175,8 +175,15 @@ RED.search = (function () {
175
175
 
176
176
  $('#test-sidebar-run-btn').click();
177
177
  } },
178
+ { type: 'command', title: 'Open Log Viewer', cb: ()=> {
179
+ $('#workspace-terminal').toggle()
180
+ }, shortcut: `${CtrlOrCmd()} T` },
178
181
  { type: 'command', title: 'Import Flow', action: 'core:show-import-dialog', shortcut: `${CtrlOrCmd()} I` },
179
182
  { type: 'command', title: 'Export Flow', action: 'core:show-export-dialog', shortcut: `${CtrlOrCmd()} E` },
183
+ { type: 'command', title: 'Help: Documentation', cb: ()=> {
184
+ window.__kumologica.electron.shell.openExternal('https://docs.kumologica.com/docs/guide/Intro.html');
185
+ },
186
+ }
180
187
  ]
181
188
  }
182
189
 
@@ -167,6 +167,7 @@ span.logo {
167
167
  &:hover{
168
168
  // style for cursor to change to hand
169
169
  cursor: pointer;
170
+ border: 1px solid #dedcdd;
170
171
 
171
172
  }
172
173
 
@@ -406,6 +406,7 @@
406
406
  #exp-workspace-addFolder,
407
407
  #exp-open-project-createTab {
408
408
  display: flex;
409
+ height: fit-content;
409
410
  }
410
411
 
411
412
 
@@ -420,5 +421,23 @@
420
421
  font-size: smaller;
421
422
  }
422
423
 
424
+ .tab-icon {
425
+ border-radius: 3px;
426
+ font-weight: bold;
427
+ position: relative;
428
+ left: 11px;
429
+ font-size: 10px;
430
+ background: #E59D37;
431
+ height: 6px;
432
+ width: 8px;
433
+ top: 4px;
434
+ padding: 3px;
435
+ display: flex;
436
+ justify-content: center;
437
+ align-items: center;
438
+ align-content: center;
439
+ font-family: monospace;
440
+ }
441
+
423
442
 
424
443
 
@@ -38,7 +38,6 @@
38
38
  display: flex;
39
39
  width: 100%;
40
40
  position: relative;
41
- left: 1px;
42
41
  // justify-content: space-between;
43
42
  box-sizing: border-box;
44
43
 
@@ -37,7 +37,7 @@
37
37
  position: absolute;
38
38
  margin: 0;
39
39
  top: 0px;
40
- left: 264px;
40
+ left: 265px;
41
41
  bottom: 0px;
42
42
  right: 49px;
43
43
  // overflow: hidden;
@@ -57,7 +57,7 @@
57
57
  </div>
58
58
 
59
59
  <!-- project information -->
60
- <div id="right" class="left-shadow">
60
+ <div id="right">
61
61
  <!-- check project information when server running -->
62
62
  <div id="projectIndicator" style="text-align: center;">
63
63
  <div id="projectInformation">