@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,116 @@
|
|
|
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, T as createBlock, _ 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, y as useMediaQuery } from "./core-CRbPymLT.js";
|
|
3
|
+
import { bn as N8nText_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 } from "./builder.store-Czk2ipDE.js";
|
|
9
|
+
import "./empty-BuGRxzl4.js";
|
|
10
|
+
import { 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 "./_baseOrderBy-N8Be_6z6.js";
|
|
18
|
+
import "./dateformat-hG8NERse.js";
|
|
19
|
+
import "./useDebounce-Br5_1ug-.js";
|
|
20
|
+
import "./retry-BgHaYzbB.js";
|
|
21
|
+
import "./CredentialIcon-8YdTTFZ1.js";
|
|
22
|
+
import { f as MOBILE_MEDIA_QUERY } from "./constants-DMrsrpD7.js";
|
|
23
|
+
import { f as stringifyModel, r as filterAndSortAgents, t as useChatStore } from "./chat.store-290YeyrQ.js";
|
|
24
|
+
import "./fileUtils-CRWqOQje.js";
|
|
25
|
+
import "./ChatAgentAvatar-50YBnv3N.js";
|
|
26
|
+
import { n as ChatAgentSearchSort_default, r as ChatAgentCard_default, t as SkeletonAgentCard_default } from "./SkeletonAgentCard-C5TL-h8F.js";
|
|
27
|
+
import { n as useChatCredentials, t as ChatLayout_default } from "./ChatLayout-CTE_5SiM.js";
|
|
28
|
+
var ChatWorkflowAgentsView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
29
|
+
__name: "ChatWorkflowAgentsView",
|
|
30
|
+
setup(__props) {
|
|
31
|
+
const chatStore = useChatStore();
|
|
32
|
+
const usersStore = useUsersStore();
|
|
33
|
+
const router = useRouter();
|
|
34
|
+
const isMobileDevice$1 = useMediaQuery(MOBILE_MEDIA_QUERY);
|
|
35
|
+
const i18n = useI18n();
|
|
36
|
+
const agentFilter = ref({
|
|
37
|
+
search: "",
|
|
38
|
+
sortBy: "updatedAt"
|
|
39
|
+
});
|
|
40
|
+
const { credentialsByProvider } = useChatCredentials(usersStore.currentUserId ?? "anonymous");
|
|
41
|
+
const readyToShowList = computed(() => chatStore.agentsReady);
|
|
42
|
+
const allModels = computed(() => chatStore.agents.n8n.models);
|
|
43
|
+
const agents = computed(() => filterAndSortAgents(allModels.value, agentFilter.value));
|
|
44
|
+
async function handleEditAgent(model) {
|
|
45
|
+
if (model.provider === "n8n") {
|
|
46
|
+
const routeData = router.resolve({
|
|
47
|
+
name: VIEWS.WORKFLOW,
|
|
48
|
+
params: { name: model.workflowId }
|
|
49
|
+
});
|
|
50
|
+
window.open(routeData.href, "_blank");
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
watch(credentialsByProvider, (credentials) => {
|
|
55
|
+
if (credentials) chatStore.fetchAgents(credentials, { minLoadingTime: 250 });
|
|
56
|
+
}, { immediate: true });
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
return openBlock(), createBlock(ChatLayout_default, null, {
|
|
59
|
+
default: withCtx(() => [createBaseVNode("div", { class: normalizeClass([_ctx.$style.container, { [_ctx.$style.isMobileDevice]: unref(isMobileDevice$1) }]) }, [
|
|
60
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.header) }, [createBaseVNode("div", { class: normalizeClass(_ctx.$style.headerContent) }, [createVNode(unref(N8nText_default), {
|
|
61
|
+
tag: "h1",
|
|
62
|
+
size: "xlarge",
|
|
63
|
+
bold: ""
|
|
64
|
+
}, {
|
|
65
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("chatHub.workflowAgents.title")), 1)]),
|
|
66
|
+
_: 1
|
|
67
|
+
}), createVNode(unref(N8nText_default), { color: "text-light" }, {
|
|
68
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("chatHub.workflowAgents.description")), 1)]),
|
|
69
|
+
_: 1
|
|
70
|
+
})], 2)], 2),
|
|
71
|
+
readyToShowList.value && allModels.value.length > 0 ? (openBlock(), createBlock(ChatAgentSearchSort_default, {
|
|
72
|
+
key: 0,
|
|
73
|
+
modelValue: agentFilter.value,
|
|
74
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => agentFilter.value = $event)
|
|
75
|
+
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
76
|
+
!readyToShowList.value ? (openBlock(), createElementBlock("div", {
|
|
77
|
+
key: 1,
|
|
78
|
+
class: normalizeClass(_ctx.$style.agentsGrid)
|
|
79
|
+
}, [(openBlock(), createElementBlock(Fragment, null, renderList(5, (i) => {
|
|
80
|
+
return createVNode(SkeletonAgentCard_default, { key: i });
|
|
81
|
+
}), 64))], 2)) : agents.value.length === 0 ? (openBlock(), createElementBlock("div", {
|
|
82
|
+
key: 2,
|
|
83
|
+
class: normalizeClass(_ctx.$style.empty)
|
|
84
|
+
}, [createVNode(unref(N8nText_default), {
|
|
85
|
+
color: "text-light",
|
|
86
|
+
size: "medium"
|
|
87
|
+
}, {
|
|
88
|
+
default: withCtx(() => [createTextVNode(toDisplayString(allModels.value.length === 0 ? unref(i18n).baseText("chatHub.workflowAgents.empty.noAgents") : unref(i18n).baseText("chatHub.workflowAgents.empty.noMatch")), 1)]),
|
|
89
|
+
_: 1
|
|
90
|
+
})], 2)) : (openBlock(), createElementBlock("div", {
|
|
91
|
+
key: 3,
|
|
92
|
+
class: normalizeClass(_ctx.$style.agentsGrid)
|
|
93
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(agents.value, (agent) => {
|
|
94
|
+
return openBlock(), createBlock(ChatAgentCard_default, {
|
|
95
|
+
key: unref(stringifyModel)(agent.model),
|
|
96
|
+
agent,
|
|
97
|
+
onEdit: ($event) => handleEditAgent(agent.model)
|
|
98
|
+
}, null, 8, ["agent", "onEdit"]);
|
|
99
|
+
}), 128))], 2))
|
|
100
|
+
], 2)]),
|
|
101
|
+
_: 1
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
var ChatWorkflowAgentsView_vue_vue_type_style_index_0_lang_module_default = {
|
|
107
|
+
container: "_container_1ph4w_123",
|
|
108
|
+
menuButton: "_menuButton_1ph4w_136",
|
|
109
|
+
isMobileDevice: "_isMobileDevice_1ph4w_142",
|
|
110
|
+
header: "_header_1ph4w_146",
|
|
111
|
+
headerContent: "_headerContent_1ph4w_154",
|
|
112
|
+
empty: "_empty_1ph4w_160",
|
|
113
|
+
agentsGrid: "_agentsGrid_1ph4w_169"
|
|
114
|
+
};
|
|
115
|
+
var ChatWorkflowAgentsView_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ChatWorkflowAgentsView_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": ChatWorkflowAgentsView_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
116
|
+
export { ChatWorkflowAgentsView_default as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import "./core-CRbPymLT.js";
|
|
3
|
+
import "./src-jviYSG25.js";
|
|
4
|
+
import "./en-CF30SCh2.js";
|
|
5
|
+
import "./preload-helper-dyVz7ck7.js";
|
|
6
|
+
import "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
7
|
+
import "./truncate-C0KYt7i3.js";
|
|
8
|
+
import "./date-picker-2IDsBs2n.js";
|
|
9
|
+
import "./builder.store-Czk2ipDE.js";
|
|
10
|
+
import { n as CollectionParameter_default } from "./ParameterInputList-sG2nz-Jo.js";
|
|
11
|
+
import "./empty-BuGRxzl4.js";
|
|
12
|
+
import "./dialog-lMho1TD8.js";
|
|
13
|
+
import "./get-BcEmeOxn.js";
|
|
14
|
+
import "./sanitize-html-CbW56HUN.js";
|
|
15
|
+
import "./CalendarDate-DgQUMbNo.js";
|
|
16
|
+
import "./path-browserify-RUt2u7iT.js";
|
|
17
|
+
import "./_MapCache-CcdIl4Ae.js";
|
|
18
|
+
import "./constants-C8OH4tTq.js";
|
|
19
|
+
import "./merge-DhuTk1HM.js";
|
|
20
|
+
import "./_baseOrderBy-N8Be_6z6.js";
|
|
21
|
+
import "./dateformat-hG8NERse.js";
|
|
22
|
+
import "./useDebounce-Br5_1ug-.js";
|
|
23
|
+
import "./assistant.store-CNywgN4S.js";
|
|
24
|
+
import "./chatPanel.store-NDaawEZL.js";
|
|
25
|
+
import "./retry-BgHaYzbB.js";
|
|
26
|
+
import "./executions.store-B9uRYwgv.js";
|
|
27
|
+
import "./useRunWorkflow-LO7ffLp9.js";
|
|
28
|
+
import "./usePinnedData-BhZkqttf.js";
|
|
29
|
+
import "./nodeCreator.store-Bpnrwp2l.js";
|
|
30
|
+
import "./nodeIcon-D6X-ENYt.js";
|
|
31
|
+
import "./useClipboard-DvjhVHqJ.js";
|
|
32
|
+
import "./useCanvasOperations-8ULLtMkY.js";
|
|
33
|
+
import "./folders.store-yAFj-5Vl.js";
|
|
34
|
+
import "./NodeIcon-B9VW6tX6.js";
|
|
35
|
+
import "./isEmpty-C3XXoHqJ.js";
|
|
36
|
+
import "./NDVEmptyState-33UoX00I.js";
|
|
37
|
+
import "./exports-Crx_gvt_.js";
|
|
38
|
+
import "./externalSecrets.ee.store-BJh4a_6G.js";
|
|
39
|
+
import "./uniqBy-xDyuCRP0.js";
|
|
40
|
+
import "./RunDataHtml-Cleia4Cj.js";
|
|
41
|
+
import "./VueMarkdown-CQqJL9vK.js";
|
|
42
|
+
import "./Draggable-vfvXl9Sp.js";
|
|
43
|
+
import "./VirtualSchema-B3zGe_8b.js";
|
|
44
|
+
import "./TextWithHighlights-BxumwGnv.js";
|
|
45
|
+
import "./useTelemetryContext-V6bv4YRq.js";
|
|
46
|
+
import "./schemaPreview.store-DUgN1yVE.js";
|
|
47
|
+
import "./nodeTransforms-RzcOM0v2.js";
|
|
48
|
+
import "./vue-json-pretty-CsGX66mG.js";
|
|
49
|
+
import "./dateFormatter-ik4-9_9r.js";
|
|
50
|
+
import "./useExecutionHelpers-BgRRhpBM.js";
|
|
51
|
+
import "./vue-CydWIhxN.js";
|
|
52
|
+
export { CollectionParameter_default as default };
|
|
Binary file
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { o as __toESM } from "./chunk-6z4oVpB-.js";
|
|
2
|
+
import { C as computed, Cn as toDisplayString, D as createElementBlock, E as createCommentVNode, G as nextTick, Gt as unref, It as ref, M as createVNode, P as defineComponent, T as createBlock, Ut as toValue, Z as onMounted, _ as Fragment, _t as watch, bt as withCtx, c as useCssModule, et as openBlock, j as createTextVNode, k as createSlots, vn as normalizeClass, w as createBaseVNode } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
3
|
+
import { et as i18n, rt as useI18n } from "./core-CRbPymLT.js";
|
|
4
|
+
import { Cn as N8nIcon_default, bn as N8nText_default, mt as N8nLink_default, xn as N8nButton_default, yn as N8nCallout_default } from "./src-jviYSG25.js";
|
|
5
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
6
|
+
import { Er as useUsersStore, P as useWorkflowsStore, Pt as useNodeTypesStore, Yt as removePreviewToken, _n as useCredentialsStore, aa as useUIStore, y as useToast } from "./builder.store-Czk2ipDE.js";
|
|
7
|
+
import { v as useRouter } from "./get-BcEmeOxn.js";
|
|
8
|
+
import { Ro as VIEWS, Ta as isCommunityPackageName } from "./constants-C8OH4tTq.js";
|
|
9
|
+
import { t as useCanvasOperations } from "./useCanvasOperations-8ULLtMkY.js";
|
|
10
|
+
import { n as captureException } from "./exports-Crx_gvt_.js";
|
|
11
|
+
import { n as useCommunityNodesStore, t as require_semver } from "./semver-Bk6DGseV.js";
|
|
12
|
+
function useInstallNode() {
|
|
13
|
+
const communityNodesStore = useCommunityNodesStore();
|
|
14
|
+
const nodeTypesStore = useNodeTypesStore();
|
|
15
|
+
const credentialsStore = useCredentialsStore();
|
|
16
|
+
const workflowsStore = useWorkflowsStore();
|
|
17
|
+
const isOwner = computed(() => useUsersStore().isInstanceOwner);
|
|
18
|
+
const loading = ref(false);
|
|
19
|
+
const toast = useToast();
|
|
20
|
+
const canvasOperations = useCanvasOperations();
|
|
21
|
+
const getNpmVersion = async (key) => {
|
|
22
|
+
const communityNodeAttributes = await nodeTypesStore.getCommunityNodeAttributes(key);
|
|
23
|
+
if (communityNodeAttributes) return communityNodeAttributes.npmVersion;
|
|
24
|
+
};
|
|
25
|
+
const installNode = async (props) => {
|
|
26
|
+
if (!isOwner.value) {
|
|
27
|
+
const error = /* @__PURE__ */ new Error("User is not an owner");
|
|
28
|
+
toast.showError(error, i18n.baseText("settings.communityNodes.messages.install.error"));
|
|
29
|
+
return {
|
|
30
|
+
success: false,
|
|
31
|
+
error
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
loading.value = true;
|
|
36
|
+
if (props.type === "verified") await communityNodesStore.installPackage(props.packageName, true, await getNpmVersion(props.nodeType));
|
|
37
|
+
else await communityNodesStore.installPackage(props.packageName);
|
|
38
|
+
await nodeTypesStore.getNodeTypes();
|
|
39
|
+
await credentialsStore.fetchCredentialTypes(true);
|
|
40
|
+
await nextTick();
|
|
41
|
+
const nodeType = props.nodeType;
|
|
42
|
+
if (nodeType && workflowsStore.workflow.nodes?.length) {
|
|
43
|
+
const nodesToUpdate = workflowsStore.workflow.nodes.filter((node) => node.type === removePreviewToken(nodeType));
|
|
44
|
+
canvasOperations.initializeUnknownNodes(nodesToUpdate);
|
|
45
|
+
}
|
|
46
|
+
toast.showMessage({
|
|
47
|
+
title: i18n.baseText("settings.communityNodes.messages.install.success"),
|
|
48
|
+
type: "success"
|
|
49
|
+
});
|
|
50
|
+
return { success: true };
|
|
51
|
+
} catch (error) {
|
|
52
|
+
toast.showError(error, i18n.baseText("settings.communityNodes.messages.install.error"));
|
|
53
|
+
return {
|
|
54
|
+
success: false,
|
|
55
|
+
error
|
|
56
|
+
};
|
|
57
|
+
} finally {
|
|
58
|
+
loading.value = false;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
return {
|
|
62
|
+
installNode,
|
|
63
|
+
loading
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
var import_semver = /* @__PURE__ */ __toESM(require_semver());
|
|
67
|
+
async function fetchInstalledPackageInfo(packageName) {
|
|
68
|
+
const installedPackage = await useCommunityNodesStore().getInstalledPackage(packageName);
|
|
69
|
+
const communityNodeType = useNodeTypesStore().communityNodeType(packageName);
|
|
70
|
+
if (!installedPackage) return;
|
|
71
|
+
const checkIsUnverifiedUpdate = () => {
|
|
72
|
+
if (!installedPackage?.updateAvailable || !communityNodeType) return false;
|
|
73
|
+
return import_semver.default.gt(installedPackage.updateAvailable, communityNodeType.npmVersion);
|
|
74
|
+
};
|
|
75
|
+
return {
|
|
76
|
+
...installedPackage,
|
|
77
|
+
unverifiedUpdate: checkIsUnverifiedUpdate()
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function useInstalledCommunityPackage(nodeTypeName) {
|
|
81
|
+
const communityNodesStore = useCommunityNodesStore();
|
|
82
|
+
const usersStore = useUsersStore();
|
|
83
|
+
const installedPackage = ref(void 0);
|
|
84
|
+
const packageName = computed(() => toValue(nodeTypeName)?.split(".")[0] ?? "");
|
|
85
|
+
const isCommunityNode = computed(() => {
|
|
86
|
+
const nodeType = toValue(nodeTypeName);
|
|
87
|
+
if (nodeType) return isCommunityPackageName(nodeType);
|
|
88
|
+
return false;
|
|
89
|
+
});
|
|
90
|
+
const initInstalledPackage = async () => {
|
|
91
|
+
if (!packageName.value || !isCommunityNode.value) return void 0;
|
|
92
|
+
installedPackage.value = await fetchInstalledPackageInfo(packageName.value);
|
|
93
|
+
return installedPackage.value;
|
|
94
|
+
};
|
|
95
|
+
watch(() => communityNodesStore.installedPackages[packageName.value], async (changedPackage) => {
|
|
96
|
+
if (!packageName.value || !changedPackage) return;
|
|
97
|
+
await initInstalledPackage();
|
|
98
|
+
}, { deep: true });
|
|
99
|
+
onMounted(async () => {
|
|
100
|
+
if (!packageName.value || !isCommunityNode.value) return;
|
|
101
|
+
await initInstalledPackage();
|
|
102
|
+
});
|
|
103
|
+
return {
|
|
104
|
+
installedPackage,
|
|
105
|
+
isUpdateCheckAvailable: computed(() => {
|
|
106
|
+
return isCommunityNode.value && usersStore.isInstanceOwner && !installedPackage.value?.unverifiedUpdate;
|
|
107
|
+
}),
|
|
108
|
+
isCommunityNode,
|
|
109
|
+
initInstalledPackage
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
var _hoisted_1 = { style: { "padding-bottom": "8px" } };
|
|
113
|
+
var ContactAdministratorToInstall_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
114
|
+
__name: "ContactAdministratorToInstall",
|
|
115
|
+
props: { box: { type: Boolean } },
|
|
116
|
+
setup(__props) {
|
|
117
|
+
const props = __props;
|
|
118
|
+
const $style = useCssModule();
|
|
119
|
+
const i18n$1 = useI18n();
|
|
120
|
+
const ownerEmailList = computed(() => useUsersStore().allUsers.filter((user) => user.role?.includes("owner")).map((user) => user.email));
|
|
121
|
+
const classes = computed(() => ({
|
|
122
|
+
[$style.contactOwnerHint]: true,
|
|
123
|
+
[$style.border]: props.box
|
|
124
|
+
}));
|
|
125
|
+
return (_ctx, _cache) => {
|
|
126
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(classes.value) }, [props.box ? (openBlock(), createBlock(unref(N8nIcon_default), {
|
|
127
|
+
key: 0,
|
|
128
|
+
color: "text-light",
|
|
129
|
+
icon: "info",
|
|
130
|
+
size: "large"
|
|
131
|
+
})) : createCommentVNode("", true), createVNode(unref(N8nText_default), {
|
|
132
|
+
color: "text-base",
|
|
133
|
+
size: "medium"
|
|
134
|
+
}, {
|
|
135
|
+
default: withCtx(() => [createBaseVNode("div", _hoisted_1, toDisplayString(unref(i18n$1).baseText("communityNodeInfo.contact.admin")), 1), ownerEmailList.value.length ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
136
|
+
key: 0,
|
|
137
|
+
bold: ""
|
|
138
|
+
}, {
|
|
139
|
+
default: withCtx(() => [createTextVNode(toDisplayString(ownerEmailList.value.join(", ")), 1)]),
|
|
140
|
+
_: 1
|
|
141
|
+
})) : createCommentVNode("", true)]),
|
|
142
|
+
_: 1
|
|
143
|
+
})], 2);
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
var ContactAdministratorToInstall_vue_vue_type_style_index_0_lang_module_default = {
|
|
148
|
+
contactOwnerHint: "_contactOwnerHint_c1x0x_123",
|
|
149
|
+
border: "_border_c1x0x_131"
|
|
150
|
+
};
|
|
151
|
+
var ContactAdministratorToInstall_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ContactAdministratorToInstall_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": ContactAdministratorToInstall_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
152
|
+
var CommunityNodeFooter_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
153
|
+
__name: "CommunityNodeFooter",
|
|
154
|
+
props: {
|
|
155
|
+
packageName: {},
|
|
156
|
+
showManage: { type: Boolean }
|
|
157
|
+
},
|
|
158
|
+
setup(__props) {
|
|
159
|
+
const props = __props;
|
|
160
|
+
const router = useRouter();
|
|
161
|
+
const bugsUrl = ref(`https://registry.npmjs.org/${props.packageName}`);
|
|
162
|
+
const { installedPackage } = useInstalledCommunityPackage(props.packageName);
|
|
163
|
+
async function openSettingsPage() {
|
|
164
|
+
await router.push({ name: VIEWS.COMMUNITY_NODES });
|
|
165
|
+
}
|
|
166
|
+
async function openIssuesPage() {
|
|
167
|
+
if (bugsUrl.value) window.open(bugsUrl.value, "_blank");
|
|
168
|
+
}
|
|
169
|
+
async function getBugsUrl(packageName) {
|
|
170
|
+
const url = `https://registry.npmjs.org/${packageName}`;
|
|
171
|
+
try {
|
|
172
|
+
const response = await fetch(url);
|
|
173
|
+
if (!response.ok) throw new Error("Could not get metadata for package");
|
|
174
|
+
const data = await response.json();
|
|
175
|
+
if (data.bugs?.url) bugsUrl.value = data.bugs.url;
|
|
176
|
+
} catch (error) {
|
|
177
|
+
captureException(error);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
onMounted(async () => {
|
|
181
|
+
if (props.packageName) await getBugsUrl(props.packageName);
|
|
182
|
+
});
|
|
183
|
+
return (_ctx, _cache) => {
|
|
184
|
+
return openBlock(), createElementBlock("div", null, [createBaseVNode("div", { class: normalizeClass(_ctx.$style.separator) }, null, 2), createBaseVNode("div", { class: normalizeClass(_ctx.$style.container) }, [
|
|
185
|
+
unref(installedPackage) ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
186
|
+
key: 0,
|
|
187
|
+
size: "small",
|
|
188
|
+
color: "text-light",
|
|
189
|
+
style: { "margin-right": "auto" }
|
|
190
|
+
}, {
|
|
191
|
+
default: withCtx(() => [createTextVNode(" Package version " + toDisplayString(unref(installedPackage).installedVersion) + " (" + toDisplayString(unref(installedPackage).updateAvailable && !unref(installedPackage).unverifiedUpdate ? unref(i18n).baseText("communityNodeFooter.legacy") : unref(i18n).baseText("nodeSettings.latest")) + ") ", 1)]),
|
|
192
|
+
_: 1
|
|
193
|
+
})) : createCommentVNode("", true),
|
|
194
|
+
props.showManage ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(unref(N8nLink_default), {
|
|
195
|
+
theme: "text",
|
|
196
|
+
onClick: openSettingsPage
|
|
197
|
+
}, {
|
|
198
|
+
default: withCtx(() => [createVNode(unref(N8nText_default), {
|
|
199
|
+
size: "small",
|
|
200
|
+
color: "primary",
|
|
201
|
+
bold: ""
|
|
202
|
+
}, {
|
|
203
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("communityNodeFooter.manage")), 1)]),
|
|
204
|
+
_: 1
|
|
205
|
+
})]),
|
|
206
|
+
_: 1
|
|
207
|
+
}), createVNode(unref(N8nText_default), {
|
|
208
|
+
size: "small",
|
|
209
|
+
style: { "color": "var(--color--foreground)" },
|
|
210
|
+
bold: ""
|
|
211
|
+
}, {
|
|
212
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [createTextVNode("|")])),
|
|
213
|
+
_: 1
|
|
214
|
+
})], 64)) : createCommentVNode("", true),
|
|
215
|
+
createVNode(unref(N8nLink_default), {
|
|
216
|
+
theme: "text",
|
|
217
|
+
onClick: openIssuesPage
|
|
218
|
+
}, {
|
|
219
|
+
default: withCtx(() => [createVNode(unref(N8nText_default), {
|
|
220
|
+
size: "small",
|
|
221
|
+
color: "primary",
|
|
222
|
+
bold: ""
|
|
223
|
+
}, {
|
|
224
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("communityNodeFooter.reportIssue")), 1)]),
|
|
225
|
+
_: 1
|
|
226
|
+
})]),
|
|
227
|
+
_: 1
|
|
228
|
+
})
|
|
229
|
+
], 2)]);
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
var CommunityNodeFooter_vue_vue_type_style_index_0_lang_module_default = {
|
|
234
|
+
container: "_container_hcptd_123",
|
|
235
|
+
separator: "_separator_hcptd_131"
|
|
236
|
+
};
|
|
237
|
+
var CommunityNodeFooter_default = /* @__PURE__ */ __plugin_vue_export_helper_default(CommunityNodeFooter_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": CommunityNodeFooter_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
238
|
+
var CommunityNodeUpdateInfo_default = /* @__PURE__ */ defineComponent({
|
|
239
|
+
__name: "CommunityNodeUpdateInfo",
|
|
240
|
+
props: {
|
|
241
|
+
packageName: {},
|
|
242
|
+
source: {}
|
|
243
|
+
},
|
|
244
|
+
setup(__props) {
|
|
245
|
+
const props = __props;
|
|
246
|
+
const { openCommunityPackageUpdateConfirmModal } = useUIStore();
|
|
247
|
+
const onUpdate = () => {
|
|
248
|
+
if (!props.packageName) return;
|
|
249
|
+
openCommunityPackageUpdateConfirmModal(props.packageName, props.source);
|
|
250
|
+
};
|
|
251
|
+
return (_ctx, _cache) => {
|
|
252
|
+
return openBlock(), createBlock(unref(N8nCallout_default), {
|
|
253
|
+
theme: "secondary",
|
|
254
|
+
iconless: true,
|
|
255
|
+
style: { "margin-bottom": "var(--spacing--sm)" }
|
|
256
|
+
}, createSlots({
|
|
257
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("communityNodeUpdateInfo.available")) + " ", 1)]),
|
|
258
|
+
_: 2
|
|
259
|
+
}, [props.packageName ? {
|
|
260
|
+
name: "trailingContent",
|
|
261
|
+
fn: withCtx(() => [createVNode(unref(N8nButton_default), {
|
|
262
|
+
type: "secondary",
|
|
263
|
+
onClick: onUpdate
|
|
264
|
+
}, {
|
|
265
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("generic.update")), 1)]),
|
|
266
|
+
_: 1
|
|
267
|
+
})]),
|
|
268
|
+
key: "0"
|
|
269
|
+
} : void 0]), 1024);
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
export { useInstallNode as a, useInstalledCommunityPackage as i, CommunityNodeFooter_default as n, ContactAdministratorToInstall_default as r, CommunityNodeUpdateInfo_default as t };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Cn as toDisplayString, D as createElementBlock, E as createCommentVNode, Gt as unref, M as createVNode, P as defineComponent, bt as withCtx, et as openBlock, vn as normalizeClass, w as createBaseVNode } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { rt as useI18n } from "./core-CRbPymLT.js";
|
|
3
|
+
import { $ as N8nInputLabel_default } from "./src-jviYSG25.js";
|
|
4
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
5
|
+
import { y as useToast } from "./builder.store-Czk2ipDE.js";
|
|
6
|
+
import { t as useClipboard } from "./useClipboard-DvjhVHqJ.js";
|
|
7
|
+
var CopyInput_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "CopyInput",
|
|
9
|
+
props: {
|
|
10
|
+
label: { default: "" },
|
|
11
|
+
hint: { default: "" },
|
|
12
|
+
value: { default: "" },
|
|
13
|
+
copyButtonText: { default: useI18n().baseText("generic.copy") },
|
|
14
|
+
toastTitle: { default: useI18n().baseText("generic.copiedToClipboard") },
|
|
15
|
+
toastMessage: {},
|
|
16
|
+
size: { default: "medium" },
|
|
17
|
+
collapse: { type: Boolean },
|
|
18
|
+
redactValue: { type: Boolean },
|
|
19
|
+
disableCopy: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
emits: ["copy"],
|
|
25
|
+
setup(__props, { emit: __emit }) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const emit = __emit;
|
|
28
|
+
const clipboard = useClipboard();
|
|
29
|
+
const { showMessage } = useToast();
|
|
30
|
+
function copy() {
|
|
31
|
+
if (props.disableCopy) return;
|
|
32
|
+
emit("copy");
|
|
33
|
+
clipboard.copy(props.value ?? "");
|
|
34
|
+
showMessage({
|
|
35
|
+
title: props.toastTitle,
|
|
36
|
+
message: props.toastMessage,
|
|
37
|
+
type: "success"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return openBlock(), createElementBlock("div", null, [createVNode(unref(N8nInputLabel_default), { label: _ctx.label }, {
|
|
42
|
+
default: withCtx(() => [createBaseVNode("div", {
|
|
43
|
+
class: normalizeClass({
|
|
44
|
+
[_ctx.$style.copyText]: true,
|
|
45
|
+
[_ctx.$style[_ctx.size]]: true,
|
|
46
|
+
[_ctx.$style.collapsed]: _ctx.collapse,
|
|
47
|
+
[_ctx.$style.noHover]: _ctx.disableCopy,
|
|
48
|
+
"ph-no-capture": _ctx.redactValue
|
|
49
|
+
}),
|
|
50
|
+
"data-test-id": "copy-input",
|
|
51
|
+
onClick: copy
|
|
52
|
+
}, [createBaseVNode("span", { ref: "copyInputValue" }, toDisplayString(_ctx.value), 513), !_ctx.disableCopy ? (openBlock(), createElementBlock("div", {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: normalizeClass(_ctx.$style.copyButton)
|
|
55
|
+
}, [createBaseVNode("span", null, toDisplayString(_ctx.copyButtonText), 1)], 2)) : createCommentVNode("", true)], 2)]),
|
|
56
|
+
_: 1
|
|
57
|
+
}, 8, ["label"]), _ctx.hint ? (openBlock(), createElementBlock("div", {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: normalizeClass(_ctx.$style.hint)
|
|
60
|
+
}, toDisplayString(_ctx.hint), 3)) : createCommentVNode("", true)]);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
var CopyInput_vue_vue_type_style_index_0_lang_module_default = {
|
|
65
|
+
copyText: "_copyText_ih6nn_123",
|
|
66
|
+
noHover: "_noHover_ih6nn_143",
|
|
67
|
+
large: "_large_ih6nn_147",
|
|
68
|
+
medium: "_medium_ih6nn_152",
|
|
69
|
+
collapsed: "_collapsed_ih6nn_157",
|
|
70
|
+
copyButton: "_copyButton_ih6nn_162",
|
|
71
|
+
hint: "_hint_ih6nn_178"
|
|
72
|
+
};
|
|
73
|
+
var CopyInput_default = /* @__PURE__ */ __plugin_vue_export_helper_default(CopyInput_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": CopyInput_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
74
|
+
export { CopyInput_default as t };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { C as computed, Gt as unref, P as defineComponent, T as createBlock, et as openBlock, vn as normalizeClass } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { A as N8nNodeIcon_default } from "./src-jviYSG25.js";
|
|
3
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
4
|
+
import { Ci as getThemedValue, Pt as useNodeTypesStore, _n as useCredentialsStore, aa as useUIStore } from "./builder.store-Czk2ipDE.js";
|
|
5
|
+
import { r as useRootStore } from "./_baseOrderBy-N8Be_6z6.js";
|
|
6
|
+
var CredentialIcon_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "CredentialIcon",
|
|
8
|
+
props: {
|
|
9
|
+
credentialTypeName: {},
|
|
10
|
+
size: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const credentialsStore = useCredentialsStore();
|
|
15
|
+
const rootStore = useRootStore();
|
|
16
|
+
const uiStore = useUIStore();
|
|
17
|
+
const nodeTypesStore = useNodeTypesStore();
|
|
18
|
+
const credentialWithIcon = computed(() => getCredentialWithIcon(props.credentialTypeName));
|
|
19
|
+
const nodeBasedIconUrl = computed(() => {
|
|
20
|
+
const icon$1 = getThemedValue(credentialWithIcon.value?.icon);
|
|
21
|
+
if (!icon$1?.startsWith("node:")) return null;
|
|
22
|
+
return nodeTypesStore.getNodeType(icon$1.replace("node:", ""))?.iconUrl;
|
|
23
|
+
});
|
|
24
|
+
const iconSource = computed(() => {
|
|
25
|
+
const themeIconUrl = getThemedValue(nodeBasedIconUrl.value ?? credentialWithIcon.value?.iconUrl, uiStore.appliedTheme);
|
|
26
|
+
if (!themeIconUrl) return;
|
|
27
|
+
return rootStore.baseUrl + themeIconUrl;
|
|
28
|
+
});
|
|
29
|
+
const iconType = computed(() => {
|
|
30
|
+
if (iconSource.value) return "file";
|
|
31
|
+
else if (iconName.value) return "icon";
|
|
32
|
+
return "unknown";
|
|
33
|
+
});
|
|
34
|
+
const iconName = computed(() => {
|
|
35
|
+
const icon$1 = getThemedValue(credentialWithIcon.value?.icon, uiStore.appliedTheme);
|
|
36
|
+
if (!icon$1?.startsWith("fa:")) return void 0;
|
|
37
|
+
return icon$1.replace("fa:", "");
|
|
38
|
+
});
|
|
39
|
+
const iconColor = computed(() => {
|
|
40
|
+
const { iconColor: color } = credentialWithIcon.value ?? {};
|
|
41
|
+
if (!color) return void 0;
|
|
42
|
+
return `var(--node--icon--color--${color})`;
|
|
43
|
+
});
|
|
44
|
+
function getCredentialWithIcon(name) {
|
|
45
|
+
if (!name) return null;
|
|
46
|
+
const type = credentialsStore.getCredentialTypeByName(name);
|
|
47
|
+
if (!type) return null;
|
|
48
|
+
if (type.icon ?? type.iconUrl) return type;
|
|
49
|
+
if (type.extends) {
|
|
50
|
+
let parentCred = null;
|
|
51
|
+
type.extends.forEach((credType) => {
|
|
52
|
+
parentCred = getCredentialWithIcon(credType);
|
|
53
|
+
if (parentCred !== null) return;
|
|
54
|
+
});
|
|
55
|
+
return parentCred;
|
|
56
|
+
}
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
return openBlock(), createBlock(unref(N8nNodeIcon_default), {
|
|
61
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
62
|
+
type: iconType.value,
|
|
63
|
+
size: _ctx.size ?? 26,
|
|
64
|
+
src: iconSource.value,
|
|
65
|
+
name: iconName.value,
|
|
66
|
+
color: iconColor.value
|
|
67
|
+
}, null, 8, [
|
|
68
|
+
"class",
|
|
69
|
+
"type",
|
|
70
|
+
"size",
|
|
71
|
+
"src",
|
|
72
|
+
"name",
|
|
73
|
+
"color"
|
|
74
|
+
]);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
var CredentialIcon_vue_vue_type_style_index_0_lang_module_default = { icon: "_icon_1t6sl_123" };
|
|
79
|
+
var CredentialIcon_default = /* @__PURE__ */ __plugin_vue_export_helper_default(CredentialIcon_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": CredentialIcon_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
80
|
+
export { CredentialIcon_default as t };
|