mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
⬆️ Update packages to latest version on n8n-editor-ui
This commit is contained in:
@@ -21,14 +21,10 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
|
||||
import {
|
||||
IBinaryData,
|
||||
IBinaryKeyData,
|
||||
IRunData,
|
||||
IRunExecutionData,
|
||||
Workflow,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { nodeHelpers } from '@/components/mixins/nodeHelpers';
|
||||
|
||||
@@ -37,8 +37,6 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
|
||||
import { restApi } from '@/components/mixins/restApi';
|
||||
import { ICredentialsResponse } from '@/Interface';
|
||||
import { nodeHelpers } from '@/components/mixins/nodeHelpers';
|
||||
@@ -72,7 +70,7 @@ export default mixins(
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
dialogVisible (newValue, oldValue) {
|
||||
dialogVisible (newValue) {
|
||||
if (newValue) {
|
||||
this.loadCredentials();
|
||||
this.loadCredentialTypes();
|
||||
@@ -146,9 +144,8 @@ export default mixins(
|
||||
return;
|
||||
}
|
||||
|
||||
let result;
|
||||
try {
|
||||
result = await this.restApi().deleteCredentials(credential.id!);
|
||||
await this.restApi().deleteCredentials(credential.id!);
|
||||
} catch (error) {
|
||||
this.$showError(error, 'Problem deleting credentials', 'There was a problem deleting the credentials:');
|
||||
return;
|
||||
|
||||
@@ -160,6 +160,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import { MessageBoxInputData } from 'element-ui/types/message-box';
|
||||
|
||||
import {
|
||||
IExecutionResponse,
|
||||
@@ -349,7 +350,7 @@ export default mixins(
|
||||
cancelButtonText: 'Cancel',
|
||||
inputErrorMessage: 'Invalid URL',
|
||||
inputPattern: /^http[s]?:\/\/.*\.json$/i,
|
||||
});
|
||||
}) as MessageBoxInputData;
|
||||
|
||||
this.$root.$emit('importWorkflowUrl', { url: promptResponse.value });
|
||||
} catch (e) {}
|
||||
@@ -361,7 +362,7 @@ export default mixins(
|
||||
inputValue: this.workflowName,
|
||||
confirmButtonText: 'Rename',
|
||||
cancelButtonText: 'Cancel',
|
||||
}
|
||||
},
|
||||
)
|
||||
.then((data) => {
|
||||
// @ts-ignore
|
||||
|
||||
@@ -123,7 +123,7 @@ export default mixins(
|
||||
},
|
||||
getArgument (
|
||||
argumentName: string,
|
||||
parameter: INodeProperties
|
||||
parameter: INodeProperties,
|
||||
): string | number | boolean | undefined {
|
||||
if (parameter.typeOptions === undefined) {
|
||||
return undefined;
|
||||
|
||||
@@ -190,7 +190,7 @@ export default mixins(
|
||||
key: fullpath,
|
||||
allowParentSelect: true,
|
||||
dataType: 'array',
|
||||
} as IVariableSelectorOption
|
||||
} as IVariableSelectorOption,
|
||||
);
|
||||
} else if (typeof inputData === 'object') {
|
||||
const tempValue: IVariableSelectorOption[] = [];
|
||||
@@ -207,7 +207,7 @@ export default mixins(
|
||||
key: fullpath,
|
||||
allowParentSelect: true,
|
||||
dataType: 'object',
|
||||
} as IVariableSelectorOption
|
||||
} as IVariableSelectorOption,
|
||||
);
|
||||
}
|
||||
} else {
|
||||
@@ -222,7 +222,7 @@ export default mixins(
|
||||
name: propertyName,
|
||||
key: fullpath,
|
||||
value: inputData,
|
||||
} as IVariableSelectorOption
|
||||
} as IVariableSelectorOption,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -294,7 +294,7 @@ export default mixins(
|
||||
{
|
||||
name: 'JSON',
|
||||
options: this.sortOptions(jsonDataOptions),
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -321,7 +321,7 @@ export default mixins(
|
||||
name: propertyName,
|
||||
key: `$node["${nodeName}"].binary.${dataPropertyName}.${propertyName}`,
|
||||
value: outputData.binary![dataPropertyName][propertyName],
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -332,7 +332,7 @@ export default mixins(
|
||||
key: `$node["${nodeName}"].binary.${dataPropertyName}`,
|
||||
options: this.sortOptions(binaryPropertyData),
|
||||
allowParentSelect: true,
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -343,7 +343,7 @@ export default mixins(
|
||||
key: `$node["${nodeName}"].binary`,
|
||||
options: this.sortOptions(binaryData),
|
||||
allowParentSelect: true,
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -476,7 +476,7 @@ export default mixins(
|
||||
{
|
||||
name: 'Input Data',
|
||||
options: this.sortOptions(tempOutputData),
|
||||
}
|
||||
},
|
||||
);
|
||||
} else {
|
||||
// Data is to large so do not add
|
||||
@@ -488,7 +488,7 @@ export default mixins(
|
||||
name: '[Data to large]',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -504,14 +504,14 @@ export default mixins(
|
||||
{
|
||||
name: 'Parameters',
|
||||
options: this.sortOptions(this.getNodeParameters(activeNode.name, initialPath, skipParameter, filterText) as IVariableSelectorOption[]),
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
returnData.push(
|
||||
{
|
||||
name: 'Current Node',
|
||||
options: this.sortOptions(currentNodeData),
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
// Add the input data
|
||||
@@ -562,7 +562,7 @@ export default mixins(
|
||||
{
|
||||
name: 'Output Data',
|
||||
options: this.sortOptions(tempOutputData),
|
||||
} as IVariableSelectorOption
|
||||
} as IVariableSelectorOption,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -571,7 +571,7 @@ export default mixins(
|
||||
{
|
||||
name: nodeName,
|
||||
options: this.sortOptions(nodeOptions),
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -579,7 +579,7 @@ export default mixins(
|
||||
{
|
||||
name: 'Nodes',
|
||||
options: this.sortOptions(allNodesData),
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
// Remove empty entries and return
|
||||
|
||||
@@ -158,7 +158,7 @@ export default mixins(
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
);
|
||||
</script>
|
||||
|
||||
|
||||
@@ -104,13 +104,13 @@ export default mixins(
|
||||
workflowData.updatedAt = this.convertToDisplayDate(workflowData.updatedAt as number);
|
||||
});
|
||||
this.isDataLoading = false;
|
||||
}
|
||||
},
|
||||
)
|
||||
.catch(
|
||||
(error: Error) => {
|
||||
this.$showError(error, 'Problem loading workflows', 'There was a problem loading the workflows:');
|
||||
this.isDataLoading = false;
|
||||
}
|
||||
},
|
||||
);
|
||||
},
|
||||
workflowActiveChanged (data: { id: string, active: boolean }) {
|
||||
|
||||
@@ -185,7 +185,7 @@ export default mixins(
|
||||
key: 'none',
|
||||
value: 'Do not save',
|
||||
},
|
||||
]
|
||||
],
|
||||
);
|
||||
},
|
||||
async loadSaveDataSuccessExecutionOptions () {
|
||||
@@ -204,7 +204,7 @@ export default mixins(
|
||||
key: 'none',
|
||||
value: 'Do not save',
|
||||
},
|
||||
]
|
||||
],
|
||||
);
|
||||
},
|
||||
async loadSaveManualOptions () {
|
||||
|
||||
@@ -63,7 +63,7 @@ export const genericHelpers = mixins(showMessage).extend({
|
||||
text: 'Loading',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(255, 255, 255, 0.8)',
|
||||
}
|
||||
},
|
||||
);
|
||||
},
|
||||
stopLoading () {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Vue from 'vue';
|
||||
import { parse } from 'flatted';
|
||||
|
||||
import axios, { AxiosRequestConfig } from 'axios';
|
||||
import axios, { AxiosRequestConfig, Method } from 'axios';
|
||||
import {
|
||||
IActivationError,
|
||||
ICredentialsDecryptedResponse,
|
||||
@@ -94,7 +94,7 @@ export const restApi = Vue.extend({
|
||||
restApi (): IRestApi {
|
||||
const self = this;
|
||||
return {
|
||||
async makeRestApiRequest (method: string, endpoint: string, data?: IDataObject): Promise<any> { // tslint:disable-line:no-any
|
||||
async makeRestApiRequest (method: Method, endpoint: string, data?: IDataObject): Promise<any> { // tslint:disable-line:no-any
|
||||
try {
|
||||
const options: AxiosRequestConfig = {
|
||||
method,
|
||||
|
||||
@@ -370,7 +370,7 @@ export const workflowHelpers = mixins(
|
||||
{
|
||||
confirmButtonText: 'Save',
|
||||
cancelButtonText: 'Cancel',
|
||||
}
|
||||
},
|
||||
)
|
||||
.then((data) => {
|
||||
// @ts-ignore
|
||||
@@ -403,7 +403,7 @@ export const workflowHelpers = mixins(
|
||||
if (currentWorkflow === undefined || withNewName === true) {
|
||||
// Workflow is new or is supposed to get saved under a new name
|
||||
// so create a new entry in database
|
||||
workflowData.name = workflowName.trim() as string;
|
||||
workflowData.name = workflowName!.trim() as string;
|
||||
|
||||
if (withNewName === true) {
|
||||
// If an existing workflow gets resaved with a new name
|
||||
|
||||
@@ -29,7 +29,7 @@ export const workflowSave = mixins(
|
||||
{
|
||||
confirmButtonText: 'Save',
|
||||
cancelButtonText: 'Cancel',
|
||||
}
|
||||
},
|
||||
)
|
||||
.then((data) => {
|
||||
// @ts-ignore
|
||||
@@ -62,7 +62,7 @@ export const workflowSave = mixins(
|
||||
if (currentWorkflow === undefined || withNewName === true) {
|
||||
// Workflow is new or is supposed to get saved under a new name
|
||||
// so create a new entry in database
|
||||
workflowData.name = workflowName.trim() as string;
|
||||
workflowData.name = workflowName!.trim() as string;
|
||||
|
||||
if (withNewName === true) {
|
||||
// If an existing workflow gets resaved with a new name
|
||||
|
||||
@@ -102,6 +102,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import { MessageBoxInputData } from 'element-ui/types/message-box';
|
||||
import { jsPlumb, Endpoint, OnConnectionBindInfo } from 'jsplumb';
|
||||
import { NODE_NAME_PREFIX, PLACEHOLDER_EMPTY_WORKFLOW_ID } from '@/constants';
|
||||
import { copyPaste } from '@/components/mixins/copyPaste';
|
||||
@@ -943,7 +944,7 @@ export default mixins(
|
||||
// newNodeData.position = [activeNode.position[0], activeNode.position[1] + 60];
|
||||
newNodeData.position = this.getNewNodePosition(
|
||||
[lastSelectedNode.position[0] + 150, lastSelectedNode.position[1]],
|
||||
[100, 0]
|
||||
[100, 0],
|
||||
);
|
||||
} else {
|
||||
// If no node is active find a free spot
|
||||
@@ -970,7 +971,7 @@ export default mixins(
|
||||
|
||||
// Add connections of active node to newly created one
|
||||
let connections = this.$store.getters.connectionsByNodeName(
|
||||
lastSelectedNode.name
|
||||
lastSelectedNode.name,
|
||||
);
|
||||
connections = JSON.parse(JSON.stringify(connections));
|
||||
|
||||
@@ -1406,7 +1407,7 @@ export default mixins(
|
||||
|
||||
newNodeData.position = this.getNewNodePosition(
|
||||
[node.position[0], node.position[1] + 150],
|
||||
[0, 150]
|
||||
[0, 150],
|
||||
);
|
||||
|
||||
await this.addNodes([newNodeData]);
|
||||
@@ -1504,7 +1505,7 @@ export default mixins(
|
||||
nameInput.select();
|
||||
}
|
||||
|
||||
const promptResponse = await promptResponsePromise;
|
||||
const promptResponse = await promptResponsePromise as MessageBoxInputData;
|
||||
|
||||
this.renameNode(currentName, promptResponse.value);
|
||||
} catch (e) {}
|
||||
@@ -1602,7 +1603,7 @@ export default mixins(
|
||||
for (const type of Object.keys(connections[sourceNode])) {
|
||||
for (let sourceIndex = 0; sourceIndex < connections[sourceNode][type].length; sourceIndex++) {
|
||||
connections[sourceNode][type][sourceIndex].forEach((
|
||||
targetData
|
||||
targetData,
|
||||
) => {
|
||||
connectionData = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user