n8n-editor-ui 1.65.1 → 1.67.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/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-B4V5qQ9q.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-DbabN_I2.js} +2 -2
- package/dist/assets/{AuthView-DDTsGVDI.js → AuthView-DmC24d7S.js} +17 -19
- package/dist/assets/{CanvasControls-BrmZza76.js → CanvasControls-BPXQqeeO.js} +1 -1
- package/dist/assets/{ChangePasswordView-Txc3JLbg.js → ChangePasswordView-SC3n2vJc.js} +2 -2
- package/dist/assets/CollectionParameter-Odk28FRT.js +4 -0
- package/dist/assets/{CredentialsView-4YDBK-zY.js → CredentialsView-B3m9CpEC.js} +14 -11
- package/dist/assets/{ErrorView-CeJF1j4H.js → ErrorView-D6M8WlVP.js} +1 -1
- package/dist/assets/{ExecutionsFilter-BecTg03r.css → ExecutionsFilter-DVxRt-Pz.css} +6 -6
- package/dist/assets/{ExecutionsFilter-ODySTrFf.js → ExecutionsFilter-DlZH8tDW.js} +5 -5
- package/dist/assets/{ExecutionsView-Cfc2bklt.js → ExecutionsView-DaHtYmF4.js} +4 -4
- package/dist/assets/{FileSaver.min-2E3H7obf.js → FileSaver.min-DNytcjKT.js} +1 -1
- package/dist/assets/FixedCollectionParameter-CypxYAFK.js +334 -0
- package/dist/assets/{FixedCollectionParameter-fI2wTyfY.css → FixedCollectionParameter-DzOGMEdq.css} +10 -10
- package/dist/assets/{ForgotMyPasswordView-DY9dxNXM.js → ForgotMyPasswordView-BJ6gd5CS.js} +4 -3
- package/dist/assets/{MainHeader-Bc5G9_Uq.css → MainHeader-D56WYRMG.css} +9 -9
- package/dist/assets/{MainHeader-2746Uag0.js → MainHeader-DniXcGMK.js} +92 -98
- package/dist/assets/{MainSidebar-cNW0UJBC.css → MainSidebar-BRYJRpOA.css} +2 -2
- package/dist/assets/{MainSidebar-Deuxu_ZA.js → MainSidebar-NwOfijmV.js} +7 -6
- package/dist/assets/{NodeCreation-C2dcJSCB.js → NodeCreation-Ce1ct2i3.js} +6 -6
- package/dist/assets/{NodeCreator-DFg5sW0J.css → NodeCreator-CvOLgSO_.css} +4 -4
- package/dist/assets/{NodeCreator-DbLN5EpO.js → NodeCreator-DMLTbzAt.js} +38 -25
- package/dist/assets/{NodeViewSwitcher-C7fT1hjp.js → NodeViewSwitcher-B9JUn3eY.js} +448 -332
- package/dist/assets/{NodeViewSwitcher-Np-f2Pkl.css → NodeViewSwitcher-CnP5aYyg.css} +138 -138
- package/dist/assets/{ProjectCardBadge.vue_vue_type_script_setup_true_lang-1r16lWfz.js → ProjectCardBadge-C3QU-WmO.js} +63 -30
- package/dist/assets/ProjectCardBadge-DPUG4BoB.css +20 -0
- package/dist/assets/{ProjectSettings-B-0hlVBb.js → ProjectSettings-BvcEg3hx.js} +35 -6
- package/dist/assets/{ProjectTabs-BLgXz0GM.js → ProjectTabs-Dve3xFj9.js} +1 -1
- package/dist/assets/PushConnectionTracker.vue_vue_type_script_setup_true_lang-DlJOpf7N.js +39 -0
- package/dist/assets/ResourceListHeader-B2sxe6HT.js +66 -0
- package/dist/assets/ResourceListHeader-DgE1VPUF.css +19 -0
- package/dist/assets/ResourcesListLayout-Bc4__nvw.js +692 -0
- package/dist/assets/{ResourcesListLayout-DAvOygN7.css → ResourcesListLayout-Ci-K1bH3.css} +17 -12
- package/dist/assets/{RunDataAi-DWyv1KtV.js → RunDataAi-BKu1beM6.js} +45 -43
- package/dist/assets/{RunDataJson-BkOB7Mi5.js → RunDataJson-ea5u1EeD.js} +12 -12
- package/dist/assets/{RunDataJsonActions-K_wfkbT2.js → RunDataJsonActions-Dflnt8gK.js} +127 -159
- package/dist/assets/{RunDataSearch-CdIFsfvp.js → RunDataSearch-DKNVmEqa.js} +1 -1
- package/dist/assets/{RunDataTable-CSd24Wzt.js → RunDataTable-DISLWxMc.js} +1 -1
- package/dist/assets/{SamlOnboarding-C7jmImZi.js → SamlOnboarding-CPvGRYUg.js} +2 -2
- package/dist/assets/SettingsApiView-BFj9fDL9.js +227 -0
- package/dist/assets/{SettingsCommunityNodesView-QbJKukss.js → SettingsCommunityNodesView-nJFDrtIR.js} +185 -195
- package/dist/assets/{SettingsExternalSecrets-CBL5kSMf.js → SettingsExternalSecrets-0-mj45K-.js} +3 -3
- package/dist/assets/{SettingsLdapView-CHwYGxkx.js → SettingsLdapView-BhBxX72w.js} +3 -3
- package/dist/assets/SettingsLogStreamingView-CmEJrEOv.js +500 -0
- package/dist/assets/{SettingsPersonalView-BfL80wvU.js → SettingsPersonalView-C__lC8Vv.js} +1 -1
- package/dist/assets/{SettingsSourceControl-CrPjF7Tl.js → SettingsSourceControl-CMoS5B5P.js} +3 -3
- package/dist/assets/{SettingsSso-CoM-3Knf.js → SettingsSso-DJfrl1Rl.js} +3 -3
- package/dist/assets/{SettingsUsageAndPlan-BeHnYh3Q.js → SettingsUsageAndPlan-CWQ5uVrG.js} +7 -6
- package/dist/assets/{SettingsUsageAndPlan-C76Ty5yF.css → SettingsUsageAndPlan-vijI-va0.css} +3 -3
- package/dist/assets/{SettingsUsersView-KIj2fh50.js → SettingsUsersView-Cvr6Digb.js} +4 -3
- package/dist/assets/{SettingsView-Chfmh8Oz.js → SettingsView-DtGga45F.js} +2 -30
- package/dist/assets/{SetupView-Cj9NK5oF.js → SetupView-DkJH96By.js} +2 -2
- package/dist/assets/{SetupWorkflowCredentialsButton-1LXFp3M1.js → SetupWorkflowCredentialsButton-C1Jv_-V5.js} +1 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-nyPe7OpV.js → SetupWorkflowFromTemplateView-WSzVMgC4.js} +3 -3
- package/dist/assets/{SigninView-TCarjEXK.js → SigninView-xej8y-Vu.js} +4 -3
- package/dist/assets/{SignoutView-Delor5Ax.js → SignoutView-Dc8fBBIm.js} +1 -1
- package/dist/assets/{SignupView-DOREfT5l.js → SignupView-CKA28Xc8.js} +4 -3
- package/dist/assets/TemplateDetails-Pi49rFlS.js +179 -0
- package/dist/assets/TemplateList-BncQL783.js +371 -0
- package/dist/assets/{TemplatesCollectionView-DtaG85Jk.js → TemplatesCollectionView-C9PKPo5y.js} +8 -8
- package/dist/assets/{TemplatesSearchView-CqH8oefx.js → TemplatesSearchView-65taIL-M.js} +530 -577
- package/dist/assets/{TemplatesView-B9Lz_EzK.js → TemplatesView-DkP9JWHk.js} +32 -37
- package/dist/assets/{TemplatesWorkflowView-BfqaXGKg.js → TemplatesWorkflowView-B5uc0BtL.js} +5 -5
- package/dist/assets/{VariablesView-CHXdt5-z.css → VariablesView-BPKo50HJ.css} +18 -18
- package/dist/assets/{VariablesView-BH0opxm_.js → VariablesView-DV1-KgmN.js} +6 -4
- package/dist/assets/WorkerView-5P9lg6ew.js +148 -0
- package/dist/assets/WorkerView-Dm0b18Mh.css +22 -0
- package/dist/assets/{WorkflowActivator-u3HKoT5w.css → WorkflowActivator-D8FiI2jP.css} +2 -2
- package/dist/assets/{WorkflowActivator-ByVmTkYU.js → WorkflowActivator-Dc_Un-Af.js} +15 -4
- package/dist/assets/{WorkflowExecutionsInfoAccordion-BqbBanz6.js → WorkflowExecutionsInfoAccordion-BLyC6lr5.js} +1 -1
- package/dist/assets/{WorkflowExecutionsLandingPage-5u6ZDaFD.js → WorkflowExecutionsLandingPage-Dsa6Bgkn.js} +2 -2
- package/dist/assets/{WorkflowExecutionsPreview-BGb9AU3g.js → WorkflowExecutionsPreview-B_X-enUV.js} +5 -5
- package/dist/assets/{WorkflowExecutionsView-KTlGfaLi.js → WorkflowExecutionsView-Bkz3Sig-.js} +5 -5
- package/dist/assets/{WorkflowHistory-DqXCxz1p.js → WorkflowHistory-BiPMooAv.js} +5 -4
- package/dist/assets/{WorkflowOnboardingView-Cx7hbCo8.js → WorkflowOnboardingView-XHuS6lCs.js} +1 -1
- package/dist/assets/{WorkflowPreview-BTF7OmQM.css → WorkflowPreview-Bpiv2_RO.css} +8 -8
- package/dist/assets/{WorkflowPreview-DAQ7mvNi.js → WorkflowPreview-DxZKd23H.js} +8 -8
- package/dist/assets/{WorkflowsView-ChU_EKMN.js → WorkflowsView-BBaLVqJs.js} +14 -12
- package/dist/assets/{dateFormatter-CfOgAO2k.js → dateFormatter-C53K7zEn.js} +1 -1
- package/dist/assets/{index-BUjeBzRM.js → index-7YFQEQmt.js} +36340 -36753
- package/dist/assets/{index-DoeC8czU.css → index-BFH_KxyA.css} +162 -130
- package/dist/assets/{pushConnection.store-BKOlrr3c.js → pushConnection.store-DbprXL-x.js} +1 -1
- package/dist/assets/{templateActions-BTYgtgDN.js → templateActions-QFQD8amJ.js} +1 -1
- package/dist/assets/{useBugReporting-lkBiyjPH.js → useBugReporting-IgwBNdXI.js} +1 -1
- package/dist/assets/{useExecutionDebugging-C91tSyen.js → useExecutionDebugging-CLORI_Ma.js} +5 -4
- package/dist/assets/{useNodeViewVersionSwitcher-D2zGsXPQ.js → useNodeViewVersionSwitcher-CJLQ5lju.js} +2 -2
- package/dist/assets/{usePushConnection-CQXTn-bO.js → usePushConnection-DjPgTuLw.js} +9 -10
- package/dist/assets/{useWorkflowActivate-DbL83lsy.js → useWorkflowActivate-D_gK841h.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-D35RQT1r.js +0 -4
- package/dist/assets/FixedCollectionParameter-D6dq95nm.js +0 -355
- package/dist/assets/PushConnectionTracker-CGjuGy8P.js +0 -38
- package/dist/assets/ResourcesListLayout-D_C1ZSTp.js +0 -765
- package/dist/assets/SettingsApiView-4M-cLSvs.js +0 -255
- package/dist/assets/SettingsFakeDoorView-CEbWEc6P.js +0 -44
- package/dist/assets/SettingsFakeDoorView-DpKZ4qWG.css +0 -14
- package/dist/assets/SettingsLogStreamingView-DZ71hi2g.js +0 -519
- package/dist/assets/TemplateDetails-rjxog6MY.js +0 -199
- package/dist/assets/TemplateList-DYMX_2qI.js +0 -433
- package/dist/assets/WorkerView-BRiI1Adt.js +0 -825
- package/dist/assets/WorkerView-C_d54L0W.css +0 -181
- package/dist/assets/cloud-CGOqFKZO.js +0 -37
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dY as getDefaultExportFromCjs, r as ref, cr as toRefs, o as onMounted, b_ as onUnmounted, c as openBlock, h as createElementBlock, q as renderSlot, i as createVNode, f as createCommentVNode, j as createBaseVNode, t as toDisplayString, H as watch, x as nextTick, c4 as pushScopeId, c1 as popScopeId, d as defineComponent, a as useToast, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, m as useSettingsStore, p as computed, w as withCtx, k as createTextVNode, A as unref, n as normalizeClass, as as withDirectives, e as createBlock, hA as ElTableColumn, hB as ElTable, g as useI18n, hC as createFormEventBus, ae as MODAL_CONFIRM, l as resolveComponent, ca as resolveDirective, al as useMessage, hD as capitalizeFirstLetter, hE as convertToDisplayDate, _ as _export_sfc } from "./index-7YFQEQmt.js";
|
|
2
2
|
var humanizeDuration$1 = { exports: {} };
|
|
3
3
|
(function(module) {
|
|
4
4
|
(function() {
|
|
@@ -1713,8 +1713,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1713
1713
|
const i18n = useI18n();
|
|
1714
1714
|
const message = useMessage();
|
|
1715
1715
|
const documentTitle = useDocumentTitle();
|
|
1716
|
+
const pageRedirectionHelper = usePageRedirectionHelper();
|
|
1716
1717
|
const settingsStore = useSettingsStore();
|
|
1717
|
-
const uiStore = useUIStore();
|
|
1718
1718
|
const dataTable = ref([]);
|
|
1719
1719
|
const tableKey = ref(0);
|
|
1720
1720
|
const adConfig = ref();
|
|
@@ -1731,7 +1731,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1731
1731
|
const syncEnabled = ref(false);
|
|
1732
1732
|
const ldapConfigFormRef = ref();
|
|
1733
1733
|
const isLDAPFeatureEnabled = computed(() => settingsStore.settings.enterprise.ldap);
|
|
1734
|
-
const goToUpgrade = async () => await
|
|
1734
|
+
const goToUpgrade = async () => await pageRedirectionHelper.goToUpgrade("ldap", "upgrade-ldap");
|
|
1735
1735
|
const cellClassStyle = ({ row, column }) => {
|
|
1736
1736
|
if (column.property === "status") {
|
|
1737
1737
|
if (row.status === "Success") {
|
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
import { d as defineComponent, dK as deepCopy, hR as defaultMessageEventBusDestinationOptions, hS as useLogStreamingStore, r as ref, o as onMounted, ar as onBeforeMount, p as computed, eT as assert, c as openBlock, e as createBlock, w as withCtx, j as createBaseVNode, i as createVNode, k as createTextVNode, t as toDisplayString, n as normalizeClass, A as unref, g as useI18n, ae as MODAL_CONFIRM, l as resolveComponent, al as useMessage, _ as _export_sfc, m as useSettingsStore, T as useWorkflowsStore, K as useUIStore, dy as useCredentialsStore, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, h as createElementBlock, F as Fragment, f as createCommentVNode, as as withDirectives, z as renderList, C as createEventBus, f4 as v4, x as nextTick, hT as LOG_STREAM_MODAL_KEY, ca as resolveDirective, a8 as EnterpriseEditionFeature, an as hasPermission, bp as getCurrentInstance } from "./index-7YFQEQmt.js";
|
|
2
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "EventDestinationCard.ee",
|
|
4
|
+
props: {
|
|
5
|
+
eventBus: {},
|
|
6
|
+
destination: { default: () => deepCopy(defaultMessageEventBusDestinationOptions) },
|
|
7
|
+
readonly: { type: Boolean }
|
|
8
|
+
},
|
|
9
|
+
emits: ["edit", "remove"],
|
|
10
|
+
setup(__props, { emit: __emit }) {
|
|
11
|
+
const DESTINATION_LIST_ITEM_ACTIONS = {
|
|
12
|
+
OPEN: "open",
|
|
13
|
+
DELETE: "delete"
|
|
14
|
+
};
|
|
15
|
+
const { confirm } = useMessage();
|
|
16
|
+
const i18n = useI18n();
|
|
17
|
+
const logStreamingStore = useLogStreamingStore();
|
|
18
|
+
const nodeParameters = ref({});
|
|
19
|
+
const cardActions2 = ref(null);
|
|
20
|
+
const props = __props;
|
|
21
|
+
const emit = __emit;
|
|
22
|
+
onMounted(() => {
|
|
23
|
+
var _a;
|
|
24
|
+
nodeParameters.value = Object.assign(
|
|
25
|
+
deepCopy(defaultMessageEventBusDestinationOptions),
|
|
26
|
+
props.destination
|
|
27
|
+
);
|
|
28
|
+
(_a = props.eventBus) == null ? void 0 : _a.on("destinationWasSaved", onDestinationWasSaved);
|
|
29
|
+
});
|
|
30
|
+
onBeforeMount(() => {
|
|
31
|
+
var _a;
|
|
32
|
+
(_a = props.eventBus) == null ? void 0 : _a.off("destinationWasSaved", onDestinationWasSaved);
|
|
33
|
+
});
|
|
34
|
+
const actions = computed(() => {
|
|
35
|
+
const actionList = [
|
|
36
|
+
{
|
|
37
|
+
label: i18n.baseText("workflows.item.open"),
|
|
38
|
+
value: DESTINATION_LIST_ITEM_ACTIONS.OPEN
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
if (!props.readonly) {
|
|
42
|
+
actionList.push({
|
|
43
|
+
label: i18n.baseText("workflows.item.delete"),
|
|
44
|
+
value: DESTINATION_LIST_ITEM_ACTIONS.DELETE
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return actionList;
|
|
48
|
+
});
|
|
49
|
+
const typeLabelName = computed(() => {
|
|
50
|
+
return `settings.log-streaming.${props.destination.__type}`;
|
|
51
|
+
});
|
|
52
|
+
function onDestinationWasSaved() {
|
|
53
|
+
assert(props.destination.id);
|
|
54
|
+
const updatedDestination = logStreamingStore.getDestination(props.destination.id);
|
|
55
|
+
if (updatedDestination) {
|
|
56
|
+
nodeParameters.value = Object.assign(
|
|
57
|
+
deepCopy(defaultMessageEventBusDestinationOptions),
|
|
58
|
+
props.destination
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async function onClick(event) {
|
|
63
|
+
var _a;
|
|
64
|
+
const target = event.target;
|
|
65
|
+
if (cardActions2.value === target || ((_a = cardActions2.value) == null ? void 0 : _a.contains(target)) || (target == null ? void 0 : target.contains(cardActions2.value))) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
emit("edit", props.destination.id);
|
|
69
|
+
}
|
|
70
|
+
function onEnabledSwitched(state) {
|
|
71
|
+
nodeParameters.value.enabled = state;
|
|
72
|
+
void saveDestination();
|
|
73
|
+
}
|
|
74
|
+
async function saveDestination() {
|
|
75
|
+
await logStreamingStore.saveDestination(nodeParameters.value);
|
|
76
|
+
}
|
|
77
|
+
async function onAction(action) {
|
|
78
|
+
if (action === DESTINATION_LIST_ITEM_ACTIONS.OPEN) {
|
|
79
|
+
emit("edit", props.destination.id);
|
|
80
|
+
} else if (action === DESTINATION_LIST_ITEM_ACTIONS.DELETE) {
|
|
81
|
+
const deleteConfirmed = await confirm(
|
|
82
|
+
i18n.baseText("settings.log-streaming.destinationDelete.message", {
|
|
83
|
+
interpolate: { destinationName: props.destination.label ?? "" }
|
|
84
|
+
}),
|
|
85
|
+
i18n.baseText("settings.log-streaming.destinationDelete.headline"),
|
|
86
|
+
{
|
|
87
|
+
type: "warning",
|
|
88
|
+
confirmButtonText: i18n.baseText(
|
|
89
|
+
"settings.log-streaming.destinationDelete.confirmButtonText"
|
|
90
|
+
),
|
|
91
|
+
cancelButtonText: i18n.baseText(
|
|
92
|
+
"settings.log-streaming.destinationDelete.cancelButtonText"
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
if (deleteConfirmed !== MODAL_CONFIRM) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
emit("remove", props.destination.id);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return (_ctx, _cache) => {
|
|
103
|
+
const _component_n8n_heading = resolveComponent("n8n-heading");
|
|
104
|
+
const _component_n8n_text = resolveComponent("n8n-text");
|
|
105
|
+
const _component_el_switch = resolveComponent("el-switch");
|
|
106
|
+
const _component_n8n_action_toggle = resolveComponent("n8n-action-toggle");
|
|
107
|
+
const _component_n8n_card = resolveComponent("n8n-card");
|
|
108
|
+
return openBlock(), createBlock(_component_n8n_card, {
|
|
109
|
+
class: normalizeClass(_ctx.$style.cardLink),
|
|
110
|
+
"data-test-id": "destination-card",
|
|
111
|
+
onClick
|
|
112
|
+
}, {
|
|
113
|
+
header: withCtx(() => [
|
|
114
|
+
createBaseVNode("div", null, [
|
|
115
|
+
createVNode(_component_n8n_heading, {
|
|
116
|
+
tag: "h2",
|
|
117
|
+
bold: "",
|
|
118
|
+
class: normalizeClass(_ctx.$style.cardHeading)
|
|
119
|
+
}, {
|
|
120
|
+
default: withCtx(() => [
|
|
121
|
+
createTextVNode(toDisplayString(_ctx.destination.label), 1)
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
}, 8, ["class"]),
|
|
125
|
+
createBaseVNode("div", {
|
|
126
|
+
class: normalizeClass(_ctx.$style.cardDescription)
|
|
127
|
+
}, [
|
|
128
|
+
createVNode(_component_n8n_text, {
|
|
129
|
+
color: "text-light",
|
|
130
|
+
size: "small"
|
|
131
|
+
}, {
|
|
132
|
+
default: withCtx(() => [
|
|
133
|
+
createBaseVNode("span", null, toDisplayString(unref(i18n).baseText(typeLabelName.value)), 1)
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
})
|
|
137
|
+
], 2)
|
|
138
|
+
])
|
|
139
|
+
]),
|
|
140
|
+
append: withCtx(() => [
|
|
141
|
+
createBaseVNode("div", {
|
|
142
|
+
ref_key: "cardActions",
|
|
143
|
+
ref: cardActions2,
|
|
144
|
+
class: normalizeClass(_ctx.$style.cardActions)
|
|
145
|
+
}, [
|
|
146
|
+
createBaseVNode("div", {
|
|
147
|
+
class: normalizeClass(_ctx.$style.activeStatusText),
|
|
148
|
+
"data-test-id": "destination-activator-status"
|
|
149
|
+
}, [
|
|
150
|
+
nodeParameters.value.enabled ? (openBlock(), createBlock(_component_n8n_text, {
|
|
151
|
+
key: 0,
|
|
152
|
+
color: "success",
|
|
153
|
+
size: "small",
|
|
154
|
+
bold: ""
|
|
155
|
+
}, {
|
|
156
|
+
default: withCtx(() => [
|
|
157
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("workflowActivator.active")), 1)
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
})) : (openBlock(), createBlock(_component_n8n_text, {
|
|
161
|
+
key: 1,
|
|
162
|
+
color: "text-base",
|
|
163
|
+
size: "small",
|
|
164
|
+
bold: ""
|
|
165
|
+
}, {
|
|
166
|
+
default: withCtx(() => [
|
|
167
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("workflowActivator.inactive")), 1)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
}))
|
|
171
|
+
], 2),
|
|
172
|
+
createVNode(_component_el_switch, {
|
|
173
|
+
class: "mr-s",
|
|
174
|
+
disabled: _ctx.readonly,
|
|
175
|
+
"model-value": nodeParameters.value.enabled,
|
|
176
|
+
title: nodeParameters.value.enabled ? unref(i18n).baseText("workflowActivator.deactivateWorkflow") : unref(i18n).baseText("workflowActivator.activateWorkflow"),
|
|
177
|
+
"active-color": "#13ce66",
|
|
178
|
+
"inactive-color": "#8899AA",
|
|
179
|
+
"data-test-id": "workflow-activate-switch",
|
|
180
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => onEnabledSwitched($event))
|
|
181
|
+
}, null, 8, ["disabled", "model-value", "title"]),
|
|
182
|
+
createVNode(_component_n8n_action_toggle, {
|
|
183
|
+
actions: actions.value,
|
|
184
|
+
theme: "dark",
|
|
185
|
+
onAction
|
|
186
|
+
}, null, 8, ["actions"])
|
|
187
|
+
], 2)
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["class"]);
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
const cardLink = "_cardLink_r6102_1";
|
|
195
|
+
const activeStatusText = "_activeStatusText_r6102_11";
|
|
196
|
+
const cardHeading = "_cardHeading_r6102_19";
|
|
197
|
+
const cardDescription = "_cardDescription_r6102_25";
|
|
198
|
+
const cardActions = "_cardActions_r6102_32";
|
|
199
|
+
const style0$1 = {
|
|
200
|
+
cardLink,
|
|
201
|
+
activeStatusText,
|
|
202
|
+
cardHeading,
|
|
203
|
+
cardDescription,
|
|
204
|
+
cardActions
|
|
205
|
+
};
|
|
206
|
+
const cssModules$1 = {
|
|
207
|
+
"$style": style0$1
|
|
208
|
+
};
|
|
209
|
+
const EventDestinationCard = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__cssModules", cssModules$1]]);
|
|
210
|
+
const _hoisted_1 = { class: "mb-2xl" };
|
|
211
|
+
const _hoisted_2 = { class: "ml-m" };
|
|
212
|
+
const _hoisted_3 = { class: "mb-l" };
|
|
213
|
+
const _hoisted_4 = { class: "mt-m text-right" };
|
|
214
|
+
const _hoisted_5 = {
|
|
215
|
+
key: 1,
|
|
216
|
+
"data-test-id": "action-box-licensed"
|
|
217
|
+
};
|
|
218
|
+
const _hoisted_6 = {
|
|
219
|
+
key: 0,
|
|
220
|
+
class: "mb-l"
|
|
221
|
+
};
|
|
222
|
+
const _hoisted_7 = { "data-test-id": "action-box-unlicensed" };
|
|
223
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
224
|
+
__name: "SettingsLogStreamingView",
|
|
225
|
+
setup(__props) {
|
|
226
|
+
const environment = "production";
|
|
227
|
+
const settingsStore = useSettingsStore();
|
|
228
|
+
const logStreamingStore = useLogStreamingStore();
|
|
229
|
+
const workflowsStore = useWorkflowsStore();
|
|
230
|
+
const uiStore = useUIStore();
|
|
231
|
+
const credentialsStore = useCredentialsStore();
|
|
232
|
+
const documentTitle = useDocumentTitle();
|
|
233
|
+
const i18n = useI18n();
|
|
234
|
+
const pageRedirectHelper = usePageRedirectionHelper();
|
|
235
|
+
const eventBus = createEventBus();
|
|
236
|
+
const disableLicense = ref(false);
|
|
237
|
+
const allDestinations = ref([]);
|
|
238
|
+
const sortedItemKeysByLabel = computed(() => {
|
|
239
|
+
var _a;
|
|
240
|
+
const sortedKeys = [];
|
|
241
|
+
for (const [key, value] of Object.entries(logStreamingStore.items)) {
|
|
242
|
+
sortedKeys.push({ key, label: ((_a = value.destination) == null ? void 0 : _a.label) ?? "Destination" });
|
|
243
|
+
}
|
|
244
|
+
return sortedKeys.sort((a, b) => a.label.localeCompare(b.label));
|
|
245
|
+
});
|
|
246
|
+
const isLicensed = computed(() => {
|
|
247
|
+
if (disableLicense.value) return false;
|
|
248
|
+
return settingsStore.isEnterpriseFeatureEnabled[EnterpriseEditionFeature.LogStreaming];
|
|
249
|
+
});
|
|
250
|
+
const canManageLogStreaming = computed(() => {
|
|
251
|
+
return hasPermission(["rbac"], { rbac: { scope: "logStreaming:manage" } });
|
|
252
|
+
});
|
|
253
|
+
onMounted(async () => {
|
|
254
|
+
documentTitle.set(i18n.baseText("settings.log-streaming.heading"));
|
|
255
|
+
if (!isLicensed.value) return;
|
|
256
|
+
await credentialsStore.fetchCredentialTypes(false);
|
|
257
|
+
await credentialsStore.fetchAllCredentials();
|
|
258
|
+
uiStore.nodeViewInitialized = false;
|
|
259
|
+
await getDestinationDataFromBackend();
|
|
260
|
+
logStreamingStore.$onAction(({ name, after }) => {
|
|
261
|
+
if (name === "removeDestination" || name === "updateDestination") {
|
|
262
|
+
after(async () => {
|
|
263
|
+
forceUpdateInstance();
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
eventBus.on("destinationWasSaved", onDestinationWasSaved);
|
|
268
|
+
eventBus.on("remove", onRemove);
|
|
269
|
+
eventBus.on("closing", onBusClosing);
|
|
270
|
+
});
|
|
271
|
+
onBeforeMount(() => {
|
|
272
|
+
eventBus.off("destinationWasSaved", onDestinationWasSaved);
|
|
273
|
+
eventBus.off("remove", onRemove);
|
|
274
|
+
eventBus.off("closing", onBusClosing);
|
|
275
|
+
});
|
|
276
|
+
function onDestinationWasSaved() {
|
|
277
|
+
forceUpdateInstance();
|
|
278
|
+
}
|
|
279
|
+
function forceUpdateInstance() {
|
|
280
|
+
var _a;
|
|
281
|
+
const instance = getCurrentInstance();
|
|
282
|
+
(_a = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a.$forceUpdate();
|
|
283
|
+
}
|
|
284
|
+
function onBusClosing() {
|
|
285
|
+
workflowsStore.removeAllNodes({ setStateDirty: false, removePinData: true });
|
|
286
|
+
uiStore.stateIsDirty = false;
|
|
287
|
+
}
|
|
288
|
+
async function getDestinationDataFromBackend() {
|
|
289
|
+
logStreamingStore.clearEventNames();
|
|
290
|
+
logStreamingStore.clearDestinations();
|
|
291
|
+
allDestinations.value = [];
|
|
292
|
+
const eventNamesData = await logStreamingStore.fetchEventNames();
|
|
293
|
+
if (eventNamesData) {
|
|
294
|
+
for (const eventName of eventNamesData) {
|
|
295
|
+
logStreamingStore.addEventName(eventName);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
const destinationData = await logStreamingStore.fetchDestinations();
|
|
299
|
+
if (destinationData) {
|
|
300
|
+
for (const destination of destinationData) {
|
|
301
|
+
logStreamingStore.addDestination(destination);
|
|
302
|
+
allDestinations.value.push(destination);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
forceUpdateInstance();
|
|
306
|
+
}
|
|
307
|
+
function goToUpgrade() {
|
|
308
|
+
void pageRedirectHelper.goToUpgrade("log-streaming", "upgrade-log-streaming");
|
|
309
|
+
}
|
|
310
|
+
function storeHasItems() {
|
|
311
|
+
return logStreamingStore.items && Object.keys(logStreamingStore.items).length > 0;
|
|
312
|
+
}
|
|
313
|
+
async function addDestination() {
|
|
314
|
+
const newDestination = deepCopy(defaultMessageEventBusDestinationOptions);
|
|
315
|
+
newDestination.id = v4();
|
|
316
|
+
logStreamingStore.addDestination(newDestination);
|
|
317
|
+
await nextTick();
|
|
318
|
+
uiStore.openModalWithData({
|
|
319
|
+
name: LOG_STREAM_MODAL_KEY,
|
|
320
|
+
data: {
|
|
321
|
+
destination: newDestination,
|
|
322
|
+
isNew: true,
|
|
323
|
+
eventBus
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
async function onRemove(destinationId) {
|
|
328
|
+
if (!destinationId) return;
|
|
329
|
+
await logStreamingStore.deleteDestination(destinationId);
|
|
330
|
+
const foundNode = workflowsStore.getNodeByName(destinationId);
|
|
331
|
+
if (foundNode) {
|
|
332
|
+
workflowsStore.removeNode(foundNode);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
async function onEdit(destinationId) {
|
|
336
|
+
if (!destinationId) return;
|
|
337
|
+
const editDestination = logStreamingStore.getDestination(destinationId);
|
|
338
|
+
if (editDestination) {
|
|
339
|
+
uiStore.openModalWithData({
|
|
340
|
+
name: LOG_STREAM_MODAL_KEY,
|
|
341
|
+
data: {
|
|
342
|
+
destination: editDestination,
|
|
343
|
+
isNew: false,
|
|
344
|
+
eventBus
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return (_ctx, _cache) => {
|
|
350
|
+
const _component_n8n_heading = resolveComponent("n8n-heading");
|
|
351
|
+
const _component_el_switch = resolveComponent("el-switch");
|
|
352
|
+
const _component_n8n_info_tip = resolveComponent("n8n-info-tip");
|
|
353
|
+
const _component_el_col = resolveComponent("el-col");
|
|
354
|
+
const _component_el_row = resolveComponent("el-row");
|
|
355
|
+
const _component_n8n_button = resolveComponent("n8n-button");
|
|
356
|
+
const _component_n8n_action_box = resolveComponent("n8n-action-box");
|
|
357
|
+
const _directive_n8n_html = resolveDirective("n8n-html");
|
|
358
|
+
return openBlock(), createElementBlock("div", null, [
|
|
359
|
+
createBaseVNode("div", {
|
|
360
|
+
class: normalizeClass(_ctx.$style.header)
|
|
361
|
+
}, [
|
|
362
|
+
createBaseVNode("div", _hoisted_1, [
|
|
363
|
+
createVNode(_component_n8n_heading, { size: "2xlarge" }, {
|
|
364
|
+
default: withCtx(() => [
|
|
365
|
+
createTextVNode(toDisplayString(unref(i18n).baseText(`settings.log-streaming.heading`)), 1)
|
|
366
|
+
]),
|
|
367
|
+
_: 1
|
|
368
|
+
}),
|
|
369
|
+
unref(environment) !== "production" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
370
|
+
createBaseVNode("strong", _hoisted_2, "Disable License (" + toDisplayString(unref(environment)) + ") ", 1),
|
|
371
|
+
createVNode(_component_el_switch, {
|
|
372
|
+
modelValue: disableLicense.value,
|
|
373
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => disableLicense.value = $event),
|
|
374
|
+
size: "large",
|
|
375
|
+
"data-test-id": "disable-license-toggle"
|
|
376
|
+
}, null, 8, ["modelValue"])
|
|
377
|
+
], 64)) : createCommentVNode("", true)
|
|
378
|
+
])
|
|
379
|
+
], 2),
|
|
380
|
+
isLicensed.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
381
|
+
createBaseVNode("div", _hoisted_3, [
|
|
382
|
+
createVNode(_component_n8n_info_tip, {
|
|
383
|
+
theme: "info",
|
|
384
|
+
type: "note"
|
|
385
|
+
}, {
|
|
386
|
+
default: withCtx(() => [
|
|
387
|
+
withDirectives(createBaseVNode("span", null, null, 512), [
|
|
388
|
+
[_directive_n8n_html, unref(i18n).baseText("settings.log-streaming.infoText")]
|
|
389
|
+
])
|
|
390
|
+
]),
|
|
391
|
+
_: 1
|
|
392
|
+
})
|
|
393
|
+
]),
|
|
394
|
+
storeHasItems() ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
395
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(sortedItemKeysByLabel.value, (item) => {
|
|
396
|
+
return openBlock(), createBlock(_component_el_row, {
|
|
397
|
+
key: item.key,
|
|
398
|
+
gutter: 10,
|
|
399
|
+
class: normalizeClass(_ctx.$style.destinationItem)
|
|
400
|
+
}, {
|
|
401
|
+
default: withCtx(() => {
|
|
402
|
+
var _a;
|
|
403
|
+
return [
|
|
404
|
+
((_a = unref(logStreamingStore).items[item.key]) == null ? void 0 : _a.destination) ? (openBlock(), createBlock(_component_el_col, { key: 0 }, {
|
|
405
|
+
default: withCtx(() => {
|
|
406
|
+
var _a2;
|
|
407
|
+
return [
|
|
408
|
+
createVNode(EventDestinationCard, {
|
|
409
|
+
destination: (_a2 = unref(logStreamingStore).items[item.key]) == null ? void 0 : _a2.destination,
|
|
410
|
+
"event-bus": unref(eventBus),
|
|
411
|
+
readonly: !canManageLogStreaming.value,
|
|
412
|
+
onRemove: ($event) => {
|
|
413
|
+
var _a3, _b;
|
|
414
|
+
return onRemove((_b = (_a3 = unref(logStreamingStore).items[item.key]) == null ? void 0 : _a3.destination) == null ? void 0 : _b.id);
|
|
415
|
+
},
|
|
416
|
+
onEdit: ($event) => {
|
|
417
|
+
var _a3, _b;
|
|
418
|
+
return onEdit((_b = (_a3 = unref(logStreamingStore).items[item.key]) == null ? void 0 : _a3.destination) == null ? void 0 : _b.id);
|
|
419
|
+
}
|
|
420
|
+
}, null, 8, ["destination", "event-bus", "readonly", "onRemove", "onEdit"])
|
|
421
|
+
];
|
|
422
|
+
}),
|
|
423
|
+
_: 2
|
|
424
|
+
}, 1024)) : createCommentVNode("", true)
|
|
425
|
+
];
|
|
426
|
+
}),
|
|
427
|
+
_: 2
|
|
428
|
+
}, 1032, ["class"]);
|
|
429
|
+
}), 128)),
|
|
430
|
+
createBaseVNode("div", _hoisted_4, [
|
|
431
|
+
canManageLogStreaming.value ? (openBlock(), createBlock(_component_n8n_button, {
|
|
432
|
+
key: 0,
|
|
433
|
+
size: "large",
|
|
434
|
+
onClick: addDestination
|
|
435
|
+
}, {
|
|
436
|
+
default: withCtx(() => [
|
|
437
|
+
createTextVNode(toDisplayString(unref(i18n).baseText(`settings.log-streaming.add`)), 1)
|
|
438
|
+
]),
|
|
439
|
+
_: 1
|
|
440
|
+
})) : createCommentVNode("", true)
|
|
441
|
+
])
|
|
442
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
443
|
+
createVNode(_component_n8n_action_box, {
|
|
444
|
+
"button-text": unref(i18n).baseText(`settings.log-streaming.add`),
|
|
445
|
+
"onClick:button": addDestination
|
|
446
|
+
}, {
|
|
447
|
+
heading: withCtx(() => [
|
|
448
|
+
withDirectives(createBaseVNode("span", null, null, 512), [
|
|
449
|
+
[_directive_n8n_html, unref(i18n).baseText(`settings.log-streaming.addFirstTitle`)]
|
|
450
|
+
])
|
|
451
|
+
]),
|
|
452
|
+
_: 1
|
|
453
|
+
}, 8, ["button-text"])
|
|
454
|
+
]))
|
|
455
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
456
|
+
unref(i18n).baseText("settings.log-streaming.infoText") ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
457
|
+
createVNode(_component_n8n_info_tip, {
|
|
458
|
+
theme: "info",
|
|
459
|
+
type: "note"
|
|
460
|
+
}, {
|
|
461
|
+
default: withCtx(() => [
|
|
462
|
+
withDirectives(createBaseVNode("span", null, null, 512), [
|
|
463
|
+
[_directive_n8n_html, unref(i18n).baseText("settings.log-streaming.infoText")]
|
|
464
|
+
])
|
|
465
|
+
]),
|
|
466
|
+
_: 1
|
|
467
|
+
})
|
|
468
|
+
])) : createCommentVNode("", true),
|
|
469
|
+
createBaseVNode("div", _hoisted_7, [
|
|
470
|
+
createVNode(_component_n8n_action_box, {
|
|
471
|
+
description: unref(i18n).baseText("settings.log-streaming.actionBox.description"),
|
|
472
|
+
"button-text": unref(i18n).baseText("settings.log-streaming.actionBox.button"),
|
|
473
|
+
"onClick:button": goToUpgrade
|
|
474
|
+
}, {
|
|
475
|
+
heading: withCtx(() => [
|
|
476
|
+
withDirectives(createBaseVNode("span", null, null, 512), [
|
|
477
|
+
[_directive_n8n_html, unref(i18n).baseText("settings.log-streaming.actionBox.title")]
|
|
478
|
+
])
|
|
479
|
+
]),
|
|
480
|
+
_: 1
|
|
481
|
+
}, 8, ["description", "button-text"])
|
|
482
|
+
])
|
|
483
|
+
], 64))
|
|
484
|
+
]);
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
const header = "_header_brzxt_1";
|
|
489
|
+
const destinationItem = "_destinationItem_brzxt_11";
|
|
490
|
+
const style0 = {
|
|
491
|
+
header,
|
|
492
|
+
destinationItem
|
|
493
|
+
};
|
|
494
|
+
const cssModules = {
|
|
495
|
+
"$style": style0
|
|
496
|
+
};
|
|
497
|
+
const SettingsLogStreamingView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
498
|
+
export {
|
|
499
|
+
SettingsLogStreamingView as default
|
|
500
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, a as useToast, a3 as useDocumentTitle, r as ref, K as useUIStore, u as useUsersStore, m as useSettingsStore, p as computed, o as onMounted,
|
|
1
|
+
import { d as defineComponent, a as useToast, a3 as useDocumentTitle, r as ref, K as useUIStore, u as useUsersStore, m as useSettingsStore, p as computed, o as onMounted, v as onBeforeUnmount, hF as promptMfaCodeBus, c as openBlock, h as createElementBlock, j as createBaseVNode, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, A as unref, n as normalizeClass, f as createCommentVNode, e as createBlock, hG as MFA_DOCS_URL, F as Fragment, z as renderList, g as useI18n, hC as createFormEventBus, hH as PROMPT_MFA_CODE_MODAL_KEY, hI as CHANGE_PASSWORD_MODAL_KEY, hJ as MFA_SETUP_MODAL_KEY, l as resolveComponent, _ as _export_sfc } from "./index-7YFQEQmt.js";
|
|
2
2
|
const _hoisted_1 = { class: "mb-s" };
|
|
3
3
|
const _hoisted_2 = { "data-test-id": "personal-data-form" };
|
|
4
4
|
const _hoisted_3 = { key: 0 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, a0 as useSourceControlStore,
|
|
1
|
+
import { d as defineComponent, a0 as useSourceControlStore, a5 as usePageRedirectionHelper, a as useToast, a3 as useDocumentTitle, av as useLoadingService, r as ref, p as computed, o as onMounted, c6 as reactive, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, A as unref, j as createBaseVNode, n as normalizeClass, e as createBlock, f as createCommentVNode, eu as CopyInput, g as useI18n, ae as MODAL_CONFIRM, l as resolveComponent, al as useMessage, _ as _export_sfc } from "./index-7YFQEQmt.js";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
3
|
key: 0,
|
|
4
4
|
"data-test-id": "source-control-content-licensed"
|
|
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
setup(__props) {
|
|
17
17
|
const locale = useI18n();
|
|
18
18
|
const sourceControlStore = useSourceControlStore();
|
|
19
|
-
const
|
|
19
|
+
const pageRedirectionHelper = usePageRedirectionHelper();
|
|
20
20
|
const toast = useToast();
|
|
21
21
|
const message = useMessage();
|
|
22
22
|
const documentTitle = useDocumentTitle();
|
|
@@ -96,7 +96,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
96
96
|
sourceControlStore.preferences.branchName = b;
|
|
97
97
|
};
|
|
98
98
|
const goToUpgrade = () => {
|
|
99
|
-
void
|
|
99
|
+
void pageRedirectionHelper.goToUpgrade("source-control", "upgrade-source-control");
|
|
100
100
|
};
|
|
101
101
|
const initialize = async () => {
|
|
102
102
|
await sourceControlStore.getPreferences();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, Z as useRootStore,
|
|
1
|
+
import { d as defineComponent, Z as useRootStore, hK as useSSOStore, a as useToast, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, p as computed, r as ref, o as onMounted, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, A as unref, j as createBaseVNode, e as createBlock, n as normalizeClass, f as createCommentVNode, eu as CopyInput, as as withDirectives, at as vShow, g as useI18n, l as resolveComponent, ak as useTelemetry, al as useMessage, _ as _export_sfc } from "./index-7YFQEQmt.js";
|
|
2
2
|
const _hoisted_1 = { class: "pb-3xl" };
|
|
3
3
|
const _hoisted_2 = {
|
|
4
4
|
href: "https://docs.n8n.io/user-management/saml/",
|
|
@@ -20,10 +20,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
const telemetry = useTelemetry();
|
|
21
21
|
const rootStore = useRootStore();
|
|
22
22
|
const ssoStore = useSSOStore();
|
|
23
|
-
const uiStore = useUIStore();
|
|
24
23
|
const message = useMessage();
|
|
25
24
|
const toast = useToast();
|
|
26
25
|
const documentTitle = useDocumentTitle();
|
|
26
|
+
const pageRedirectionHelper = usePageRedirectionHelper();
|
|
27
27
|
const ssoActivatedLabel = computed(
|
|
28
28
|
() => ssoStore.isSamlLoginEnabled ? i18n.baseText("settings.sso.activated") : i18n.baseText("settings.sso.deactivated")
|
|
29
29
|
);
|
|
@@ -113,7 +113,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
const goToUpgrade = () => {
|
|
116
|
-
void
|
|
116
|
+
void pageRedirectionHelper.goToUpgrade("sso", "upgrade-sso");
|
|
117
117
|
};
|
|
118
118
|
const isToggleSsoDisabled = computed(() => {
|
|
119
119
|
if (ssoStore.isSamlLoginEnabled) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent,
|
|
1
|
+
import { d as defineComponent, il as useUsageStore, U as useRoute, b as useRouter, K as useUIStore, u as useUsersStore, a as useToast, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, r as ref, p as computed, o as onMounted, fc as i18n, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, A as unref, n as normalizeClass, e as createBlock, f as createCommentVNode, j as createBaseVNode, B as normalizeStyle, im as InfoTip, I as withModifiers, io as COMMUNITY_PLUS_ENROLLMENT_MODAL, l as resolveComponent, an as hasPermission, am as getResourcePermissions, ip as telemetry, _ as _export_sfc } from "./index-7YFQEQmt.js";
|
|
2
2
|
const _hoisted_1 = { class: "settings-usage-and-plan" };
|
|
3
3
|
const _hoisted_2 = { key: 0 };
|
|
4
4
|
const _hoisted_3 = { key: 0 };
|
|
@@ -17,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
const usersStore = useUsersStore();
|
|
18
18
|
const toast = useToast();
|
|
19
19
|
const documentTitle = useDocumentTitle();
|
|
20
|
+
const pageRedirectionHelper = usePageRedirectionHelper();
|
|
20
21
|
const queryParamCallback = ref(
|
|
21
22
|
`callback=${encodeURIComponent(`${window.location.origin}${window.location.pathname}`)}`
|
|
22
23
|
);
|
|
@@ -113,7 +114,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
114
|
sendUsageTelemetry("add_activation_key");
|
|
114
115
|
};
|
|
115
116
|
const onViewPlans = () => {
|
|
116
|
-
void
|
|
117
|
+
void pageRedirectionHelper.goToUpgrade("usage_page", "open");
|
|
117
118
|
sendUsageTelemetry("view_plans");
|
|
118
119
|
};
|
|
119
120
|
const onManagePlan = () => {
|
|
@@ -229,7 +230,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
229
230
|
createBaseVNode("div", {
|
|
230
231
|
class: normalizeClass(_ctx.$style.chart)
|
|
231
232
|
}, [
|
|
232
|
-
unref(usageStore).
|
|
233
|
+
unref(usageStore).activeWorkflowTriggersLimit > 0 ? (openBlock(), createElementBlock("span", {
|
|
233
234
|
key: 0,
|
|
234
235
|
class: normalizeClass(_ctx.$style.chartLine)
|
|
235
236
|
}, [
|
|
@@ -244,10 +245,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
244
245
|
keypath: "settings.usageAndPlan.activeWorkflows.count"
|
|
245
246
|
}, {
|
|
246
247
|
count: withCtx(() => [
|
|
247
|
-
createTextVNode(toDisplayString(unref(usageStore).
|
|
248
|
+
createTextVNode(toDisplayString(unref(usageStore).activeWorkflowTriggersCount), 1)
|
|
248
249
|
]),
|
|
249
250
|
limit: withCtx(() => [
|
|
250
|
-
unref(usageStore).
|
|
251
|
+
unref(usageStore).activeWorkflowTriggersLimit < 0 ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(unref(i18n).baseText("settings.usageAndPlan.activeWorkflows.unlimited")), 1)) : (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(unref(usageStore).activeWorkflowTriggersLimit), 1))
|
|
251
252
|
]),
|
|
252
253
|
_: 1
|
|
253
254
|
}, 8, ["class"])
|
|
@@ -370,7 +371,7 @@ const style0 = {
|
|
|
370
371
|
const cssModules = {
|
|
371
372
|
"$style": style0
|
|
372
373
|
};
|
|
373
|
-
const SettingsUsageAndPlan = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-
|
|
374
|
+
const SettingsUsageAndPlan = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-1f855715"]]);
|
|
374
375
|
export {
|
|
375
376
|
SettingsUsageAndPlan as default
|
|
376
377
|
};
|
|
@@ -111,7 +111,7 @@ div[class*=info] > span > span:last-child {
|
|
|
111
111
|
-ms-flex-align: center;
|
|
112
112
|
align-items: center;
|
|
113
113
|
margin: 0 0 0 var(--spacing-2xs);
|
|
114
|
-
}.settings-usage-and-plan[data-v-
|
|
114
|
+
}.settings-usage-and-plan[data-v-1f855715] .el-dialog__wrapper {
|
|
115
115
|
display: -webkit-box;
|
|
116
116
|
display: -ms-flexbox;
|
|
117
117
|
display: flex;
|
|
@@ -122,9 +122,9 @@ div[class*=info] > span > span:last-child {
|
|
|
122
122
|
-ms-flex-pack: center;
|
|
123
123
|
justify-content: center;
|
|
124
124
|
}
|
|
125
|
-
.settings-usage-and-plan[data-v-
|
|
125
|
+
.settings-usage-and-plan[data-v-1f855715] .el-dialog__wrapper .el-dialog {
|
|
126
126
|
margin: 0;
|
|
127
127
|
}
|
|
128
|
-
.settings-usage-and-plan[data-v-
|
|
128
|
+
.settings-usage-and-plan[data-v-1f855715] .el-dialog__wrapper .el-dialog .el-dialog__footer button {
|
|
129
129
|
margin-left: var(--spacing-xs);
|
|
130
130
|
}
|