mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
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:
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user