@kumologica/sdk 3.0.26 → 3.0.27-beta10

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.
Files changed (34) hide show
  1. package/cli/commands/export-commands/cloudformation.js +16 -1
  2. package/cli/commands/export-commands/utils/validator.js +17 -0
  3. package/cli/commands/test-utils/TestSuiteController.js +7 -22
  4. package/cli/commands/test.js +36 -12
  5. package/package.json +7 -4
  6. package/src/app/lib/aws/cf.js +19 -9
  7. package/src/app/lib/aws/index.js +12 -7
  8. package/src/app/main-process/main-window.js +1 -1
  9. package/src/app/main-process/menu.js +1 -1
  10. package/src/app/main.js +4 -4
  11. package/src/app/preload.js +5 -7
  12. package/src/app/ui/editor-api/lib/editor/comms.js +3 -3
  13. package/src/app/ui/editor-client/public/red/red.js +387 -124
  14. package/src/app/ui/editor-client/public/red/red.min.js +1 -1
  15. package/src/app/ui/editor-client/public/red/style.min.css +1 -1
  16. package/src/app/ui/editor-client/public/vendor/simplemde/simplemde.min.css +0 -7
  17. package/src/app/ui/editor-client/public/vendor/simplemde/simplemde.min.js +0 -15
  18. package/src/app/ui/editor-client/public/vendor/xterm/lib/xterm.js +0 -2
  19. package/src/app/ui/editor-client/src/js/ui/common/tabs.js +16 -1
  20. package/src/app/ui/editor-client/src/js/ui/editor.js +4 -4
  21. package/src/app/ui/editor-client/src/js/ui/sidebar.js +43 -111
  22. package/src/app/ui/editor-client/src/js/ui/tab-git.js +320 -0
  23. package/src/app/ui/editor-client/src/js/ui/tab-test.js +2 -5
  24. package/src/app/ui/editor-client/src/js/ui/tray.js +2 -2
  25. package/src/app/ui/editor-client/src/js/ui/view.js +1 -1
  26. package/src/app/ui/editor-client/src/sass/editor.scss +10 -3
  27. package/src/app/ui/editor-client/src/sass/sidebar.scss +9 -9
  28. package/src/app/ui/editor-client/src/sass/style.scss +1 -0
  29. package/src/app/ui/editor-client/src/sass/tab-git.scss +54 -0
  30. package/src/app/ui/editor-client/src/sass/tabs.scss +1 -1
  31. package/src/app/ui/editor-client/src/sass/workspace.scss +1 -1
  32. package/src/app/ui/editor-client/templates/index.mst +2 -1
  33. package/cli/commands/import-commands/mulesoft.js +0 -61
  34. package/cli/commands/import.js +0 -6
@@ -30,7 +30,7 @@ RED.tray = (function () {
30
30
 
31
31
  function resize() {}
32
32
  function showTray(options) {
33
- console.log('[tray] showTray. options=', options);
33
+ // console.log('[tray] showTray. options=', options);
34
34
 
35
35
  $('#editor-stack').empty();
36
36
 
@@ -343,7 +343,7 @@ RED.tray = (function () {
343
343
 
344
344
 
345
345
  if (stack.length === 0) {
346
- console.log('[tray] Emiting event: (editor:open) ...')
346
+ // console.log('[tray] Emiting event: (editor:open) ...')
347
347
  RED.events.emit('editor:open');
348
348
  showTray(options);
349
349
  } else if (stack.length > 0 && options.title.startsWith('_')) {
@@ -2002,7 +2002,7 @@ RED.view = (function () {
2002
2002
  RED.editor.edit(selection);
2003
2003
  }else{
2004
2004
  // User has clicked on the canvas or link
2005
- // console.log('[view] Selection has not changed. Ignore');
2005
+ console.log('[view] Selection has not changed. Ignore');
2006
2006
  // Just close the sidebar
2007
2007
  RED.editor.resetEditor();
2008
2008
  }
@@ -96,9 +96,16 @@
96
96
  }
97
97
 
98
98
  .kumo-section-title {
99
+ border-top: 1px solid lightgrey;
100
+ padding-top: 7px;
99
101
  margin-top: 7px;
100
- margin-left: 5px;
102
+ margin-left: 10px;
101
103
  margin-bottom: 4px;
104
+ color: #605d5d;
105
+ font-weight: bold;
106
+ letter-spacing: 0.1em;
107
+ text-transform: uppercase;
108
+ font-size: x-small;
102
109
  }
103
110
 
104
111
  .kumo-section-tips {
@@ -152,7 +159,7 @@
152
159
  width: auto;
153
160
  right: -1000px;
154
161
  bottom: 0;
155
- background: #fff;
162
+ background: #f3f3f3;
156
163
  border-left: 1px solid $secondary-border-color;
157
164
  border-bottom: 1px solid $primary-border-color;
158
165
  box-sizing: content-box;
@@ -226,7 +233,7 @@
226
233
  border-left: 1px solid lightgrey;
227
234
  border-right: 1px solid lightgrey;
228
235
  border-top: 1px solid lightgrey;
229
- border-bottom: 1px solid white;
236
+ border-bottom: 1px solid #f3f3f3;
230
237
  border-radius: 4px 4px 0px 0px;
231
238
  }
232
239
  }
@@ -30,7 +30,8 @@
30
30
  min-width:435px;
31
31
  background: #fff;
32
32
  z-index: 10;
33
- @include component-border;
33
+ border-left: 1px solid #ddd;
34
+ // @include component-border;
34
35
  }
35
36
 
36
37
  #sidebar-views {
@@ -96,24 +97,23 @@
96
97
  }
97
98
 
98
99
  #sidebar-separator {
99
- position: absolute;
100
- top: 0px;
101
- right: 485px;
102
- bottom: 10px;
103
- width: 7px;
100
+ position: sticky !important;
101
+ left: 0 !important;
104
102
  z-index: 11;
105
103
  background: $background-color url(images/grip.png) no-repeat 50% 50%;
106
104
  cursor: col-resize;
107
- border-left:1px solid #bbb;
105
+ border-left:4px solid #f3f3f3;
108
106
  height: 100%;
107
+ &:hover{
108
+ border-left:4px solid #2979ff;
109
+ }
109
110
  }
110
111
 
111
112
  .sidebar-closed > #sidebar {
112
113
  display: none;
113
114
  }
114
115
  .sidebar-closed > #sidebar-separator {
115
- //right: 0px !important;
116
- display: none;
116
+ // display: none;
117
117
  }
118
118
  .sidebar-closed > #workspace {
119
119
  right: 49px !important;
@@ -48,6 +48,7 @@
48
48
  @import 'tab-context';
49
49
  @import 'tab-info';
50
50
  @import 'tab-test';
51
+ @import 'tab-git';
51
52
  @import 'popover';
52
53
  @import 'flow';
53
54
  @import 'palette-editor';
@@ -0,0 +1,54 @@
1
+ #sidebar-git-body {
2
+ margin-top: 30px;
3
+ font-weight: normal;
4
+
5
+ #sidebar-git-general-options-wrapper{
6
+ display: flex;
7
+ justify-content: flex-end;
8
+
9
+ #sidebar-git-general-pullpush-wrapper{
10
+ display: flex;
11
+ width: 10%;
12
+ justify-content: flex-end;
13
+ }
14
+ }
15
+
16
+ #sidebar-git-commit-msg-wrapper {
17
+ margin-top: 4px;
18
+ #sidebar-git-commit-msg {
19
+ display: flex;
20
+ width: 100%;
21
+ resize: vertical;
22
+ }
23
+ }
24
+ #sidebar-git-commit-options-wrapper{
25
+ display: flex;
26
+ flex-direction: column;
27
+ position: relative;
28
+ top: -4px;
29
+ #sidebar-git-branch-info-wrapper{
30
+ display: flex;
31
+ justify-content: flex-start;
32
+ padding-left: 3px;
33
+ font-size: 12px;
34
+
35
+ #sidebar-git-branch{
36
+ font-weight: normal;
37
+ color: grey;
38
+ font: 11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
39
+ margin: 0 5px;
40
+ display: flex;
41
+ padding: 0 6px;
42
+ background: #DBE5FB;
43
+ align-items: center;
44
+ height: 20px;
45
+ border-radius: 5px;
46
+ }
47
+ }
48
+ }
49
+ #sidebar-git-commit-wrapper{
50
+ display: flex;
51
+ justify-content: flex-end;
52
+ margin-top: 10px;
53
+ }
54
+ }
@@ -39,7 +39,7 @@
39
39
  width: 100%;
40
40
  position: relative;
41
41
  left: 1px;
42
- justify-content: space-between;
42
+ // justify-content: space-between;
43
43
  box-sizing: border-box;
44
44
 
45
45
  .red-ui-tabs-scroll-container {
@@ -50,7 +50,7 @@
50
50
  }
51
51
 
52
52
  .sidebar-open #workspace {
53
- right: 491px;
53
+ right: 486px;
54
54
  }
55
55
 
56
56
  .workspace-footer-button {
@@ -231,6 +231,7 @@
231
231
 
232
232
 
233
233
  <div id="sidebar">
234
+ <div id="sidebar-separator" ></div>
234
235
  <div id="sidebar-views">
235
236
  <div id="sidebar-content">
236
237
  <div id="editor-stack"></div>
@@ -239,7 +240,7 @@
239
240
  </div>
240
241
  <div id="sidebar-shade" class="hide"></div>
241
242
  </div>
242
- <div id="sidebar-separator"></div>
243
+
243
244
 
244
245
 
245
246
  <div id="sidebar-shortcuts">
@@ -1,61 +0,0 @@
1
- exports.command = 'mulesoft';
2
- exports.desc = `Imports mulesoft project as kumologica flow.`;
3
-
4
- exports.builder = {
5
- "mulesoft-project-directory": {
6
- describe: "The directory where mulesoft project is located.",
7
- demandOption: "The nmulesoft project directory is required.",
8
- type: 'string',
9
- alias: 'm',
10
- nargs: 1
11
- },
12
- "kumologica-project-directory": {
13
- describe: "The directory where kumologica project to be created",
14
- demandOption: "The kumologica project directory is required.",
15
- type: 'string',
16
- alias: 'k',
17
- nargs: 1
18
- },
19
- "kumologica-flow-file-name": {
20
- describe: "The name of kumologica flow file to be created, must end with .json extension",
21
- demandOption: "The kumologica flow file name is required.",
22
- type: 'string',
23
- alias: 'f',
24
- nargs: 1
25
- }
26
- }
27
-
28
- function validate(argv) {
29
- const chalk = require('chalk');
30
-
31
- if (!argv["kumologica-flow-file-name"].endsWith('.json')) {
32
- console.log(`${chalk.redBright("Validation Error: kumologica-flow-file-name must end with .json extension.")}`);
33
- process.exit(1);
34
- }
35
- }
36
- function display(argv) {
37
- console.log('Parameters:');
38
- console.log(' mulesoft-project-directory: %s', argv["mulesoft-project-directory"]||'');
39
- console.log(' kumologica-project-directory: %s', argv["kumologica-project-directory"]||'');
40
- console.log(' kumologica-flow-file-name: %s', argv["kumologica-flow-file-name"]||'');
41
- }
42
-
43
- exports.handler = async function (argv) {
44
- console.log('\nImporting mulesoft project\n');
45
- display(argv);
46
- validate(argv);
47
-
48
- const chalk = require('chalk');
49
-
50
- try {
51
- const { importProject } = require('@kumologica/builder');
52
- await importProject('mulesoft', argv);
53
- console.log(chalk.greenBright('Mulesoft project imported succesfully.'));
54
-
55
- process.exit(0);
56
- } catch (e) {
57
-
58
- console.log(`${chalk.redBright(e.message)}`);
59
- process.exit(1);
60
- }
61
- }
@@ -1,6 +0,0 @@
1
- exports.command = 'import <type>'
2
- exports.desc = 'Imports, converts other projects into kumologica flow'
3
- exports.builder = function (yargs) {
4
- return yargs.commandDir('import-commands')
5
- }
6
- exports.handler = function (argv) {}