@kumologica/sdk 3.0.19 → 3.0.22
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/README.md +52 -1
- package/package.json +5 -5
- package/src/app/main-process/menu.js +1 -1
- package/src/app/main.js +9 -5
- package/src/app/preload.js +0 -1
- package/src/app/ui/editor-client/public/red/red.js +15 -10
- package/src/app/ui/editor-client/public/red/red.min.js +1 -1
- package/src/app/ui/editor-client/src/js/ui/common/tabs.js +13 -8
- package/src/app/ui/editor-client/src/js/ui/view.js +2 -2
package/README.md
CHANGED
|
@@ -1 +1,52 @@
|
|
|
1
|
-
# kumologica-
|
|
1
|
+
# kumologica-sdk
|
|
2
|
+
|
|
3
|
+
Kumologica SDK consist of 4 products:
|
|
4
|
+
- Kumologica designer
|
|
5
|
+
- Kumologica runtime
|
|
6
|
+
- Kumologica CLI
|
|
7
|
+
- Kumologica nodes development kit
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
To install kumologica sdk, run the following command:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g @kumologica/sdk
|
|
15
|
+
```
|
|
16
|
+
Note that node.js is required to run installation and kumologica sdk. To install node.js go to [nodejs.org](https://nodejs.org)
|
|
17
|
+
### Upgrade
|
|
18
|
+
Use the same command to upgrade kumologica sdk to the latest version.
|
|
19
|
+
|
|
20
|
+
To upgrade kumologica sdk to the specific version or tag, use:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install -g @kumologica/sdk@{version number}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Getting started
|
|
27
|
+
|
|
28
|
+
Kumologica sdk contains CLI that provides various commands.
|
|
29
|
+
### Create sample project
|
|
30
|
+
|
|
31
|
+
To create project with sample code and then open project in kumologica designer run following commands:
|
|
32
|
+
```bash
|
|
33
|
+
# create project with name firstproject
|
|
34
|
+
kl create -p firstproject
|
|
35
|
+
|
|
36
|
+
# open firstproject in kumologica designer
|
|
37
|
+
|
|
38
|
+
kl open firstproject
|
|
39
|
+
```
|
|
40
|
+
### Opening kumologica designer
|
|
41
|
+
To open kumologica designer run command:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
kl open
|
|
45
|
+
```
|
|
46
|
+
You can always create new project withing kumologica designer or choose existing project to open.
|
|
47
|
+
|
|
48
|
+
## Next Steps
|
|
49
|
+
|
|
50
|
+
- [Build your first api flow](https://docs.kumologica.com/docs/guide/GettingStarted.html#build-your-first-api-flow)
|
|
51
|
+
- [Build your second api flow](https://docs.kumologica.com/docs/guide/GettingStarted.html#build-your-second-api-flow)
|
|
52
|
+
- [Kumologica documentation](https://docs.kumologica.com/docs/guide/Intro.html)
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"productName": "Kumologica Designer",
|
|
4
4
|
"copyright": "Copyright 2020 Kumologica Pty Ltd, All Rights Reserved.",
|
|
5
5
|
"author": "Kumologica Pty Ltd <contact@kumologica.com>",
|
|
6
|
-
"version": "3.0.
|
|
6
|
+
"version": "3.0.22",
|
|
7
7
|
"description": "Kumologica Designer, harnessing Serverless for your cloud integration needs",
|
|
8
8
|
"main": "src/app/main.js",
|
|
9
9
|
"files": [
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"license": "Proprietary",
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@electron/remote": "^2.0.8",
|
|
68
|
-
"@kumologica/builder": "3.0.
|
|
69
|
-
"@kumologica/devkit": "3.0.
|
|
70
|
-
"@kumologica/runtime": "3.0.
|
|
68
|
+
"@kumologica/builder": "3.0.22",
|
|
69
|
+
"@kumologica/devkit": "3.0.22",
|
|
70
|
+
"@kumologica/runtime": "3.0.22",
|
|
71
71
|
"adm-zip": "0.4.13",
|
|
72
72
|
"ajv": "8.10.0",
|
|
73
73
|
"aws-sdk": "2.513.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"express": "4.17.3",
|
|
89
89
|
"express-session": "1.16.2",
|
|
90
90
|
"extract-json-from-string": "1.0.1",
|
|
91
|
-
"fs-extra": "
|
|
91
|
+
"fs-extra": "10.1.0",
|
|
92
92
|
"glob": "7.1.6",
|
|
93
93
|
"got": "11.8.2",
|
|
94
94
|
"hash-sum": "2.0.0",
|
package/src/app/main.js
CHANGED
|
@@ -71,11 +71,13 @@ process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true';
|
|
|
71
71
|
ipcMain.on('modal-welcome:show-dialog-newproject', async () => {
|
|
72
72
|
winController.setKeepAppRunningIfAllWindowsClosed(true);
|
|
73
73
|
currentModalWindow.close();
|
|
74
|
+
const { version } = require('../../package.json');
|
|
75
|
+
|
|
74
76
|
let userDir = codegen.generateInitialCode(
|
|
75
77
|
userPrefStore.getUserDataPath(),
|
|
76
78
|
'untitled',
|
|
77
79
|
null,
|
|
78
|
-
|
|
80
|
+
version
|
|
79
81
|
);
|
|
80
82
|
|
|
81
83
|
await openProjectEditor(userDir, () => {
|
|
@@ -168,13 +170,14 @@ ipcMain.on('modal-projects:create-project', async (event, payload) => {
|
|
|
168
170
|
const { projectName, projectBaseDir, flow } = payload;
|
|
169
171
|
|
|
170
172
|
app.addRecentDocument(projectBaseDir);
|
|
171
|
-
|
|
173
|
+
const { version } = require('../../package.json');
|
|
174
|
+
|
|
172
175
|
currentModalWindow.close();
|
|
173
176
|
const projectDir = codegen.generateInitialCode(
|
|
174
177
|
projectBaseDir,
|
|
175
178
|
projectName,
|
|
176
179
|
flow,
|
|
177
|
-
|
|
180
|
+
version
|
|
178
181
|
);
|
|
179
182
|
await openProjectEditor(projectDir);
|
|
180
183
|
});
|
|
@@ -470,12 +473,13 @@ async function openWelcomePage() {
|
|
|
470
473
|
// There is no project recently opened - we will create one just to kick the runtime
|
|
471
474
|
// This project will be created in the dataPath of the store:
|
|
472
475
|
// ~/Library/Application Support/Kumologica
|
|
476
|
+
const { version } = require('../../package.json');
|
|
477
|
+
|
|
473
478
|
let userDir = codegen.generateInitialCode(
|
|
474
479
|
userPrefStore.getUserDataPath(),
|
|
475
480
|
'untitled',
|
|
476
481
|
null,
|
|
477
|
-
|
|
478
|
-
|
|
482
|
+
version
|
|
479
483
|
);
|
|
480
484
|
|
|
481
485
|
// // lets give a kick to the runtime
|
package/src/app/preload.js
CHANGED
|
@@ -42,7 +42,6 @@ const deployCli = require('@kumologica/builder');
|
|
|
42
42
|
const Azure = require('./lib/azure');
|
|
43
43
|
|
|
44
44
|
const { openFileOnEditor, openFolder } = require('./lib/utils/editor');
|
|
45
|
-
const { removeRemote } = require('@kumologica/runtime/src/runtime/lib/storage/localfilesystem/projects');
|
|
46
45
|
|
|
47
46
|
const terminalEmitter = new events.EventEmitter();
|
|
48
47
|
const awsDeployer = new AWSDeployer(terminalEmitter);
|
|
@@ -9446,14 +9446,19 @@ RED.panels = (function() {
|
|
|
9446
9446
|
return ul.find("a[href='#" + id + "']").length > 0;
|
|
9447
9447
|
},
|
|
9448
9448
|
renameTab: function (id, label) {
|
|
9449
|
-
tabs[id]
|
|
9450
|
-
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
|
|
9454
|
-
|
|
9455
|
-
|
|
9456
|
-
|
|
9449
|
+
if (tabs[id]){
|
|
9450
|
+
tabs[id].label = label;
|
|
9451
|
+
var tab = ul.find("a[href='#" + id + "']");
|
|
9452
|
+
tab.attr('title', label);
|
|
9453
|
+
tab
|
|
9454
|
+
.find('span.bidiAware')
|
|
9455
|
+
.text(label)
|
|
9456
|
+
.attr('dir', RED.text.bidi.resolveBaseTextDir(label));
|
|
9457
|
+
updateTabWidths();
|
|
9458
|
+
} else {
|
|
9459
|
+
console.log('[tabs] Tab not found')
|
|
9460
|
+
}
|
|
9461
|
+
|
|
9457
9462
|
},
|
|
9458
9463
|
selection: getSelection,
|
|
9459
9464
|
order: function (order) {
|
|
@@ -17380,7 +17385,7 @@ RED.h = handlers;
|
|
|
17380
17385
|
}
|
|
17381
17386
|
}
|
|
17382
17387
|
clipboard = JSON.stringify(nns);
|
|
17383
|
-
RED.notify(`${nns.length} node copied`);
|
|
17388
|
+
// RED.notify(`${nns.length} node copied`);
|
|
17384
17389
|
}
|
|
17385
17390
|
}
|
|
17386
17391
|
|
|
@@ -20168,7 +20173,7 @@ RED.h = handlers;
|
|
|
20168
20173
|
}
|
|
20169
20174
|
if (counts.length > 0) {
|
|
20170
20175
|
var countList = '<ul><li>' + counts.join('</li><li>') + '</li></ul>';
|
|
20171
|
-
RED.notify(`<p>Imported:</p> ${countList}`)
|
|
20176
|
+
// RED.notify(`<p>Imported:</p> ${countList}`)
|
|
20172
20177
|
}
|
|
20173
20178
|
}
|
|
20174
20179
|
} catch (error) {
|