@kumologica/sdk 3.5.4 → 3.6.0-alpha7

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 (36) hide show
  1. package/cli/cli.js +31 -8
  2. package/cli/commands/open.js +88 -15
  3. package/cli/commands/run.js +167 -0
  4. package/cli/commands/serve.js +139 -0
  5. package/package.json +5 -5
  6. package/src/app/main-process/main-window.js +1 -0
  7. package/src/app/main-process/modal-home.js +1 -0
  8. package/src/app/main-process/modal-newproject.js +1 -0
  9. package/src/app/main-process/modal-newtab.js +1 -0
  10. package/src/app/main-process/modal-nodelibrary.js +1 -0
  11. package/src/app/main-process/modal-renameTab.js +1 -0
  12. package/src/app/main-process/modal-welcome.js +1 -0
  13. package/src/app/main.js +179 -141
  14. package/src/app/preload.js +225 -139
  15. package/src/app/ui/editor-client/public/red/red.js +1943 -783
  16. package/src/app/ui/editor-client/public/red/red.min.js +2 -2
  17. package/src/app/ui/editor-client/public/red/style.min.css +1 -1
  18. package/src/app/ui/editor-client/public/vendor/ace-linters/javascript-service.js +10 -2
  19. package/src/app/ui/editor-client/src/js/red.js +183 -179
  20. package/src/app/ui/editor-client/src/js/ui/common/commandBox.js +107 -0
  21. package/src/app/ui/editor-client/src/js/ui/common/searchBox.js +91 -90
  22. package/src/app/ui/editor-client/src/js/ui/modules.js +164 -0
  23. package/src/app/ui/editor-client/src/js/ui/search.js +171 -123
  24. package/src/app/ui/editor-client/src/js/ui/sidebar.js +1 -1
  25. package/src/app/ui/editor-client/src/js/ui/ui-settings.js +419 -410
  26. package/src/app/ui/editor-client/src/sass/editor.scss +745 -746
  27. package/src/app/ui/editor-client/src/sass/forms.scss +1 -1
  28. package/src/app/ui/editor-client/src/sass/search.scss +16 -2
  29. package/src/app/ui/editor-client/src/sass/sidebar.scss +1 -1
  30. package/src/app/ui/editor-client/src/sass/style.scss +72 -69
  31. package/src/app/ui/editor-client/src/sass/ui/common/commandBox.scss +100 -0
  32. package/src/app/ui/editor-client/src/sass/ui/common/searchBox.scss +3 -2
  33. package/src/app/ui/editor-client/src/sass/ui-settings.scss +14 -14
  34. package/src/app/ui/editor-client/src/vendor/ace-linters/build/javascript-service.js +10 -2
  35. package/src/app/ui/editor-client/templates/index.mst +2 -2
  36. package/src/server/DesignerServer.js +152 -153
@@ -84,7 +84,7 @@ textarea {
84
84
  }
85
85
 
86
86
  form {
87
- margin: 0 0 20px;
87
+ margin: 0px;
88
88
  }
89
89
 
90
90
  fieldset {
@@ -57,7 +57,6 @@
57
57
  .red-ui-editableList-container {
58
58
  //border: 1px dashed #aaa;
59
59
  border-top: 1px solid #ccc;
60
-
61
60
  }
62
61
  }
63
62
  .red-ui-search-result {
@@ -159,7 +158,7 @@
159
158
  border-right-color: #efefef;
160
159
  }
161
160
  &:after {
162
- content: '';
161
+ content: "";
163
162
  display: table;
164
163
  clear: both;
165
164
  }
@@ -232,3 +231,18 @@
232
231
  margin-top: 1px;
233
232
  left: -8px;
234
233
  }
234
+
235
+ /*
236
+ * Modules
237
+ */
238
+
239
+ .modules-dialog-container {
240
+ position: relative;
241
+ background: yellow;
242
+ width: 700px;
243
+ height: 200px;
244
+ }
245
+
246
+ .command-input-container {
247
+ padding: 3px;
248
+ }
@@ -37,7 +37,7 @@
37
37
  #sidebar-views {
38
38
  display: flex;
39
39
  flex-direction: column;
40
- height: calc(100% - 23px);
40
+ height: 100%;
41
41
  background: #f3f3f3;
42
42
  user-select: none;
43
43
  width: 100%
@@ -14,77 +14,80 @@
14
14
  * limitations under the License.
15
15
  **/
16
16
 
17
- @import 'colors';
18
- @import 'mixins';
19
-
20
- @import 'forms';
21
-
22
- @import 'jquery';
23
- @import 'bootstrap';
24
- @import 'ace';
25
-
26
- @import 'dropdownMenu';
27
-
28
- @import 'header';
29
- @import 'palette';
30
- @import 'sidebar';
31
- @import 'workspace';
32
- @import 'workspaceToolbar';
33
-
34
- @import 'notifications';
35
-
36
- @import 'editor';
37
- @import 'library';
38
- @import 'search';
39
- @import 'project-info';
40
- @import 'ui-settings';
41
-
42
- @import 'panels';
43
- @import 'tabs';
44
- @import 'tab-config';
45
- @import 'tab-azure';
46
- @import 'tab-cloud';
47
- @import 'tab-context';
48
- @import 'tab-info';
49
- @import 'tab-test';
50
- @import 'tab-git';
51
- @import 'tab-ai';
52
- @import 'popover';
53
- @import 'flow';
54
- @import 'palette-editor';
55
- @import 'diff';
56
-
57
- @import 'userSettings';
58
-
59
- @import 'projects';
60
-
61
- @import 'ui/common/editableList';
62
- @import 'ui/common/searchBox';
63
- @import 'ui/common/typedInput';
64
- @import 'ui/common/typedInputLong';
65
- @import 'ui/common/nodeList';
66
- @import 'ui/common/checkboxSet';
67
- @import 'ui/common/stack';
68
- @import 'ui/common/treeList';
69
-
70
- @import 'dragdrop';
71
-
72
- @import 'keyboard';
73
-
74
- @import 'debug';
75
- @import 'terminal';
76
-
77
- @import 'modals/modalNewProject.scss';
78
- @import 'modals/modalNewTab.scss';
79
- @import 'modals/modalHome.scss';
80
- @import 'modals/modalWelcome.scss';
81
- @import 'modals/modalNodeLibrary.scss';
82
-
83
- @import 'update-panel';
17
+ @import "colors";
18
+ @import "mixins";
19
+
20
+ @import "forms";
21
+
22
+ @import "jquery";
23
+ @import "bootstrap";
24
+ @import "ace";
25
+
26
+ @import "dropdownMenu";
27
+
28
+ @import "header";
29
+ @import "palette";
30
+ @import "sidebar";
31
+ @import "workspace";
32
+ @import "workspaceToolbar";
33
+
34
+ @import "notifications";
35
+
36
+ @import "editor";
37
+ @import "library";
38
+ @import "search";
39
+ @import "project-info";
40
+ @import "ui-settings";
41
+
42
+ @import "panels";
43
+ @import "tabs";
44
+ @import "tab-config";
45
+ @import "tab-azure";
46
+ @import "tab-kumohub";
47
+ @import "tab-cloud";
48
+ @import "tab-context";
49
+ @import "tab-info";
50
+ @import "tab-test";
51
+ @import "tab-git";
52
+ @import "tab-ai";
53
+ @import "popover";
54
+ @import "flow";
55
+ @import "palette-editor";
56
+ @import "diff";
57
+
58
+ @import "userSettings";
59
+
60
+ @import "projects";
61
+
62
+ @import "ui/common/editableList";
63
+ @import "ui/common/searchBox";
64
+ @import "ui/common/commandBox";
65
+
66
+ @import "ui/common/typedInput";
67
+ @import "ui/common/typedInputLong";
68
+ @import "ui/common/nodeList";
69
+ @import "ui/common/checkboxSet";
70
+ @import "ui/common/stack";
71
+ @import "ui/common/treeList";
72
+
73
+ @import "dragdrop";
74
+
75
+ @import "keyboard";
76
+
77
+ @import "debug";
78
+ @import "terminal";
79
+
80
+ @import "modals/modalNewProject.scss";
81
+ @import "modals/modalNewTab.scss";
82
+ @import "modals/modalHome.scss";
83
+ @import "modals/modalWelcome.scss";
84
+ @import "modals/modalNodeLibrary.scss";
85
+
86
+ @import "update-panel";
84
87
 
85
88
  body {
86
89
  font-size: 13px;
87
- font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
90
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
88
91
  //padding-top: 100px;
89
92
  background: $background-color;
90
93
  color: #333333;
@@ -270,4 +273,4 @@ blockquote {
270
273
  }
271
274
  }
272
275
  }
273
- }
276
+ }
@@ -0,0 +1,100 @@
1
+ /**
2
+ * Copyright JS Foundation and other contributors, http://js.foundation
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ **/
16
+
17
+ #red-ui-type-command-input {
18
+ padding-left: 37px;
19
+ padding-top: 8px;
20
+ }
21
+
22
+ .red-ui-commandBox-container {
23
+ display: flex;
24
+ width: 100%;
25
+ border-radius: 3px;
26
+ i {
27
+ font-size: 15px;
28
+ color: #666;
29
+ }
30
+ i.fa-terminal {
31
+ left: 15px;
32
+ top: 10px;
33
+ position: absolute;
34
+ pointer-events: none;
35
+ color: darkgrey;
36
+ }
37
+ i.fa-times {
38
+ position: absolute;
39
+ right: 10px;
40
+ top: 10px;
41
+ }
42
+ span.enter-command {
43
+ top: 8px;
44
+ right: 15px;
45
+ position: absolute;
46
+ font-weight: 600;
47
+ font-size: 12px;
48
+ color: #2979ff;
49
+ font-size: 10px;
50
+ letter-spacing: 0.1em;
51
+ text-transform: uppercase;
52
+ }
53
+
54
+ input {
55
+ font-size: 14px;
56
+ border-radius: 5px;
57
+ border: none;
58
+ width: 100%;
59
+ box-shadow: none;
60
+ -webkit-box-shadow: none;
61
+ padding: 3px 17px 3px 32px;
62
+ margin: 0px;
63
+ height: 30px;
64
+ box-sizing: border-box;
65
+ background-color: $kumologica-sidebar;
66
+
67
+ &:focus {
68
+ border: none;
69
+ box-shadow: none;
70
+ -webkit-box-shadow: none;
71
+ }
72
+ }
73
+ a {
74
+ position: absolute;
75
+ right: 0;
76
+ top: 0;
77
+ bottom: 0;
78
+ width: 20px;
79
+ display: none;
80
+ }
81
+ .red-ui-commandBox-resultCount {
82
+ position: absolute;
83
+ right: 18px;
84
+ top: 4px;
85
+ background: #eee;
86
+ color: #666;
87
+ padding: 1px 8px;
88
+ font-size: 9px;
89
+ border-radius: 4px;
90
+ }
91
+ }
92
+
93
+ .command-input-container {
94
+ display: flex;
95
+ align-items: baseline;
96
+ padding: 3px;
97
+ }
98
+ .red-ui-commandBox-command {
99
+ display: flex;
100
+ }
@@ -35,10 +35,11 @@
35
35
  }
36
36
  i.fa-times {
37
37
  position: absolute;
38
- right: 5px;
39
- top: 9px;
38
+ right: 8px;
39
+ top: 7px;
40
40
  }
41
41
  input {
42
+ font-size: 14px;
42
43
  border-radius: 5px;
43
44
  border: none;
44
45
  width: 100%;
@@ -26,14 +26,13 @@
26
26
  border: 1px solid $primary-border-color;
27
27
  border-radius: 6px;
28
28
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
29
-
30
29
  }
31
30
 
32
31
  .option {
33
32
  display: flex;
34
33
  align-items: baseline;
35
34
  label {
36
- width:10%;
35
+ width: 10%;
37
36
  margin-right: 7px;
38
37
  text-align: right;
39
38
  }
@@ -55,6 +54,7 @@
55
54
  }
56
55
 
57
56
  #proxy-custom-details {
57
+ padding-top: 10px;
58
58
  padding-left: 40px;
59
59
  }
60
60
 
@@ -67,14 +67,14 @@
67
67
  #ui-settings-options {
68
68
  display: flex;
69
69
  flex-direction: column;
70
- width:220px;
70
+ width: 220px;
71
71
  border-right: 1px solid #d3d3d3;
72
72
  height: 100%;
73
73
  }
74
74
 
75
75
  .ui-settings-option {
76
76
  padding: 10px 20px;
77
- &:hover{
77
+ &:hover {
78
78
  cursor: pointer;
79
79
  }
80
80
  }
@@ -83,7 +83,7 @@
83
83
  background: #2979ff;
84
84
  }
85
85
 
86
- #ui-settings-optionsbody{
86
+ #ui-settings-optionsbody {
87
87
  display: flex;
88
88
  flex-direction: column;
89
89
  width: 680px;
@@ -91,37 +91,37 @@
91
91
  }
92
92
 
93
93
  .ui-settings-general-body {
94
- width:670px;
95
- height: 76vh;
94
+ width: 670px;
95
+ height: 78vh;
96
96
  }
97
97
 
98
98
  .ui-settings-option-selected {
99
- .settingsOptionLabel{
99
+ .settingsOptionLabel {
100
100
  color: #f3f3f3;
101
101
  }
102
102
  }
103
103
 
104
- .settingsTitle{
104
+ .settingsTitle {
105
105
  font-size: 14px;
106
106
  font-weight: bold;
107
107
  }
108
108
 
109
- .settingsSubtitle{
109
+ .settingsSubtitle {
110
110
  margin: 15px 0px;
111
111
  }
112
112
 
113
- #fileLocationPath{
113
+ #fileLocationPath {
114
114
  background-color: #272822;
115
115
  box-shadow: 0 4px 0 #000000;
116
116
  margin-bottom: 2px;
117
117
  }
118
118
 
119
119
  .CodeMirror {
120
- border:none !important;
120
+ border: none !important;
121
121
  }
122
122
 
123
- #settingFilePath{
123
+ #settingFilePath {
124
124
  color: grey;
125
125
  font-family: monospace;
126
126
  padding: 4px 15px;
127
- }
127
+ }
@@ -22470,7 +22470,7 @@ var require_acorn = __commonJS({
22470
22470
  // (the latest version the library supports). This influences
22471
22471
  // support for strict mode, the set of reserved words, and support
22472
22472
  // for new syntax features.
22473
- ecmaVersion: null,
22473
+ ecmaVersion: null,
22474
22474
  // `sourceType` indicates the mode the code should be parsed in.
22475
22475
  // Can be either `"script"` or `"module"`. This influences global
22476
22476
  // strict mode and parsing of `import` and `export` declarations.
@@ -22618,7 +22618,12 @@ var require_acorn = __commonJS({
22618
22618
  }
22619
22619
  var BIND_NONE = 0, BIND_VAR = 1, BIND_LEXICAL = 2, BIND_FUNCTION = 3, BIND_SIMPLE_CATCH = 4, BIND_OUTSIDE = 5;
22620
22620
  var Parser = function Parser2(options, input, startPos) {
22621
+
22622
+
22621
22623
  this.options = options = getOptions(options);
22624
+ this.options.sourceType = "module"; // overrite by kumologica
22625
+ this.options.ecmaVersion = 2022;
22626
+
22622
22627
  this.sourceFile = options.sourceFile;
22623
22628
  this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]);
22624
22629
  var reserved = "";
@@ -85304,7 +85309,8 @@ var require_no_undef = __commonJS({
85304
85309
  identifier.name === 'msg' ||
85305
85310
  identifier.name ==='vars' ||
85306
85311
  identifier.name === 'env' ||
85307
- identifier.name === 'node') return;
85312
+ identifier.name === 'node'
85313
+ ) return;
85308
85314
 
85309
85315
  context.report({
85310
85316
  node: identifier,
@@ -104042,6 +104048,8 @@ var require_linter = __commonJS({
104042
104048
  nodeType: null
104043
104049
  }
104044
104050
  };
104051
+
104052
+
104045
104053
  }
104046
104054
  }
104047
104055
  function createRuleListeners(rule, ruleContext) {
@@ -47,7 +47,7 @@
47
47
  </head>
48
48
  <body spellcheck="false" style="overflow: hidden !important">
49
49
  <div class="win-top-separator" style="display:flex; height:1px; border-top:1px solid #ddd"></div>
50
- <div id="header" style="-webkit-app-region: drag;">
50
+ <div id="header">
51
51
  <!-- <span class="logo">{{#header.url}}<a href="{{.}}">{{/header.url}}{{#header.image}}<img src="{{.}}">{{/header.image}} <span>{{ header.title }}</span>{{#header.url}}</a>{{/header.url}}</span> -->
52
52
  <!-- <ul class="header-toolbar hide"> -->
53
53
  <div id="left">
@@ -249,7 +249,7 @@
249
249
  <div id="sidebar-content">
250
250
  <div id="editor-stack"></div>
251
251
  </div>
252
- <div id="sidebar-footer"></div>
252
+ <!-- <div id="sidebar-footer"></div> -->
253
253
  </div>
254
254
  <div id="sidebar-shade" class="hide"></div>
255
255
  </div>