mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🔀 Merge branch 'master' into i18n-v2
This commit is contained in:
commit
5f6e9767c9
1500
package-lock.json
generated
1500
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "n8n",
|
"name": "n8n",
|
||||||
"version": "0.153.0",
|
"version": "0.154.0",
|
||||||
"description": "n8n Workflow Automation Tool",
|
"description": "n8n Workflow Automation Tool",
|
||||||
"license": "SEE LICENSE IN LICENSE.md",
|
"license": "SEE LICENSE IN LICENSE.md",
|
||||||
"homepage": "https://n8n.io",
|
"homepage": "https://n8n.io",
|
||||||
|
@ -112,8 +112,8 @@
|
||||||
"lodash.get": "^4.4.2",
|
"lodash.get": "^4.4.2",
|
||||||
"mysql2": "~2.3.0",
|
"mysql2": "~2.3.0",
|
||||||
"n8n-core": "~0.96.0",
|
"n8n-core": "~0.96.0",
|
||||||
"n8n-editor-ui": "~0.120.0",
|
"n8n-editor-ui": "~0.121.0",
|
||||||
"n8n-nodes-base": "~0.150.0",
|
"n8n-nodes-base": "~0.151.0",
|
||||||
"n8n-workflow": "~0.79.0",
|
"n8n-workflow": "~0.79.0",
|
||||||
"oauth-1.0a": "^2.2.6",
|
"oauth-1.0a": "^2.2.6",
|
||||||
"open": "^7.0.0",
|
"open": "^7.0.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "n8n-editor-ui",
|
"name": "n8n-editor-ui",
|
||||||
"version": "0.120.0",
|
"version": "0.121.0",
|
||||||
"description": "Workflow Editor UI for n8n",
|
"description": "Workflow Editor UI for n8n",
|
||||||
"license": "SEE LICENSE IN LICENSE.md",
|
"license": "SEE LICENSE IN LICENSE.md",
|
||||||
"homepage": "https://n8n.io",
|
"homepage": "https://n8n.io",
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
:direction="direction"
|
:direction="direction"
|
||||||
:visible="visible"
|
:visible="visible"
|
||||||
:size="width"
|
:size="width"
|
||||||
:before-close="beforeClose"
|
:before-close="close"
|
||||||
:modal="modal"
|
:modal="modal"
|
||||||
:wrapperClosable="wrapperClosable"
|
:wrapperClosable="wrapperClosable"
|
||||||
>
|
>
|
||||||
|
@ -11,7 +11,9 @@
|
||||||
<slot name="header" />
|
<slot name="header" />
|
||||||
</template>
|
</template>
|
||||||
<template>
|
<template>
|
||||||
<slot name="content"/>
|
<span @keydown.stop>
|
||||||
|
<slot name="content"/>
|
||||||
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
@ -79,6 +81,10 @@ export default Vue.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
|
if (this.beforeClose) {
|
||||||
|
this.beforeClose();
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$store.commit('ui/closeTopModal');
|
this.$store.commit('ui/closeTopModal');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -688,7 +688,8 @@ export default mixins(
|
||||||
|
|
||||||
if (e.key === 'd') {
|
if (e.key === 'd') {
|
||||||
this.callDebounced('deactivateSelectedNode', 350);
|
this.callDebounced('deactivateSelectedNode', 350);
|
||||||
} else if (e.key === 'Delete') {
|
|
||||||
|
} else if (e.key === 'Delete' || e.key === 'Backspace') {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
|
23
packages/nodes-base/nodes/Dhl/Dhl.node.json
Normal file
23
packages/nodes-base/nodes/Dhl/Dhl.node.json
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"node": "n8n-nodes-base.dhl",
|
||||||
|
"nodeVersion": "1.0",
|
||||||
|
"codexVersion": "1.0",
|
||||||
|
"categories": [
|
||||||
|
"Miscellaneous"
|
||||||
|
],
|
||||||
|
"resources": {
|
||||||
|
"credentialDocumentation": [
|
||||||
|
{
|
||||||
|
"url": "https://docs.n8n.io/credentials/dhl"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"primaryDocumentation": [
|
||||||
|
{
|
||||||
|
"url": "https://docs.n8n.io/nodes/n8n-nodes-base.dhl/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"alias": [
|
||||||
|
"Shipping"
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"node": "n8n-nodes-base.googleCalendarTrigger",
|
||||||
|
"nodeVersion": "1.0",
|
||||||
|
"codexVersion": "1.0",
|
||||||
|
"categories": [
|
||||||
|
"Productivity"
|
||||||
|
],
|
||||||
|
"resources": {
|
||||||
|
"credentialDocumentation": [
|
||||||
|
{
|
||||||
|
"url": "https://docs.n8n.io/credentials/google"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"primaryDocumentation": [
|
||||||
|
{
|
||||||
|
"url": "https://docs.n8n.io/nodes/n8n-nodes-base.googleCalendarTrigger/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
24
packages/nodes-base/nodes/Grafana/Grafana.node.json
Normal file
24
packages/nodes-base/nodes/Grafana/Grafana.node.json
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
"node": "n8n-nodes-base.grafana",
|
||||||
|
"nodeVersion": "1.0",
|
||||||
|
"codexVersion": "1.0",
|
||||||
|
"categories": [
|
||||||
|
"Development",
|
||||||
|
"Analytics"
|
||||||
|
],
|
||||||
|
"resources": {
|
||||||
|
"credentialDocumentation": [
|
||||||
|
{
|
||||||
|
"url": "https://docs.n8n.io/credentials/grafana"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"primaryDocumentation": [
|
||||||
|
{
|
||||||
|
"url": "https://docs.n8n.io/nodes/n8n-nodes-base.grafana/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"alias": [
|
||||||
|
"Prometheus"
|
||||||
|
]
|
||||||
|
}
|
|
@ -9,6 +9,10 @@ import {
|
||||||
NodeOperationError,
|
NodeOperationError,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
|
import {
|
||||||
|
OptionsWithUri,
|
||||||
|
} from 'request';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make an API request to Plivo.
|
* Make an API request to Plivo.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +36,10 @@ export async function plivoApiRequest(
|
||||||
throw new NodeOperationError(this.getNode(), 'No credentials returned!');
|
throw new NodeOperationError(this.getNode(), 'No credentials returned!');
|
||||||
}
|
}
|
||||||
|
|
||||||
const options = {
|
const options: OptionsWithUri = {
|
||||||
|
headers: {
|
||||||
|
'user-agent': 'plivo-n8n',
|
||||||
|
},
|
||||||
method,
|
method,
|
||||||
form: body,
|
form: body,
|
||||||
qs,
|
qs,
|
||||||
|
|
|
@ -12,6 +12,12 @@ import {
|
||||||
IDataObject, NodeApiError,
|
IDataObject, NodeApiError,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
|
export function FormatDueDatetime(ISOString: string): string {
|
||||||
|
// Assuming that the problem with incorrect date format was caused by milliseconds
|
||||||
|
// Replacing the last 5 characters of ISO-formatted string with just Z char
|
||||||
|
return ISOString.replace(new RegExp('.000Z$'), 'Z');
|
||||||
|
}
|
||||||
|
|
||||||
export async function todoistApiRequest(
|
export async function todoistApiRequest(
|
||||||
this:
|
this:
|
||||||
| IHookFunctions
|
| IHookFunctions
|
||||||
|
|
|
@ -13,6 +13,7 @@ import {
|
||||||
|
|
||||||
import {
|
import {
|
||||||
todoistApiRequest,
|
todoistApiRequest,
|
||||||
|
FormatDueDatetime,
|
||||||
} from './GenericFunctions';
|
} from './GenericFunctions';
|
||||||
|
|
||||||
interface IBodyCreateTask {
|
interface IBodyCreateTask {
|
||||||
|
@ -276,6 +277,13 @@ export class Todoist implements INodeType {
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Human defined task due date (ex.: “next Monday”, “Tomorrow”). Value is set using local (not UTC) time.',
|
description: 'Human defined task due date (ex.: “next Monday”, “Tomorrow”). Value is set using local (not UTC) time.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Due String Locale',
|
||||||
|
name: 'dueLang',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: '2-letter code specifying language in case due_string is not written in English.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Priority',
|
displayName: 'Priority',
|
||||||
name: 'priority',
|
name: 'priority',
|
||||||
|
@ -357,7 +365,7 @@ export class Todoist implements INodeType {
|
||||||
],
|
],
|
||||||
operation: [
|
operation: [
|
||||||
'getAll',
|
'getAll',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
|
@ -449,6 +457,13 @@ export class Todoist implements INodeType {
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Human defined task due date (ex.: “next Monday”, “Tomorrow”). Value is set using local (not UTC) time.',
|
description: 'Human defined task due date (ex.: “next Monday”, “Tomorrow”). Value is set using local (not UTC) time.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Due String Locale',
|
||||||
|
name: 'dueLang',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: '2-letter code specifying language in case due_string is not written in English.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Labels',
|
displayName: 'Labels',
|
||||||
name: 'labels',
|
name: 'labels',
|
||||||
|
@ -573,13 +588,17 @@ export class Todoist implements INodeType {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.dueDateTime) {
|
if (options.dueDateTime) {
|
||||||
body.due_datetime = options.dueDateTime as string;
|
body.due_datetime = FormatDueDatetime(options.dueDateTime as string);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.dueString) {
|
if (options.dueString) {
|
||||||
body.due_string = options.dueString as string;
|
body.due_string = options.dueString as string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.dueLang) {
|
||||||
|
body.due_lang = options.dueLang as string;
|
||||||
|
}
|
||||||
|
|
||||||
if (labels !== undefined && labels.length !== 0) {
|
if (labels !== undefined && labels.length !== 0) {
|
||||||
body.label_ids = labels;
|
body.label_ids = labels;
|
||||||
}
|
}
|
||||||
|
@ -670,13 +689,17 @@ export class Todoist implements INodeType {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (updateFields.dueDateTime) {
|
if (updateFields.dueDateTime) {
|
||||||
body.due_datetime = updateFields.dueDateTime as string;
|
body.due_datetime = FormatDueDatetime(updateFields.dueDateTime as string);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (updateFields.dueString) {
|
if (updateFields.dueString) {
|
||||||
body.due_string = updateFields.dueString as string;
|
body.due_string = updateFields.dueString as string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (updateFields.dueLang) {
|
||||||
|
body.due_lang = updateFields.dueLang as string;
|
||||||
|
}
|
||||||
|
|
||||||
if (updateFields.labels !== undefined &&
|
if (updateFields.labels !== undefined &&
|
||||||
Array.isArray(updateFields.labels) &&
|
Array.isArray(updateFields.labels) &&
|
||||||
updateFields.labels.length !== 0) {
|
updateFields.labels.length !== 0) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "n8n-nodes-base",
|
"name": "n8n-nodes-base",
|
||||||
"version": "0.150.0",
|
"version": "0.151.0",
|
||||||
"description": "Base nodes of n8n",
|
"description": "Base nodes of n8n",
|
||||||
"license": "SEE LICENSE IN LICENSE.md",
|
"license": "SEE LICENSE IN LICENSE.md",
|
||||||
"homepage": "https://n8n.io",
|
"homepage": "https://n8n.io",
|
||||||
|
|
Loading…
Reference in a new issue