n8n-editor-ui 1.66.0 → 1.68.0
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/dist/assets/{AuthView-31vu0x_3.js → AuthView-C7b2xzS9.js} +17 -19
- package/dist/assets/CanvasChat-DKeWqqZz.css +730 -0
- package/dist/assets/CanvasChat-QctJb8ta.js +4166 -0
- package/dist/assets/{CanvasControls-DkT1iClJ.js → CanvasControls-raoYims4.js} +1 -1
- package/dist/assets/{ChangePasswordView-DkhZAh4j.js → ChangePasswordView-BBju88Nm.js} +2 -2
- package/dist/assets/CollectionParameter-DNJAimAt.js +4 -0
- package/dist/assets/{CredentialsView-Du-lMwPW.js → CredentialsView-BfYXjOVw.js} +11 -10
- package/dist/assets/{ErrorView-CROJIl1H.js → ErrorView-BhPrjw7c.js} +1 -1
- package/dist/assets/{ExecutionsFilter-BecTg03r.css → ExecutionsTime-DVxRt-Pz.css} +6 -6
- package/dist/assets/{ExecutionsFilter-132FKb5o.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-Ba-at9rw.js} +43 -43
- package/dist/assets/{ExecutionsView-B41cgHPD.js → ExecutionsView-Dcw07XZ-.js} +26 -31
- package/dist/assets/{ExecutionsView-Dfy6JMwb.css → ExecutionsView-DlxsqdiC.css} +44 -38
- package/dist/assets/{FileSaver.min-B3lWZPMp.js → FileSaver.min-CKlTVpWB.js} +1 -1
- package/dist/assets/FixedCollectionParameter-CkI6mCZG.js +334 -0
- package/dist/assets/{FixedCollectionParameter-fI2wTyfY.css → FixedCollectionParameter-DzOGMEdq.css} +10 -10
- package/dist/assets/{ForgotMyPasswordView-DKrE7dUn.js → ForgotMyPasswordView--eKPrTSW.js} +4 -3
- package/dist/assets/{MainHeader-CW31WCmm.js → MainHeader-Btek9DoL.js} +195 -118
- package/dist/assets/{MainHeader-Bc5G9_Uq.css → MainHeader-DJdd17Nh.css} +36 -11
- package/dist/assets/{MainSidebar-cNW0UJBC.css → MainSidebar-BRYJRpOA.css} +2 -2
- package/dist/assets/{MainSidebar-Dny90RtO.js → MainSidebar-CRjg4yDv.js} +7 -13
- package/dist/assets/{NodeCreation-BqSkxffS.js → NodeCreation-CDpNw3BL.js} +14 -11
- package/dist/assets/{NodeCreator-CoqcSKC-.js → NodeCreator-DPpQXLHf.js} +79 -65
- package/dist/assets/{NodeViewSwitcher-C1Gp-jKb.js → NodeViewSwitcher-CNfOOUof.js} +2891 -2905
- package/dist/assets/{NodeViewSwitcher-B8VPj4Rs.css → NodeViewSwitcher-DuVIKqpm.css} +185 -184
- package/dist/assets/{ProjectCardBadge-kHyKG50e.js → ProjectCardBadge-DzaTsr93.js} +1 -1
- package/dist/assets/{ResourceListHeader-DgE1VPUF.css → ProjectHeader-09VQWBZH.css} +5 -3
- package/dist/assets/ProjectHeader-wdvHJxbT.js +196 -0
- package/dist/assets/{ProjectSettings-BohhQ-z6.js → ProjectSettings-B6j0VJK5.js} +7 -36
- package/dist/assets/PushConnectionTracker.vue_vue_type_script_setup_true_lang-ByoMju5L.js +39 -0
- package/dist/assets/ResourcesListLayout-9Vpyt6Ec.js +662 -0
- package/dist/assets/{ResourcesListLayout-Bw99IFlO.css → ResourcesListLayout-CuA8O7do.css} +8 -8
- package/dist/assets/{RunDataJson-CUsbBWaI.js → RunDataJson-sPhT7c2h.js} +12 -12
- package/dist/assets/{RunDataJsonActions-Bnn0o9WH.js → RunDataJsonActions-DiMvLis_.js} +128 -159
- package/dist/assets/{RunDataSearch-BiygytJ8.js → RunDataSearch-CF_rpBKx.js} +2 -2
- package/dist/assets/RunDataTable-T52TXUHR.js +564 -0
- package/dist/assets/{SamlOnboarding-BXYS2fQg.js → SamlOnboarding-BCn53xtf.js} +2 -2
- package/dist/assets/SettingsApiView-DumvK072.js +227 -0
- package/dist/assets/{SettingsCommunityNodesView-BjakfOB1.js → SettingsCommunityNodesView-Db787Jar.js} +185 -195
- package/dist/assets/{SettingsExternalSecrets-BGIt9OQy.js → SettingsExternalSecrets-DKB2o2Dq.js} +3 -3
- package/dist/assets/{SettingsLdapView-DBY4YyYE.js → SettingsLdapView-BoKoCT5V.js} +3 -3
- package/dist/assets/SettingsLogStreamingView-BGX39Unz.js +500 -0
- package/dist/assets/{SettingsPersonalView-CgzznKXi.js → SettingsPersonalView-fTCeSJfu.js} +1 -1
- package/dist/assets/{SettingsSourceControl-DNWFyNrX.js → SettingsSourceControl-_G83P363.js} +3 -3
- package/dist/assets/{SettingsSso-B8oke872.js → SettingsSso-Bn48qAiX.js} +3 -3
- package/dist/assets/{SettingsUsageAndPlan-BUUYApK_.js → SettingsUsageAndPlan-DZkS0RP4.js} +4 -3
- package/dist/assets/{SettingsUsageAndPlan-P6SS2mWq.css → SettingsUsageAndPlan-vijI-va0.css} +3 -3
- package/dist/assets/{SettingsUsersView-DyuP8V6k.js → SettingsUsersView-BUh2iKEW.js} +4 -3
- package/dist/assets/{SettingsView-CD83Adan.js → SettingsView-D_S4x7XG.js} +2 -30
- package/dist/assets/{SetupView-C8XYMj2N.js → SetupView-BenKVU0l.js} +2 -2
- package/dist/assets/{SetupWorkflowCredentialsButton-u1qhjj5K.js → SetupWorkflowCredentialsButton-DKr9ZPLE.js} +1 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-DdxqCGcl.js → SetupWorkflowFromTemplateView-Ce1R_CDh.js} +3 -3
- package/dist/assets/{SigninView-CGQ20O_c.js → SigninView-xl5aJqka.js} +4 -3
- package/dist/assets/{SignoutView-BZwBBglt.js → SignoutView-Bscz6u1Y.js} +1 -1
- package/dist/assets/{SignupView-BCT6dhhZ.js → SignupView-CZN8EhJV.js} +4 -3
- package/dist/assets/TemplateDetails-BAQ3vBNJ.js +179 -0
- package/dist/assets/TemplateList-DD7sqnpI.js +371 -0
- package/dist/assets/{TemplatesCollectionView-BxBSljqH.js → TemplatesCollectionView-CG3ZoY8i.js} +10 -10
- package/dist/assets/{TemplatesSearchView-kFcPH-ZH.js → TemplatesSearchView-22jrqI8X.js} +530 -577
- package/dist/assets/{TemplatesView-TPTpSdeD.js → TemplatesView-BZFc4hZ1.js} +32 -37
- package/dist/assets/{TemplatesWorkflowView-8NdGLWj7.js → TemplatesWorkflowView-DkXtdhUJ.js} +5 -5
- package/dist/assets/{VariablesView-CHXdt5-z.css → VariablesView-BPKo50HJ.css} +18 -18
- package/dist/assets/{VariablesView-C1NxBxBQ.js → VariablesView-DHu4ZoMN.js} +5 -5
- package/dist/assets/WorkerView-BfxdQiAc.js +148 -0
- package/dist/assets/WorkerView-Dm0b18Mh.css +22 -0
- package/dist/assets/{WorkflowActivator-CalsATsI.js → WorkflowActivator-CvdQVEtW.js} +2 -2
- package/dist/assets/{WorkflowExecutionsInfoAccordion-rUnvuY-5.js → WorkflowExecutionsInfoAccordion-D2GFnpq1.js} +1 -1
- package/dist/assets/{WorkflowExecutionsLandingPage-C4K7kfqv.js → WorkflowExecutionsLandingPage-D2bvAsxg.js} +2 -2
- package/dist/assets/{WorkflowExecutionsPreview-BO31AO7v.js → WorkflowExecutionsPreview-D6WBsbAG.js} +5 -5
- package/dist/assets/{WorkflowExecutionsView-B8x2-iOd.css → WorkflowExecutionsView-CZKkPKqJ.css} +9 -1
- package/dist/assets/{WorkflowExecutionsView-B-5zbx_n.js → WorkflowExecutionsView-DI6r5OvZ.js} +6 -6
- package/dist/assets/{WorkflowHistory-uvlFDwTJ.js → WorkflowHistory-Dc1f2Tsn.js} +5 -4
- package/dist/assets/{WorkflowOnboardingView-B869wGVb.js → WorkflowOnboardingView-DyxvWfZ7.js} +1 -1
- package/dist/assets/{WorkflowPreview-BlzWpiO1.js → WorkflowPreview-hC6wSe-Y.js} +1 -1
- package/dist/assets/{WorkflowsView-IdgMnIZY.js → WorkflowsView-SIDgO47b.js} +10 -10
- package/dist/assets/buttons.esm-BOkmSohe.js +477 -0
- package/dist/assets/{dateFormatter-BCrxaIdG.js → dateFormatter-BRi2wSZ-.js} +1 -1
- package/dist/assets/{index-QAq8Sa9R.js → index-40I5DMGP.js} +196843 -202970
- package/dist/assets/{index-DaeOVPzE.css → index-Dr3zFZlC.css} +136 -594
- package/dist/assets/{pushConnection.store-Cdssd0uJ.js → pushConnection.store-w_WxpOeH.js} +1 -1
- package/dist/assets/{templateActions-ClPy1BRa.js → templateActions-D4EHdA9n.js} +1 -1
- package/dist/assets/{useBugReporting-Bvr7bSQt.js → useBugReporting-CFOQlQpP.js} +1 -1
- package/dist/assets/{useExecutionDebugging-CwyVwJqO.js → useExecutionDebugging-LQQWXhPj.js} +3 -2
- package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-CYMqjryg.js → useExecutionHelpers-CXGl_HIp.js} +55 -55
- package/dist/assets/{useNodeViewVersionSwitcher-BPNKvsXw.js → useNodeViewVersionSwitcher-BLo5Qp-N.js} +1 -1
- package/dist/assets/{usePushConnection-DDXmzoG8.js → usePushConnection-B5ija5f5.js} +9 -10
- package/dist/assets/{RunDataAi-x30tU8-0.css → useRunWorkflow-DH7ZzA8t.css} +97 -57
- package/dist/assets/useRunWorkflow-MrEKURG4.js +3710 -0
- package/dist/assets/{useWorkflowActivate-DKPQP7qy.js → useWorkflowActivate-CKedJlgZ.js} +1 -1
- package/dist/index.html +3 -2
- package/index.html +1 -0
- package/package.json +1 -1
- package/vite.config.mts +1 -17
- package/dist/assets/CollectionParameter-BDKfoIMJ.js +0 -4
- package/dist/assets/FixedCollectionParameter-DXh-j7zB.js +0 -355
- package/dist/assets/ProjectTabs-D-87NPFl.js +0 -88
- package/dist/assets/ProjectTabs-DjoIePoM.css +0 -3
- package/dist/assets/PushConnectionTracker-Bhnghrmf.js +0 -38
- package/dist/assets/ResourceListHeader-Bs6GLg32.js +0 -66
- package/dist/assets/ResourcesListLayout-ByBNP70B.js +0 -800
- package/dist/assets/RunDataAi-CYTNyRq_.js +0 -1539
- package/dist/assets/RunDataTable--RIqj8DU.js +0 -608
- package/dist/assets/SettingsApiView-DoibCiLo.js +0 -255
- package/dist/assets/SettingsFakeDoorView-DpKZ4qWG.css +0 -14
- package/dist/assets/SettingsFakeDoorView-DwXDXgon.js +0 -44
- package/dist/assets/SettingsLogStreamingView-DHQWns6I.js +0 -519
- package/dist/assets/TemplateDetails-BsLVCpdi.js +0 -199
- package/dist/assets/TemplateList-Bn7ePHhc.js +0 -433
- package/dist/assets/WorkerView-Bj1cvzLg.js +0 -825
- package/dist/assets/WorkerView-C_d54L0W.css +0 -181
- package/dist/assets/cloud-B6bxVT9F.js +0 -37
|
@@ -1,519 +0,0 @@
|
|
|
1
|
-
import { d as defineComponent, ak as useMessage, a7 as EnterpriseEditionFeature, dF as deepCopy, hN as defaultMessageEventBusDestinationOptions, e0 as mapStores, hO as useLogStreamingStore, ad as MODAL_CONFIRM, _ as _export_sfc, c as openBlock, e as createBlock, w as withCtx, j as createBaseVNode, i as createVNode, k as createTextVNode, t as toDisplayString, n as normalizeClass, l as resolveComponent, v as createEventBus, a3 as useDocumentTitle, dt as useCredentialsStore, K as useUIStore, T as useWorkflowsStore, m as useSettingsStore, am as hasPermission, e$ as v4, C as nextTick, hP as LOG_STREAM_MODAL_KEY, h as createElementBlock, F as Fragment, f as createCommentVNode, ar as withDirectives, z as renderList, c9 as resolveDirective } from "./index-QAq8Sa9R.js";
|
|
2
|
-
const DESTINATION_LIST_ITEM_ACTIONS = {
|
|
3
|
-
OPEN: "open",
|
|
4
|
-
DELETE: "delete"
|
|
5
|
-
};
|
|
6
|
-
const _sfc_main$1 = defineComponent({
|
|
7
|
-
components: {},
|
|
8
|
-
setup() {
|
|
9
|
-
return {
|
|
10
|
-
...useMessage()
|
|
11
|
-
};
|
|
12
|
-
},
|
|
13
|
-
data() {
|
|
14
|
-
return {
|
|
15
|
-
EnterpriseEditionFeature,
|
|
16
|
-
nodeParameters: {}
|
|
17
|
-
};
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
eventBus: {
|
|
21
|
-
type: Object
|
|
22
|
-
},
|
|
23
|
-
destination: {
|
|
24
|
-
type: Object,
|
|
25
|
-
required: true,
|
|
26
|
-
default: deepCopy(defaultMessageEventBusDestinationOptions)
|
|
27
|
-
},
|
|
28
|
-
readonly: Boolean
|
|
29
|
-
},
|
|
30
|
-
mounted() {
|
|
31
|
-
var _a;
|
|
32
|
-
this.nodeParameters = Object.assign(
|
|
33
|
-
deepCopy(defaultMessageEventBusDestinationOptions),
|
|
34
|
-
this.destination
|
|
35
|
-
);
|
|
36
|
-
(_a = this.eventBus) == null ? void 0 : _a.on("destinationWasSaved", this.onDestinationWasSaved);
|
|
37
|
-
},
|
|
38
|
-
beforeUnmount() {
|
|
39
|
-
var _a;
|
|
40
|
-
(_a = this.eventBus) == null ? void 0 : _a.off("destinationWasSaved", this.onDestinationWasSaved);
|
|
41
|
-
},
|
|
42
|
-
computed: {
|
|
43
|
-
...mapStores(useLogStreamingStore),
|
|
44
|
-
actions() {
|
|
45
|
-
const actions = [
|
|
46
|
-
{
|
|
47
|
-
label: this.$locale.baseText("workflows.item.open"),
|
|
48
|
-
value: DESTINATION_LIST_ITEM_ACTIONS.OPEN
|
|
49
|
-
}
|
|
50
|
-
];
|
|
51
|
-
if (!this.readonly) {
|
|
52
|
-
actions.push({
|
|
53
|
-
label: this.$locale.baseText("workflows.item.delete"),
|
|
54
|
-
value: DESTINATION_LIST_ITEM_ACTIONS.DELETE
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
return actions;
|
|
58
|
-
},
|
|
59
|
-
typeLabelName() {
|
|
60
|
-
return `settings.log-streaming.${this.destination.__type}`;
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
methods: {
|
|
64
|
-
onDestinationWasSaved() {
|
|
65
|
-
const updatedDestination = this.logStreamingStore.getDestination(this.destination.id);
|
|
66
|
-
if (updatedDestination) {
|
|
67
|
-
this.nodeParameters = Object.assign(
|
|
68
|
-
deepCopy(defaultMessageEventBusDestinationOptions),
|
|
69
|
-
this.destination
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
async onClick(event) {
|
|
74
|
-
const cardActions2 = this.$refs.cardActions;
|
|
75
|
-
const target = event.target;
|
|
76
|
-
if (cardActions2 === target || (cardActions2 == null ? void 0 : cardActions2.contains(target)) || (target == null ? void 0 : target.contains(cardActions2))) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
this.$emit("edit", this.destination.id);
|
|
80
|
-
},
|
|
81
|
-
onEnabledSwitched(state) {
|
|
82
|
-
this.nodeParameters.enabled = state;
|
|
83
|
-
void this.saveDestination();
|
|
84
|
-
},
|
|
85
|
-
async saveDestination() {
|
|
86
|
-
await this.logStreamingStore.saveDestination(this.nodeParameters);
|
|
87
|
-
},
|
|
88
|
-
async onAction(action) {
|
|
89
|
-
if (action === DESTINATION_LIST_ITEM_ACTIONS.OPEN) {
|
|
90
|
-
this.$emit("edit", this.destination.id);
|
|
91
|
-
} else if (action === DESTINATION_LIST_ITEM_ACTIONS.DELETE) {
|
|
92
|
-
const deleteConfirmed = await this.confirm(
|
|
93
|
-
this.$locale.baseText("settings.log-streaming.destinationDelete.message", {
|
|
94
|
-
interpolate: { destinationName: this.destination.label }
|
|
95
|
-
}),
|
|
96
|
-
this.$locale.baseText("settings.log-streaming.destinationDelete.headline"),
|
|
97
|
-
{
|
|
98
|
-
type: "warning",
|
|
99
|
-
confirmButtonText: this.$locale.baseText(
|
|
100
|
-
"settings.log-streaming.destinationDelete.confirmButtonText"
|
|
101
|
-
),
|
|
102
|
-
cancelButtonText: this.$locale.baseText(
|
|
103
|
-
"settings.log-streaming.destinationDelete.cancelButtonText"
|
|
104
|
-
)
|
|
105
|
-
}
|
|
106
|
-
);
|
|
107
|
-
if (deleteConfirmed !== MODAL_CONFIRM) {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
this.$emit("remove", this.destination.id);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
const cardLink = "_cardLink_r6102_1";
|
|
116
|
-
const activeStatusText = "_activeStatusText_r6102_11";
|
|
117
|
-
const cardHeading = "_cardHeading_r6102_19";
|
|
118
|
-
const cardDescription = "_cardDescription_r6102_25";
|
|
119
|
-
const cardActions = "_cardActions_r6102_32";
|
|
120
|
-
const style0$1 = {
|
|
121
|
-
cardLink,
|
|
122
|
-
activeStatusText,
|
|
123
|
-
cardHeading,
|
|
124
|
-
cardDescription,
|
|
125
|
-
cardActions
|
|
126
|
-
};
|
|
127
|
-
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
128
|
-
const _component_n8n_heading = resolveComponent("n8n-heading");
|
|
129
|
-
const _component_n8n_text = resolveComponent("n8n-text");
|
|
130
|
-
const _component_el_switch = resolveComponent("el-switch");
|
|
131
|
-
const _component_n8n_action_toggle = resolveComponent("n8n-action-toggle");
|
|
132
|
-
const _component_n8n_card = resolveComponent("n8n-card");
|
|
133
|
-
return openBlock(), createBlock(_component_n8n_card, {
|
|
134
|
-
class: normalizeClass(_ctx.$style.cardLink),
|
|
135
|
-
"data-test-id": "destination-card",
|
|
136
|
-
onClick: _ctx.onClick
|
|
137
|
-
}, {
|
|
138
|
-
header: withCtx(() => [
|
|
139
|
-
createBaseVNode("div", null, [
|
|
140
|
-
createVNode(_component_n8n_heading, {
|
|
141
|
-
tag: "h2",
|
|
142
|
-
bold: "",
|
|
143
|
-
class: normalizeClass(_ctx.$style.cardHeading)
|
|
144
|
-
}, {
|
|
145
|
-
default: withCtx(() => [
|
|
146
|
-
createTextVNode(toDisplayString(_ctx.destination.label), 1)
|
|
147
|
-
]),
|
|
148
|
-
_: 1
|
|
149
|
-
}, 8, ["class"]),
|
|
150
|
-
createBaseVNode("div", {
|
|
151
|
-
class: normalizeClass(_ctx.$style.cardDescription)
|
|
152
|
-
}, [
|
|
153
|
-
createVNode(_component_n8n_text, {
|
|
154
|
-
color: "text-light",
|
|
155
|
-
size: "small"
|
|
156
|
-
}, {
|
|
157
|
-
default: withCtx(() => [
|
|
158
|
-
createBaseVNode("span", null, toDisplayString(_ctx.$locale.baseText(_ctx.typeLabelName)), 1)
|
|
159
|
-
]),
|
|
160
|
-
_: 1
|
|
161
|
-
})
|
|
162
|
-
], 2)
|
|
163
|
-
])
|
|
164
|
-
]),
|
|
165
|
-
append: withCtx(() => [
|
|
166
|
-
createBaseVNode("div", {
|
|
167
|
-
ref: "cardActions",
|
|
168
|
-
class: normalizeClass(_ctx.$style.cardActions)
|
|
169
|
-
}, [
|
|
170
|
-
createBaseVNode("div", {
|
|
171
|
-
class: normalizeClass(_ctx.$style.activeStatusText),
|
|
172
|
-
"data-test-id": "destination-activator-status"
|
|
173
|
-
}, [
|
|
174
|
-
_ctx.nodeParameters.enabled ? (openBlock(), createBlock(_component_n8n_text, {
|
|
175
|
-
key: 0,
|
|
176
|
-
color: "success",
|
|
177
|
-
size: "small",
|
|
178
|
-
bold: ""
|
|
179
|
-
}, {
|
|
180
|
-
default: withCtx(() => [
|
|
181
|
-
createTextVNode(toDisplayString(_ctx.$locale.baseText("workflowActivator.active")), 1)
|
|
182
|
-
]),
|
|
183
|
-
_: 1
|
|
184
|
-
})) : (openBlock(), createBlock(_component_n8n_text, {
|
|
185
|
-
key: 1,
|
|
186
|
-
color: "text-base",
|
|
187
|
-
size: "small",
|
|
188
|
-
bold: ""
|
|
189
|
-
}, {
|
|
190
|
-
default: withCtx(() => [
|
|
191
|
-
createTextVNode(toDisplayString(_ctx.$locale.baseText("workflowActivator.inactive")), 1)
|
|
192
|
-
]),
|
|
193
|
-
_: 1
|
|
194
|
-
}))
|
|
195
|
-
], 2),
|
|
196
|
-
createVNode(_component_el_switch, {
|
|
197
|
-
class: "mr-s",
|
|
198
|
-
disabled: _ctx.readonly,
|
|
199
|
-
"model-value": _ctx.nodeParameters.enabled,
|
|
200
|
-
title: _ctx.nodeParameters.enabled ? _ctx.$locale.baseText("workflowActivator.deactivateWorkflow") : _ctx.$locale.baseText("workflowActivator.activateWorkflow"),
|
|
201
|
-
"active-color": "#13ce66",
|
|
202
|
-
"inactive-color": "#8899AA",
|
|
203
|
-
"data-test-id": "workflow-activate-switch",
|
|
204
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.onEnabledSwitched($event))
|
|
205
|
-
}, null, 8, ["disabled", "model-value", "title"]),
|
|
206
|
-
createVNode(_component_n8n_action_toggle, {
|
|
207
|
-
actions: _ctx.actions,
|
|
208
|
-
theme: "dark",
|
|
209
|
-
onAction: _ctx.onAction
|
|
210
|
-
}, null, 8, ["actions", "onAction"])
|
|
211
|
-
], 2)
|
|
212
|
-
]),
|
|
213
|
-
_: 1
|
|
214
|
-
}, 8, ["class", "onClick"]);
|
|
215
|
-
}
|
|
216
|
-
const cssModules$1 = {
|
|
217
|
-
"$style": style0$1
|
|
218
|
-
};
|
|
219
|
-
const EventDestinationCard = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__cssModules", cssModules$1]]);
|
|
220
|
-
const _sfc_main = defineComponent({
|
|
221
|
-
name: "SettingsLogStreamingView",
|
|
222
|
-
components: {
|
|
223
|
-
EventDestinationCard
|
|
224
|
-
},
|
|
225
|
-
props: {},
|
|
226
|
-
data() {
|
|
227
|
-
return {
|
|
228
|
-
eventBus: createEventBus(),
|
|
229
|
-
destinations: Array,
|
|
230
|
-
disableLicense: false,
|
|
231
|
-
allDestinations: [],
|
|
232
|
-
documentTitle: useDocumentTitle()
|
|
233
|
-
};
|
|
234
|
-
},
|
|
235
|
-
async mounted() {
|
|
236
|
-
this.documentTitle.set(this.$locale.baseText("settings.log-streaming.heading"));
|
|
237
|
-
if (!this.isLicensed) return;
|
|
238
|
-
await this.credentialsStore.fetchCredentialTypes(false);
|
|
239
|
-
await this.credentialsStore.fetchAllCredentials();
|
|
240
|
-
this.uiStore.nodeViewInitialized = false;
|
|
241
|
-
await this.getDestinationDataFromBackend();
|
|
242
|
-
this.logStreamingStore.$onAction(({ name, after }) => {
|
|
243
|
-
if (name === "removeDestination" || name === "updateDestination") {
|
|
244
|
-
after(async () => {
|
|
245
|
-
this.$forceUpdate();
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
this.eventBus.on("destinationWasSaved", this.onDestinationWasSaved);
|
|
250
|
-
this.eventBus.on("remove", this.onRemove);
|
|
251
|
-
this.eventBus.on("closing", this.onBusClosing);
|
|
252
|
-
},
|
|
253
|
-
beforeUnmount() {
|
|
254
|
-
this.eventBus.off("destinationWasSaved", this.onDestinationWasSaved);
|
|
255
|
-
this.eventBus.off("remove", this.onRemove);
|
|
256
|
-
this.eventBus.off("closing", this.onBusClosing);
|
|
257
|
-
},
|
|
258
|
-
computed: {
|
|
259
|
-
...mapStores(
|
|
260
|
-
useSettingsStore,
|
|
261
|
-
useLogStreamingStore,
|
|
262
|
-
useWorkflowsStore,
|
|
263
|
-
useUIStore,
|
|
264
|
-
useCredentialsStore
|
|
265
|
-
),
|
|
266
|
-
sortedItemKeysByLabel() {
|
|
267
|
-
var _a;
|
|
268
|
-
const sortedKeys = [];
|
|
269
|
-
for (const [key, value] of Object.entries(this.logStreamingStore.items)) {
|
|
270
|
-
sortedKeys.push({ key, label: ((_a = value.destination) == null ? void 0 : _a.label) ?? "Destination" });
|
|
271
|
-
}
|
|
272
|
-
return sortedKeys.sort((a, b) => a.label.localeCompare(b.label));
|
|
273
|
-
},
|
|
274
|
-
environment() {
|
|
275
|
-
return "production";
|
|
276
|
-
},
|
|
277
|
-
isLicensed() {
|
|
278
|
-
if (this.disableLicense) return false;
|
|
279
|
-
return this.settingsStore.isEnterpriseFeatureEnabled[EnterpriseEditionFeature.LogStreaming];
|
|
280
|
-
},
|
|
281
|
-
canManageLogStreaming() {
|
|
282
|
-
return hasPermission(["rbac"], { rbac: { scope: "logStreaming:manage" } });
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
methods: {
|
|
286
|
-
onDestinationWasSaved() {
|
|
287
|
-
this.$forceUpdate();
|
|
288
|
-
},
|
|
289
|
-
onBusClosing() {
|
|
290
|
-
this.workflowsStore.removeAllNodes({ setStateDirty: false, removePinData: true });
|
|
291
|
-
this.uiStore.stateIsDirty = false;
|
|
292
|
-
},
|
|
293
|
-
async getDestinationDataFromBackend() {
|
|
294
|
-
this.logStreamingStore.clearEventNames();
|
|
295
|
-
this.logStreamingStore.clearDestinations();
|
|
296
|
-
this.allDestinations = [];
|
|
297
|
-
const eventNamesData = await this.logStreamingStore.fetchEventNames();
|
|
298
|
-
if (eventNamesData) {
|
|
299
|
-
for (const eventName of eventNamesData) {
|
|
300
|
-
this.logStreamingStore.addEventName(eventName);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
const destinationData = await this.logStreamingStore.fetchDestinations();
|
|
304
|
-
if (destinationData) {
|
|
305
|
-
for (const destination of destinationData) {
|
|
306
|
-
this.logStreamingStore.addDestination(destination);
|
|
307
|
-
this.allDestinations.push(destination);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
this.$forceUpdate();
|
|
311
|
-
},
|
|
312
|
-
goToUpgrade() {
|
|
313
|
-
void this.uiStore.goToUpgrade("log-streaming", "upgrade-log-streaming");
|
|
314
|
-
},
|
|
315
|
-
storeHasItems() {
|
|
316
|
-
return this.logStreamingStore.items && Object.keys(this.logStreamingStore.items).length > 0;
|
|
317
|
-
},
|
|
318
|
-
async addDestination() {
|
|
319
|
-
const newDestination = deepCopy(defaultMessageEventBusDestinationOptions);
|
|
320
|
-
newDestination.id = v4();
|
|
321
|
-
this.logStreamingStore.addDestination(newDestination);
|
|
322
|
-
await nextTick();
|
|
323
|
-
this.uiStore.openModalWithData({
|
|
324
|
-
name: LOG_STREAM_MODAL_KEY,
|
|
325
|
-
data: {
|
|
326
|
-
destination: newDestination,
|
|
327
|
-
isNew: true,
|
|
328
|
-
eventBus: this.eventBus
|
|
329
|
-
}
|
|
330
|
-
});
|
|
331
|
-
},
|
|
332
|
-
async onRemove(destinationId) {
|
|
333
|
-
if (!destinationId) return;
|
|
334
|
-
await this.logStreamingStore.deleteDestination(destinationId);
|
|
335
|
-
const foundNode = this.workflowsStore.getNodeByName(destinationId);
|
|
336
|
-
if (foundNode) {
|
|
337
|
-
this.workflowsStore.removeNode(foundNode);
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
async onEdit(destinationId) {
|
|
341
|
-
if (!destinationId) return;
|
|
342
|
-
const editDestination = this.logStreamingStore.getDestination(destinationId);
|
|
343
|
-
if (editDestination) {
|
|
344
|
-
this.uiStore.openModalWithData({
|
|
345
|
-
name: LOG_STREAM_MODAL_KEY,
|
|
346
|
-
data: {
|
|
347
|
-
destination: editDestination,
|
|
348
|
-
isNew: false,
|
|
349
|
-
eventBus: this.eventBus
|
|
350
|
-
}
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
});
|
|
356
|
-
const header = "_header_brzxt_1";
|
|
357
|
-
const destinationItem = "_destinationItem_brzxt_11";
|
|
358
|
-
const style0 = {
|
|
359
|
-
header,
|
|
360
|
-
destinationItem
|
|
361
|
-
};
|
|
362
|
-
const _hoisted_1 = { class: "mb-2xl" };
|
|
363
|
-
const _hoisted_2 = { class: "ml-m" };
|
|
364
|
-
const _hoisted_3 = { class: "mb-l" };
|
|
365
|
-
const _hoisted_4 = { class: "mt-m text-right" };
|
|
366
|
-
const _hoisted_5 = {
|
|
367
|
-
key: 1,
|
|
368
|
-
"data-test-id": "action-box-licensed"
|
|
369
|
-
};
|
|
370
|
-
const _hoisted_6 = {
|
|
371
|
-
key: 0,
|
|
372
|
-
class: "mb-l"
|
|
373
|
-
};
|
|
374
|
-
const _hoisted_7 = { "data-test-id": "action-box-unlicensed" };
|
|
375
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
376
|
-
const _component_n8n_heading = resolveComponent("n8n-heading");
|
|
377
|
-
const _component_el_switch = resolveComponent("el-switch");
|
|
378
|
-
const _component_n8n_info_tip = resolveComponent("n8n-info-tip");
|
|
379
|
-
const _component_EventDestinationCard = resolveComponent("EventDestinationCard");
|
|
380
|
-
const _component_el_col = resolveComponent("el-col");
|
|
381
|
-
const _component_el_row = resolveComponent("el-row");
|
|
382
|
-
const _component_n8n_button = resolveComponent("n8n-button");
|
|
383
|
-
const _component_n8n_action_box = resolveComponent("n8n-action-box");
|
|
384
|
-
const _directive_n8n_html = resolveDirective("n8n-html");
|
|
385
|
-
return openBlock(), createElementBlock("div", null, [
|
|
386
|
-
createBaseVNode("div", {
|
|
387
|
-
class: normalizeClass(_ctx.$style.header)
|
|
388
|
-
}, [
|
|
389
|
-
createBaseVNode("div", _hoisted_1, [
|
|
390
|
-
createVNode(_component_n8n_heading, { size: "2xlarge" }, {
|
|
391
|
-
default: withCtx(() => [
|
|
392
|
-
createTextVNode(toDisplayString(_ctx.$locale.baseText(`settings.log-streaming.heading`)), 1)
|
|
393
|
-
]),
|
|
394
|
-
_: 1
|
|
395
|
-
}),
|
|
396
|
-
_ctx.environment !== "production" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
397
|
-
createBaseVNode("strong", _hoisted_2, "Disable License (" + toDisplayString(_ctx.environment) + ") ", 1),
|
|
398
|
-
createVNode(_component_el_switch, {
|
|
399
|
-
modelValue: _ctx.disableLicense,
|
|
400
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.disableLicense = $event),
|
|
401
|
-
size: "large",
|
|
402
|
-
"data-test-id": "disable-license-toggle"
|
|
403
|
-
}, null, 8, ["modelValue"])
|
|
404
|
-
], 64)) : createCommentVNode("", true)
|
|
405
|
-
])
|
|
406
|
-
], 2),
|
|
407
|
-
_ctx.isLicensed ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
408
|
-
createBaseVNode("div", _hoisted_3, [
|
|
409
|
-
createVNode(_component_n8n_info_tip, {
|
|
410
|
-
theme: "info",
|
|
411
|
-
type: "note"
|
|
412
|
-
}, {
|
|
413
|
-
default: withCtx(() => [
|
|
414
|
-
withDirectives(createBaseVNode("span", null, null, 512), [
|
|
415
|
-
[_directive_n8n_html, _ctx.$locale.baseText("settings.log-streaming.infoText")]
|
|
416
|
-
])
|
|
417
|
-
]),
|
|
418
|
-
_: 1
|
|
419
|
-
})
|
|
420
|
-
]),
|
|
421
|
-
_ctx.storeHasItems() ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
422
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortedItemKeysByLabel, (item) => {
|
|
423
|
-
return openBlock(), createBlock(_component_el_row, {
|
|
424
|
-
key: item.key,
|
|
425
|
-
gutter: 10,
|
|
426
|
-
class: normalizeClass(_ctx.$style.destinationItem)
|
|
427
|
-
}, {
|
|
428
|
-
default: withCtx(() => {
|
|
429
|
-
var _a;
|
|
430
|
-
return [
|
|
431
|
-
((_a = _ctx.logStreamingStore.items[item.key]) == null ? void 0 : _a.destination) ? (openBlock(), createBlock(_component_el_col, { key: 0 }, {
|
|
432
|
-
default: withCtx(() => {
|
|
433
|
-
var _a2;
|
|
434
|
-
return [
|
|
435
|
-
createVNode(_component_EventDestinationCard, {
|
|
436
|
-
destination: (_a2 = _ctx.logStreamingStore.items[item.key]) == null ? void 0 : _a2.destination,
|
|
437
|
-
"event-bus": _ctx.eventBus,
|
|
438
|
-
readonly: !_ctx.canManageLogStreaming,
|
|
439
|
-
onRemove: ($event) => {
|
|
440
|
-
var _a3, _b;
|
|
441
|
-
return _ctx.onRemove((_b = (_a3 = _ctx.logStreamingStore.items[item.key]) == null ? void 0 : _a3.destination) == null ? void 0 : _b.id);
|
|
442
|
-
},
|
|
443
|
-
onEdit: ($event) => {
|
|
444
|
-
var _a3, _b;
|
|
445
|
-
return _ctx.onEdit((_b = (_a3 = _ctx.logStreamingStore.items[item.key]) == null ? void 0 : _a3.destination) == null ? void 0 : _b.id);
|
|
446
|
-
}
|
|
447
|
-
}, null, 8, ["destination", "event-bus", "readonly", "onRemove", "onEdit"])
|
|
448
|
-
];
|
|
449
|
-
}),
|
|
450
|
-
_: 2
|
|
451
|
-
}, 1024)) : createCommentVNode("", true)
|
|
452
|
-
];
|
|
453
|
-
}),
|
|
454
|
-
_: 2
|
|
455
|
-
}, 1032, ["class"]);
|
|
456
|
-
}), 128)),
|
|
457
|
-
createBaseVNode("div", _hoisted_4, [
|
|
458
|
-
_ctx.canManageLogStreaming ? (openBlock(), createBlock(_component_n8n_button, {
|
|
459
|
-
key: 0,
|
|
460
|
-
size: "large",
|
|
461
|
-
onClick: _ctx.addDestination
|
|
462
|
-
}, {
|
|
463
|
-
default: withCtx(() => [
|
|
464
|
-
createTextVNode(toDisplayString(_ctx.$locale.baseText(`settings.log-streaming.add`)), 1)
|
|
465
|
-
]),
|
|
466
|
-
_: 1
|
|
467
|
-
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
468
|
-
])
|
|
469
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
470
|
-
createVNode(_component_n8n_action_box, {
|
|
471
|
-
"button-text": _ctx.$locale.baseText(`settings.log-streaming.add`),
|
|
472
|
-
"onClick:button": _ctx.addDestination
|
|
473
|
-
}, {
|
|
474
|
-
heading: withCtx(() => [
|
|
475
|
-
withDirectives(createBaseVNode("span", null, null, 512), [
|
|
476
|
-
[_directive_n8n_html, _ctx.$locale.baseText(`settings.log-streaming.addFirstTitle`)]
|
|
477
|
-
])
|
|
478
|
-
]),
|
|
479
|
-
_: 1
|
|
480
|
-
}, 8, ["button-text", "onClick:button"])
|
|
481
|
-
]))
|
|
482
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
483
|
-
_ctx.$locale.baseText("settings.log-streaming.infoText") ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
484
|
-
createVNode(_component_n8n_info_tip, {
|
|
485
|
-
theme: "info",
|
|
486
|
-
type: "note"
|
|
487
|
-
}, {
|
|
488
|
-
default: withCtx(() => [
|
|
489
|
-
withDirectives(createBaseVNode("span", null, null, 512), [
|
|
490
|
-
[_directive_n8n_html, _ctx.$locale.baseText("settings.log-streaming.infoText")]
|
|
491
|
-
])
|
|
492
|
-
]),
|
|
493
|
-
_: 1
|
|
494
|
-
})
|
|
495
|
-
])) : createCommentVNode("", true),
|
|
496
|
-
createBaseVNode("div", _hoisted_7, [
|
|
497
|
-
createVNode(_component_n8n_action_box, {
|
|
498
|
-
description: _ctx.$locale.baseText("settings.log-streaming.actionBox.description"),
|
|
499
|
-
"button-text": _ctx.$locale.baseText("settings.log-streaming.actionBox.button"),
|
|
500
|
-
"onClick:button": _ctx.goToUpgrade
|
|
501
|
-
}, {
|
|
502
|
-
heading: withCtx(() => [
|
|
503
|
-
withDirectives(createBaseVNode("span", null, null, 512), [
|
|
504
|
-
[_directive_n8n_html, _ctx.$locale.baseText("settings.log-streaming.actionBox.title")]
|
|
505
|
-
])
|
|
506
|
-
]),
|
|
507
|
-
_: 1
|
|
508
|
-
}, 8, ["description", "button-text", "onClick:button"])
|
|
509
|
-
])
|
|
510
|
-
], 64))
|
|
511
|
-
]);
|
|
512
|
-
}
|
|
513
|
-
const cssModules = {
|
|
514
|
-
"$style": style0
|
|
515
|
-
};
|
|
516
|
-
const SettingsLogStreamingView = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__cssModules", cssModules]]);
|
|
517
|
-
export {
|
|
518
|
-
SettingsLogStreamingView as default
|
|
519
|
-
};
|