refactor(editor-ui): leverage the editor url in frontend (#4085)

* refactor(editor-ui): remove unused interfaces

* refactor(editor-ui): add urlBaseEditor setting to application state

* fix(editor-ui): webhook urls for test and production

* fix(editor-ui): jsPlumb Anchor interface
This commit is contained in:
Csaba Tuncsik
2022-09-13 09:54:23 +02:00
committed by GitHub
parent f1a569791d
commit c4fd8ce28b
3 changed files with 12 additions and 9 deletions

View File

@@ -6,14 +6,10 @@ import {
ICredentialsEncrypted,
ICredentialType,
IDataObject,
ILoadOptions,
INode,
INodeCredentials,
INodeIssues,
INodeParameters,
INodePropertyOptions,
INodeTypeDescription,
INodeTypeNameVersion,
IPinData,
IRunExecutionData,
IRun,
@@ -37,6 +33,7 @@ declare module 'jsplumb' {
outlineWidth?: number;
}
// Extend jsPlumb Anchor interface
interface Anchor {
lastReturnValue: number[];
}
@@ -140,7 +137,6 @@ export interface INodeUpdatePropertiesInformation {
export type XYPosition = [number, number];
export type MessageType = 'success' | 'warning' | 'info' | 'error';
export interface INodeUi extends INode {
position: XYPosition;
color?: string;
@@ -413,8 +409,6 @@ export interface IExecutionDeleteFilter {
ids?: string[];
}
export type IPushDataType = IPushData['type'];
export type IPushData =
| PushDataExecutionFinished
| PushDataExecutionStarted
@@ -700,6 +694,7 @@ export interface IN8nUISettings {
oauth1: string;
oauth2: string;
};
urlBaseEditor: string;
urlBaseWebhook: string;
versionCli: string;
n8nMetadata?: {
@@ -878,6 +873,7 @@ export interface IRootState {
nodeViewMoveInProgress: boolean;
selectedNodes: INodeUi[];
sessionId: string;
urlBaseEditor: string;
urlBaseWebhook: string;
workflow: IWorkflowDb;
sidebarMenuItems: IMenuItem[];