@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,547 @@
|
|
|
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, _t as watch, bt as withCtx, et as openBlock, j as createTextVNode, vn as normalizeClass, w as createBaseVNode } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { it as I18nT, rt as useI18n } from "./core-CRbPymLT.js";
|
|
3
|
+
import { Ct as N8nActionBox_default, Q as N8nCheckbox_default, W as N8nFormInput_default, X as N8nColorPicker_default, ht as N8nTooltip_default, k as N8nNotice_default, vn as N8nHeading_default, xn as N8nButton_default, yn as N8nCallout_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 { Qn as useSourceControlStore, Xn as useDocumentTitle, h as useMessage, vr as useLoadingService, y as useToast } from "./builder.store-Czk2ipDE.js";
|
|
9
|
+
import "./empty-BuGRxzl4.js";
|
|
10
|
+
import "./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 { rs as MODAL_CONFIRM } 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 "./useClipboard-DvjhVHqJ.js";
|
|
21
|
+
import "./versions.store-B1z2OrLE.js";
|
|
22
|
+
import { t as usePageRedirectionHelper } from "./usePageRedirectionHelper-DjkznpX6.js";
|
|
23
|
+
import { t as CopyInput_default } from "./CopyInput-DDZVu2iU.js";
|
|
24
|
+
var _hoisted_1 = {
|
|
25
|
+
key: 0,
|
|
26
|
+
"data-test-id": "source-control-content-licensed"
|
|
27
|
+
};
|
|
28
|
+
var _hoisted_2 = ["href"];
|
|
29
|
+
var _hoisted_3 = { for: "connectionType" };
|
|
30
|
+
var _hoisted_4 = { for: "repoUrl" };
|
|
31
|
+
var _hoisted_5 = { for: "httpsUsername" };
|
|
32
|
+
var _hoisted_6 = { for: "httpsPassword" };
|
|
33
|
+
var _hoisted_7 = ["href"];
|
|
34
|
+
var _hoisted_8 = {
|
|
35
|
+
key: 5,
|
|
36
|
+
"data-test-id": "source-control-connected-content"
|
|
37
|
+
};
|
|
38
|
+
var _hoisted_9 = ["href"];
|
|
39
|
+
var SettingsSourceControl_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
40
|
+
__name: "SettingsSourceControl",
|
|
41
|
+
setup(__props) {
|
|
42
|
+
const locale = useI18n();
|
|
43
|
+
const sourceControlStore = useSourceControlStore();
|
|
44
|
+
const pageRedirectionHelper = usePageRedirectionHelper();
|
|
45
|
+
const toast = useToast();
|
|
46
|
+
const message = useMessage();
|
|
47
|
+
const documentTitle = useDocumentTitle();
|
|
48
|
+
const loadingService = useLoadingService();
|
|
49
|
+
const isConnected = ref(false);
|
|
50
|
+
const connectionType = ref("ssh");
|
|
51
|
+
const httpsUsername = ref("");
|
|
52
|
+
const httpsPassword = ref("");
|
|
53
|
+
const branchNameOptions = computed(() => sourceControlStore.preferences.branches.map((branch) => ({
|
|
54
|
+
value: branch,
|
|
55
|
+
label: branch
|
|
56
|
+
})));
|
|
57
|
+
const connectionTypeOptions = [{
|
|
58
|
+
value: "ssh",
|
|
59
|
+
label: "SSH"
|
|
60
|
+
}, {
|
|
61
|
+
value: "https",
|
|
62
|
+
label: "HTTPS"
|
|
63
|
+
}];
|
|
64
|
+
const onConnect = async () => {
|
|
65
|
+
loadingService.startLoading();
|
|
66
|
+
loadingService.setLoadingText(locale.baseText("settings.sourceControl.loading.connecting"));
|
|
67
|
+
try {
|
|
68
|
+
const connectionData = {
|
|
69
|
+
repositoryUrl: sourceControlStore.preferences.repositoryUrl,
|
|
70
|
+
connectionType: connectionType.value
|
|
71
|
+
};
|
|
72
|
+
if (connectionType.value === "https") {
|
|
73
|
+
connectionData.httpsUsername = httpsUsername.value;
|
|
74
|
+
connectionData.httpsPassword = httpsPassword.value;
|
|
75
|
+
}
|
|
76
|
+
await sourceControlStore.savePreferences(connectionData);
|
|
77
|
+
await sourceControlStore.getBranches();
|
|
78
|
+
isConnected.value = true;
|
|
79
|
+
toast.showMessage({
|
|
80
|
+
title: locale.baseText("settings.sourceControl.toast.connected.title"),
|
|
81
|
+
message: locale.baseText("settings.sourceControl.toast.connected.message"),
|
|
82
|
+
type: "success"
|
|
83
|
+
});
|
|
84
|
+
} catch (error) {
|
|
85
|
+
toast.showError(error, locale.baseText("settings.sourceControl.toast.connected.error"));
|
|
86
|
+
}
|
|
87
|
+
loadingService.stopLoading();
|
|
88
|
+
};
|
|
89
|
+
const onDisconnect = async () => {
|
|
90
|
+
try {
|
|
91
|
+
if (await message.confirm(locale.baseText("settings.sourceControl.modals.disconnect.message"), locale.baseText("settings.sourceControl.modals.disconnect.title"), {
|
|
92
|
+
confirmButtonText: locale.baseText("settings.sourceControl.modals.disconnect.confirm"),
|
|
93
|
+
cancelButtonText: locale.baseText("settings.sourceControl.modals.disconnect.cancel")
|
|
94
|
+
}) === "confirm") {
|
|
95
|
+
loadingService.startLoading();
|
|
96
|
+
await sourceControlStore.disconnect(true);
|
|
97
|
+
isConnected.value = false;
|
|
98
|
+
httpsUsername.value = "";
|
|
99
|
+
httpsPassword.value = "";
|
|
100
|
+
toast.showMessage({
|
|
101
|
+
title: locale.baseText("settings.sourceControl.toast.disconnected.title"),
|
|
102
|
+
message: locale.baseText("settings.sourceControl.toast.disconnected.message"),
|
|
103
|
+
type: "success"
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
} catch (error) {
|
|
107
|
+
toast.showError(error, locale.baseText("settings.sourceControl.toast.disconnected.error"));
|
|
108
|
+
}
|
|
109
|
+
loadingService.stopLoading();
|
|
110
|
+
};
|
|
111
|
+
const onSave = async () => {
|
|
112
|
+
loadingService.startLoading();
|
|
113
|
+
try {
|
|
114
|
+
await sourceControlStore.updatePreferences({
|
|
115
|
+
branchName: sourceControlStore.preferences.branchName,
|
|
116
|
+
branchReadOnly: sourceControlStore.preferences.branchReadOnly,
|
|
117
|
+
branchColor: sourceControlStore.preferences.branchColor
|
|
118
|
+
});
|
|
119
|
+
toast.showMessage({
|
|
120
|
+
title: locale.baseText("settings.sourceControl.saved.title"),
|
|
121
|
+
type: "success"
|
|
122
|
+
});
|
|
123
|
+
} catch (error) {
|
|
124
|
+
toast.showError(error, locale.baseText("settings.sourceControl.saved.error"));
|
|
125
|
+
}
|
|
126
|
+
loadingService.stopLoading();
|
|
127
|
+
};
|
|
128
|
+
const onSelect = (b) => {
|
|
129
|
+
if (b === sourceControlStore.preferences.branchName) return;
|
|
130
|
+
sourceControlStore.preferences.branchName = b;
|
|
131
|
+
};
|
|
132
|
+
const goToUpgrade = () => {
|
|
133
|
+
pageRedirectionHelper.goToUpgrade("source-control", "upgrade-source-control");
|
|
134
|
+
};
|
|
135
|
+
const initialize = async () => {
|
|
136
|
+
await sourceControlStore.getPreferences();
|
|
137
|
+
if (sourceControlStore.preferences.connected) {
|
|
138
|
+
isConnected.value = true;
|
|
139
|
+
connectionType.value = sourceControlStore.preferences.connectionType || "ssh";
|
|
140
|
+
sourceControlStore.getBranches();
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
onMounted(async () => {
|
|
144
|
+
documentTitle.set(locale.baseText("settings.sourceControl.title"));
|
|
145
|
+
if (!sourceControlStore.isEnterpriseSourceControlEnabled) return;
|
|
146
|
+
await initialize();
|
|
147
|
+
});
|
|
148
|
+
const formValidationStatus = reactive({
|
|
149
|
+
repoUrl: false,
|
|
150
|
+
keyGeneratorType: false,
|
|
151
|
+
httpsUsername: false,
|
|
152
|
+
httpsPassword: false
|
|
153
|
+
});
|
|
154
|
+
function onValidate(key, value) {
|
|
155
|
+
formValidationStatus[key] = value;
|
|
156
|
+
}
|
|
157
|
+
const repoUrlValidationRules = computed(() => {
|
|
158
|
+
const baseRules = [{ name: "REQUIRED" }];
|
|
159
|
+
if (connectionType.value === "ssh") baseRules.push({
|
|
160
|
+
name: "MATCH_REGEX",
|
|
161
|
+
config: {
|
|
162
|
+
regex: /^(?:git@|ssh:\/\/git@|[\w-]+@)(?:[\w.-]+|\[[0-9a-fA-F:]+])(?::\d+)?[:\/][\w\-~.]+(?:\/[\w\-~.]+)*(?:\.git)?(?:\/.*)?$/,
|
|
163
|
+
message: locale.baseText("settings.sourceControl.repoUrlInvalid")
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
else baseRules.push({
|
|
167
|
+
name: "MATCH_REGEX",
|
|
168
|
+
config: {
|
|
169
|
+
regex: /^https:\/\/.+$/,
|
|
170
|
+
message: locale.baseText("settings.sourceControl.enterValidHttpsUrl")
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
return baseRules;
|
|
174
|
+
});
|
|
175
|
+
const keyGeneratorTypeValidationRules = [{ name: "REQUIRED" }];
|
|
176
|
+
const httpsCredentialValidationRules = [{ name: "REQUIRED" }];
|
|
177
|
+
const validForConnection = computed(() => {
|
|
178
|
+
if (connectionType.value === "ssh") return formValidationStatus.repoUrl;
|
|
179
|
+
else return formValidationStatus.repoUrl && formValidationStatus.httpsUsername && formValidationStatus.httpsPassword;
|
|
180
|
+
});
|
|
181
|
+
const branchNameValidationRules = [{ name: "REQUIRED" }];
|
|
182
|
+
async function refreshSshKey() {
|
|
183
|
+
try {
|
|
184
|
+
if (await message.confirm(locale.baseText("settings.sourceControl.modals.refreshSshKey.message"), locale.baseText("settings.sourceControl.modals.refreshSshKey.title"), {
|
|
185
|
+
confirmButtonText: locale.baseText("settings.sourceControl.modals.refreshSshKey.confirm"),
|
|
186
|
+
cancelButtonText: locale.baseText("settings.sourceControl.modals.refreshSshKey.cancel")
|
|
187
|
+
}) === "confirm") {
|
|
188
|
+
await sourceControlStore.generateKeyPair(sourceControlStore.preferences.keyGeneratorType);
|
|
189
|
+
toast.showMessage({
|
|
190
|
+
title: locale.baseText("settings.sourceControl.refreshSshKey.successful.title"),
|
|
191
|
+
type: "success"
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
} catch (error) {
|
|
195
|
+
toast.showError(error, locale.baseText("settings.sourceControl.refreshSshKey.error.title"));
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
const refreshBranches$1 = async () => {
|
|
199
|
+
try {
|
|
200
|
+
await sourceControlStore.getBranches();
|
|
201
|
+
toast.showMessage({
|
|
202
|
+
title: locale.baseText("settings.sourceControl.refreshBranches.success"),
|
|
203
|
+
type: "success"
|
|
204
|
+
});
|
|
205
|
+
} catch (error) {
|
|
206
|
+
toast.showError(error, locale.baseText("settings.sourceControl.refreshBranches.error"));
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
const onSelectSshKeyType = (value) => {
|
|
210
|
+
const sshKeyType = value;
|
|
211
|
+
if (sshKeyType === sourceControlStore.preferences.keyGeneratorType) return;
|
|
212
|
+
sourceControlStore.preferences.keyGeneratorType = sshKeyType;
|
|
213
|
+
};
|
|
214
|
+
watch(connectionType, () => {
|
|
215
|
+
formValidationStatus.repoUrl = false;
|
|
216
|
+
formValidationStatus.httpsUsername = false;
|
|
217
|
+
formValidationStatus.httpsPassword = false;
|
|
218
|
+
if (!isConnected.value) sourceControlStore.preferences.repositoryUrl = "";
|
|
219
|
+
});
|
|
220
|
+
return (_ctx, _cache) => {
|
|
221
|
+
return openBlock(), createElementBlock("div", null, [createVNode(unref(N8nHeading_default), {
|
|
222
|
+
size: "2xlarge",
|
|
223
|
+
tag: "h1"
|
|
224
|
+
}, {
|
|
225
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("settings.sourceControl.title")), 1)]),
|
|
226
|
+
_: 1
|
|
227
|
+
}), unref(sourceControlStore).isEnterpriseSourceControlEnabled ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
228
|
+
createVNode(unref(N8nCallout_default), {
|
|
229
|
+
theme: "secondary",
|
|
230
|
+
icon: "info",
|
|
231
|
+
class: "mt-2xl mb-l"
|
|
232
|
+
}, {
|
|
233
|
+
default: withCtx(() => [createVNode(unref(I18nT), {
|
|
234
|
+
keypath: "settings.sourceControl.description",
|
|
235
|
+
tag: "span",
|
|
236
|
+
scope: "global"
|
|
237
|
+
}, {
|
|
238
|
+
link: withCtx(() => [createBaseVNode("a", {
|
|
239
|
+
href: unref(locale).baseText("settings.sourceControl.docs.url"),
|
|
240
|
+
target: "_blank"
|
|
241
|
+
}, toDisplayString(unref(locale).baseText("settings.sourceControl.description.link")), 9, _hoisted_2)]),
|
|
242
|
+
_: 1
|
|
243
|
+
})]),
|
|
244
|
+
_: 1
|
|
245
|
+
}),
|
|
246
|
+
createVNode(unref(N8nHeading_default), {
|
|
247
|
+
size: "xlarge",
|
|
248
|
+
tag: "h2",
|
|
249
|
+
class: "mb-s"
|
|
250
|
+
}, {
|
|
251
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("settings.sourceControl.gitConfig")), 1)]),
|
|
252
|
+
_: 1
|
|
253
|
+
}),
|
|
254
|
+
!isConnected.value ? (openBlock(), createElementBlock("div", {
|
|
255
|
+
key: 0,
|
|
256
|
+
class: normalizeClass(_ctx.$style.group)
|
|
257
|
+
}, [createBaseVNode("label", _hoisted_3, toDisplayString(unref(locale).baseText("settings.sourceControl.connectionType")), 1), createVNode(unref(N8nFormInput_default), {
|
|
258
|
+
id: "connectionType",
|
|
259
|
+
modelValue: connectionType.value,
|
|
260
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => connectionType.value = $event),
|
|
261
|
+
label: "",
|
|
262
|
+
type: "select",
|
|
263
|
+
name: "connectionType",
|
|
264
|
+
options: connectionTypeOptions,
|
|
265
|
+
"data-test-id": "source-control-connection-type-select"
|
|
266
|
+
}, null, 8, ["modelValue"])], 2)) : createCommentVNode("", true),
|
|
267
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.group) }, [
|
|
268
|
+
createBaseVNode("label", _hoisted_4, toDisplayString(connectionType.value === "ssh" ? unref(locale).baseText("settings.sourceControl.sshRepoUrl") : unref(locale).baseText("settings.sourceControl.httpsRepoUrl")), 1),
|
|
269
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.groupFlex) }, [createVNode(unref(N8nFormInput_default), {
|
|
270
|
+
id: "repoUrl",
|
|
271
|
+
modelValue: unref(sourceControlStore).preferences.repositoryUrl,
|
|
272
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(sourceControlStore).preferences.repositoryUrl = $event),
|
|
273
|
+
label: "",
|
|
274
|
+
class: "ml-0",
|
|
275
|
+
name: "repoUrl",
|
|
276
|
+
"validate-on-blur": "",
|
|
277
|
+
"validation-rules": repoUrlValidationRules.value,
|
|
278
|
+
disabled: isConnected.value,
|
|
279
|
+
placeholder: connectionType.value === "ssh" ? unref(locale).baseText("settings.sourceControl.sshRepoUrlPlaceholder") : unref(locale).baseText("settings.sourceControl.httpsRepoUrlPlaceholder"),
|
|
280
|
+
onValidate: _cache[2] || (_cache[2] = (value) => onValidate("repoUrl", value))
|
|
281
|
+
}, null, 8, [
|
|
282
|
+
"modelValue",
|
|
283
|
+
"validation-rules",
|
|
284
|
+
"disabled",
|
|
285
|
+
"placeholder"
|
|
286
|
+
]), isConnected.value ? (openBlock(), createBlock(unref(N8nButton_default), {
|
|
287
|
+
key: 0,
|
|
288
|
+
class: normalizeClass(_ctx.$style.disconnectButton),
|
|
289
|
+
type: "tertiary",
|
|
290
|
+
size: "large",
|
|
291
|
+
icon: "trash-2",
|
|
292
|
+
"data-test-id": "source-control-disconnect-button",
|
|
293
|
+
onClick: onDisconnect
|
|
294
|
+
}, {
|
|
295
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("settings.sourceControl.button.disconnect")), 1)]),
|
|
296
|
+
_: 1
|
|
297
|
+
}, 8, ["class"])) : createCommentVNode("", true)], 2),
|
|
298
|
+
!isConnected.value && connectionType.value === "ssh" ? (openBlock(), createBlock(unref(N8nNotice_default), {
|
|
299
|
+
key: 0,
|
|
300
|
+
type: "info",
|
|
301
|
+
class: "mt-s"
|
|
302
|
+
}, {
|
|
303
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("settings.sourceControl.sshFormatNotice")), 1)]),
|
|
304
|
+
_: 1
|
|
305
|
+
})) : createCommentVNode("", true),
|
|
306
|
+
!isConnected.value && connectionType.value === "https" ? (openBlock(), createBlock(unref(N8nNotice_default), {
|
|
307
|
+
key: 1,
|
|
308
|
+
type: "info",
|
|
309
|
+
class: "mt-s"
|
|
310
|
+
}, {
|
|
311
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("settings.sourceControl.httpsFormatNotice")), 1)]),
|
|
312
|
+
_: 1
|
|
313
|
+
})) : createCommentVNode("", true)
|
|
314
|
+
], 2),
|
|
315
|
+
connectionType.value === "https" && !isConnected.value ? (openBlock(), createElementBlock("div", {
|
|
316
|
+
key: 1,
|
|
317
|
+
class: normalizeClass(_ctx.$style.group)
|
|
318
|
+
}, [createBaseVNode("label", _hoisted_5, toDisplayString(unref(locale).baseText("settings.sourceControl.httpsUsername")), 1), createVNode(unref(N8nFormInput_default), {
|
|
319
|
+
id: "httpsUsername",
|
|
320
|
+
modelValue: httpsUsername.value,
|
|
321
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => httpsUsername.value = $event),
|
|
322
|
+
label: "",
|
|
323
|
+
name: "httpsUsername",
|
|
324
|
+
type: "text",
|
|
325
|
+
"validate-on-blur": "",
|
|
326
|
+
"validation-rules": httpsCredentialValidationRules,
|
|
327
|
+
placeholder: unref(locale).baseText("settings.sourceControl.httpsUsernamePlaceholder"),
|
|
328
|
+
onValidate: _cache[4] || (_cache[4] = (value) => onValidate("httpsUsername", value))
|
|
329
|
+
}, null, 8, ["modelValue", "placeholder"])], 2)) : createCommentVNode("", true),
|
|
330
|
+
connectionType.value === "https" && !isConnected.value ? (openBlock(), createElementBlock("div", {
|
|
331
|
+
key: 2,
|
|
332
|
+
class: normalizeClass(_ctx.$style.group)
|
|
333
|
+
}, [
|
|
334
|
+
createBaseVNode("label", _hoisted_6, toDisplayString(unref(locale).baseText("settings.sourceControl.httpsPersonalAccessToken")), 1),
|
|
335
|
+
createVNode(unref(N8nFormInput_default), {
|
|
336
|
+
id: "httpsPassword",
|
|
337
|
+
modelValue: httpsPassword.value,
|
|
338
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => httpsPassword.value = $event),
|
|
339
|
+
label: "",
|
|
340
|
+
name: "httpsPassword",
|
|
341
|
+
type: "password",
|
|
342
|
+
"validate-on-blur": "",
|
|
343
|
+
"validation-rules": httpsCredentialValidationRules,
|
|
344
|
+
placeholder: unref(locale).baseText("settings.sourceControl.httpsPersonalAccessTokenPlaceholder"),
|
|
345
|
+
onValidate: _cache[6] || (_cache[6] = (value) => onValidate("httpsPassword", value))
|
|
346
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
347
|
+
createVNode(unref(N8nNotice_default), {
|
|
348
|
+
type: "warning",
|
|
349
|
+
class: "mt-s"
|
|
350
|
+
}, {
|
|
351
|
+
default: withCtx(() => [createVNode(unref(I18nT), {
|
|
352
|
+
keypath: "settings.sourceControl.httpsWarningNotice",
|
|
353
|
+
tag: "span",
|
|
354
|
+
scope: "global"
|
|
355
|
+
}, {
|
|
356
|
+
strong: withCtx(() => [createBaseVNode("strong", null, toDisplayString(unref(locale).baseText("settings.sourceControl.httpsWarningNotice.strong")), 1)]),
|
|
357
|
+
repo: withCtx(() => _cache[11] || (_cache[11] = [createBaseVNode("code", null, "repo", -1)])),
|
|
358
|
+
publicRepo: withCtx(() => _cache[12] || (_cache[12] = [createBaseVNode("code", null, "public_repo", -1)])),
|
|
359
|
+
_: 1
|
|
360
|
+
})]),
|
|
361
|
+
_: 1
|
|
362
|
+
})
|
|
363
|
+
], 2)) : createCommentVNode("", true),
|
|
364
|
+
connectionType.value === "ssh" && unref(sourceControlStore).preferences.publicKey ? (openBlock(), createElementBlock("div", {
|
|
365
|
+
key: 3,
|
|
366
|
+
class: normalizeClass(_ctx.$style.group)
|
|
367
|
+
}, [
|
|
368
|
+
createBaseVNode("label", null, toDisplayString(unref(locale).baseText("settings.sourceControl.sshKey")), 1),
|
|
369
|
+
createBaseVNode("div", { class: normalizeClass({ [_ctx.$style.sshInput]: !isConnected.value }) }, [
|
|
370
|
+
!isConnected.value ? (openBlock(), createBlock(unref(N8nFormInput_default), {
|
|
371
|
+
key: 0,
|
|
372
|
+
id: "keyGeneratorType",
|
|
373
|
+
class: normalizeClass(_ctx.$style.sshKeyTypeSelect),
|
|
374
|
+
label: "",
|
|
375
|
+
type: "select",
|
|
376
|
+
name: "keyGeneratorType",
|
|
377
|
+
"data-test-id": "source-control-ssh-key-type-select",
|
|
378
|
+
"validate-on-blur": "",
|
|
379
|
+
"validation-rules": keyGeneratorTypeValidationRules,
|
|
380
|
+
options: unref(sourceControlStore).sshKeyTypesWithLabel,
|
|
381
|
+
"model-value": unref(sourceControlStore).preferences.keyGeneratorType,
|
|
382
|
+
onValidate: _cache[7] || (_cache[7] = (value) => onValidate("keyGeneratorType", value)),
|
|
383
|
+
"onUpdate:modelValue": onSelectSshKeyType
|
|
384
|
+
}, null, 8, [
|
|
385
|
+
"class",
|
|
386
|
+
"options",
|
|
387
|
+
"model-value"
|
|
388
|
+
])) : createCommentVNode("", true),
|
|
389
|
+
createVNode(CopyInput_default, {
|
|
390
|
+
class: normalizeClass(_ctx.$style.copyInput),
|
|
391
|
+
collapse: "",
|
|
392
|
+
size: "medium",
|
|
393
|
+
value: unref(sourceControlStore).preferences.publicKey,
|
|
394
|
+
"copy-button-text": unref(locale).baseText("generic.clickToCopy")
|
|
395
|
+
}, null, 8, [
|
|
396
|
+
"class",
|
|
397
|
+
"value",
|
|
398
|
+
"copy-button-text"
|
|
399
|
+
]),
|
|
400
|
+
!isConnected.value ? (openBlock(), createBlock(unref(N8nButton_default), {
|
|
401
|
+
key: 1,
|
|
402
|
+
size: "large",
|
|
403
|
+
type: "tertiary",
|
|
404
|
+
icon: "refresh-cw",
|
|
405
|
+
"data-test-id": "source-control-refresh-ssh-key-button",
|
|
406
|
+
onClick: refreshSshKey
|
|
407
|
+
}, {
|
|
408
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("settings.sourceControl.refreshSshKey")), 1)]),
|
|
409
|
+
_: 1
|
|
410
|
+
})) : createCommentVNode("", true)
|
|
411
|
+
], 2),
|
|
412
|
+
createVNode(unref(N8nNotice_default), {
|
|
413
|
+
type: "info",
|
|
414
|
+
class: "mt-s"
|
|
415
|
+
}, {
|
|
416
|
+
default: withCtx(() => [createVNode(unref(I18nT), {
|
|
417
|
+
keypath: "settings.sourceControl.sshKeyDescription",
|
|
418
|
+
tag: "span",
|
|
419
|
+
scope: "global"
|
|
420
|
+
}, {
|
|
421
|
+
link: withCtx(() => [createBaseVNode("a", {
|
|
422
|
+
href: unref(locale).baseText("settings.sourceControl.docs.setup.ssh.url"),
|
|
423
|
+
target: "_blank"
|
|
424
|
+
}, toDisplayString(unref(locale).baseText("settings.sourceControl.sshKeyDescriptionLink")), 9, _hoisted_7)]),
|
|
425
|
+
_: 1
|
|
426
|
+
})]),
|
|
427
|
+
_: 1
|
|
428
|
+
})
|
|
429
|
+
], 2)) : createCommentVNode("", true),
|
|
430
|
+
!isConnected.value ? (openBlock(), createBlock(unref(N8nButton_default), {
|
|
431
|
+
key: 4,
|
|
432
|
+
size: "large",
|
|
433
|
+
disabled: !validForConnection.value,
|
|
434
|
+
class: normalizeClass(_ctx.$style.connect),
|
|
435
|
+
"data-test-id": "source-control-connect-button",
|
|
436
|
+
onClick: onConnect
|
|
437
|
+
}, {
|
|
438
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("settings.sourceControl.button.connect")), 1)]),
|
|
439
|
+
_: 1
|
|
440
|
+
}, 8, ["disabled", "class"])) : createCommentVNode("", true),
|
|
441
|
+
isConnected.value ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
442
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.group) }, [
|
|
443
|
+
_cache[13] || (_cache[13] = createBaseVNode("hr", null, null, -1)),
|
|
444
|
+
createVNode(unref(N8nHeading_default), {
|
|
445
|
+
size: "xlarge",
|
|
446
|
+
tag: "h2",
|
|
447
|
+
class: "mb-s"
|
|
448
|
+
}, {
|
|
449
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("settings.sourceControl.instanceSettings")), 1)]),
|
|
450
|
+
_: 1
|
|
451
|
+
}),
|
|
452
|
+
createBaseVNode("label", null, toDisplayString(unref(locale).baseText("settings.sourceControl.branches")), 1),
|
|
453
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.branchSelection) }, [createVNode(unref(N8nFormInput_default), {
|
|
454
|
+
id: "branchName",
|
|
455
|
+
label: "",
|
|
456
|
+
type: "select",
|
|
457
|
+
name: "branchName",
|
|
458
|
+
class: "mb-s",
|
|
459
|
+
"data-test-id": "source-control-branch-select",
|
|
460
|
+
"validate-on-blur": "",
|
|
461
|
+
"validation-rules": branchNameValidationRules,
|
|
462
|
+
options: branchNameOptions.value,
|
|
463
|
+
"model-value": unref(sourceControlStore).preferences.branchName,
|
|
464
|
+
onValidate: _cache[8] || (_cache[8] = (value) => onValidate("branchName", value)),
|
|
465
|
+
"onUpdate:modelValue": onSelect
|
|
466
|
+
}, null, 8, ["options", "model-value"]), createVNode(unref(N8nTooltip_default), { placement: "top" }, {
|
|
467
|
+
content: withCtx(() => [createBaseVNode("span", null, toDisplayString(unref(locale).baseText("settings.sourceControl.refreshBranches.tooltip")), 1)]),
|
|
468
|
+
default: withCtx(() => [createVNode(unref(N8nButton_default), {
|
|
469
|
+
size: "small",
|
|
470
|
+
type: "tertiary",
|
|
471
|
+
icon: "refresh-cw",
|
|
472
|
+
square: "",
|
|
473
|
+
class: normalizeClass(_ctx.$style.refreshBranches),
|
|
474
|
+
"data-test-id": "source-control-refresh-branches-button",
|
|
475
|
+
onClick: refreshBranches$1
|
|
476
|
+
}, null, 8, ["class"])]),
|
|
477
|
+
_: 1
|
|
478
|
+
})], 2),
|
|
479
|
+
createVNode(unref(N8nCheckbox_default), {
|
|
480
|
+
modelValue: unref(sourceControlStore).preferences.branchReadOnly,
|
|
481
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(sourceControlStore).preferences.branchReadOnly = $event),
|
|
482
|
+
class: normalizeClass(_ctx.$style.readOnly),
|
|
483
|
+
"data-test-id": "source-control-read-only-checkbox"
|
|
484
|
+
}, {
|
|
485
|
+
default: withCtx(() => [createVNode(unref(I18nT), {
|
|
486
|
+
keypath: "settings.sourceControl.protected",
|
|
487
|
+
tag: "span",
|
|
488
|
+
scope: "global"
|
|
489
|
+
}, {
|
|
490
|
+
bold: withCtx(() => [createBaseVNode("strong", null, toDisplayString(unref(locale).baseText("settings.sourceControl.protected.bold")), 1)]),
|
|
491
|
+
_: 1
|
|
492
|
+
})]),
|
|
493
|
+
_: 1
|
|
494
|
+
}, 8, ["modelValue", "class"])
|
|
495
|
+
], 2),
|
|
496
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.group) }, [createBaseVNode("label", null, toDisplayString(unref(locale).baseText("settings.sourceControl.color")), 1), createBaseVNode("div", null, [createVNode(unref(N8nColorPicker_default), {
|
|
497
|
+
modelValue: unref(sourceControlStore).preferences.branchColor,
|
|
498
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(sourceControlStore).preferences.branchColor = $event),
|
|
499
|
+
size: "small"
|
|
500
|
+
}, null, 8, ["modelValue"])])], 2),
|
|
501
|
+
createBaseVNode("div", { class: normalizeClass([_ctx.$style.group, "pt-s"]) }, [createVNode(unref(N8nButton_default), {
|
|
502
|
+
size: "large",
|
|
503
|
+
disabled: !unref(sourceControlStore).preferences.branchName,
|
|
504
|
+
"data-test-id": "source-control-save-settings-button",
|
|
505
|
+
onClick: onSave
|
|
506
|
+
}, {
|
|
507
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("settings.sourceControl.button.save")), 1)]),
|
|
508
|
+
_: 1
|
|
509
|
+
}, 8, ["disabled"])], 2)
|
|
510
|
+
])) : createCommentVNode("", true)
|
|
511
|
+
])) : (openBlock(), createBlock(unref(N8nActionBox_default), {
|
|
512
|
+
key: 1,
|
|
513
|
+
"data-test-id": "source-control-content-unlicensed",
|
|
514
|
+
class: normalizeClass(_ctx.$style.actionBox),
|
|
515
|
+
description: unref(locale).baseText("settings.sourceControl.actionBox.description"),
|
|
516
|
+
"button-text": unref(locale).baseText("settings.sourceControl.actionBox.buttonText"),
|
|
517
|
+
"onClick:button": goToUpgrade
|
|
518
|
+
}, {
|
|
519
|
+
heading: withCtx(() => [createBaseVNode("span", null, toDisplayString(unref(locale).baseText("settings.sourceControl.actionBox.title")), 1)]),
|
|
520
|
+
description: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("settings.sourceControl.actionBox.description")) + " ", 1), createBaseVNode("a", {
|
|
521
|
+
href: unref(locale).baseText("settings.sourceControl.docs.url"),
|
|
522
|
+
target: "_blank"
|
|
523
|
+
}, toDisplayString(unref(locale).baseText("settings.sourceControl.actionBox.description.link")), 9, _hoisted_9)]),
|
|
524
|
+
_: 1
|
|
525
|
+
}, 8, [
|
|
526
|
+
"class",
|
|
527
|
+
"description",
|
|
528
|
+
"button-text"
|
|
529
|
+
]))]);
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
});
|
|
533
|
+
var SettingsSourceControl_vue_vue_type_style_index_0_lang_module_default = {
|
|
534
|
+
group: "_group_1jvj3_123",
|
|
535
|
+
readOnly: "_readOnly_1jvj3_144",
|
|
536
|
+
groupFlex: "_groupFlex_1jvj3_148",
|
|
537
|
+
connect: "_connect_1jvj3_162",
|
|
538
|
+
disconnectButton: "_disconnectButton_1jvj3_166",
|
|
539
|
+
actionBox: "_actionBox_1jvj3_171",
|
|
540
|
+
sshInput: "_sshInput_1jvj3_175",
|
|
541
|
+
copyInput: "_copyInput_1jvj3_186",
|
|
542
|
+
sshKeyTypeSelect: "_sshKeyTypeSelect_1jvj3_190",
|
|
543
|
+
branchSelection: "_branchSelection_1jvj3_198",
|
|
544
|
+
refreshBranches: "_refreshBranches_1jvj3_207"
|
|
545
|
+
};
|
|
546
|
+
var SettingsSourceControl_default = /* @__PURE__ */ __plugin_vue_export_helper_default(SettingsSourceControl_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": SettingsSourceControl_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
547
|
+
export { SettingsSourceControl_default as default };
|