n8n-editor-ui 1.63.1 → 1.64.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-CEthDL8s.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-D3L0Zqex.js} +2 -3
- package/dist/assets/{AuthView-Dtllm2Hm.js → AuthView-Bc_d9TU4.js} +3 -6
- package/dist/assets/{AuthView-BnHKMYu_.css → AuthView-Cnr31xHM.css} +6 -5
- package/dist/assets/{CanvasControls-3e7GyyWC.js → CanvasControls-BZZ5xUA4.js} +1 -31
- package/dist/assets/{ChangePasswordView-RbBzZKmy.js → ChangePasswordView-BmKDYqVl.js} +2 -36
- package/dist/assets/CollectionParameter-CZX6_SwN.js +4 -0
- package/dist/assets/{CredentialsView-BEobbBhB.js → CredentialsView-BERKB9pX.js} +5 -35
- package/dist/assets/{ErrorView-Dig_858_.js → ErrorView-CGHYke1h.js} +1 -31
- package/dist/assets/{ExecutionsFilter-D4gTpteQ.js → ExecutionsFilter-DgmpIaxp.js} +2 -5
- package/dist/assets/{ExecutionsView-BzDdfbTp.js → ExecutionsView-BVJE03N7.js} +18 -54
- package/dist/assets/{file-saver-Dbfm4l4I.js → FileSaver.min-vFM8HBH6.js} +5 -12
- package/dist/assets/{FixedCollectionParameter-B1iBnOzV.js → FixedCollectionParameter-Cu1pUHaU.js} +1 -32
- package/dist/assets/{ForgotMyPasswordView-DrecvRAt.js → ForgotMyPasswordView-CA1z31op.js} +2 -32
- package/dist/assets/{MainHeader-BGBc_yGt.js → MainHeader-lphq3_C7.js} +8 -47
- package/dist/assets/{MainSidebar-CGoARd9G.js → MainSidebar-CkmsLAKw.js} +5 -44
- package/dist/assets/{NodeCreation-CJ4p9t6U.js → NodeCreation-CDKKeIJl.js} +4 -7
- package/dist/assets/{NodeCreator-MlJNsM5w.js → NodeCreator-vrcCon6T.js} +20 -64
- package/dist/assets/{NodeViewSwitcher-CPwqYIKa.js → NodeViewSwitcher-CebfwLIC.js} +17198 -4326
- package/dist/assets/{NodeViewSwitcher-BMWd0Gm9.css → NodeViewSwitcher-DFIa0RPL.css} +136 -135
- package/dist/assets/{ProjectCardBadge-Dsi1FktR.js → ProjectCardBadge.vue_vue_type_script_setup_true_lang-FPZVaoxg.js} +1 -12
- package/dist/assets/{ProjectSettings-NxkU_5Cm.js → ProjectSettings-CGPWNP7C.js} +6 -38
- package/dist/assets/{ProjectTabs-BNt9vnB4.js → ProjectTabs-D-UxAFWq.js} +1 -3
- package/dist/assets/{PushConnectionTracker-BfyBSTsq.js → PushConnectionTracker-dMPKSiLd.js} +1 -4
- package/dist/assets/{ResourcesListLayout-wxQPFPh8.js → ResourcesListLayout-BmEYzLen.js} +2 -7
- package/dist/assets/{RunDataAi-BPXMLfKc.js → RunDataAi-iy_LiKYx.js} +51 -13
- package/dist/assets/{RunDataJson-nHxoBXwc.js → RunDataJson-30CwTvxp.js} +11 -34
- package/dist/assets/{jsonpath--XXuA3UN.js → RunDataJsonActions-DM8Iegu4.js} +272 -73
- package/dist/assets/{RunDataSearch-_dTfLnCz.js → RunDataSearch-BBZyQz1l.js} +1 -31
- package/dist/assets/{RunDataTable-Cle-Xlc9.js → RunDataTable-DlYCaRmD.js} +43 -70
- package/dist/assets/{SamlOnboarding-DJd6oxdL.js → SamlOnboarding-YPyqQAED.js} +2 -32
- package/dist/assets/{SettingsApiView-B6K4GJFb.js → SettingsApiView-DM8-r2vC.js} +11 -42
- package/dist/assets/{SettingsCommunityNodesView-BqLPWoe4.js → SettingsCommunityNodesView-CKUSvNJA.js} +3 -35
- package/dist/assets/{SettingsExternalSecrets-hxNeJoPh.js → SettingsExternalSecrets-rn0Uon3J.js} +2 -32
- package/dist/assets/SettingsFakeDoorView-DRt2eUs1.js +44 -0
- package/dist/assets/{humanize-duration-DdvB4QXM.js → SettingsLdapView-BkNvZbuP.js} +827 -12
- package/dist/assets/{SettingsLogStreamingView-DHdBwQLl.js → SettingsLogStreamingView-DJgGrIQ1.js} +1 -31
- package/dist/assets/{SettingsPersonalView-BB52C_8a.js → SettingsPersonalView-B2bLHSrL.js} +1 -31
- package/dist/assets/{SettingsSourceControl-jvUljmfM.js → SettingsSourceControl-B_iPYBUX.js} +4 -35
- package/dist/assets/{SettingsSso-CtDqCHek.js → SettingsSso-Bo8ktz1t.js} +1 -31
- package/dist/assets/{SettingsUsageAndPlan-DtE-8JQB.js → SettingsUsageAndPlan-C9jiEOqE.js} +1 -32
- package/dist/assets/{SettingsUsersView-D0fkCNqq.js → SettingsUsersView-Do-E2R-M.js} +1 -31
- package/dist/assets/{SettingsView-Bdy1VVV5.js → SettingsView-DK-_ao4_.js} +25 -34
- package/dist/assets/{SetupView-DZD5V-sp.js → SetupView-ZFKQKIJD.js} +2 -32
- package/dist/assets/{SetupWorkflowCredentialsButton-BniWA70J.js → SetupWorkflowCredentialsButton-BaMJBfk2.js} +1 -31
- package/dist/assets/{SetupWorkflowFromTemplateView-zPdNiNwz.js → SetupWorkflowFromTemplateView-BvmNbGYh.js} +3 -33
- package/dist/assets/{SigninView-vhBJQAUq.js → SigninView-k_FnQgNC.js} +2 -32
- package/dist/assets/SignoutView-DTgJmCun.js +27 -0
- package/dist/assets/{SignupView-BnaxyfVy.js → SignupView-GFIqKxQ1.js} +2 -32
- package/dist/assets/{TemplateDetails-CgWak1sI.js → TemplateDetails-CrE5d8Z2.js} +1 -4
- package/dist/assets/{TemplateList-Dk-hIcwM.js → TemplateList-DugVXLa6.js} +1 -3
- package/dist/assets/{TemplatesCollectionView-BykSqyyh.js → TemplatesCollectionView-BulzRTVk.js} +5 -35
- package/dist/assets/{TemplatesSearchView-Db3YPUKN.js → TemplatesSearchView--aU9JJ_A.js} +738 -41
- package/dist/assets/{TemplatesSearchView-BYNWZYGm.css → TemplatesSearchView-BiokbeYf.css} +94 -1
- package/dist/assets/{TemplatesView-DSqSs2Fe.js → TemplatesView-VxuSLtRB.js} +1 -3
- package/dist/assets/{TemplatesWorkflowView-AcNIRcdH.js → TemplatesWorkflowView-DEOmoGFU.js} +5 -35
- package/dist/assets/{VariablesView-BDucuF4S.js → VariablesView-D0qaiG35.js} +2 -33
- package/dist/assets/{WorkerView-Bt7mkvne.js → WorkerView-BQWPVPCG.js} +159 -43
- package/dist/assets/{WorkflowActivator-BBCmkXVM.js → WorkflowActivator-CFE8HnEQ.js} +3 -7
- package/dist/assets/{WorkflowExecutionsInfoAccordion-C1u1QoTS.js → WorkflowExecutionsInfoAccordion-j1oBChRL.js} +1 -3
- package/dist/assets/{WorkflowExecutionsLandingPage-DO0GNREn.js → WorkflowExecutionsLandingPage-7PqoziUe.js} +2 -32
- package/dist/assets/{WorkflowExecutionsPreview-DKazVAlp.js → WorkflowExecutionsPreview-BCKc44DY.js} +10 -42
- package/dist/assets/{WorkflowExecutionsView-xQs2Ihb3.js → WorkflowExecutionsView-De-rqjwc.js} +6 -37
- package/dist/assets/{WorkflowHistory-CRZhK8Sh.js → WorkflowHistory-BQHDI-k-.js} +8 -45
- package/dist/assets/{WorkflowOnboardingView-BLRc_Z_9.js → WorkflowOnboardingView-B3aKS1PJ.js} +1 -31
- package/dist/assets/{WorkflowPreview-CpeWIc9m.js → WorkflowPreview-jblZXN9D.js} +1 -3
- package/dist/assets/{WorkflowsView-CADkCbWU.js → WorkflowsView-DQqwovww.js} +19 -37
- package/dist/assets/cloud-ChkMgrsu.js +37 -0
- package/dist/assets/{dateFormatter-B-oph3V5.js → dateFormatter-BOFH7hQn.js} +1 -1
- package/dist/assets/index-B5Li9oNe.js +331713 -0
- package/dist/assets/{index-B5Pl_Rdy.css → index-BGyoJ6bM.css} +3941 -8
- package/dist/assets/{pushConnection.store-BGMVJHP3.js → pushConnection.store-Cp0wdk-m.js} +3 -3
- package/dist/assets/{templateActions-DOJZ_yY5.js → templateActions-DbRugCSY.js} +1 -1
- package/dist/assets/{useBeforeUnload-Tcm8t4ZF.js → useBeforeUnload-HSb2Wsej.js} +1 -2
- package/dist/assets/{useExecutionDebugging-CiwtVWXD.js → useExecutionDebugging-Czs7eCHy.js} +1 -2
- package/dist/assets/{usePushConnection-CbB_XBsw.js → usePushConnection-CLr2QrgA.js} +12 -17
- package/dist/assets/{useWorkflowActivate-C8RDXHeZ.js → useWorkflowActivate-D9OoUkBo.js} +1 -2
- package/dist/index.html +2 -33
- package/package.json +1 -1
- package/vite.config.mts +0 -41
- package/dist/assets/@jsplumb/browser-ui-D3WTv2iL.js +0 -5431
- package/dist/assets/@jsplumb/common-Cn2WooAp.js +0 -142
- package/dist/assets/@jsplumb/connector-bezier-BsoOTqok.js +0 -1019
- package/dist/assets/@jsplumb/core-DLCSr9D4.js +0 -7317
- package/dist/assets/@jsplumb/util-DggqnqQo.js +0 -936
- package/dist/assets/@lezer/common-Bs5t-XhT.js +0 -1988
- package/dist/assets/@n8n/api-types-Clq_Leox.js +0 -1
- package/dist/assets/@n8n/codemirror-lang-Bizw8G99.js +0 -20928
- package/dist/assets/@n8n/codemirror-lang-sql-C9sfSTUi.js +0 -14443
- package/dist/assets/@n8n/permissions-BxSXRD9U.js +0 -52
- package/dist/assets/@sentry/vue-By9cUXYj.js +0 -23618
- package/dist/assets/@vue-flow/background-B1J8rodd.js +0 -123
- package/dist/assets/@vue-flow/controls-B4bXJQnK.js +0 -204
- package/dist/assets/@vue-flow/core-tETEFGtP.js +0 -9818
- package/dist/assets/@vue-flow/minimap-CGW7BbeH.js +0 -2951
- package/dist/assets/@vue-flow/node-resizer-C7hxX6Ea.js +0 -1398
- package/dist/assets/@vueuse/core-BTO0AmLR.js +0 -8894
- package/dist/assets/RunDataJsonActions-CXjxyS8I.js +0 -270
- package/dist/assets/SettingsFakeDoorView-B-CvApAQ.js +0 -74
- package/dist/assets/SettingsLdapView-Cx9juILz.js +0 -746
- package/dist/assets/SignoutView-BvsyOBJl.js +0 -57
- package/dist/assets/aws-secrets-manager-NwVFybsa.svg +0 -18
- package/dist/assets/axios-BW6T4tHC.js +0 -2403
- package/dist/assets/azure-key-vault-DTTl_IR7.svg +0 -23
- package/dist/assets/bowser-CDCHPFWD.js +0 -1931
- package/dist/assets/change-case-Dux1iW35.js +0 -137
- package/dist/assets/chart.js-BYpPl_l4.js +0 -14318
- package/dist/assets/cloud-CyEezfUz.js +0 -95
- package/dist/assets/codemirror-lang-html-n8n-BElKE4vf.js +0 -2498
- package/dist/assets/dateformat-BevCJF2z.js +0 -208
- package/dist/assets/email-providers-Brdpqw-Z.js +0 -1
- package/dist/assets/esprima-next-DUEu30kB.js +0 -6712
- package/dist/assets/fast-json-stable-stringify-D9R5x91P.js +0 -55
- package/dist/assets/flatted-BLlNkUR-.js +0 -76
- package/dist/assets/gcp-secrets-manager-BcK0Zj6Y.svg +0 -9
- package/dist/assets/hashicorp-5zlHdJCj.webp +0 -0
- package/dist/assets/highlight.js-Brdpqw-Z.js +0 -1
- package/dist/assets/index-DTqspxIG.js +0 -87778
- package/dist/assets/infisical-Db7VXgLp.webp +0 -0
- package/dist/assets/lodash-es-DCRmYdQ5.js +0 -6061
- package/dist/assets/luxon-N8mghSWH.js +0 -6159
- package/dist/assets/n8n-C6KBCWah.css +0 -4973
- package/dist/assets/n8n-o-6nV4eX.js +0 -163925
- package/dist/assets/pinia-BWzoPyXU.js +0 -1650
- package/dist/assets/prettier-eWLVZldr.js +0 -2294
- package/dist/assets/qrcode.vue-BavVPFUM.js +0 -1132
- package/dist/assets/timeago.js-CgQus8nl.js +0 -116
- package/dist/assets/useUserHelpers-CKYk9GNq.js +0 -27
- package/dist/assets/uuid-DRDfXVM2.js +0 -542
- package/dist/assets/v3-infinite-loading-CHlSsXAy.js +0 -114
- package/dist/assets/vendor-D8YCjNHu.js +0 -14463
- package/dist/assets/vue-agile-B2NGbzqY.css +0 -93
- package/dist/assets/vue-agile-Busf3nxn.js +0 -727
- package/dist/assets/vue-chartjs-DBNEiLG-.js +0 -203
- package/dist/assets/vue-i18n-CeifA_Nk.js +0 -5329
- package/dist/assets/vue-json-pretty-DHS8nWi_.js +0 -340
- package/dist/assets/vue3-touch-events-DVOgU3fI.js +0 -301
- package/dist/assets/xss-Brdpqw-Z.js +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var humanizeDuration$
|
|
3
|
-
var humanizeDuration = humanizeDuration$2.exports;
|
|
1
|
+
import { dT as getDefaultExportFromCjs, r as ref, cq as toRefs, o as onMounted, bZ 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, C as nextTick, c3 as pushScopeId, c0 as popScopeId, d as defineComponent, a as useToast, a3 as useDocumentTitle, m as useSettingsStore, K as useUIStore, p as computed, w as withCtx, k as createTextVNode, A as unref, n as normalizeClass, as as withDirectives, e as createBlock, hq as ElTableColumn, hr as ElTable, g as useI18n, hs as createFormEventBus, ae as MODAL_CONFIRM, l as resolveComponent, c9 as resolveDirective, al as useMessage, ht as capitalizeFirstLetter, hu as convertToDisplayDate, _ as _export_sfc } from "./index-B5Li9oNe.js";
|
|
2
|
+
var humanizeDuration$1 = { exports: {} };
|
|
4
3
|
(function(module) {
|
|
5
4
|
(function() {
|
|
6
5
|
var greek = {
|
|
@@ -1584,19 +1583,835 @@ var humanizeDuration = humanizeDuration$2.exports;
|
|
|
1584
1583
|
return result;
|
|
1585
1584
|
};
|
|
1586
1585
|
humanizeDuration2.humanizer = humanizer;
|
|
1587
|
-
if (
|
|
1588
|
-
(void 0)(function() {
|
|
1589
|
-
return humanizeDuration2;
|
|
1590
|
-
});
|
|
1591
|
-
} else if (module.exports) {
|
|
1586
|
+
if (module.exports) {
|
|
1592
1587
|
module.exports = humanizeDuration2;
|
|
1593
1588
|
} else {
|
|
1594
1589
|
this.humanizeDuration = humanizeDuration2;
|
|
1595
1590
|
}
|
|
1596
1591
|
})();
|
|
1597
|
-
})(humanizeDuration$
|
|
1598
|
-
var humanizeDurationExports = humanizeDuration$
|
|
1599
|
-
const humanizeDuration
|
|
1592
|
+
})(humanizeDuration$1);
|
|
1593
|
+
var humanizeDurationExports = humanizeDuration$1.exports;
|
|
1594
|
+
const humanizeDuration = /* @__PURE__ */ getDefaultExportFromCjs(humanizeDurationExports);
|
|
1595
|
+
const E = (e, o) => {
|
|
1596
|
+
const t = e.__vccOpts || e;
|
|
1597
|
+
for (const [n, s] of o)
|
|
1598
|
+
t[n] = s;
|
|
1599
|
+
return t;
|
|
1600
|
+
}, C = {}, j = (e) => (pushScopeId("data-v-259be2b2"), e = e(), popScopeId(), e), M = { class: "container" }, T = /* @__PURE__ */ j(() => /* @__PURE__ */ createBaseVNode("div", { class: "spinner" }, null, -1)), V = [
|
|
1601
|
+
T
|
|
1602
|
+
];
|
|
1603
|
+
function W(e, o) {
|
|
1604
|
+
return openBlock(), createElementBlock("div", M, V);
|
|
1605
|
+
}
|
|
1606
|
+
const D = /* @__PURE__ */ E(C, [["render", W], ["__scopeId", "data-v-259be2b2"], ["__file", "/home/oumoussa/side-projects/infinite/src/components/Spinner.vue"]]), U = (e) => ({
|
|
1607
|
+
loading() {
|
|
1608
|
+
e.value = "loading";
|
|
1609
|
+
},
|
|
1610
|
+
loaded() {
|
|
1611
|
+
e.value = "loaded";
|
|
1612
|
+
},
|
|
1613
|
+
complete() {
|
|
1614
|
+
e.value = "complete";
|
|
1615
|
+
},
|
|
1616
|
+
error() {
|
|
1617
|
+
e.value = "error";
|
|
1618
|
+
}
|
|
1619
|
+
}), z = (e, o, t) => () => {
|
|
1620
|
+
const n = t.parentEl || document.documentElement;
|
|
1621
|
+
t.prevHeight = n.scrollHeight, o.loading(), e("infinite", o);
|
|
1622
|
+
}, A = (e, o) => {
|
|
1623
|
+
const t = e.getBoundingClientRect();
|
|
1624
|
+
if (!o)
|
|
1625
|
+
return t.top >= 0 && t.bottom <= window.innerHeight;
|
|
1626
|
+
const n = o.getBoundingClientRect();
|
|
1627
|
+
return t.top >= n.top && t.bottom <= n.bottom;
|
|
1628
|
+
}, y = (e) => {
|
|
1629
|
+
e.parentEl = document.querySelector(e.target) || null;
|
|
1630
|
+
let o = `0px 0px ${e.distance}px 0px`;
|
|
1631
|
+
e.top && (o = `${e.distance}px 0px 0px 0px`);
|
|
1632
|
+
const t = new IntersectionObserver(
|
|
1633
|
+
(n) => {
|
|
1634
|
+
n[0].isIntersecting && (e.firstload && e.emit(), e.firstload = true);
|
|
1635
|
+
},
|
|
1636
|
+
{ root: e.parentEl, rootMargin: o }
|
|
1637
|
+
);
|
|
1638
|
+
return t.observe(e.infiniteLoading.value), t;
|
|
1639
|
+
};
|
|
1640
|
+
const F = { class: "state-error" }, G = {
|
|
1641
|
+
__name: "InfiniteLoading",
|
|
1642
|
+
props: {
|
|
1643
|
+
top: { type: Boolean, required: false },
|
|
1644
|
+
target: { type: [String, Boolean], required: false },
|
|
1645
|
+
distance: { type: Number, required: false, default: 0 },
|
|
1646
|
+
identifier: { required: false },
|
|
1647
|
+
firstload: { type: Boolean, required: false, default: true },
|
|
1648
|
+
slots: { type: Object, required: false }
|
|
1649
|
+
},
|
|
1650
|
+
emits: ["infinite"],
|
|
1651
|
+
setup(e, { emit: o }) {
|
|
1652
|
+
const t = e;
|
|
1653
|
+
let n = null;
|
|
1654
|
+
const s = ref(null), l = ref("ready"), { top: f, firstload: x, target: I, distance: S } = t, { identifier: _ } = toRefs(t), i = {
|
|
1655
|
+
infiniteLoading: s,
|
|
1656
|
+
target: I,
|
|
1657
|
+
top: f,
|
|
1658
|
+
firstload: x,
|
|
1659
|
+
distance: S,
|
|
1660
|
+
prevHeight: 0,
|
|
1661
|
+
parentEl: null
|
|
1662
|
+
};
|
|
1663
|
+
i.emit = z(o, U(l), i);
|
|
1664
|
+
const k = () => watch(l, async (r) => {
|
|
1665
|
+
const c = i.parentEl || document.documentElement;
|
|
1666
|
+
await nextTick(), r == "loaded" && f && (c.scrollTop = c.scrollHeight - i.prevHeight), r == "loaded" && A(s.value, i.parentEl) && i.emit(), r == "complete" && n.disconnect();
|
|
1667
|
+
}), q = () => watch(_, () => {
|
|
1668
|
+
l.value = "ready", n.disconnect(), n = y(i);
|
|
1669
|
+
});
|
|
1670
|
+
return onMounted(() => {
|
|
1671
|
+
n = y(i), k(), _ && q();
|
|
1672
|
+
}), onUnmounted(() => {
|
|
1673
|
+
n.disconnect();
|
|
1674
|
+
}), (r, c) => (openBlock(), createElementBlock("div", {
|
|
1675
|
+
ref_key: "infiniteLoading",
|
|
1676
|
+
ref: s
|
|
1677
|
+
}, [
|
|
1678
|
+
l.value == "loading" ? renderSlot(r.$slots, "spinner", { key: 0 }, () => [
|
|
1679
|
+
createVNode(D)
|
|
1680
|
+
], true) : createCommentVNode("v-if", true),
|
|
1681
|
+
l.value == "complete" ? renderSlot(r.$slots, "complete", { key: 1 }, () => {
|
|
1682
|
+
var d;
|
|
1683
|
+
return [
|
|
1684
|
+
createBaseVNode("span", null, toDisplayString(((d = e.slots) == null ? void 0 : d.complete) || "No more results!"), 1)
|
|
1685
|
+
];
|
|
1686
|
+
}, true) : createCommentVNode("v-if", true),
|
|
1687
|
+
l.value == "error" ? renderSlot(r.$slots, "error", {
|
|
1688
|
+
key: 2,
|
|
1689
|
+
retry: i.emit
|
|
1690
|
+
}, () => {
|
|
1691
|
+
var d;
|
|
1692
|
+
return [
|
|
1693
|
+
createBaseVNode("span", F, [
|
|
1694
|
+
createBaseVNode("span", null, toDisplayString(((d = e.slots) == null ? void 0 : d.error) || "Oops something went wrong!"), 1),
|
|
1695
|
+
createBaseVNode("button", {
|
|
1696
|
+
class: "retry",
|
|
1697
|
+
onClick: c[0] || (c[0] = (...B) => i.emit && i.emit(...B))
|
|
1698
|
+
}, " retry ")
|
|
1699
|
+
])
|
|
1700
|
+
];
|
|
1701
|
+
}, true) : createCommentVNode("v-if", true)
|
|
1702
|
+
], 512));
|
|
1703
|
+
}
|
|
1704
|
+
}, K = /* @__PURE__ */ E(G, [["__scopeId", "data-v-9d82030b"], ["__file", "/home/oumoussa/side-projects/infinite/src/components/InfiniteLoading.vue"]]);
|
|
1705
|
+
const _hoisted_1 = { key: 0 };
|
|
1706
|
+
const _hoisted_2 = { key: 1 };
|
|
1707
|
+
const _hoisted_3 = { key: 0 };
|
|
1708
|
+
const _hoisted_4 = { class: "pb-3xl" };
|
|
1709
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1710
|
+
__name: "SettingsLdapView",
|
|
1711
|
+
setup(__props) {
|
|
1712
|
+
const toast = useToast();
|
|
1713
|
+
const i18n = useI18n();
|
|
1714
|
+
const message = useMessage();
|
|
1715
|
+
const documentTitle = useDocumentTitle();
|
|
1716
|
+
const settingsStore = useSettingsStore();
|
|
1717
|
+
const uiStore = useUIStore();
|
|
1718
|
+
const dataTable = ref([]);
|
|
1719
|
+
const tableKey = ref(0);
|
|
1720
|
+
const adConfig = ref();
|
|
1721
|
+
const loadingTestConnection = ref(false);
|
|
1722
|
+
const loadingDryRun = ref(false);
|
|
1723
|
+
const loadingLiveRun = ref(false);
|
|
1724
|
+
const loadingTable = ref(false);
|
|
1725
|
+
const hasAnyChanges = ref(false);
|
|
1726
|
+
const formInputs = ref(null);
|
|
1727
|
+
const formBus = createFormEventBus();
|
|
1728
|
+
const readyToSubmit = ref(false);
|
|
1729
|
+
const page = ref(0);
|
|
1730
|
+
const loginEnabled = ref(false);
|
|
1731
|
+
const syncEnabled = ref(false);
|
|
1732
|
+
const ldapConfigFormRef = ref();
|
|
1733
|
+
const isLDAPFeatureEnabled = computed(() => settingsStore.settings.enterprise.ldap);
|
|
1734
|
+
const goToUpgrade = async () => await uiStore.goToUpgrade("ldap", "upgrade-ldap");
|
|
1735
|
+
const cellClassStyle = ({ row, column }) => {
|
|
1736
|
+
if (column.property === "status") {
|
|
1737
|
+
if (row.status === "Success") {
|
|
1738
|
+
return { color: "green" };
|
|
1739
|
+
} else if (row.status === "Error") {
|
|
1740
|
+
return { color: "red" };
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
if (column.property === "runMode") {
|
|
1744
|
+
if (row.runMode === "Dry") {
|
|
1745
|
+
return { color: "orange" };
|
|
1746
|
+
} else if (row.runMode === "Live") {
|
|
1747
|
+
return { color: "blue" };
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
return {};
|
|
1751
|
+
};
|
|
1752
|
+
const onInput = (input) => {
|
|
1753
|
+
if (input.name === "loginEnabled" && typeof input.value === "boolean") {
|
|
1754
|
+
loginEnabled.value = input.value;
|
|
1755
|
+
}
|
|
1756
|
+
if (input.name === "synchronizationEnabled" && typeof input.value === "boolean") {
|
|
1757
|
+
syncEnabled.value = input.value;
|
|
1758
|
+
}
|
|
1759
|
+
hasAnyChanges.value = true;
|
|
1760
|
+
};
|
|
1761
|
+
const onReadyToSubmit = (ready) => {
|
|
1762
|
+
readyToSubmit.value = ready;
|
|
1763
|
+
};
|
|
1764
|
+
const syncDataMapper = (sync) => {
|
|
1765
|
+
const startedAt = new Date(sync.startedAt);
|
|
1766
|
+
const endedAt = new Date(sync.endedAt);
|
|
1767
|
+
const runTimeInMinutes = endedAt.getTime() - startedAt.getTime();
|
|
1768
|
+
return {
|
|
1769
|
+
runTime: humanizeDuration(runTimeInMinutes),
|
|
1770
|
+
runMode: capitalizeFirstLetter(sync.runMode),
|
|
1771
|
+
status: capitalizeFirstLetter(sync.status),
|
|
1772
|
+
endedAt: convertToDisplayDate(endedAt.getTime()),
|
|
1773
|
+
details: i18n.baseText("settings.ldap.usersScanned", {
|
|
1774
|
+
interpolate: {
|
|
1775
|
+
scanned: sync.scanned.toString()
|
|
1776
|
+
}
|
|
1777
|
+
})
|
|
1778
|
+
};
|
|
1779
|
+
};
|
|
1780
|
+
const onSubmit = async () => {
|
|
1781
|
+
if (!hasAnyChanges.value || !ldapConfigFormRef.value) {
|
|
1782
|
+
return;
|
|
1783
|
+
}
|
|
1784
|
+
const formValues = ldapConfigFormRef.value.getValues();
|
|
1785
|
+
const newConfiguration = {
|
|
1786
|
+
loginEnabled: formValues.loginEnabled,
|
|
1787
|
+
loginLabel: formValues.loginLabel,
|
|
1788
|
+
connectionUrl: formValues.serverAddress,
|
|
1789
|
+
allowUnauthorizedCerts: formValues.allowUnauthorizedCerts,
|
|
1790
|
+
connectionPort: +formValues.port,
|
|
1791
|
+
connectionSecurity: formValues.connectionSecurity,
|
|
1792
|
+
baseDn: formValues.baseDn,
|
|
1793
|
+
bindingAdminDn: formValues.bindingType === "admin" ? formValues.adminDn : "",
|
|
1794
|
+
bindingAdminPassword: formValues.bindingType === "admin" ? formValues.adminPassword : "",
|
|
1795
|
+
emailAttribute: formValues.email,
|
|
1796
|
+
firstNameAttribute: formValues.firstName,
|
|
1797
|
+
lastNameAttribute: formValues.lastName,
|
|
1798
|
+
loginIdAttribute: formValues.loginId,
|
|
1799
|
+
ldapIdAttribute: formValues.ldapId,
|
|
1800
|
+
userFilter: formValues.userFilter,
|
|
1801
|
+
synchronizationEnabled: formValues.synchronizationEnabled,
|
|
1802
|
+
synchronizationInterval: +formValues.synchronizationInterval,
|
|
1803
|
+
searchPageSize: +formValues.pageSize,
|
|
1804
|
+
searchTimeout: +formValues.searchTimeout
|
|
1805
|
+
};
|
|
1806
|
+
let saveForm = true;
|
|
1807
|
+
if (!adConfig.value) return;
|
|
1808
|
+
try {
|
|
1809
|
+
if (adConfig.value.loginEnabled && !newConfiguration.loginEnabled) {
|
|
1810
|
+
const confirmAction = await message.confirm(
|
|
1811
|
+
i18n.baseText("settings.ldap.confirmMessage.beforeSaveForm.message"),
|
|
1812
|
+
i18n.baseText("settings.ldap.confirmMessage.beforeSaveForm.headline"),
|
|
1813
|
+
{
|
|
1814
|
+
cancelButtonText: i18n.baseText(
|
|
1815
|
+
"settings.ldap.confirmMessage.beforeSaveForm.cancelButtonText"
|
|
1816
|
+
),
|
|
1817
|
+
confirmButtonText: i18n.baseText(
|
|
1818
|
+
"settings.ldap.confirmMessage.beforeSaveForm.confirmButtonText"
|
|
1819
|
+
)
|
|
1820
|
+
}
|
|
1821
|
+
);
|
|
1822
|
+
saveForm = confirmAction === MODAL_CONFIRM;
|
|
1823
|
+
}
|
|
1824
|
+
if (!saveForm) {
|
|
1825
|
+
hasAnyChanges.value = true;
|
|
1826
|
+
}
|
|
1827
|
+
adConfig.value = await settingsStore.updateLdapConfig(newConfiguration);
|
|
1828
|
+
toast.showToast({
|
|
1829
|
+
title: i18n.baseText("settings.ldap.updateConfiguration"),
|
|
1830
|
+
message: "",
|
|
1831
|
+
type: "success"
|
|
1832
|
+
});
|
|
1833
|
+
} catch (error) {
|
|
1834
|
+
toast.showError(error, i18n.baseText("settings.ldap.configurationError"));
|
|
1835
|
+
} finally {
|
|
1836
|
+
if (saveForm) {
|
|
1837
|
+
hasAnyChanges.value = false;
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
};
|
|
1841
|
+
const onSaveClick = () => {
|
|
1842
|
+
formBus.emit("submit");
|
|
1843
|
+
};
|
|
1844
|
+
const onTestConnectionClick = async () => {
|
|
1845
|
+
loadingTestConnection.value = true;
|
|
1846
|
+
try {
|
|
1847
|
+
await settingsStore.testLdapConnection();
|
|
1848
|
+
toast.showToast({
|
|
1849
|
+
title: i18n.baseText("settings.ldap.connectionTest"),
|
|
1850
|
+
message: i18n.baseText("settings.ldap.toast.connection.success"),
|
|
1851
|
+
type: "success"
|
|
1852
|
+
});
|
|
1853
|
+
} catch (error) {
|
|
1854
|
+
toast.showToast({
|
|
1855
|
+
title: i18n.baseText("settings.ldap.connectionTestError"),
|
|
1856
|
+
message: error.message,
|
|
1857
|
+
type: "error"
|
|
1858
|
+
});
|
|
1859
|
+
} finally {
|
|
1860
|
+
loadingTestConnection.value = false;
|
|
1861
|
+
}
|
|
1862
|
+
};
|
|
1863
|
+
const onDryRunClick = async () => {
|
|
1864
|
+
loadingDryRun.value = true;
|
|
1865
|
+
try {
|
|
1866
|
+
await settingsStore.runLdapSync({ type: "dry" });
|
|
1867
|
+
toast.showToast({
|
|
1868
|
+
title: i18n.baseText("settings.ldap.runSync.title"),
|
|
1869
|
+
message: i18n.baseText("settings.ldap.toast.sync.success"),
|
|
1870
|
+
type: "success"
|
|
1871
|
+
});
|
|
1872
|
+
} catch (error) {
|
|
1873
|
+
toast.showError(error, i18n.baseText("settings.ldap.synchronizationError"));
|
|
1874
|
+
} finally {
|
|
1875
|
+
loadingDryRun.value = false;
|
|
1876
|
+
await reloadLdapSynchronizations();
|
|
1877
|
+
}
|
|
1878
|
+
};
|
|
1879
|
+
const onLiveRunClick = async () => {
|
|
1880
|
+
loadingLiveRun.value = true;
|
|
1881
|
+
try {
|
|
1882
|
+
await settingsStore.runLdapSync({ type: "live" });
|
|
1883
|
+
toast.showToast({
|
|
1884
|
+
title: i18n.baseText("settings.ldap.runSync.title"),
|
|
1885
|
+
message: i18n.baseText("settings.ldap.toast.sync.success"),
|
|
1886
|
+
type: "success"
|
|
1887
|
+
});
|
|
1888
|
+
} catch (error) {
|
|
1889
|
+
toast.showError(error, i18n.baseText("settings.ldap.synchronizationError"));
|
|
1890
|
+
} finally {
|
|
1891
|
+
loadingLiveRun.value = false;
|
|
1892
|
+
await reloadLdapSynchronizations();
|
|
1893
|
+
}
|
|
1894
|
+
};
|
|
1895
|
+
const getLdapConfig = async () => {
|
|
1896
|
+
try {
|
|
1897
|
+
adConfig.value = await settingsStore.getLdapConfig();
|
|
1898
|
+
loginEnabled.value = adConfig.value.loginEnabled;
|
|
1899
|
+
syncEnabled.value = adConfig.value.synchronizationEnabled;
|
|
1900
|
+
const whenLoginEnabled = (values) => values.loginEnabled === true;
|
|
1901
|
+
const whenSyncAndLoginEnabled = (values) => values.synchronizationEnabled === true && values.loginEnabled === true;
|
|
1902
|
+
const whenAdminBindingAndLoginEnabled = (values) => values.bindingType === "admin" && values.loginEnabled === true;
|
|
1903
|
+
formInputs.value = [
|
|
1904
|
+
{
|
|
1905
|
+
name: "loginEnabled",
|
|
1906
|
+
initialValue: adConfig.value.loginEnabled,
|
|
1907
|
+
properties: {
|
|
1908
|
+
type: "toggle",
|
|
1909
|
+
label: i18n.baseText("settings.ldap.form.loginEnabled.label"),
|
|
1910
|
+
tooltipText: i18n.baseText("settings.ldap.form.loginEnabled.tooltip"),
|
|
1911
|
+
required: true
|
|
1912
|
+
}
|
|
1913
|
+
},
|
|
1914
|
+
{
|
|
1915
|
+
name: "loginLabel",
|
|
1916
|
+
initialValue: adConfig.value.loginLabel,
|
|
1917
|
+
properties: {
|
|
1918
|
+
label: i18n.baseText("settings.ldap.form.loginLabel.label"),
|
|
1919
|
+
required: true,
|
|
1920
|
+
placeholder: i18n.baseText("settings.ldap.form.loginLabel.placeholder"),
|
|
1921
|
+
infoText: i18n.baseText("settings.ldap.form.loginLabel.infoText")
|
|
1922
|
+
},
|
|
1923
|
+
shouldDisplay: whenLoginEnabled
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
name: "serverAddress",
|
|
1927
|
+
initialValue: adConfig.value.connectionUrl,
|
|
1928
|
+
properties: {
|
|
1929
|
+
label: i18n.baseText("settings.ldap.form.serverAddress.label"),
|
|
1930
|
+
required: true,
|
|
1931
|
+
capitalize: true,
|
|
1932
|
+
placeholder: i18n.baseText("settings.ldap.form.serverAddress.placeholder"),
|
|
1933
|
+
infoText: i18n.baseText("settings.ldap.form.serverAddress.infoText")
|
|
1934
|
+
},
|
|
1935
|
+
shouldDisplay: whenLoginEnabled
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
name: "port",
|
|
1939
|
+
initialValue: adConfig.value.connectionPort,
|
|
1940
|
+
properties: {
|
|
1941
|
+
type: "number",
|
|
1942
|
+
label: i18n.baseText("settings.ldap.form.port.label"),
|
|
1943
|
+
capitalize: true,
|
|
1944
|
+
infoText: i18n.baseText("settings.ldap.form.port.infoText")
|
|
1945
|
+
},
|
|
1946
|
+
shouldDisplay: whenLoginEnabled
|
|
1947
|
+
},
|
|
1948
|
+
{
|
|
1949
|
+
name: "connectionSecurity",
|
|
1950
|
+
initialValue: adConfig.value.connectionSecurity,
|
|
1951
|
+
properties: {
|
|
1952
|
+
type: "select",
|
|
1953
|
+
label: i18n.baseText("settings.ldap.form.connectionSecurity.label"),
|
|
1954
|
+
infoText: i18n.baseText("settings.ldap.form.connectionSecurity.infoText"),
|
|
1955
|
+
options: [
|
|
1956
|
+
{
|
|
1957
|
+
label: "None",
|
|
1958
|
+
value: "none"
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
label: "TLS",
|
|
1962
|
+
value: "tls"
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
label: "STARTTLS",
|
|
1966
|
+
value: "startTls"
|
|
1967
|
+
}
|
|
1968
|
+
],
|
|
1969
|
+
required: true,
|
|
1970
|
+
capitalize: true
|
|
1971
|
+
},
|
|
1972
|
+
shouldDisplay: whenLoginEnabled
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
name: "allowUnauthorizedCerts",
|
|
1976
|
+
initialValue: adConfig.value.allowUnauthorizedCerts,
|
|
1977
|
+
properties: {
|
|
1978
|
+
type: "toggle",
|
|
1979
|
+
label: i18n.baseText("settings.ldap.form.allowUnauthorizedCerts.label"),
|
|
1980
|
+
required: false
|
|
1981
|
+
},
|
|
1982
|
+
shouldDisplay(values) {
|
|
1983
|
+
return values.connectionSecurity !== "none" && values.loginEnabled === true;
|
|
1984
|
+
}
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
name: "baseDn",
|
|
1988
|
+
initialValue: adConfig.value.baseDn,
|
|
1989
|
+
properties: {
|
|
1990
|
+
label: i18n.baseText("settings.ldap.form.baseDn.label"),
|
|
1991
|
+
required: true,
|
|
1992
|
+
capitalize: true,
|
|
1993
|
+
placeholder: i18n.baseText("settings.ldap.form.baseDn.placeholder"),
|
|
1994
|
+
infoText: i18n.baseText("settings.ldap.form.baseDn.infoText")
|
|
1995
|
+
},
|
|
1996
|
+
shouldDisplay: whenLoginEnabled
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
name: "bindingType",
|
|
2000
|
+
initialValue: "admin",
|
|
2001
|
+
properties: {
|
|
2002
|
+
type: "select",
|
|
2003
|
+
label: i18n.baseText("settings.ldap.form.bindingType.label"),
|
|
2004
|
+
infoText: i18n.baseText("settings.ldap.form.bindingType.infoText"),
|
|
2005
|
+
options: [
|
|
2006
|
+
{
|
|
2007
|
+
value: "admin",
|
|
2008
|
+
label: "Admin"
|
|
2009
|
+
},
|
|
2010
|
+
{
|
|
2011
|
+
value: "anonymous",
|
|
2012
|
+
label: "Anonymous"
|
|
2013
|
+
}
|
|
2014
|
+
]
|
|
2015
|
+
},
|
|
2016
|
+
shouldDisplay: whenLoginEnabled
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
name: "adminDn",
|
|
2020
|
+
initialValue: adConfig.value.bindingAdminDn,
|
|
2021
|
+
properties: {
|
|
2022
|
+
label: i18n.baseText("settings.ldap.form.adminDn.label"),
|
|
2023
|
+
placeholder: i18n.baseText("settings.ldap.form.adminDn.placeholder"),
|
|
2024
|
+
infoText: i18n.baseText("settings.ldap.form.adminDn.infoText"),
|
|
2025
|
+
capitalize: true
|
|
2026
|
+
},
|
|
2027
|
+
shouldDisplay: whenAdminBindingAndLoginEnabled
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
name: "adminPassword",
|
|
2031
|
+
initialValue: adConfig.value.bindingAdminPassword,
|
|
2032
|
+
properties: {
|
|
2033
|
+
label: i18n.baseText("settings.ldap.form.adminPassword.label"),
|
|
2034
|
+
type: "password",
|
|
2035
|
+
capitalize: true,
|
|
2036
|
+
infoText: i18n.baseText("settings.ldap.form.adminPassword.infoText")
|
|
2037
|
+
},
|
|
2038
|
+
shouldDisplay: whenAdminBindingAndLoginEnabled
|
|
2039
|
+
},
|
|
2040
|
+
{
|
|
2041
|
+
name: "userFilter",
|
|
2042
|
+
initialValue: adConfig.value.userFilter,
|
|
2043
|
+
properties: {
|
|
2044
|
+
label: i18n.baseText("settings.ldap.form.userFilter.label"),
|
|
2045
|
+
type: "text",
|
|
2046
|
+
required: false,
|
|
2047
|
+
capitalize: true,
|
|
2048
|
+
placeholder: i18n.baseText("settings.ldap.form.userFilter.placeholder"),
|
|
2049
|
+
infoText: i18n.baseText("settings.ldap.form.userFilter.infoText")
|
|
2050
|
+
},
|
|
2051
|
+
shouldDisplay: whenLoginEnabled
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
name: "attributeMappingInfo",
|
|
2055
|
+
properties: {
|
|
2056
|
+
label: i18n.baseText("settings.ldap.form.attributeMappingInfo.label"),
|
|
2057
|
+
type: "info",
|
|
2058
|
+
labelSize: "large",
|
|
2059
|
+
labelAlignment: "left"
|
|
2060
|
+
},
|
|
2061
|
+
shouldDisplay: whenLoginEnabled
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
name: "ldapId",
|
|
2065
|
+
initialValue: adConfig.value.ldapIdAttribute,
|
|
2066
|
+
properties: {
|
|
2067
|
+
label: i18n.baseText("settings.ldap.form.ldapId.label"),
|
|
2068
|
+
type: "text",
|
|
2069
|
+
required: true,
|
|
2070
|
+
capitalize: true,
|
|
2071
|
+
placeholder: i18n.baseText("settings.ldap.form.ldapId.placeholder"),
|
|
2072
|
+
infoText: i18n.baseText("settings.ldap.form.ldapId.infoText")
|
|
2073
|
+
},
|
|
2074
|
+
shouldDisplay: whenLoginEnabled
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
name: "loginId",
|
|
2078
|
+
initialValue: adConfig.value.loginIdAttribute,
|
|
2079
|
+
properties: {
|
|
2080
|
+
label: i18n.baseText("settings.ldap.form.loginId.label"),
|
|
2081
|
+
type: "text",
|
|
2082
|
+
autocomplete: "email",
|
|
2083
|
+
required: true,
|
|
2084
|
+
capitalize: true,
|
|
2085
|
+
placeholder: i18n.baseText("settings.ldap.form.loginId.placeholder"),
|
|
2086
|
+
infoText: i18n.baseText("settings.ldap.form.loginId.infoText")
|
|
2087
|
+
},
|
|
2088
|
+
shouldDisplay: whenLoginEnabled
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
name: "email",
|
|
2092
|
+
initialValue: adConfig.value.emailAttribute,
|
|
2093
|
+
properties: {
|
|
2094
|
+
label: i18n.baseText("settings.ldap.form.email.label"),
|
|
2095
|
+
type: "text",
|
|
2096
|
+
autocomplete: "email",
|
|
2097
|
+
required: true,
|
|
2098
|
+
capitalize: true,
|
|
2099
|
+
placeholder: i18n.baseText("settings.ldap.form.email.placeholder"),
|
|
2100
|
+
infoText: i18n.baseText("settings.ldap.form.email.infoText")
|
|
2101
|
+
},
|
|
2102
|
+
shouldDisplay: whenLoginEnabled
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
name: "firstName",
|
|
2106
|
+
initialValue: adConfig.value.firstNameAttribute,
|
|
2107
|
+
properties: {
|
|
2108
|
+
label: i18n.baseText("settings.ldap.form.firstName.label"),
|
|
2109
|
+
type: "text",
|
|
2110
|
+
autocomplete: "email",
|
|
2111
|
+
required: true,
|
|
2112
|
+
capitalize: true,
|
|
2113
|
+
placeholder: i18n.baseText("settings.ldap.form.firstName.placeholder"),
|
|
2114
|
+
infoText: i18n.baseText("settings.ldap.form.firstName.infoText")
|
|
2115
|
+
},
|
|
2116
|
+
shouldDisplay: whenLoginEnabled
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
name: "lastName",
|
|
2120
|
+
initialValue: adConfig.value.lastNameAttribute,
|
|
2121
|
+
properties: {
|
|
2122
|
+
label: i18n.baseText("settings.ldap.form.lastName.label"),
|
|
2123
|
+
type: "text",
|
|
2124
|
+
autocomplete: "email",
|
|
2125
|
+
required: true,
|
|
2126
|
+
capitalize: true,
|
|
2127
|
+
placeholder: i18n.baseText("settings.ldap.form.lastName.placeholder"),
|
|
2128
|
+
infoText: i18n.baseText("settings.ldap.form.lastName.infoText")
|
|
2129
|
+
},
|
|
2130
|
+
shouldDisplay: whenLoginEnabled
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
name: "synchronizationEnabled",
|
|
2134
|
+
initialValue: adConfig.value.synchronizationEnabled,
|
|
2135
|
+
properties: {
|
|
2136
|
+
type: "toggle",
|
|
2137
|
+
label: i18n.baseText("settings.ldap.form.synchronizationEnabled.label"),
|
|
2138
|
+
tooltipText: i18n.baseText("settings.ldap.form.synchronizationEnabled.tooltip"),
|
|
2139
|
+
required: true
|
|
2140
|
+
},
|
|
2141
|
+
shouldDisplay: whenLoginEnabled
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
name: "synchronizationInterval",
|
|
2145
|
+
initialValue: adConfig.value.synchronizationInterval,
|
|
2146
|
+
properties: {
|
|
2147
|
+
type: "number",
|
|
2148
|
+
label: i18n.baseText("settings.ldap.form.synchronizationInterval.label"),
|
|
2149
|
+
infoText: i18n.baseText("settings.ldap.form.synchronizationInterval.infoText")
|
|
2150
|
+
},
|
|
2151
|
+
shouldDisplay: whenSyncAndLoginEnabled
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
name: "pageSize",
|
|
2155
|
+
initialValue: adConfig.value.searchPageSize,
|
|
2156
|
+
properties: {
|
|
2157
|
+
type: "number",
|
|
2158
|
+
label: i18n.baseText("settings.ldap.form.pageSize.label"),
|
|
2159
|
+
infoText: i18n.baseText("settings.ldap.form.pageSize.infoText")
|
|
2160
|
+
},
|
|
2161
|
+
shouldDisplay: whenSyncAndLoginEnabled
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
name: "searchTimeout",
|
|
2165
|
+
initialValue: adConfig.value.searchTimeout,
|
|
2166
|
+
properties: {
|
|
2167
|
+
type: "number",
|
|
2168
|
+
label: i18n.baseText("settings.ldap.form.searchTimeout.label"),
|
|
2169
|
+
infoText: i18n.baseText("settings.ldap.form.searchTimeout.infoText")
|
|
2170
|
+
},
|
|
2171
|
+
shouldDisplay: whenSyncAndLoginEnabled
|
|
2172
|
+
}
|
|
2173
|
+
];
|
|
2174
|
+
} catch (error) {
|
|
2175
|
+
toast.showError(error, i18n.baseText("settings.ldap.configurationError"));
|
|
2176
|
+
}
|
|
2177
|
+
};
|
|
2178
|
+
const getLdapSynchronizations = async (state) => {
|
|
2179
|
+
try {
|
|
2180
|
+
loadingTable.value = true;
|
|
2181
|
+
const data = await settingsStore.getLdapSynchronizations({
|
|
2182
|
+
page: page.value
|
|
2183
|
+
});
|
|
2184
|
+
if (data.length !== 0) {
|
|
2185
|
+
dataTable.value.push(...data.map(syncDataMapper));
|
|
2186
|
+
page.value += 1;
|
|
2187
|
+
state.loaded();
|
|
2188
|
+
} else {
|
|
2189
|
+
state.complete();
|
|
2190
|
+
}
|
|
2191
|
+
loadingTable.value = false;
|
|
2192
|
+
} catch (error) {
|
|
2193
|
+
toast.showError(error, i18n.baseText("settings.ldap.synchronizationError"));
|
|
2194
|
+
}
|
|
2195
|
+
};
|
|
2196
|
+
const reloadLdapSynchronizations = async () => {
|
|
2197
|
+
try {
|
|
2198
|
+
page.value = 0;
|
|
2199
|
+
tableKey.value += 1;
|
|
2200
|
+
dataTable.value = [];
|
|
2201
|
+
} catch (error) {
|
|
2202
|
+
toast.showError(error, i18n.baseText("settings.ldap.synchronizationError"));
|
|
2203
|
+
}
|
|
2204
|
+
};
|
|
2205
|
+
onMounted(async () => {
|
|
2206
|
+
documentTitle.set(i18n.baseText("settings.ldap"));
|
|
2207
|
+
if (!isLDAPFeatureEnabled.value) return;
|
|
2208
|
+
await getLdapConfig();
|
|
2209
|
+
});
|
|
2210
|
+
return (_ctx, _cache) => {
|
|
2211
|
+
const _component_n8n_heading = resolveComponent("n8n-heading");
|
|
2212
|
+
const _component_n8n_info_tip = resolveComponent("n8n-info-tip");
|
|
2213
|
+
const _component_n8n_action_box = resolveComponent("n8n-action-box");
|
|
2214
|
+
const _component_n8n_form_inputs = resolveComponent("n8n-form-inputs");
|
|
2215
|
+
const _component_n8n_button = resolveComponent("n8n-button");
|
|
2216
|
+
const _directive_n8n_html = resolveDirective("n8n-html");
|
|
2217
|
+
const _directive_loading = resolveDirective("loading");
|
|
2218
|
+
return !isLDAPFeatureEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
2219
|
+
createBaseVNode("div", {
|
|
2220
|
+
class: normalizeClass([_ctx.$style.header, "mb-2xl"])
|
|
2221
|
+
}, [
|
|
2222
|
+
createVNode(_component_n8n_heading, { size: "2xlarge" }, {
|
|
2223
|
+
default: withCtx(() => [
|
|
2224
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("settings.ldap")), 1)
|
|
2225
|
+
]),
|
|
2226
|
+
_: 1
|
|
2227
|
+
})
|
|
2228
|
+
], 2),
|
|
2229
|
+
createVNode(_component_n8n_info_tip, {
|
|
2230
|
+
type: "note",
|
|
2231
|
+
theme: "info",
|
|
2232
|
+
"tooltip-placement": "right",
|
|
2233
|
+
class: "mb-l"
|
|
2234
|
+
}, {
|
|
2235
|
+
default: withCtx(() => [
|
|
2236
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("settings.ldap.note")), 1)
|
|
2237
|
+
]),
|
|
2238
|
+
_: 1
|
|
2239
|
+
}),
|
|
2240
|
+
createVNode(_component_n8n_action_box, {
|
|
2241
|
+
description: unref(i18n).baseText("settings.ldap.disabled.description"),
|
|
2242
|
+
"button-text": unref(i18n).baseText("settings.ldap.disabled.buttonText"),
|
|
2243
|
+
"onClick:button": goToUpgrade
|
|
2244
|
+
}, {
|
|
2245
|
+
heading: withCtx(() => [
|
|
2246
|
+
createBaseVNode("span", null, toDisplayString(unref(i18n).baseText("settings.ldap.disabled.title")), 1)
|
|
2247
|
+
]),
|
|
2248
|
+
_: 1
|
|
2249
|
+
}, 8, ["description", "button-text"])
|
|
2250
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
2251
|
+
createBaseVNode("div", {
|
|
2252
|
+
class: normalizeClass(_ctx.$style.container)
|
|
2253
|
+
}, [
|
|
2254
|
+
createBaseVNode("div", {
|
|
2255
|
+
class: normalizeClass(_ctx.$style.header)
|
|
2256
|
+
}, [
|
|
2257
|
+
createVNode(_component_n8n_heading, { size: "2xlarge" }, {
|
|
2258
|
+
default: withCtx(() => [
|
|
2259
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("settings.ldap")), 1)
|
|
2260
|
+
]),
|
|
2261
|
+
_: 1
|
|
2262
|
+
})
|
|
2263
|
+
], 2),
|
|
2264
|
+
createBaseVNode("div", {
|
|
2265
|
+
class: normalizeClass(_ctx.$style.docsInfoTip)
|
|
2266
|
+
}, [
|
|
2267
|
+
createVNode(_component_n8n_info_tip, {
|
|
2268
|
+
theme: "info",
|
|
2269
|
+
type: "note"
|
|
2270
|
+
}, {
|
|
2271
|
+
default: withCtx(() => [
|
|
2272
|
+
withDirectives(createBaseVNode("span", null, null, 512), [
|
|
2273
|
+
[_directive_n8n_html, unref(i18n).baseText("settings.ldap.infoTip")]
|
|
2274
|
+
])
|
|
2275
|
+
]),
|
|
2276
|
+
_: 1
|
|
2277
|
+
})
|
|
2278
|
+
], 2),
|
|
2279
|
+
createBaseVNode("div", {
|
|
2280
|
+
class: normalizeClass(_ctx.$style.settingsForm)
|
|
2281
|
+
}, [
|
|
2282
|
+
formInputs.value ? (openBlock(), createBlock(_component_n8n_form_inputs, {
|
|
2283
|
+
key: 0,
|
|
2284
|
+
ref_key: "ldapConfigFormRef",
|
|
2285
|
+
ref: ldapConfigFormRef,
|
|
2286
|
+
inputs: formInputs.value,
|
|
2287
|
+
"event-bus": unref(formBus),
|
|
2288
|
+
"column-view": true,
|
|
2289
|
+
"vertical-spacing": "l",
|
|
2290
|
+
onUpdate: onInput,
|
|
2291
|
+
onReady: onReadyToSubmit,
|
|
2292
|
+
onSubmit
|
|
2293
|
+
}, null, 8, ["inputs", "event-bus"])) : createCommentVNode("", true)
|
|
2294
|
+
], 2),
|
|
2295
|
+
createBaseVNode("div", null, [
|
|
2296
|
+
loginEnabled.value ? (openBlock(), createBlock(_component_n8n_button, {
|
|
2297
|
+
key: 0,
|
|
2298
|
+
label: loadingTestConnection.value ? unref(i18n).baseText("settings.ldap.testingConnection") : unref(i18n).baseText("settings.ldap.testConnection"),
|
|
2299
|
+
size: "large",
|
|
2300
|
+
class: "mr-s",
|
|
2301
|
+
disabled: hasAnyChanges.value || !readyToSubmit.value,
|
|
2302
|
+
loading: loadingTestConnection.value,
|
|
2303
|
+
onClick: onTestConnectionClick
|
|
2304
|
+
}, null, 8, ["label", "disabled", "loading"])) : createCommentVNode("", true),
|
|
2305
|
+
createVNode(_component_n8n_button, {
|
|
2306
|
+
label: unref(i18n).baseText("settings.ldap.save"),
|
|
2307
|
+
size: "large",
|
|
2308
|
+
disabled: !hasAnyChanges.value || !readyToSubmit.value,
|
|
2309
|
+
onClick: onSaveClick
|
|
2310
|
+
}, null, 8, ["label", "disabled"])
|
|
2311
|
+
])
|
|
2312
|
+
], 2),
|
|
2313
|
+
loginEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
2314
|
+
createVNode(_component_n8n_heading, {
|
|
2315
|
+
tag: "h1",
|
|
2316
|
+
class: "mb-xl mt-3xl",
|
|
2317
|
+
size: "medium"
|
|
2318
|
+
}, {
|
|
2319
|
+
default: withCtx(() => [
|
|
2320
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("settings.ldap.section.synchronization.title")), 1)
|
|
2321
|
+
]),
|
|
2322
|
+
_: 1
|
|
2323
|
+
}),
|
|
2324
|
+
createBaseVNode("div", {
|
|
2325
|
+
class: normalizeClass(_ctx.$style.syncTable)
|
|
2326
|
+
}, [
|
|
2327
|
+
withDirectives((openBlock(), createBlock(unref(ElTable), {
|
|
2328
|
+
key: tableKey.value,
|
|
2329
|
+
border: true,
|
|
2330
|
+
stripe: true,
|
|
2331
|
+
data: dataTable.value,
|
|
2332
|
+
"cell-style": cellClassStyle,
|
|
2333
|
+
style: { "width": "100%" },
|
|
2334
|
+
"max-height": "250"
|
|
2335
|
+
}, {
|
|
2336
|
+
empty: withCtx(() => [
|
|
2337
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("settings.ldap.synchronizationTable.empty.message")), 1)
|
|
2338
|
+
]),
|
|
2339
|
+
append: withCtx(() => [
|
|
2340
|
+
createVNode(unref(K), {
|
|
2341
|
+
target: ".el-table__body-wrapper",
|
|
2342
|
+
onInfinite: getLdapSynchronizations
|
|
2343
|
+
})
|
|
2344
|
+
]),
|
|
2345
|
+
default: withCtx(() => [
|
|
2346
|
+
createVNode(unref(ElTableColumn), {
|
|
2347
|
+
prop: "status",
|
|
2348
|
+
label: unref(i18n).baseText("settings.ldap.synchronizationTable.column.status")
|
|
2349
|
+
}, null, 8, ["label"]),
|
|
2350
|
+
createVNode(unref(ElTableColumn), {
|
|
2351
|
+
prop: "endedAt",
|
|
2352
|
+
label: unref(i18n).baseText("settings.ldap.synchronizationTable.column.endedAt")
|
|
2353
|
+
}, null, 8, ["label"]),
|
|
2354
|
+
createVNode(unref(ElTableColumn), {
|
|
2355
|
+
prop: "runMode",
|
|
2356
|
+
label: unref(i18n).baseText("settings.ldap.synchronizationTable.column.runMode")
|
|
2357
|
+
}, null, 8, ["label"]),
|
|
2358
|
+
createVNode(unref(ElTableColumn), {
|
|
2359
|
+
prop: "runTime",
|
|
2360
|
+
label: unref(i18n).baseText("settings.ldap.synchronizationTable.column.runTime")
|
|
2361
|
+
}, null, 8, ["label"]),
|
|
2362
|
+
createVNode(unref(ElTableColumn), {
|
|
2363
|
+
prop: "details",
|
|
2364
|
+
label: unref(i18n).baseText("settings.ldap.synchronizationTable.column.details")
|
|
2365
|
+
}, null, 8, ["label"])
|
|
2366
|
+
]),
|
|
2367
|
+
_: 1
|
|
2368
|
+
}, 8, ["data"])), [
|
|
2369
|
+
[_directive_loading, loadingTable.value]
|
|
2370
|
+
])
|
|
2371
|
+
], 2),
|
|
2372
|
+
createBaseVNode("div", _hoisted_4, [
|
|
2373
|
+
createVNode(_component_n8n_button, {
|
|
2374
|
+
label: unref(i18n).baseText("settings.ldap.dryRun"),
|
|
2375
|
+
type: "secondary",
|
|
2376
|
+
size: "large",
|
|
2377
|
+
class: "mr-s",
|
|
2378
|
+
disabled: hasAnyChanges.value || !readyToSubmit.value,
|
|
2379
|
+
loading: loadingDryRun.value,
|
|
2380
|
+
onClick: onDryRunClick
|
|
2381
|
+
}, null, 8, ["label", "disabled", "loading"]),
|
|
2382
|
+
createVNode(_component_n8n_button, {
|
|
2383
|
+
label: unref(i18n).baseText("settings.ldap.synchronizeNow"),
|
|
2384
|
+
size: "large",
|
|
2385
|
+
disabled: hasAnyChanges.value || !readyToSubmit.value,
|
|
2386
|
+
loading: loadingLiveRun.value,
|
|
2387
|
+
onClick: onLiveRunClick
|
|
2388
|
+
}, null, 8, ["label", "disabled", "loading"])
|
|
2389
|
+
])
|
|
2390
|
+
])) : createCommentVNode("", true)
|
|
2391
|
+
]));
|
|
2392
|
+
};
|
|
2393
|
+
}
|
|
2394
|
+
});
|
|
2395
|
+
const container = "_container_17k3n_1";
|
|
2396
|
+
const syncTable = "_syncTable_17k3n_5";
|
|
2397
|
+
const header = "_header_17k3n_9";
|
|
2398
|
+
const enableFeatureContainer = "_enableFeatureContainer_17k3n_18";
|
|
2399
|
+
const sectionHeader = "_sectionHeader_17k3n_32";
|
|
2400
|
+
const settingsForm = "_settingsForm_17k3n_36";
|
|
2401
|
+
const docsInfoTip = "_docsInfoTip_17k3n_40";
|
|
2402
|
+
const style0 = {
|
|
2403
|
+
container,
|
|
2404
|
+
syncTable,
|
|
2405
|
+
header,
|
|
2406
|
+
enableFeatureContainer,
|
|
2407
|
+
sectionHeader,
|
|
2408
|
+
settingsForm,
|
|
2409
|
+
docsInfoTip
|
|
2410
|
+
};
|
|
2411
|
+
const cssModules = {
|
|
2412
|
+
"$style": style0
|
|
2413
|
+
};
|
|
2414
|
+
const SettingsLdapView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
1600
2415
|
export {
|
|
1601
|
-
|
|
2416
|
+
SettingsLdapView as default
|
|
1602
2417
|
};
|