@atom8n/n8n-editor-ui 2.2.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/.stylelintcache +1 -0
- package/README.md +59 -0
- package/biome.jsonc +8 -0
- package/build.log +55 -0
- package/data/node-popularity.json +3998 -0
- package/dist/assets/AddDataTableModal-UINkk54_.js +1555 -0
- package/dist/assets/AgentEditorModal-CVww87TJ.js +358 -0
- package/dist/assets/Alert-Dy86dyOr.js +102 -0
- package/dist/assets/AnimatedSpinner-DmPN4poP.js +15 -0
- package/dist/assets/AnnotationTagsDropdown.ee-BJ7N9lek.js +71 -0
- package/dist/assets/AuthView-D2LWHrMp.js +106 -0
- package/dist/assets/BottomMenu-CIQiK_dJ.js +532 -0
- package/dist/assets/CalendarDate-DgQUMbNo.js +875 -0
- package/dist/assets/ChangePasswordView-Z6tUkw0u.js +133 -0
- package/dist/assets/ChatAgentAvatar-50YBnv3N.js +67 -0
- package/dist/assets/ChatFile-xZxmc2nV.js +146 -0
- package/dist/assets/ChatLayout-CTE_5SiM.js +96 -0
- package/dist/assets/ChatPersonalAgentsView-BGpHk03K.js +149 -0
- package/dist/assets/ChatSidebar-BkVwIypC.js +528 -0
- package/dist/assets/ChatView-BbbdeU9x.js +1559 -0
- package/dist/assets/ChatWorkflowAgentsView-BtunOxlC.js +116 -0
- package/dist/assets/CollectionParameter-BdcPG1lu.js +52 -0
- package/dist/assets/CommitMonoVariable-ytizKI8U.woff2 +0 -0
- package/dist/assets/CommunityNodeUpdateInfo-C37kca4W.js +273 -0
- package/dist/assets/CopyInput-DDZVu2iU.js +74 -0
- package/dist/assets/CredentialIcon-8YdTTFZ1.js +80 -0
- package/dist/assets/CredentialPicker-DWtj314o.js +293 -0
- package/dist/assets/CredentialSelectorModal-DTW2fKh0.js +138 -0
- package/dist/assets/CredentialsView-BjUchcCu.js +480 -0
- package/dist/assets/DataTableActions-DpAkoxg_.js +95 -0
- package/dist/assets/DataTableDetailsView-Coq7zdW5.js +41922 -0
- package/dist/assets/DataTableView-Cs-BIkzw.js +293 -0
- package/dist/assets/DemoFooter-Cga3jvi-.js +65 -0
- package/dist/assets/Draggable-vfvXl9Sp.js +105 -0
- package/dist/assets/EmptySharedSectionActionBox-DOXZtTCv.js +36 -0
- package/dist/assets/EnterpriseEdition.ee-D_rCFexM.js +15 -0
- package/dist/assets/EntityNotFound-3dhTRWsE.js +85 -0
- package/dist/assets/EntityUnAuthorised-ChJYZakE.js +66 -0
- package/dist/assets/ErrorView-zT9cX76a.js +61 -0
- package/dist/assets/EvaluationsRootView-C-OVWYnY.js +523 -0
- package/dist/assets/EvaluationsView-CJwJTruc.js +469 -0
- package/dist/assets/ExecutionsTime-DEQiyozR.js +573 -0
- package/dist/assets/ExecutionsView-Bd5Oh8TH.js +791 -0
- package/dist/assets/ExternalSecretsProviderConnectionSwitch.ee-C7Ih-uRo.js +191 -0
- package/dist/assets/FixedCollectionParameter-CYuTDW9t.js +496 -0
- package/dist/assets/ForgotMyPasswordView-Bs_L9P27.js +102 -0
- package/dist/assets/InsightsChartAverageRuntime-Bp3VA8_7.js +62 -0
- package/dist/assets/InsightsChartFailed-KPaNWoEr.js +52 -0
- package/dist/assets/InsightsChartFailureRate-DE6kE3FM.js +54 -0
- package/dist/assets/InsightsChartTimeSaved-auABNZlc.js +68 -0
- package/dist/assets/InsightsChartTotal-BKzYRKE7.js +56 -0
- package/dist/assets/InsightsDashboard-JWx4W6Db.js +473 -0
- package/dist/assets/InsightsPaywall-C8zLLKe8.js +63 -0
- package/dist/assets/InsightsSummary-cmN1lHDm.js +210 -0
- package/dist/assets/InsightsTableWorkflows-CqcC3IbQ.js +203 -0
- package/dist/assets/InterVariable-DiVDrmQJ.woff2 +0 -0
- package/dist/assets/InterVariable-Italic-FCBEiFp6.woff2 +0 -0
- package/dist/assets/ItemsRenderer-DC8WVyMv.js +922 -0
- package/dist/assets/KeyboardShortcutTooltip-D8PAK5JP.js +31 -0
- package/dist/assets/LogsPanel-BR06u9RK.js +52 -0
- package/dist/assets/LogsPanel-C-_acMHp.js +2325 -0
- package/dist/assets/MCPConnectWorkflowsModal-3g8_iUa4.js +303 -0
- package/dist/assets/MainHeader-DiQc1edn.js +2153 -0
- package/dist/assets/MainSidebar-CoPGG5Ea.js +804 -0
- package/dist/assets/MigrationRuleDetail-BAxk1Pvl.js +295 -0
- package/dist/assets/MigrationRules-IW9lZMpE.js +285 -0
- package/dist/assets/Modal-CIzXlZdZ.js +204 -0
- package/dist/assets/ModelByIdSelectorModal-DLvBjzJO.js +115 -0
- package/dist/assets/NDVEmptyState-33UoX00I.js +19743 -0
- package/dist/assets/NodeCreation-BNzbSWSB.js +240 -0
- package/dist/assets/NodeCreator-BftgCKx7.js +1288 -0
- package/dist/assets/NodeDetailsView-CsoQCpcF.js +1075 -0
- package/dist/assets/NodeDetailsViewV2-C_wNQR_3.js +981 -0
- package/dist/assets/NodeIcon-B9VW6tX6.js +87 -0
- package/dist/assets/NodeSettings-ZwVip6VR.js +1872 -0
- package/dist/assets/NodeView-D4WUEvLB.js +2452 -0
- package/dist/assets/OAuthConsentView-DlrUqZbT.js +230 -0
- package/dist/assets/PageViewLayout-NT1KPFgy.js +12 -0
- package/dist/assets/ParameterInputList-sG2nz-Jo.js +38091 -0
- package/dist/assets/PrebuiltAgentTemplatesView-Csi5U8dc.js +154 -0
- package/dist/assets/ProjectBreadcrumb-C_XiY7sc.js +98 -0
- package/dist/assets/ProjectCardBadge-t_hs7vzx.js +209 -0
- package/dist/assets/ProjectHeader-Dq5Ihb26.js +549 -0
- package/dist/assets/ProjectIcon-DY8gGuHX.js +64 -0
- package/dist/assets/ProjectRoleView-Du-KTrAC.js +435 -0
- package/dist/assets/ProjectRolesView-DjxM_y4u.js +239 -0
- package/dist/assets/ProjectSettings-C6kWuV21.js +966 -0
- package/dist/assets/ProjectSharing-CVUgNWAY.js +262 -0
- package/dist/assets/ProjectVariables-CJlAo3dv.js +467 -0
- package/dist/assets/ProviderSettingsModal-BUFC2ZLv.js +307 -0
- package/dist/assets/PushConnectionTracker-DPBnGV0v.js +27 -0
- package/dist/assets/ResolversView-3BdkvvYA.js +209 -0
- package/dist/assets/ResourceFiltersDropdown-dgyXpcEX.js +159 -0
- package/dist/assets/ResourcesListLayout-qBLtomK6.js +631 -0
- package/dist/assets/RunDataHtml-BrW0OQra.js +7 -0
- package/dist/assets/RunDataHtml-Cleia4Cj.js +40 -0
- package/dist/assets/RunDataJson-uxkrhYRK.js +227 -0
- package/dist/assets/RunDataJsonActions-DkPk7E8d.js +5007 -0
- package/dist/assets/RunDataParsedAiContent-CtPRjig-.js +26 -0
- package/dist/assets/RunDataParsedAiContent-WAuqLQ5M.js +192 -0
- package/dist/assets/RunDataSearch-YBWUr93C.js +141 -0
- package/dist/assets/RunDataTable-DcXaBynW.js +631 -0
- package/dist/assets/SamlOnboarding-BTdQ_hr3.js +78 -0
- package/dist/assets/SaveButton-D5sQSxIk.js +89 -0
- package/dist/assets/SelectedItemsInfo-BHZ-NvF5.js +58 -0
- package/dist/assets/SettingsApiView-IfZTMXx1.js +313 -0
- package/dist/assets/SettingsChatHubView-gWh2X6vX.js +285 -0
- package/dist/assets/SettingsCommunityNodesView-D8VQtpGY.js +349 -0
- package/dist/assets/SettingsExternalSecrets-CpMc7mkW.js +233 -0
- package/dist/assets/SettingsLdapView-CU5a2MAy.js +2553 -0
- package/dist/assets/SettingsLogStreamingView-uojTe-oX.js +375 -0
- package/dist/assets/SettingsMCPView-B5Swp1C_.js +1214 -0
- package/dist/assets/SettingsPersonalView-Cr3aGood.js +402 -0
- package/dist/assets/SettingsSourceControl-DXOvFDEY.js +547 -0
- package/dist/assets/SettingsSso-27MfU1HV.js +1032 -0
- package/dist/assets/SettingsUsageAndPlan-DqIO-G46.js +419 -0
- package/dist/assets/SettingsUsersView-DfHB4_Kh.js +833 -0
- package/dist/assets/SettingsView-C4sA7Uny.js +90 -0
- package/dist/assets/SetupTemplateFormStep-BmiSzZin.js +258 -0
- package/dist/assets/SetupView-VORZ-L_u.js +112 -0
- package/dist/assets/SetupWorkflowCredentialsButton-DTmkOAW5.js +73 -0
- package/dist/assets/SetupWorkflowFromTemplateView-B9NupdJE.js +286 -0
- package/dist/assets/SeverityTag-CX1qTTNA.js +45 -0
- package/dist/assets/SigninView-D9_Pm16j.js +358 -0
- package/dist/assets/SignoutView-BFsjEAGz.js +19 -0
- package/dist/assets/SignupView-Am4ot0QZ.js +137 -0
- package/dist/assets/SkeletonAgentCard-C5TL-h8F.js +191 -0
- package/dist/assets/TagsDropdown-Bvx_Hd6Q.js +230 -0
- package/dist/assets/TemplateCard-CyQ1GuVz.js +105 -0
- package/dist/assets/TemplateDetails-CZRusTxE.js +124 -0
- package/dist/assets/TemplateList-DKvbwuiY.js +333 -0
- package/dist/assets/TemplatesCollectionView-D8dxU8By.js +184 -0
- package/dist/assets/TemplatesSearchView-CebC_GLs.js +1230 -0
- package/dist/assets/TemplatesView-025CcmIY.js +57 -0
- package/dist/assets/TemplatesWorkflowView-C2JfwJAn.js +170 -0
- package/dist/assets/TestRunDetailView-Ck78TTWO.js +395 -0
- package/dist/assets/TextWithHighlights-BxumwGnv.js +57 -0
- package/dist/assets/TimeAgo-C6EN4lCs.js +123 -0
- package/dist/assets/ToolsSelectorModal-8QJoUvRL.js +368 -0
- package/dist/assets/TriggerPanel-B6pacLkk.js +1225 -0
- package/dist/assets/VirtualSchema-B3zGe_8b.js +2402 -0
- package/dist/assets/VirtualSchema-Dkh0Cu5z.js +37 -0
- package/dist/assets/VueMarkdown-CQqJL9vK.js +28 -0
- package/dist/assets/WorkerView-Caznsljo.js +563 -0
- package/dist/assets/WorkflowActivationErrorMessage-CGrfPi9O.js +17 -0
- package/dist/assets/WorkflowActivator-BINnz0f7.js +362 -0
- package/dist/assets/WorkflowExecutionsInfoAccordion-Dg37yEfT.js +166 -0
- package/dist/assets/WorkflowExecutionsLandingPage-V2wdubhK.js +93 -0
- package/dist/assets/WorkflowExecutionsPreview-DdJaqYV6.js +616 -0
- package/dist/assets/WorkflowExecutionsView-DV8ySTfn.js +808 -0
- package/dist/assets/WorkflowHistory-GtaBMzIM.js +973 -0
- package/dist/assets/WorkflowLocation-CQ9Sq-2y.js +164 -0
- package/dist/assets/WorkflowOnboardingView-C49gt0Jr.js +61 -0
- package/dist/assets/WorkflowPreview-CXdvv4Nq.js +186 -0
- package/dist/assets/WorkflowTagsDropdown-QwbICWjN.js +71 -0
- package/dist/assets/WorkflowsView-B-MWIECO.js +3253 -0
- package/dist/assets/_MapCache-CcdIl4Ae.js +363 -0
- package/dist/assets/_baseOrderBy-N8Be_6z6.js +2989 -0
- package/dist/assets/_initCloneObject-viQQyT6o.js +80 -0
- package/dist/assets/_plugin-vue_export-helper-BwBpWJRZ.js +6 -0
- package/dist/assets/aiTemplatesStarterCollection.store-nL9nePkK.js +656 -0
- package/dist/assets/apiKeys.store-BhOFmP2j.js +51 -0
- package/dist/assets/assistant.store-CNywgN4S.js +518 -0
- package/dist/assets/auth.eventBus-CWXS0Qp7.js +5 -0
- package/dist/assets/banners.store-CGEcBTDn.js +195 -0
- package/dist/assets/builder.store-Czk2ipDE.js +31417 -0
- package/dist/assets/buttons.esm-yintpW2E.js +364 -0
- package/dist/assets/chart-CNvyywtJ.js +10958 -0
- package/dist/assets/chartjs.utils-BAE52Cv9.js +155 -0
- package/dist/assets/chat.store-290YeyrQ.js +865 -0
- package/dist/assets/chatPanel.store-NDaawEZL.js +118 -0
- package/dist/assets/chunk-6z4oVpB-.js +36 -0
- package/dist/assets/col-Cmt4cmuS.js +158 -0
- package/dist/assets/constants-C8OH4tTq.js +106256 -0
- package/dist/assets/constants-DMrsrpD7.js +32 -0
- package/dist/assets/core-B9gt_4yk.js +4 -0
- package/dist/assets/core-CP5FY4aX.js +1202 -0
- package/dist/assets/core-CRbPymLT.js +9741 -0
- package/dist/assets/dataTable.store-DmipQsol.js +207 -0
- package/dist/assets/date-picker-2IDsBs2n.js +4115 -0
- package/dist/assets/dateFormatter-ik4-9_9r.js +33 -0
- package/dist/assets/dateformat-hG8NERse.js +181 -0
- package/dist/assets/dialog-lMho1TD8.js +425 -0
- package/dist/assets/dist-Cw46Is-h.js +151 -0
- package/dist/assets/doppler-B__k0MeW.webp +0 -0
- package/dist/assets/element-icons-B-tDfklg.woff +0 -0
- package/dist/assets/element-icons-_lZGOqcG.ttf +0 -0
- package/dist/assets/empty-BuGRxzl4.js +2210 -0
- package/dist/assets/en-CF30SCh2.js +95 -0
- package/dist/assets/en-DyO2pPiC.js +2 -0
- package/dist/assets/es-BkUFJVtD.js +43338 -0
- package/dist/assets/evaluation.constants-GYAwmJnh.js +284 -0
- package/dist/assets/executions.store-B9uRYwgv.js +205 -0
- package/dist/assets/exports-Crx_gvt_.js +1799 -0
- package/dist/assets/externalSecrets.ee.store-BJh4a_6G.js +118 -0
- package/dist/assets/fileUtils-CRWqOQje.js +20 -0
- package/dist/assets/folders.store-yAFj-5Vl.js +235 -0
- package/dist/assets/get-BcEmeOxn.js +2781 -0
- package/dist/assets/index-SL8542zQ.js +28372 -0
- package/dist/assets/insights.constants-BkJCYJTL.js +55 -0
- package/dist/assets/insights.store-BFc3kDUo.js +61 -0
- package/dist/assets/insights.utils-CcLXdrrz.js +77 -0
- package/dist/assets/isEmpty-C3XXoHqJ.js +35216 -0
- package/dist/assets/languageModules-9LyndCqU.js +13862 -0
- package/dist/assets/logStreaming.store-IZhWe_VK.js +190 -0
- package/dist/assets/mcp.constants-_Jcn7fPq.js +10 -0
- package/dist/assets/mcp.store-B9yfcAN9.js +116 -0
- package/dist/assets/merge-DhuTk1HM.js +564 -0
- package/dist/assets/nodeCreator.store-Bpnrwp2l.js +5444 -0
- package/dist/assets/nodeIcon-D6X-ENYt.js +102 -0
- package/dist/assets/nodeTransforms-RzcOM0v2.js +42 -0
- package/dist/assets/orderBy-Cu9F9DU_.js +15 -0
- package/dist/assets/path-browserify-RUt2u7iT.js +328 -0
- package/dist/assets/personalizedTemplatesV3.store-BGYp0YBN.js +334 -0
- package/dist/assets/pickBy-UI0Jt4wC.js +18 -0
- package/dist/assets/preload-helper-dyVz7ck7.js +59 -0
- package/dist/assets/radio-CSce3UT0.js +262 -0
- package/dist/assets/readyToRun.store-YEMvPUqo.js +626 -0
- package/dist/assets/readyToRunWorkflows.store-G3srgIze.js +1319 -0
- package/dist/assets/retry-BgHaYzbB.js +23 -0
- package/dist/assets/roles.store-CRf_zJTb.js +51 -0
- package/dist/assets/router-DNpzz3GH.js +2631 -0
- package/dist/assets/sanitize-html-CbW56HUN.js +10758 -0
- package/dist/assets/schemaPreview.store-DUgN1yVE.js +113 -0
- package/dist/assets/semver-Bk6DGseV.js +1306 -0
- package/dist/assets/smartDecimal-DAZl4HKA.js +6 -0
- package/dist/assets/sortByProperty-Cn7iGKYu.js +8 -0
- package/dist/assets/sourceControl.eventBus-D47xXSc_.js +3 -0
- package/dist/assets/sqlite3-DBpDb1lf.wasm +0 -0
- package/dist/assets/sqlite3-opfs-async-proxy-vVtmDGHX.js +461 -0
- package/dist/assets/sqlite3-worker1-bundler-friendly-DLarOZDL.js +9405 -0
- package/dist/assets/src-jviYSG25.js +55454 -0
- package/dist/assets/sso.store-DyApJwhx.js +139 -0
- package/dist/assets/style-E3CrYFV8.css +111829 -0
- package/dist/assets/table-we1DjFMV.js +3944 -0
- package/dist/assets/templateActions-bEDSARw2.js +65 -0
- package/dist/assets/templateTransforms-BHWiRbtR.js +43 -0
- package/dist/assets/truncate-C0KYt7i3.js +4176 -0
- package/dist/assets/typescript.worker-CYqLvLHh.js +152048 -0
- package/dist/assets/uniqBy-xDyuCRP0.js +10 -0
- package/dist/assets/usage.store-CU5J_nGm.js +100 -0
- package/dist/assets/useActions-B1JckIRj.js +255 -0
- package/dist/assets/useBeforeUnload-DiDkvI8p.js +40 -0
- package/dist/assets/useCanvasMapping-BXT7rGhC.js +12570 -0
- package/dist/assets/useCanvasOperations-8ULLtMkY.js +1765 -0
- package/dist/assets/useClipboard-DvjhVHqJ.js +39 -0
- package/dist/assets/useCommandBar-C4tLJbKt.js +2425 -0
- package/dist/assets/useCredentialResolvers-BKeFGJnY.js +78 -0
- package/dist/assets/useCustomAgent-DpILEt5e.js +471 -0
- package/dist/assets/useDebounce-Br5_1ug-.js +147 -0
- package/dist/assets/useExecutionData-M5iKsX6z.js +23 -0
- package/dist/assets/useExecutionDebugging-8azMzbnd.js +191 -0
- package/dist/assets/useExecutionHelpers-BgRRhpBM.js +91 -0
- package/dist/assets/useImportCurlCommand-CKiEmX5P.js +8891 -0
- package/dist/assets/useIntersectionObserver-BWMwOueh.js +33 -0
- package/dist/assets/useKeybindings-B2jfN6rd.js +62 -0
- package/dist/assets/useLogsTreeExpand-sZViUfdM.js +843 -0
- package/dist/assets/useMcp-DoMOIfqT.js +27 -0
- package/dist/assets/usePageRedirectionHelper-DjkznpX6.js +51 -0
- package/dist/assets/usePinnedData-BhZkqttf.js +203 -0
- package/dist/assets/usePushConnection-DMS-F_IW.js +513 -0
- package/dist/assets/useRecentResources-BVORr7eM.js +118 -0
- package/dist/assets/useRunWorkflow-LO7ffLp9.js +950 -0
- package/dist/assets/useSettingsItems-BhZXwMZn.js +144 -0
- package/dist/assets/useTelemetryContext-V6bv4YRq.js +34 -0
- package/dist/assets/useWorkflowActivate-DeSmDXjI.js +152 -0
- package/dist/assets/useWorkflowsCache-DtcEEAIR.js +179 -0
- package/dist/assets/userRoleProvisioning.store-kkSIdeTo.js +33 -0
- package/dist/assets/utils-DI7dLldp.js +54 -0
- package/dist/assets/versions.store-B1z2OrLE.js +191 -0
- package/dist/assets/vue-CydWIhxN.js +4378 -0
- package/dist/assets/vue-json-pretty-CsGX66mG.js +1130 -0
- package/dist/assets/vue.runtime.esm-bundler-tP5dCd7J.js +7325 -0
- package/dist/assets/xml-B_oj6Mle.js +2060 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.html +157 -0
- package/dist/static/base-path.js +1 -0
- package/dist/static/community_package_tooltip_img.png +0 -0
- package/dist/static/data-mapping-gif.gif +0 -0
- package/dist/static/form-grey.svg +1 -0
- package/dist/static/google-auth/disabled.dark.png +0 -0
- package/dist/static/google-auth/disabled.png +0 -0
- package/dist/static/google-auth/focus.dark.png +0 -0
- package/dist/static/google-auth/focus.png +0 -0
- package/dist/static/google-auth/normal.dark.png +0 -0
- package/dist/static/google-auth/normal.png +0 -0
- package/dist/static/google-auth/pressed.dark.png +0 -0
- package/dist/static/google-auth/pressed.png +0 -0
- package/dist/static/n8n-logo.png +0 -0
- package/dist/static/og_image.png +0 -0
- package/dist/static/open-ai.svg +1 -0
- package/dist/static/openChat.png +0 -0
- package/dist/static/posthog.init.js +41 -0
- package/dist/static/prefers-color-scheme.css +5 -0
- package/dist/static/webhook-icon.svg +1 -0
- package/dist/tree-sitter-bash.wasm +0 -0
- package/dist/tree-sitter.wasm +0 -0
- package/eslint.config.mjs +59 -0
- package/index.html +45 -0
- package/index.js +0 -0
- package/package.json +147 -0
- package/postcss.config.cjs +6 -0
- package/scripts/fetch-node-popularity.mjs +102 -0
- package/stylelint.config.mjs +9 -0
- package/tailwind.config.js +8 -0
- package/tsconfig.json +36 -0
- package/vite/i18n-locales-hmr-helpers.ts +19 -0
- package/vite/source-map-js-shim.ts +1 -0
- package/vite/vite-plugin-node-popularity.mts +32 -0
- package/vite.config.mts +304 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { C as computed, Cn as toDisplayString, D as createElementBlock, Gt as unref, It as ref, M as createVNode, P as defineComponent, T as createBlock, Z as onMounted, _ as Fragment, _t as watch, bt as withCtx, et as openBlock, it as renderList, j as createTextVNode, vn as normalizeClass, w as createBaseVNode } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { rt as useI18n } from "./core-CRbPymLT.js";
|
|
3
|
+
import { at as N8nLoading_default, ht as N8nTooltip_default, mt as N8nLink_default, vn as N8nHeading_default, xn as N8nButton_default } from "./src-jviYSG25.js";
|
|
4
|
+
import "./en-CF30SCh2.js";
|
|
5
|
+
import "./preload-helper-dyVz7ck7.js";
|
|
6
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
7
|
+
import "./truncate-C0KYt7i3.js";
|
|
8
|
+
import { P as useWorkflowsStore, Pt as useNodeTypesStore, Yi as tryToParseNumber, _n as useCredentialsStore, k as useTelemetry, l as useTemplatesStore, x as useExternalHooks } from "./builder.store-Czk2ipDE.js";
|
|
9
|
+
import "./empty-BuGRxzl4.js";
|
|
10
|
+
import { _ as useRoute, v as useRouter } from "./get-BcEmeOxn.js";
|
|
11
|
+
import "./sanitize-html-CbW56HUN.js";
|
|
12
|
+
import "./CalendarDate-DgQUMbNo.js";
|
|
13
|
+
import "./path-browserify-RUt2u7iT.js";
|
|
14
|
+
import "./_MapCache-CcdIl4Ae.js";
|
|
15
|
+
import { Ro as VIEWS } from "./constants-C8OH4tTq.js";
|
|
16
|
+
import "./merge-DhuTk1HM.js";
|
|
17
|
+
import { k as defineStore, r as useRootStore } from "./_baseOrderBy-N8Be_6z6.js";
|
|
18
|
+
import "./dateformat-hG8NERse.js";
|
|
19
|
+
import "./useDebounce-Br5_1ug-.js";
|
|
20
|
+
import "./nodeIcon-D6X-ENYt.js";
|
|
21
|
+
import "./NodeIcon-B9VW6tX6.js";
|
|
22
|
+
import "./nodeTransforms-RzcOM0v2.js";
|
|
23
|
+
import "./templateTransforms-BHWiRbtR.js";
|
|
24
|
+
import { n as AppsRequiringCredsNotice_default, r as useCredentialSetupState, t as SetupTemplateFormStep_default } from "./SetupTemplateFormStep-BmiSzZin.js";
|
|
25
|
+
import "./CredentialPicker-DWtj314o.js";
|
|
26
|
+
import { t as createWorkflowFromTemplate } from "./templateActions-bEDSARw2.js";
|
|
27
|
+
import { t as TemplatesView_default } from "./TemplatesView-025CcmIY.js";
|
|
28
|
+
const useSetupTemplateStore = defineStore("setupTemplate", () => {
|
|
29
|
+
const templateId = ref("");
|
|
30
|
+
const isLoading = ref(true);
|
|
31
|
+
const isSaving = ref(false);
|
|
32
|
+
const templatesStore = useTemplatesStore();
|
|
33
|
+
const nodeTypesStore = useNodeTypesStore();
|
|
34
|
+
const credentialsStore = useCredentialsStore();
|
|
35
|
+
const rootStore = useRootStore();
|
|
36
|
+
const workflowsStore = useWorkflowsStore();
|
|
37
|
+
const template = computed(() => {
|
|
38
|
+
return templateId.value ? templatesStore.getFullTemplateById(templateId.value) : null;
|
|
39
|
+
});
|
|
40
|
+
const { appCredentials, credentialOverrides, credentialUsages, credentialsByKey, nodesRequiringCredentialsSorted, numFilledCredentials, selectedCredentialIdByKey, setSelectedCredentialId, unsetSelectedCredential } = useCredentialSetupState(computed(() => {
|
|
41
|
+
return template.value?.workflow.nodes ?? [];
|
|
42
|
+
}));
|
|
43
|
+
const setTemplateId = (id) => {
|
|
44
|
+
templateId.value = id;
|
|
45
|
+
};
|
|
46
|
+
const ignoredAutoFillCredentialTypes = new Set([
|
|
47
|
+
"httpBasicAuth",
|
|
48
|
+
"httpCustomAuth",
|
|
49
|
+
"httpDigestAuth",
|
|
50
|
+
"httpHeaderAuth",
|
|
51
|
+
"oAuth1Api",
|
|
52
|
+
"oAuth2Api",
|
|
53
|
+
"httpQueryAuth"
|
|
54
|
+
]);
|
|
55
|
+
const setInitialCredentialSelection = () => {
|
|
56
|
+
for (const credUsage of credentialUsages.value) {
|
|
57
|
+
if (ignoredAutoFillCredentialTypes.has(credUsage.credentialType)) continue;
|
|
58
|
+
const availableCreds = credentialsStore.getCredentialsByType(credUsage.credentialType);
|
|
59
|
+
if (availableCreds.length === 1) selectedCredentialIdByKey.value[credUsage.key] = availableCreds[0].id;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const loadTemplateIfNeeded = async () => {
|
|
63
|
+
if (!!template.value || !templateId.value) return;
|
|
64
|
+
await templatesStore.fetchTemplateById(templateId.value);
|
|
65
|
+
setInitialCredentialSelection();
|
|
66
|
+
};
|
|
67
|
+
const init = async () => {
|
|
68
|
+
isLoading.value = true;
|
|
69
|
+
try {
|
|
70
|
+
selectedCredentialIdByKey.value = {};
|
|
71
|
+
await Promise.all([
|
|
72
|
+
credentialsStore.fetchAllCredentials(),
|
|
73
|
+
credentialsStore.fetchCredentialTypes(false),
|
|
74
|
+
nodeTypesStore.loadNodeTypesIfNotLoaded(),
|
|
75
|
+
loadTemplateIfNeeded()
|
|
76
|
+
]);
|
|
77
|
+
setInitialCredentialSelection();
|
|
78
|
+
} finally {
|
|
79
|
+
isLoading.value = false;
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const skipSetup = async ({ router }) => {
|
|
83
|
+
const externalHooks = useExternalHooks();
|
|
84
|
+
const telemetry = useTelemetry();
|
|
85
|
+
await externalHooks.run("templatesWorkflowView.openWorkflow", {
|
|
86
|
+
source: "workflow",
|
|
87
|
+
template_id: templateId.value,
|
|
88
|
+
wf_template_repo_session_id: templatesStore.currentSessionId
|
|
89
|
+
});
|
|
90
|
+
telemetry.track("User closed cred setup", {
|
|
91
|
+
completed: false,
|
|
92
|
+
creds_filled: 0,
|
|
93
|
+
creds_needed: credentialUsages.value.length,
|
|
94
|
+
workflow_id: null
|
|
95
|
+
});
|
|
96
|
+
await router.replace({
|
|
97
|
+
name: VIEWS.TEMPLATE_IMPORT,
|
|
98
|
+
params: { id: templateId.value }
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
const createWorkflow = async (opts) => {
|
|
102
|
+
const { router } = opts;
|
|
103
|
+
const telemetry = useTelemetry();
|
|
104
|
+
if (!template.value) return;
|
|
105
|
+
try {
|
|
106
|
+
isSaving.value = true;
|
|
107
|
+
const createdWorkflow = await createWorkflowFromTemplate({
|
|
108
|
+
template: template.value,
|
|
109
|
+
credentialOverrides: credentialOverrides.value,
|
|
110
|
+
rootStore,
|
|
111
|
+
workflowsStore,
|
|
112
|
+
nodeTypeProvider: nodeTypesStore
|
|
113
|
+
});
|
|
114
|
+
telemetry.track("User closed cred setup", {
|
|
115
|
+
completed: true,
|
|
116
|
+
creds_filled: numFilledCredentials.value,
|
|
117
|
+
creds_needed: credentialUsages.value.length,
|
|
118
|
+
workflow_id: createdWorkflow.id
|
|
119
|
+
});
|
|
120
|
+
telemetry.track("User inserted workflow template", {
|
|
121
|
+
source: "workflow",
|
|
122
|
+
template_id: tryToParseNumber(templateId.value),
|
|
123
|
+
wf_template_repo_session_id: templatesStore.currentSessionId
|
|
124
|
+
});
|
|
125
|
+
telemetry.track("User saved new workflow from template", {
|
|
126
|
+
template_id: tryToParseNumber(templateId.value),
|
|
127
|
+
workflow_id: createdWorkflow.id,
|
|
128
|
+
wf_template_repo_session_id: templatesStore.currentSessionId
|
|
129
|
+
});
|
|
130
|
+
await router.replace({
|
|
131
|
+
name: VIEWS.WORKFLOW,
|
|
132
|
+
params: { name: createdWorkflow.id }
|
|
133
|
+
});
|
|
134
|
+
} finally {
|
|
135
|
+
isSaving.value = false;
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
return {
|
|
139
|
+
credentialsByKey,
|
|
140
|
+
isLoading,
|
|
141
|
+
isSaving,
|
|
142
|
+
appCredentials,
|
|
143
|
+
nodesRequiringCredentialsSorted,
|
|
144
|
+
template,
|
|
145
|
+
credentialUsages,
|
|
146
|
+
selectedCredentialIdByKey,
|
|
147
|
+
credentialOverrides,
|
|
148
|
+
numFilledCredentials,
|
|
149
|
+
createWorkflow,
|
|
150
|
+
skipSetup,
|
|
151
|
+
init,
|
|
152
|
+
loadTemplateIfNeeded,
|
|
153
|
+
setInitialCredentialSelection,
|
|
154
|
+
setTemplateId,
|
|
155
|
+
setSelectedCredentialId,
|
|
156
|
+
unsetSelectedCredential
|
|
157
|
+
};
|
|
158
|
+
});
|
|
159
|
+
var _hoisted_1 = { key: 1 };
|
|
160
|
+
var SetupWorkflowFromTemplateView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
161
|
+
__name: "SetupWorkflowFromTemplateView",
|
|
162
|
+
setup(__props) {
|
|
163
|
+
const setupTemplateStore = useSetupTemplateStore();
|
|
164
|
+
const i18n = useI18n();
|
|
165
|
+
const route = useRoute();
|
|
166
|
+
const router = useRouter();
|
|
167
|
+
const templateId = computed(() => Array.isArray(route.params.id) ? route.params.id[0] : route.params.id);
|
|
168
|
+
const title = computed(() => setupTemplateStore.template?.name ?? "unknown");
|
|
169
|
+
const isReady = computed(() => !setupTemplateStore.isLoading);
|
|
170
|
+
const skipSetupUrl = computed(() => {
|
|
171
|
+
return router.resolve({
|
|
172
|
+
name: VIEWS.TEMPLATE_IMPORT,
|
|
173
|
+
params: { id: templateId.value }
|
|
174
|
+
}).fullPath;
|
|
175
|
+
});
|
|
176
|
+
watch(templateId, async (newTemplateId) => {
|
|
177
|
+
setupTemplateStore.setTemplateId(newTemplateId);
|
|
178
|
+
await setupTemplateStore.loadTemplateIfNeeded();
|
|
179
|
+
});
|
|
180
|
+
const onSkipSetup = async (event) => {
|
|
181
|
+
event.preventDefault();
|
|
182
|
+
await setupTemplateStore.skipSetup({ router });
|
|
183
|
+
};
|
|
184
|
+
const skipIfTemplateHasNoCreds = async () => {
|
|
185
|
+
if (!!!setupTemplateStore.template) return false;
|
|
186
|
+
if (setupTemplateStore.credentialUsages.length === 0) {
|
|
187
|
+
await setupTemplateStore.skipSetup({ router });
|
|
188
|
+
return true;
|
|
189
|
+
}
|
|
190
|
+
return false;
|
|
191
|
+
};
|
|
192
|
+
setupTemplateStore.setTemplateId(templateId.value);
|
|
193
|
+
onMounted(async () => {
|
|
194
|
+
await setupTemplateStore.init();
|
|
195
|
+
await skipIfTemplateHasNoCreds();
|
|
196
|
+
});
|
|
197
|
+
return (_ctx, _cache) => {
|
|
198
|
+
return openBlock(), createBlock(TemplatesView_default, { "go-back-enabled": true }, {
|
|
199
|
+
header: withCtx(() => [isReady.value ? (openBlock(), createBlock(unref(N8nHeading_default), {
|
|
200
|
+
key: 0,
|
|
201
|
+
tag: "h1",
|
|
202
|
+
size: "2xlarge"
|
|
203
|
+
}, {
|
|
204
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("templateSetup.title", { interpolate: { name: title.value } })), 1)]),
|
|
205
|
+
_: 1
|
|
206
|
+
})) : (openBlock(), createBlock(unref(N8nLoading_default), {
|
|
207
|
+
key: 1,
|
|
208
|
+
variant: "h1"
|
|
209
|
+
}))]),
|
|
210
|
+
content: withCtx(() => [createBaseVNode("div", { class: normalizeClass(_ctx.$style.grid) }, [
|
|
211
|
+
createBaseVNode("div", {
|
|
212
|
+
class: normalizeClass(_ctx.$style.notice),
|
|
213
|
+
"data-test-id": "info-callout"
|
|
214
|
+
}, [isReady.value ? (openBlock(), createBlock(AppsRequiringCredsNotice_default, {
|
|
215
|
+
key: 0,
|
|
216
|
+
"app-credentials": unref(setupTemplateStore).appCredentials
|
|
217
|
+
}, null, 8, ["app-credentials"])) : (openBlock(), createBlock(unref(N8nLoading_default), {
|
|
218
|
+
key: 1,
|
|
219
|
+
variant: "p"
|
|
220
|
+
}))], 2),
|
|
221
|
+
createBaseVNode("div", null, [isReady.value ? (openBlock(), createElementBlock("ol", {
|
|
222
|
+
key: 0,
|
|
223
|
+
class: normalizeClass(_ctx.$style.appCredentialsContainer)
|
|
224
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(setupTemplateStore).credentialUsages, (credentials, index) => {
|
|
225
|
+
return openBlock(), createBlock(SetupTemplateFormStep_default, {
|
|
226
|
+
key: credentials.key,
|
|
227
|
+
class: normalizeClass(_ctx.$style.appCredential),
|
|
228
|
+
order: index + 1,
|
|
229
|
+
credentials,
|
|
230
|
+
"selected-credential-id": unref(setupTemplateStore).selectedCredentialIdByKey[credentials.key],
|
|
231
|
+
onCredentialSelected: _cache[0] || (_cache[0] = ($event) => unref(setupTemplateStore).setSelectedCredentialId($event.credentialUsageKey, $event.credentialId)),
|
|
232
|
+
onCredentialDeselected: _cache[1] || (_cache[1] = ($event) => unref(setupTemplateStore).unsetSelectedCredential($event.credentialUsageKey))
|
|
233
|
+
}, null, 8, [
|
|
234
|
+
"class",
|
|
235
|
+
"order",
|
|
236
|
+
"credentials",
|
|
237
|
+
"selected-credential-id"
|
|
238
|
+
]);
|
|
239
|
+
}), 128))], 2)) : (openBlock(), createElementBlock("div", {
|
|
240
|
+
key: 1,
|
|
241
|
+
class: normalizeClass(_ctx.$style.appCredentialsContainer)
|
|
242
|
+
}, [createVNode(unref(N8nLoading_default), {
|
|
243
|
+
class: normalizeClass(_ctx.$style.appCredential),
|
|
244
|
+
variant: "p",
|
|
245
|
+
rows: 3
|
|
246
|
+
}, null, 8, ["class"]), createVNode(unref(N8nLoading_default), {
|
|
247
|
+
class: normalizeClass(_ctx.$style.appCredential),
|
|
248
|
+
variant: "p",
|
|
249
|
+
rows: 3
|
|
250
|
+
}, null, 8, ["class"])], 2))]),
|
|
251
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.actions) }, [createVNode(unref(N8nLink_default), {
|
|
252
|
+
href: skipSetupUrl.value,
|
|
253
|
+
"new-window": false,
|
|
254
|
+
onClick: _cache[2] || (_cache[2] = ($event) => onSkipSetup($event))
|
|
255
|
+
}, {
|
|
256
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("templateSetup.skip")), 1)]),
|
|
257
|
+
_: 1
|
|
258
|
+
}, 8, ["href"]), isReady.value ? (openBlock(), createBlock(unref(N8nTooltip_default), {
|
|
259
|
+
key: 0,
|
|
260
|
+
content: unref(i18n).baseText("templateSetup.continue.button.fillRemaining"),
|
|
261
|
+
disabled: unref(setupTemplateStore).numFilledCredentials > 0
|
|
262
|
+
}, {
|
|
263
|
+
default: withCtx(() => [createVNode(unref(N8nButton_default), {
|
|
264
|
+
size: "large",
|
|
265
|
+
label: unref(i18n).baseText("templateSetup.continue.button"),
|
|
266
|
+
disabled: unref(setupTemplateStore).isSaving || unref(setupTemplateStore).numFilledCredentials === 0,
|
|
267
|
+
"data-test-id": "continue-button",
|
|
268
|
+
onClick: _cache[3] || (_cache[3] = ($event) => unref(setupTemplateStore).createWorkflow({ router: unref(router) }))
|
|
269
|
+
}, null, 8, ["label", "disabled"])]),
|
|
270
|
+
_: 1
|
|
271
|
+
}, 8, ["content", "disabled"])) : (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(N8nLoading_default), { variant: "button" })]))], 2)
|
|
272
|
+
], 2)]),
|
|
273
|
+
_: 1
|
|
274
|
+
});
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
var SetupWorkflowFromTemplateView_vue_vue_type_style_index_0_lang_module_default = {
|
|
279
|
+
grid: "_grid_e7pvm_123",
|
|
280
|
+
notice: "_notice_e7pvm_131",
|
|
281
|
+
appCredentialsContainer: "_appCredentialsContainer_e7pvm_135",
|
|
282
|
+
appCredential: "_appCredential_e7pvm_135",
|
|
283
|
+
actions: "_actions_e7pvm_146"
|
|
284
|
+
};
|
|
285
|
+
var SetupWorkflowFromTemplateView_default = /* @__PURE__ */ __plugin_vue_export_helper_default(SetupWorkflowFromTemplateView_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": SetupWorkflowFromTemplateView_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
286
|
+
export { SetupWorkflowFromTemplateView_default as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { C as computed, Gt as unref, P as defineComponent, T as createBlock, c as useCssModule, et as openBlock, vn as normalizeClass } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { x as N8nTag_default } from "./src-jviYSG25.js";
|
|
3
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
4
|
+
import { c as get, u as makeRestApiRequest } from "./_baseOrderBy-N8Be_6z6.js";
|
|
5
|
+
async function getReport(context, query) {
|
|
6
|
+
return (await get(context.baseUrl, "/breaking-changes/report", query)).data;
|
|
7
|
+
}
|
|
8
|
+
async function refreshReport(context, query) {
|
|
9
|
+
return await makeRestApiRequest(context, "POST", query?.version ? `/breaking-changes/report/refresh?version=${query.version}` : "/breaking-changes/report/refresh");
|
|
10
|
+
}
|
|
11
|
+
async function getReportForRule(context, ruleId) {
|
|
12
|
+
return (await get(context.baseUrl, `/breaking-changes/report/${ruleId}`)).data;
|
|
13
|
+
}
|
|
14
|
+
var SeverityTag_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
15
|
+
name: "N8nTag",
|
|
16
|
+
__name: "SeverityTag",
|
|
17
|
+
props: { severity: {} },
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const $style = useCssModule();
|
|
20
|
+
const tagsI18n = computed(() => ({
|
|
21
|
+
critical: "Critical",
|
|
22
|
+
medium: "Medium",
|
|
23
|
+
low: "Low"
|
|
24
|
+
}));
|
|
25
|
+
const tagClasses = {
|
|
26
|
+
critical: $style.TagCritical,
|
|
27
|
+
medium: $style.TagMedium,
|
|
28
|
+
low: $style.TagLow
|
|
29
|
+
};
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return openBlock(), createBlock(unref(N8nTag_default), {
|
|
32
|
+
text: tagsI18n.value[_ctx.severity],
|
|
33
|
+
clickable: false,
|
|
34
|
+
class: normalizeClass(tagClasses[_ctx.severity])
|
|
35
|
+
}, null, 8, ["text", "class"]);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
var SeverityTag_vue_vue_type_style_index_0_lang_module_default = {
|
|
40
|
+
TagCritical: "_TagCritical_1mw62_2",
|
|
41
|
+
TagMedium: "_TagMedium_1mw62_8",
|
|
42
|
+
TagLow: "_TagLow_1mw62_14"
|
|
43
|
+
};
|
|
44
|
+
var SeverityTag_default = /* @__PURE__ */ __plugin_vue_export_helper_default(SeverityTag_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": SeverityTag_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
45
|
+
export { refreshReport as i, getReport as n, getReportForRule as r, SeverityTag_default as t };
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { C as computed, Cn as toDisplayString, D as createElementBlock, E as createCommentVNode, Gt as unref, It as ref, M as createVNode, P as defineComponent, Pt as reactive, T as createBlock, Z as onMounted, bt as withCtx, et as openBlock, j as createTextVNode, vn as normalizeClass, w as createBaseVNode } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { B as toRefs, rt as useI18n } from "./core-CRbPymLT.js";
|
|
3
|
+
import { H as N8nFormInputs_default, I as N8nLogo_default, bn as N8nText_default, et as N8nCard_default, vn as N8nHeading_default, xn as N8nButton_default } from "./src-jviYSG25.js";
|
|
4
|
+
import "./en-CF30SCh2.js";
|
|
5
|
+
import "./preload-helper-dyVz7ck7.js";
|
|
6
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
7
|
+
import "./truncate-C0KYt7i3.js";
|
|
8
|
+
import { Er as useUsersStore, k as useTelemetry, ms as useSettingsStore, y as useToast } from "./builder.store-Czk2ipDE.js";
|
|
9
|
+
import "./empty-BuGRxzl4.js";
|
|
10
|
+
import { _ as useRoute, v as useRouter } from "./get-BcEmeOxn.js";
|
|
11
|
+
import "./sanitize-html-CbW56HUN.js";
|
|
12
|
+
import "./CalendarDate-DgQUMbNo.js";
|
|
13
|
+
import "./path-browserify-RUt2u7iT.js";
|
|
14
|
+
import "./_MapCache-CcdIl4Ae.js";
|
|
15
|
+
import { Fc as MFA_FORM, Nc as MFA_AUTHENTICATION_RECOVERY_CODE_INPUT_MAX_LENGTH, Pc as MFA_AUTHENTICATION_REQUIRED_ERROR_CODE, Ro as VIEWS, jc as MFA_AUTHENTICATION_CODE_INPUT_MAX_LENGTH } from "./constants-C8OH4tTq.js";
|
|
16
|
+
import "./merge-DhuTk1HM.js";
|
|
17
|
+
import "./_baseOrderBy-N8Be_6z6.js";
|
|
18
|
+
import "./dateformat-hG8NERse.js";
|
|
19
|
+
import "./useDebounce-Br5_1ug-.js";
|
|
20
|
+
import { n as mfaEventBus } from "./auth.eventBus-CWXS0Qp7.js";
|
|
21
|
+
import { n as useSSOStore } from "./sso.store-DyApJwhx.js";
|
|
22
|
+
import { t as AuthView_default } from "./AuthView-D2LWHrMp.js";
|
|
23
|
+
var MfaView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
24
|
+
__name: "MfaView",
|
|
25
|
+
props: { reportError: { type: Boolean } },
|
|
26
|
+
emits: [
|
|
27
|
+
"onFormChanged",
|
|
28
|
+
"onBackClick",
|
|
29
|
+
"submit"
|
|
30
|
+
],
|
|
31
|
+
setup(__props, { emit: __emit }) {
|
|
32
|
+
const props = __props;
|
|
33
|
+
const hasAnyChanges = ref(false);
|
|
34
|
+
const formBus = ref(mfaEventBus);
|
|
35
|
+
const formInputs = ref(null);
|
|
36
|
+
const showRecoveryCodeForm = ref(false);
|
|
37
|
+
const verifyingMfaCode = ref(false);
|
|
38
|
+
const formError$1 = ref("");
|
|
39
|
+
const { reportError } = toRefs(props);
|
|
40
|
+
const mfaFormRef = ref(null);
|
|
41
|
+
const i18 = useI18n();
|
|
42
|
+
const emit = __emit;
|
|
43
|
+
const formField = (name, label, placeholder, maxlength, focus = true, autocomplete = "off") => {
|
|
44
|
+
return {
|
|
45
|
+
name,
|
|
46
|
+
initialValue: "",
|
|
47
|
+
properties: {
|
|
48
|
+
label,
|
|
49
|
+
placeholder,
|
|
50
|
+
maxlength,
|
|
51
|
+
capitalize: true,
|
|
52
|
+
validateOnBlur: false,
|
|
53
|
+
focusInitially: focus,
|
|
54
|
+
autocomplete
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
const onRecoveryCodeClick = () => {
|
|
59
|
+
formError$1.value = "";
|
|
60
|
+
showRecoveryCodeForm.value = true;
|
|
61
|
+
hasAnyChanges.value = false;
|
|
62
|
+
formInputs.value = [mfaRecoveryCodeFieldWithDefaults()];
|
|
63
|
+
emit("onFormChanged", MFA_FORM.MFA_RECOVERY_CODE);
|
|
64
|
+
};
|
|
65
|
+
const onBackClick = () => {
|
|
66
|
+
if (!showRecoveryCodeForm.value) {
|
|
67
|
+
emit("onBackClick", MFA_FORM.MFA_TOKEN);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
showRecoveryCodeForm.value = false;
|
|
71
|
+
hasAnyChanges.value = true;
|
|
72
|
+
formInputs.value = [mfaCodeFieldWithDefaults()];
|
|
73
|
+
emit("onBackClick", MFA_FORM.MFA_RECOVERY_CODE);
|
|
74
|
+
focusMfaCodeAfterPasswordManager();
|
|
75
|
+
};
|
|
76
|
+
const onSubmit = (formData) => {
|
|
77
|
+
const data = formData;
|
|
78
|
+
formError$1.value = !showRecoveryCodeForm.value ? i18.baseText("mfa.code.invalid") : i18.baseText("mfa.recovery.invalid");
|
|
79
|
+
emit("submit", data);
|
|
80
|
+
};
|
|
81
|
+
const focusMfaCodeAfterPasswordManager = () => {
|
|
82
|
+
setTimeout(() => {
|
|
83
|
+
if (mfaFormRef.value) {
|
|
84
|
+
const container$1 = mfaFormRef.value.$el;
|
|
85
|
+
if (!container$1) return;
|
|
86
|
+
const inputElement = container$1.querySelector("input[name=\"mfaCode\"]");
|
|
87
|
+
if (inputElement) inputElement.focus();
|
|
88
|
+
}
|
|
89
|
+
}, 200);
|
|
90
|
+
};
|
|
91
|
+
const onInput = ({ target: { value, name } }) => {
|
|
92
|
+
const isSubmittingMfaCode = name === "mfaCode";
|
|
93
|
+
const inputValidLength = isSubmittingMfaCode ? 6 : 36;
|
|
94
|
+
if (value.length !== inputValidLength) {
|
|
95
|
+
hasAnyChanges.value = false;
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
verifyingMfaCode.value = true;
|
|
99
|
+
hasAnyChanges.value = true;
|
|
100
|
+
const dataToSubmit = isSubmittingMfaCode ? {
|
|
101
|
+
mfaCode: value,
|
|
102
|
+
mfaRecoveryCode: ""
|
|
103
|
+
} : {
|
|
104
|
+
mfaCode: "",
|
|
105
|
+
mfaRecoveryCode: value
|
|
106
|
+
};
|
|
107
|
+
try {
|
|
108
|
+
onSubmit(dataToSubmit);
|
|
109
|
+
} catch (e) {} finally {
|
|
110
|
+
verifyingMfaCode.value = false;
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
const mfaRecoveryCodeFieldWithDefaults = () => {
|
|
114
|
+
return formField("mfaRecoveryCode", i18.baseText("mfa.recovery.input.label"), i18.baseText("mfa.recovery.input.placeholder"), 36);
|
|
115
|
+
};
|
|
116
|
+
const mfaCodeFieldWithDefaults = () => {
|
|
117
|
+
return formField("mfaCode", i18.baseText("mfa.code.input.label"), i18.baseText("mfa.code.input.placeholder"), 6, false, "one-time-code");
|
|
118
|
+
};
|
|
119
|
+
const onSaveClick = () => {
|
|
120
|
+
formBus.value.emit("submit");
|
|
121
|
+
};
|
|
122
|
+
const { settings: { releaseChannel } } = useSettingsStore();
|
|
123
|
+
onMounted(() => {
|
|
124
|
+
formInputs.value = [mfaCodeFieldWithDefaults()];
|
|
125
|
+
focusMfaCodeAfterPasswordManager();
|
|
126
|
+
});
|
|
127
|
+
return (_ctx, _cache) => {
|
|
128
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(_ctx.$style.container) }, [createVNode(unref(N8nLogo_default), {
|
|
129
|
+
size: "large",
|
|
130
|
+
"release-channel": unref(releaseChannel)
|
|
131
|
+
}, null, 8, ["release-channel"]), createVNode(unref(N8nCard_default), null, {
|
|
132
|
+
default: withCtx(() => [
|
|
133
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.headerContainer) }, [createVNode(unref(N8nHeading_default), {
|
|
134
|
+
size: "xlarge",
|
|
135
|
+
color: "text-dark"
|
|
136
|
+
}, {
|
|
137
|
+
default: withCtx(() => [createTextVNode(toDisplayString(showRecoveryCodeForm.value ? unref(i18).baseText("mfa.recovery.modal.title") : unref(i18).baseText("mfa.code.modal.title")), 1)]),
|
|
138
|
+
_: 1
|
|
139
|
+
})], 2),
|
|
140
|
+
createBaseVNode("div", { class: normalizeClass([_ctx.$style.formContainer, unref(reportError) ? _ctx.$style.formError : ""]) }, [formInputs.value ? (openBlock(), createBlock(unref(N8nFormInputs_default), {
|
|
141
|
+
key: 0,
|
|
142
|
+
ref_key: "mfaFormRef",
|
|
143
|
+
ref: mfaFormRef,
|
|
144
|
+
"data-test-id": "mfa-login-form",
|
|
145
|
+
inputs: formInputs.value,
|
|
146
|
+
"event-bus": formBus.value,
|
|
147
|
+
onInput,
|
|
148
|
+
onSubmit
|
|
149
|
+
}, null, 8, ["inputs", "event-bus"])) : createCommentVNode("", true), createBaseVNode("div", { class: normalizeClass(_ctx.$style.infoBox) }, [!showRecoveryCodeForm.value && !unref(reportError) ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
150
|
+
key: 0,
|
|
151
|
+
size: "small",
|
|
152
|
+
color: "text-base",
|
|
153
|
+
bold: false
|
|
154
|
+
}, {
|
|
155
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18).baseText("mfa.code.input.info")) + " ", 1), createBaseVNode("a", {
|
|
156
|
+
"data-test-id": "mfa-enter-recovery-code-button",
|
|
157
|
+
onClick: onRecoveryCodeClick
|
|
158
|
+
}, toDisplayString(unref(i18).baseText("mfa.code.input.info.action")), 1)]),
|
|
159
|
+
_: 1
|
|
160
|
+
})) : createCommentVNode("", true), unref(reportError) ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
161
|
+
key: 1,
|
|
162
|
+
color: "danger",
|
|
163
|
+
size: "small"
|
|
164
|
+
}, {
|
|
165
|
+
default: withCtx(() => [createTextVNode(toDisplayString(formError$1.value) + " ", 1), !showRecoveryCodeForm.value ? (openBlock(), createElementBlock("a", {
|
|
166
|
+
key: 0,
|
|
167
|
+
class: normalizeClass(_ctx.$style.recoveryCodeLink),
|
|
168
|
+
onClick: onRecoveryCodeClick
|
|
169
|
+
}, toDisplayString(unref(i18).baseText("mfa.recovery.input.info.action")), 3)) : createCommentVNode("", true)]),
|
|
170
|
+
_: 1
|
|
171
|
+
})) : createCommentVNode("", true)], 2)], 2),
|
|
172
|
+
createBaseVNode("div", null, [createVNode(unref(N8nButton_default), {
|
|
173
|
+
float: "right",
|
|
174
|
+
loading: verifyingMfaCode.value,
|
|
175
|
+
label: showRecoveryCodeForm.value ? unref(i18).baseText("mfa.recovery.button.verify") : unref(i18).baseText("mfa.code.button.continue"),
|
|
176
|
+
size: "large",
|
|
177
|
+
disabled: !hasAnyChanges.value,
|
|
178
|
+
onClick: onSaveClick
|
|
179
|
+
}, null, 8, [
|
|
180
|
+
"loading",
|
|
181
|
+
"label",
|
|
182
|
+
"disabled"
|
|
183
|
+
]), createVNode(unref(N8nButton_default), {
|
|
184
|
+
float: "left",
|
|
185
|
+
label: unref(i18).baseText("mfa.button.back"),
|
|
186
|
+
size: "large",
|
|
187
|
+
type: "tertiary",
|
|
188
|
+
onClick: onBackClick
|
|
189
|
+
}, null, 8, ["label"])])
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
})], 2);
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
var MfaView_vue_vue_type_style_index_0_lang_module_default = {
|
|
197
|
+
container: "_container_f63sf_127",
|
|
198
|
+
formContainer: "_formContainer_f63sf_137",
|
|
199
|
+
headerContainer: "_headerContainer_f63sf_141",
|
|
200
|
+
formError: "_formError_f63sf_146",
|
|
201
|
+
recoveryCodeLink: "_recoveryCodeLink_f63sf_150",
|
|
202
|
+
infoBox: "_infoBox_f63sf_154"
|
|
203
|
+
};
|
|
204
|
+
var MfaView_default = /* @__PURE__ */ __plugin_vue_export_helper_default(MfaView_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": MfaView_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
205
|
+
var SigninView_default = /* @__PURE__ */ defineComponent({
|
|
206
|
+
__name: "SigninView",
|
|
207
|
+
setup(__props) {
|
|
208
|
+
const usersStore = useUsersStore();
|
|
209
|
+
const settingsStore = useSettingsStore();
|
|
210
|
+
const ssoStore = useSSOStore();
|
|
211
|
+
const route = useRoute();
|
|
212
|
+
const router = useRouter();
|
|
213
|
+
const toast = useToast();
|
|
214
|
+
const locale = useI18n();
|
|
215
|
+
const telemetry = useTelemetry();
|
|
216
|
+
const loading = ref(false);
|
|
217
|
+
const showMfaView = ref(false);
|
|
218
|
+
const emailOrLdapLoginId = ref("");
|
|
219
|
+
const password = ref("");
|
|
220
|
+
const reportError = ref(false);
|
|
221
|
+
const ldapLoginLabel = computed(() => ssoStore.ldapLoginLabel);
|
|
222
|
+
const isLdapLoginEnabled = computed(() => ssoStore.isLdapLoginEnabled);
|
|
223
|
+
const emailLabel = computed(() => {
|
|
224
|
+
let label = locale.baseText("auth.email");
|
|
225
|
+
if (isLdapLoginEnabled.value && ldapLoginLabel.value) label = ldapLoginLabel.value;
|
|
226
|
+
return label;
|
|
227
|
+
});
|
|
228
|
+
const formConfig = reactive({
|
|
229
|
+
title: locale.baseText("auth.signin"),
|
|
230
|
+
buttonText: locale.baseText("auth.signin"),
|
|
231
|
+
redirectText: locale.baseText("forgotPassword"),
|
|
232
|
+
redirectLink: "/forgot-password",
|
|
233
|
+
inputs: [{
|
|
234
|
+
name: "emailOrLdapLoginId",
|
|
235
|
+
properties: {
|
|
236
|
+
label: emailLabel.value,
|
|
237
|
+
type: "email",
|
|
238
|
+
required: true,
|
|
239
|
+
...!isLdapLoginEnabled.value && { validationRules: [{ name: "VALID_EMAIL" }] },
|
|
240
|
+
showRequiredAsterisk: false,
|
|
241
|
+
validateOnBlur: false,
|
|
242
|
+
autocomplete: "email",
|
|
243
|
+
capitalize: true,
|
|
244
|
+
focusInitially: true
|
|
245
|
+
}
|
|
246
|
+
}, {
|
|
247
|
+
name: "password",
|
|
248
|
+
properties: {
|
|
249
|
+
label: locale.baseText("auth.password"),
|
|
250
|
+
type: "password",
|
|
251
|
+
required: true,
|
|
252
|
+
showRequiredAsterisk: false,
|
|
253
|
+
validateOnBlur: false,
|
|
254
|
+
autocomplete: "current-password",
|
|
255
|
+
capitalize: true
|
|
256
|
+
}
|
|
257
|
+
}]
|
|
258
|
+
});
|
|
259
|
+
const onMFASubmitted = async (form) => {
|
|
260
|
+
await login({
|
|
261
|
+
emailOrLdapLoginId: emailOrLdapLoginId.value,
|
|
262
|
+
password: password.value,
|
|
263
|
+
mfaCode: form.mfaCode,
|
|
264
|
+
mfaRecoveryCode: form.mfaRecoveryCode
|
|
265
|
+
});
|
|
266
|
+
};
|
|
267
|
+
const onEmailPasswordSubmitted = async (form) => {
|
|
268
|
+
await login(form);
|
|
269
|
+
};
|
|
270
|
+
const isRedirectSafe = () => {
|
|
271
|
+
const redirect = getRedirectQueryParameter();
|
|
272
|
+
if (redirect.startsWith("/")) return true;
|
|
273
|
+
try {
|
|
274
|
+
return new URL(redirect).origin === window.location.origin;
|
|
275
|
+
} catch {
|
|
276
|
+
return false;
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
const getRedirectQueryParameter = () => {
|
|
280
|
+
let redirect = "";
|
|
281
|
+
if (typeof route.query?.redirect === "string") redirect = decodeURIComponent(route.query?.redirect);
|
|
282
|
+
return redirect;
|
|
283
|
+
};
|
|
284
|
+
const login = async (form) => {
|
|
285
|
+
try {
|
|
286
|
+
loading.value = true;
|
|
287
|
+
await usersStore.loginWithCreds({
|
|
288
|
+
emailOrLdapLoginId: form.emailOrLdapLoginId,
|
|
289
|
+
password: form.password,
|
|
290
|
+
mfaCode: form.mfaCode,
|
|
291
|
+
mfaRecoveryCode: form.mfaRecoveryCode
|
|
292
|
+
});
|
|
293
|
+
loading.value = false;
|
|
294
|
+
await settingsStore.getSettings();
|
|
295
|
+
toast.clearAllStickyNotifications();
|
|
296
|
+
if (settingsStore.isMFAEnforced && !usersStore.currentUser?.mfaAuthenticated) {
|
|
297
|
+
await router.push({ name: VIEWS.PERSONAL_SETTINGS });
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
telemetry.track("User attempted to login", { result: showMfaView.value ? "mfa_success" : "success" });
|
|
301
|
+
if (isRedirectSafe()) {
|
|
302
|
+
const redirect = getRedirectQueryParameter();
|
|
303
|
+
if (redirect.startsWith("http")) {
|
|
304
|
+
window.location.href = redirect;
|
|
305
|
+
return;
|
|
306
|
+
}
|
|
307
|
+
router.push(redirect);
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
await router.push({ name: VIEWS.HOMEPAGE });
|
|
311
|
+
} catch (error) {
|
|
312
|
+
if (error.errorCode === 998) {
|
|
313
|
+
showMfaView.value = true;
|
|
314
|
+
cacheCredentials(form);
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
telemetry.track("User attempted to login", { result: showMfaView.value ? "mfa_token_rejected" : "credentials_error" });
|
|
318
|
+
if (!showMfaView.value) {
|
|
319
|
+
toast.showError(error, locale.baseText("auth.signin.error"));
|
|
320
|
+
loading.value = false;
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
reportError.value = true;
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
const onBackClick = (fromForm) => {
|
|
327
|
+
reportError.value = false;
|
|
328
|
+
if (fromForm === MFA_FORM.MFA_TOKEN) {
|
|
329
|
+
showMfaView.value = false;
|
|
330
|
+
loading.value = false;
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
const onFormChanged = (toForm) => {
|
|
334
|
+
if (toForm === MFA_FORM.MFA_RECOVERY_CODE) reportError.value = false;
|
|
335
|
+
};
|
|
336
|
+
const cacheCredentials = (form) => {
|
|
337
|
+
emailOrLdapLoginId.value = form.emailOrLdapLoginId;
|
|
338
|
+
password.value = form.password;
|
|
339
|
+
};
|
|
340
|
+
return (_ctx, _cache) => {
|
|
341
|
+
return openBlock(), createElementBlock("div", null, [!showMfaView.value ? (openBlock(), createBlock(AuthView_default, {
|
|
342
|
+
key: 0,
|
|
343
|
+
form: formConfig,
|
|
344
|
+
"form-loading": loading.value,
|
|
345
|
+
"with-sso": true,
|
|
346
|
+
"data-test-id": "signin-form",
|
|
347
|
+
onSubmit: onEmailPasswordSubmitted
|
|
348
|
+
}, null, 8, ["form", "form-loading"])) : createCommentVNode("", true), showMfaView.value ? (openBlock(), createBlock(MfaView_default, {
|
|
349
|
+
key: 1,
|
|
350
|
+
"report-error": reportError.value,
|
|
351
|
+
onSubmit: onMFASubmitted,
|
|
352
|
+
onOnBackClick: onBackClick,
|
|
353
|
+
onOnFormChanged: onFormChanged
|
|
354
|
+
}, null, 8, ["report-error"])) : createCommentVNode("", true)]);
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
export { SigninView_default as default };
|