@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,791 @@
|
|
|
1
|
+
import { C as computed, Cn as toDisplayString, D as createElementBlock, E as createCommentVNode, Gt as unref, It as ref, J as onBeforeUnmount, M as createVNode, P as defineComponent, T as createBlock, Z as onMounted, _ as Fragment, _t as watch, at as renderSlot, bt as withCtx, c as useCssModule, et as openBlock, h as withModifiers, it as renderList, j as createTextVNode, mt as useTemplateRef, ot as resolveComponent, q as onBeforeMount, vn as normalizeClass, w as createBaseVNode } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { _ as useIntersectionObserver, it as I18nT, rt as useI18n } from "./core-CRbPymLT.js";
|
|
3
|
+
import { Cn as N8nIcon_default, Et as ElSkeletonItem, Lt as ElCheckbox, Mt as ElDropdownItem, Nt as ElDropdownMenu, Q as N8nCheckbox_default, bn as N8nText_default, ht as N8nTooltip_default, jt as ElDropdown, mt as N8nLink_default, q as TableBase_default, xn as N8nButton_default, xt as N8nIconButton_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 "./date-picker-2IDsBs2n.js";
|
|
9
|
+
import { Dt as executionRetryMessage, P as useWorkflowsStore, Xn as useDocumentTitle, h as useMessage, k as useTelemetry, ms as useSettingsStore, x as useExternalHooks, y as useToast } from "./builder.store-Czk2ipDE.js";
|
|
10
|
+
import "./empty-BuGRxzl4.js";
|
|
11
|
+
import { _ as useRoute } from "./get-BcEmeOxn.js";
|
|
12
|
+
import "./sanitize-html-CbW56HUN.js";
|
|
13
|
+
import "./CalendarDate-DgQUMbNo.js";
|
|
14
|
+
import "./path-browserify-RUt2u7iT.js";
|
|
15
|
+
import "./_MapCache-CcdIl4Ae.js";
|
|
16
|
+
import { Oo as getResourcePermissions, Ro as VIEWS, po as WAIT_INDEFINITELY, rs as MODAL_CONFIRM, yc as EnterpriseEditionFeature } from "./constants-C8OH4tTq.js";
|
|
17
|
+
import "./merge-DhuTk1HM.js";
|
|
18
|
+
import { A as storeToRefs } from "./_baseOrderBy-N8Be_6z6.js";
|
|
19
|
+
import "./dateformat-hG8NERse.js";
|
|
20
|
+
import "./useDebounce-Br5_1ug-.js";
|
|
21
|
+
import { t as useExecutionsStore } from "./executions.store-B9uRYwgv.js";
|
|
22
|
+
import "./folders.store-yAFj-5Vl.js";
|
|
23
|
+
import "./versions.store-B1z2OrLE.js";
|
|
24
|
+
import { t as usePageRedirectionHelper } from "./usePageRedirectionHelper-DjkznpX6.js";
|
|
25
|
+
import "./ProjectIcon-DY8gGuHX.js";
|
|
26
|
+
import { t as convertToDisplayDate } from "./dateFormatter-ik4-9_9r.js";
|
|
27
|
+
import { t as useExecutionHelpers } from "./useExecutionHelpers-BgRRhpBM.js";
|
|
28
|
+
import "./TagsDropdown-Bvx_Hd6Q.js";
|
|
29
|
+
import "./WorkflowTagsDropdown-QwbICWjN.js";
|
|
30
|
+
import { t as useInsightsStore } from "./insights.store-BFc3kDUo.js";
|
|
31
|
+
import "./insights.constants-BkJCYJTL.js";
|
|
32
|
+
import "./insights.utils-CcLXdrrz.js";
|
|
33
|
+
import { n as useProjectPages } from "./readyToRun.store-YEMvPUqo.js";
|
|
34
|
+
import { t as ProjectHeader_default } from "./ProjectHeader-Dq5Ihb26.js";
|
|
35
|
+
import "./smartDecimal-DAZl4HKA.js";
|
|
36
|
+
import { t as InsightsSummary_default } from "./InsightsSummary-cmN1lHDm.js";
|
|
37
|
+
import { t as AnimatedSpinner_default } from "./AnimatedSpinner-DmPN4poP.js";
|
|
38
|
+
import { t as SelectedItemsInfo_default } from "./SelectedItemsInfo-BHZ-NvF5.js";
|
|
39
|
+
import "./AnnotationTagsDropdown.ee-BJ7N9lek.js";
|
|
40
|
+
import { n as ExecutionsFilter_default, r as ConcurrentExecutionsHeader_default, t as ExecutionsTime_default } from "./ExecutionsTime-DEQiyozR.js";
|
|
41
|
+
var GlobalExecutionsListItemQueuedTooltip_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
42
|
+
__name: "GlobalExecutionsListItemQueuedTooltip",
|
|
43
|
+
props: {
|
|
44
|
+
status: {},
|
|
45
|
+
concurrencyCap: {},
|
|
46
|
+
isCloudDeployment: { type: Boolean }
|
|
47
|
+
},
|
|
48
|
+
emits: ["goToUpgrade"],
|
|
49
|
+
setup(__props, { emit: __emit }) {
|
|
50
|
+
const props = __props;
|
|
51
|
+
const emit = __emit;
|
|
52
|
+
const i18n = useI18n();
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return openBlock(), createBlock(unref(N8nTooltip_default), { placement: "top" }, {
|
|
55
|
+
content: withCtx(() => [props.status === "waiting" ? (openBlock(), createBlock(unref(I18nT), {
|
|
56
|
+
key: 0,
|
|
57
|
+
keypath: "executionsList.statusTooltipText.theWorkflowIsWaitingIndefinitely",
|
|
58
|
+
scope: "global"
|
|
59
|
+
})) : createCommentVNode("", true), props.status === "new" ? (openBlock(), createBlock(unref(I18nT), {
|
|
60
|
+
key: 1,
|
|
61
|
+
keypath: "executionsList.statusTooltipText.waitingForConcurrencyCapacity",
|
|
62
|
+
scope: "global"
|
|
63
|
+
}, {
|
|
64
|
+
instance: withCtx(() => [props.isCloudDeployment ? (openBlock(), createBlock(unref(I18nT), {
|
|
65
|
+
key: 0,
|
|
66
|
+
keypath: "executionsList.statusTooltipText.waitingForConcurrencyCapacity.cloud",
|
|
67
|
+
scope: "global"
|
|
68
|
+
}, {
|
|
69
|
+
concurrencyCap: withCtx(() => [createTextVNode(toDisplayString(props.concurrencyCap), 1)]),
|
|
70
|
+
link: withCtx(() => [createVNode(unref(N8nLink_default), {
|
|
71
|
+
bold: "",
|
|
72
|
+
size: "small",
|
|
73
|
+
class: normalizeClass(_ctx.$style.link),
|
|
74
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("goToUpgrade"))
|
|
75
|
+
}, {
|
|
76
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("generic.upgradeNow")), 1)]),
|
|
77
|
+
_: 1
|
|
78
|
+
}, 8, ["class"])]),
|
|
79
|
+
_: 1
|
|
80
|
+
})) : (openBlock(), createBlock(unref(I18nT), {
|
|
81
|
+
key: 1,
|
|
82
|
+
keypath: "executionsList.statusTooltipText.waitingForConcurrencyCapacity.self",
|
|
83
|
+
scope: "global"
|
|
84
|
+
}, {
|
|
85
|
+
concurrencyCap: withCtx(() => [createTextVNode(toDisplayString(props.concurrencyCap), 1)]),
|
|
86
|
+
link: withCtx(() => [createVNode(unref(N8nLink_default), {
|
|
87
|
+
class: normalizeClass(_ctx.$style.link),
|
|
88
|
+
href: unref(i18n).baseText("executions.concurrency.docsLink"),
|
|
89
|
+
target: "_blank"
|
|
90
|
+
}, {
|
|
91
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("generic.viewDocs")), 1)]),
|
|
92
|
+
_: 1
|
|
93
|
+
}, 8, ["class", "href"])]),
|
|
94
|
+
_: 1
|
|
95
|
+
}))]),
|
|
96
|
+
_: 1
|
|
97
|
+
})) : createCommentVNode("", true)]),
|
|
98
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
99
|
+
_: 3
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
var GlobalExecutionsListItemQueuedTooltip_vue_vue_type_style_index_0_lang_module_default = { link: "_link_g8cyq_123" };
|
|
105
|
+
var GlobalExecutionsListItemQueuedTooltip_default = /* @__PURE__ */ __plugin_vue_export_helper_default(GlobalExecutionsListItemQueuedTooltip_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": GlobalExecutionsListItemQueuedTooltip_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
106
|
+
var _hoisted_1$1 = { "data-test-id": "execution-status" };
|
|
107
|
+
var _hoisted_2$1 = { "data-test-id": "execution-time" };
|
|
108
|
+
var _hoisted_3$1 = { key: 0 };
|
|
109
|
+
var _hoisted_4$1 = { key: 1 };
|
|
110
|
+
var _hoisted_5$1 = { key: 2 };
|
|
111
|
+
var GlobalExecutionsListItem_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
112
|
+
__name: "GlobalExecutionsListItem",
|
|
113
|
+
props: {
|
|
114
|
+
execution: {},
|
|
115
|
+
selected: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: false
|
|
118
|
+
},
|
|
119
|
+
workflowName: { default: "" },
|
|
120
|
+
workflowPermissions: {},
|
|
121
|
+
concurrencyCap: {},
|
|
122
|
+
isCloudDeployment: { type: Boolean }
|
|
123
|
+
},
|
|
124
|
+
emits: [
|
|
125
|
+
"stop",
|
|
126
|
+
"select",
|
|
127
|
+
"retrySaved",
|
|
128
|
+
"retryOriginal",
|
|
129
|
+
"delete",
|
|
130
|
+
"goToUpgrade"
|
|
131
|
+
],
|
|
132
|
+
setup(__props, { emit: __emit }) {
|
|
133
|
+
const emit = __emit;
|
|
134
|
+
const props = __props;
|
|
135
|
+
const style = useCssModule();
|
|
136
|
+
const locale = useI18n();
|
|
137
|
+
const executionHelpers = useExecutionHelpers();
|
|
138
|
+
const isStopping = ref(false);
|
|
139
|
+
const isRunning = computed(() => props.execution.status === "running");
|
|
140
|
+
const isWaitTillIndefinite = computed(() => {
|
|
141
|
+
if (!props.execution.waitTill) return false;
|
|
142
|
+
return new Date(props.execution.waitTill).getTime() === WAIT_INDEFINITELY.getTime();
|
|
143
|
+
});
|
|
144
|
+
const isRetriable = computed(() => executionHelpers.isExecutionRetriable(props.execution));
|
|
145
|
+
const EXECUTION_STATUS = {
|
|
146
|
+
CRASHED: "crashed",
|
|
147
|
+
ERROR: "error",
|
|
148
|
+
WAITING: "waiting",
|
|
149
|
+
SUCCESS: "success",
|
|
150
|
+
NEW: "new",
|
|
151
|
+
RUNNING: "running",
|
|
152
|
+
UNKNOWN: "unknown",
|
|
153
|
+
CANCELED: "canceled"
|
|
154
|
+
};
|
|
155
|
+
const executionIconStatusDictionary = {
|
|
156
|
+
[EXECUTION_STATUS.CRASHED]: {
|
|
157
|
+
icon: "status-error",
|
|
158
|
+
color: "danger"
|
|
159
|
+
},
|
|
160
|
+
[EXECUTION_STATUS.ERROR]: {
|
|
161
|
+
icon: "status-error",
|
|
162
|
+
color: "danger"
|
|
163
|
+
},
|
|
164
|
+
[EXECUTION_STATUS.WAITING]: {
|
|
165
|
+
icon: "status-waiting",
|
|
166
|
+
color: "secondary"
|
|
167
|
+
},
|
|
168
|
+
[EXECUTION_STATUS.SUCCESS]: {
|
|
169
|
+
icon: "status-completed",
|
|
170
|
+
color: "success"
|
|
171
|
+
},
|
|
172
|
+
[EXECUTION_STATUS.NEW]: {
|
|
173
|
+
icon: "status-new",
|
|
174
|
+
color: "foreground-xdark"
|
|
175
|
+
},
|
|
176
|
+
[EXECUTION_STATUS.RUNNING]: {
|
|
177
|
+
icon: "spinner",
|
|
178
|
+
color: "secondary"
|
|
179
|
+
},
|
|
180
|
+
[EXECUTION_STATUS.UNKNOWN]: {
|
|
181
|
+
icon: "status-unknown",
|
|
182
|
+
color: "foreground-xdark"
|
|
183
|
+
},
|
|
184
|
+
[EXECUTION_STATUS.CANCELED]: {
|
|
185
|
+
icon: "status-canceled",
|
|
186
|
+
color: "foreground-xdark"
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
const errorStatuses = [EXECUTION_STATUS.ERROR, EXECUTION_STATUS.CRASHED];
|
|
190
|
+
const classes = computed(() => {
|
|
191
|
+
return { [style.dangerBg]: errorStatuses.includes(props.execution.status) };
|
|
192
|
+
});
|
|
193
|
+
const formattedStartedAtDate = computed(() => {
|
|
194
|
+
return props.execution.startedAt ? formatDate(props.execution.startedAt) : locale.baseText("executionsList.startingSoon");
|
|
195
|
+
});
|
|
196
|
+
const formattedWaitTillDate = computed(() => {
|
|
197
|
+
return props.execution.waitTill ? formatDate(props.execution.waitTill) : "";
|
|
198
|
+
});
|
|
199
|
+
const formattedStoppedAtDate = computed(() => {
|
|
200
|
+
return props.execution.stoppedAt ? locale.displayTimer(new Date(props.execution.stoppedAt).getTime() - new Date(props.execution.startedAt ?? props.execution.createdAt).getTime(), true) : "";
|
|
201
|
+
});
|
|
202
|
+
function getStatusLabel(status) {
|
|
203
|
+
if (status === EXECUTION_STATUS.CRASHED) return locale.baseText("executionsList.error");
|
|
204
|
+
return locale.baseText(`executionsList.${status}`);
|
|
205
|
+
}
|
|
206
|
+
const statusRender = computed(() => {
|
|
207
|
+
return {
|
|
208
|
+
...executionIconStatusDictionary[props.execution.status],
|
|
209
|
+
label: getStatusLabel(props.execution.status)
|
|
210
|
+
};
|
|
211
|
+
});
|
|
212
|
+
function formatDate(fullDate) {
|
|
213
|
+
const { date, time } = convertToDisplayDate(fullDate);
|
|
214
|
+
return locale.baseText("executionsList.started", { interpolate: {
|
|
215
|
+
time,
|
|
216
|
+
date
|
|
217
|
+
} });
|
|
218
|
+
}
|
|
219
|
+
function onStopExecution() {
|
|
220
|
+
isStopping.value = true;
|
|
221
|
+
emit("stop", props.execution);
|
|
222
|
+
}
|
|
223
|
+
function onSelect() {
|
|
224
|
+
emit("select", props.execution);
|
|
225
|
+
}
|
|
226
|
+
async function handleActionItemClick(commandData) {
|
|
227
|
+
emit(commandData, props.execution);
|
|
228
|
+
}
|
|
229
|
+
return (_ctx, _cache) => {
|
|
230
|
+
const _component_RouterLink = resolveComponent("RouterLink");
|
|
231
|
+
return openBlock(), createElementBlock("tr", { class: normalizeClass(classes.value) }, [
|
|
232
|
+
createBaseVNode("td", null, [createVNode(unref(N8nCheckbox_default), {
|
|
233
|
+
"model-value": _ctx.selected,
|
|
234
|
+
"data-test-id": "select-execution-checkbox",
|
|
235
|
+
disabled: !Boolean(_ctx.execution.id && _ctx.execution.stoppedAt),
|
|
236
|
+
class: "mb-0",
|
|
237
|
+
style: { marginTop: "-3px" },
|
|
238
|
+
"onUpdate:modelValue": onSelect
|
|
239
|
+
}, null, 8, ["model-value", "disabled"])]),
|
|
240
|
+
createBaseVNode("td", null, [createVNode(unref(N8nTooltip_default), {
|
|
241
|
+
content: _ctx.execution.workflowName || _ctx.workflowName,
|
|
242
|
+
placement: "top"
|
|
243
|
+
}, {
|
|
244
|
+
default: withCtx(() => [createVNode(_component_RouterLink, {
|
|
245
|
+
to: {
|
|
246
|
+
name: unref(VIEWS).EXECUTION_PREVIEW,
|
|
247
|
+
params: {
|
|
248
|
+
name: _ctx.execution.workflowId,
|
|
249
|
+
executionId: _ctx.execution.id
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
class: normalizeClass(_ctx.$style.workflowName),
|
|
253
|
+
target: "_blank"
|
|
254
|
+
}, {
|
|
255
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.execution.workflowName || _ctx.workflowName), 1)]),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["to", "class"])]),
|
|
258
|
+
_: 1
|
|
259
|
+
}, 8, ["content"])]),
|
|
260
|
+
createBaseVNode("td", _hoisted_1$1, [isWaitTillIndefinite.value || _ctx.execution.status === EXECUTION_STATUS.NEW ? (openBlock(), createBlock(GlobalExecutionsListItemQueuedTooltip_default, {
|
|
261
|
+
key: 0,
|
|
262
|
+
status: props.execution.status,
|
|
263
|
+
"concurrency-cap": props.concurrencyCap,
|
|
264
|
+
"is-cloud-deployment": props.isCloudDeployment,
|
|
265
|
+
onGoToUpgrade: _cache[0] || (_cache[0] = ($event) => emit("goToUpgrade"))
|
|
266
|
+
}, {
|
|
267
|
+
default: withCtx(() => [createBaseVNode("div", null, [createVNode(unref(N8nIcon_default), {
|
|
268
|
+
icon: statusRender.value.icon,
|
|
269
|
+
color: statusRender.value.color,
|
|
270
|
+
class: "mr-2xs"
|
|
271
|
+
}, null, 8, ["icon", "color"]), createTextVNode(" " + toDisplayString(statusRender.value.label), 1)])]),
|
|
272
|
+
_: 1
|
|
273
|
+
}, 8, [
|
|
274
|
+
"status",
|
|
275
|
+
"concurrency-cap",
|
|
276
|
+
"is-cloud-deployment"
|
|
277
|
+
])) : (openBlock(), createBlock(unref(N8nTooltip_default), {
|
|
278
|
+
key: 1,
|
|
279
|
+
disabled: _ctx.execution.status !== EXECUTION_STATUS.WAITING,
|
|
280
|
+
content: unref(locale).baseText("executionsList.statusWaiting", { interpolate: {
|
|
281
|
+
status: _ctx.execution.status,
|
|
282
|
+
time: formattedWaitTillDate.value
|
|
283
|
+
} })
|
|
284
|
+
}, {
|
|
285
|
+
default: withCtx(() => [createBaseVNode("div", null, [_ctx.execution.status === EXECUTION_STATUS.RUNNING ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
286
|
+
key: 0,
|
|
287
|
+
color: "secondary",
|
|
288
|
+
class: "mr-2xs"
|
|
289
|
+
}, {
|
|
290
|
+
default: withCtx(() => [createVNode(AnimatedSpinner_default)]),
|
|
291
|
+
_: 1
|
|
292
|
+
})) : (openBlock(), createBlock(unref(N8nIcon_default), {
|
|
293
|
+
key: 1,
|
|
294
|
+
size: "medium",
|
|
295
|
+
icon: statusRender.value.icon,
|
|
296
|
+
color: statusRender.value.color,
|
|
297
|
+
class: "mr-2xs"
|
|
298
|
+
}, null, 8, ["icon", "color"])), createTextVNode(" " + toDisplayString(statusRender.value.label), 1)])]),
|
|
299
|
+
_: 1
|
|
300
|
+
}, 8, ["disabled", "content"]))]),
|
|
301
|
+
createBaseVNode("td", null, toDisplayString(formattedStartedAtDate.value), 1),
|
|
302
|
+
createBaseVNode("td", _hoisted_2$1, [formattedStoppedAtDate.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(formattedStoppedAtDate.value), 1)], 64)) : (openBlock(), createBlock(ExecutionsTime_default, {
|
|
303
|
+
key: 1,
|
|
304
|
+
"start-time": _ctx.execution.startedAt ?? _ctx.execution.createdAt
|
|
305
|
+
}, null, 8, ["start-time"]))]),
|
|
306
|
+
createBaseVNode("td", null, [_ctx.execution.id ? (openBlock(), createElementBlock("span", _hoisted_3$1, toDisplayString(_ctx.execution.id), 1)) : createCommentVNode("", true), _ctx.execution.retryOf ? (openBlock(), createElementBlock("span", _hoisted_4$1, [_cache[1] || (_cache[1] = createBaseVNode("br", null, null, -1)), createBaseVNode("small", null, " (" + toDisplayString(unref(locale).baseText("executionsList.retryOf")) + " " + toDisplayString(_ctx.execution.retryOf) + ") ", 1)])) : _ctx.execution.retrySuccessId ? (openBlock(), createElementBlock("span", _hoisted_5$1, [_cache[2] || (_cache[2] = createBaseVNode("br", null, null, -1)), createBaseVNode("small", null, " (" + toDisplayString(unref(locale).baseText("executionsList.successRetry")) + " " + toDisplayString(_ctx.execution.retrySuccessId) + ") ", 1)])) : createCommentVNode("", true)]),
|
|
307
|
+
createBaseVNode("td", null, [_ctx.execution.mode === "manual" ? (openBlock(), createBlock(unref(N8nTooltip_default), {
|
|
308
|
+
key: 0,
|
|
309
|
+
content: "Manual Execution",
|
|
310
|
+
placement: "top"
|
|
311
|
+
}, {
|
|
312
|
+
default: withCtx(() => [createVNode(unref(N8nIcon_default), { icon: "flask-conical" })]),
|
|
313
|
+
_: 1
|
|
314
|
+
})) : _ctx.execution.mode === "chat" ? (openBlock(), createBlock(unref(N8nTooltip_default), {
|
|
315
|
+
key: 1,
|
|
316
|
+
content: "Chat Execution",
|
|
317
|
+
placement: "top"
|
|
318
|
+
}, {
|
|
319
|
+
default: withCtx(() => [createVNode(unref(N8nIcon_default), { icon: "messages-square" })]),
|
|
320
|
+
_: 1
|
|
321
|
+
})) : createCommentVNode("", true)]),
|
|
322
|
+
createBaseVNode("td", null, [!_ctx.execution.stoppedAt || _ctx.execution.waitTill ? (openBlock(), createBlock(unref(N8nButton_default), {
|
|
323
|
+
key: 0,
|
|
324
|
+
"data-test-id": "stop-execution-button",
|
|
325
|
+
type: "secondary",
|
|
326
|
+
loading: isStopping.value,
|
|
327
|
+
disabled: isStopping.value,
|
|
328
|
+
onClick: withModifiers(onStopExecution, ["stop"])
|
|
329
|
+
}, {
|
|
330
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionsList.stop")), 1)]),
|
|
331
|
+
_: 1
|
|
332
|
+
}, 8, ["loading", "disabled"])) : createCommentVNode("", true)]),
|
|
333
|
+
createBaseVNode("td", null, [!isRunning.value ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
334
|
+
key: 0,
|
|
335
|
+
trigger: "click",
|
|
336
|
+
onCommand: handleActionItemClick
|
|
337
|
+
}, {
|
|
338
|
+
dropdown: withCtx(() => [createVNode(unref(ElDropdownMenu), { class: normalizeClass({
|
|
339
|
+
[_ctx.$style.actions]: true,
|
|
340
|
+
[_ctx.$style.deleteOnly]: !isRetriable.value
|
|
341
|
+
}) }, {
|
|
342
|
+
default: withCtx(() => [
|
|
343
|
+
isRetriable.value ? (openBlock(), createBlock(unref(ElDropdownItem), {
|
|
344
|
+
key: 0,
|
|
345
|
+
"data-test-id": "execution-retry-saved-dropdown-item",
|
|
346
|
+
class: normalizeClass(_ctx.$style.retryAction),
|
|
347
|
+
command: "retrySaved",
|
|
348
|
+
disabled: !_ctx.workflowPermissions.execute
|
|
349
|
+
}, {
|
|
350
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionsList.retryWithCurrentlySavedWorkflow")), 1)]),
|
|
351
|
+
_: 1
|
|
352
|
+
}, 8, ["class", "disabled"])) : createCommentVNode("", true),
|
|
353
|
+
isRetriable.value ? (openBlock(), createBlock(unref(ElDropdownItem), {
|
|
354
|
+
key: 1,
|
|
355
|
+
"data-test-id": "execution-retry-original-dropdown-item",
|
|
356
|
+
class: normalizeClass(_ctx.$style.retryAction),
|
|
357
|
+
command: "retryOriginal",
|
|
358
|
+
disabled: !_ctx.workflowPermissions.execute
|
|
359
|
+
}, {
|
|
360
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("executionsList.retryWithOriginalWorkflow")), 1)]),
|
|
361
|
+
_: 1
|
|
362
|
+
}, 8, ["class", "disabled"])) : createCommentVNode("", true),
|
|
363
|
+
createVNode(unref(ElDropdownItem), {
|
|
364
|
+
"data-test-id": "execution-delete-dropdown-item",
|
|
365
|
+
class: normalizeClass(_ctx.$style.deleteAction),
|
|
366
|
+
command: "delete",
|
|
367
|
+
disabled: !_ctx.workflowPermissions.update
|
|
368
|
+
}, {
|
|
369
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("generic.delete")), 1)]),
|
|
370
|
+
_: 1
|
|
371
|
+
}, 8, ["class", "disabled"])
|
|
372
|
+
]),
|
|
373
|
+
_: 1
|
|
374
|
+
}, 8, ["class"])]),
|
|
375
|
+
default: withCtx(() => [createVNode(unref(N8nIconButton_default), {
|
|
376
|
+
text: "",
|
|
377
|
+
type: "tertiary",
|
|
378
|
+
icon: "ellipsis-vertical"
|
|
379
|
+
})]),
|
|
380
|
+
_: 1
|
|
381
|
+
})) : createCommentVNode("", true)])
|
|
382
|
+
], 2);
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
var GlobalExecutionsListItem_vue_vue_type_style_index_0_lang_module_default = {
|
|
387
|
+
dangerBg: "_dangerBg_1j9ti_123",
|
|
388
|
+
workflowName: "_workflowName_1j9ti_127"
|
|
389
|
+
};
|
|
390
|
+
var GlobalExecutionsListItem_default = /* @__PURE__ */ __plugin_vue_export_helper_default(GlobalExecutionsListItem_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": GlobalExecutionsListItem_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
391
|
+
var _hoisted_1 = { style: { "margin-left": "auto" } };
|
|
392
|
+
var _hoisted_2 = { key: 0 };
|
|
393
|
+
var _hoisted_3 = { style: { "width": "50px" } };
|
|
394
|
+
var _hoisted_4 = { colspan: "8" };
|
|
395
|
+
var _hoisted_5 = { style: { "width": "50px" } };
|
|
396
|
+
var _hoisted_6 = {
|
|
397
|
+
colspan: "9",
|
|
398
|
+
style: { "text-align": "center" }
|
|
399
|
+
};
|
|
400
|
+
var _hoisted_7 = {
|
|
401
|
+
key: 0,
|
|
402
|
+
"data-test-id": "execution-list-empty"
|
|
403
|
+
};
|
|
404
|
+
var GlobalExecutionsList_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
405
|
+
__name: "GlobalExecutionsList",
|
|
406
|
+
props: {
|
|
407
|
+
executions: {},
|
|
408
|
+
filters: {},
|
|
409
|
+
total: { default: 0 },
|
|
410
|
+
concurrentTotal: { default: 0 },
|
|
411
|
+
estimated: {
|
|
412
|
+
type: Boolean,
|
|
413
|
+
default: false
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
emits: ["update:filters", "execution:stop"],
|
|
417
|
+
setup(__props, { emit: __emit }) {
|
|
418
|
+
const props = __props;
|
|
419
|
+
const emit = __emit;
|
|
420
|
+
const i18n = useI18n();
|
|
421
|
+
const telemetry = useTelemetry();
|
|
422
|
+
const workflowsStore = useWorkflowsStore();
|
|
423
|
+
const executionsStore = useExecutionsStore();
|
|
424
|
+
const settingsStore = useSettingsStore();
|
|
425
|
+
const pageRedirectionHelper = usePageRedirectionHelper();
|
|
426
|
+
const allVisibleSelected = ref(false);
|
|
427
|
+
const allExistingSelected = ref(false);
|
|
428
|
+
const selectedItems = ref({});
|
|
429
|
+
const message = useMessage();
|
|
430
|
+
const toast = useToast();
|
|
431
|
+
const selectedCount = computed(() => {
|
|
432
|
+
if (allExistingSelected.value) return props.total;
|
|
433
|
+
return Object.keys(selectedItems.value).length;
|
|
434
|
+
});
|
|
435
|
+
const workflows = computed(() => {
|
|
436
|
+
return [{
|
|
437
|
+
id: "all",
|
|
438
|
+
name: i18n.baseText("executionsList.allWorkflows")
|
|
439
|
+
}, ...workflowsStore.allWorkflows];
|
|
440
|
+
});
|
|
441
|
+
const isAnnotationEnabled = computed(() => settingsStore.isEnterpriseFeatureEnabled[EnterpriseEditionFeature.AdvancedExecutionFilters]);
|
|
442
|
+
const showConcurrencyHeader = computed(() => settingsStore.isConcurrencyEnabled && !settingsStore.isQueueModeEnabled);
|
|
443
|
+
watch(() => props.executions, () => {
|
|
444
|
+
if (props.executions.length === 0) handleClearSelection();
|
|
445
|
+
adjustSelectionAfterMoreItemsLoaded();
|
|
446
|
+
});
|
|
447
|
+
function handleCheckAllExistingChange() {
|
|
448
|
+
allExistingSelected.value = !allExistingSelected.value;
|
|
449
|
+
allVisibleSelected.value = !allExistingSelected.value;
|
|
450
|
+
handleCheckAllVisibleChange();
|
|
451
|
+
}
|
|
452
|
+
function handleCheckAllVisibleChange() {
|
|
453
|
+
allVisibleSelected.value = !allVisibleSelected.value;
|
|
454
|
+
if (!allVisibleSelected.value) {
|
|
455
|
+
allExistingSelected.value = false;
|
|
456
|
+
selectedItems.value = {};
|
|
457
|
+
} else selectAllVisibleExecutions();
|
|
458
|
+
}
|
|
459
|
+
function toggleSelectExecution(execution) {
|
|
460
|
+
const executionId = execution.id;
|
|
461
|
+
if (selectedItems.value[executionId]) {
|
|
462
|
+
const { [executionId]: removedSelectedItem,...rest } = selectedItems.value;
|
|
463
|
+
selectedItems.value = rest;
|
|
464
|
+
} else selectedItems.value = {
|
|
465
|
+
...selectedItems.value,
|
|
466
|
+
[executionId]: true
|
|
467
|
+
};
|
|
468
|
+
allVisibleSelected.value = Object.keys(selectedItems.value).length === props.executions.length;
|
|
469
|
+
allExistingSelected.value = Object.keys(selectedItems.value).length === props.total;
|
|
470
|
+
}
|
|
471
|
+
async function handleDeleteSelected() {
|
|
472
|
+
const confirmationText = [isAnnotationEnabled.value && i18n.baseText("executionsList.confirmMessage.annotationsNote"), i18n.baseText("executionsList.confirmMessage.message", { interpolate: { count: selectedCount.value.toString() } })].filter(Boolean).join(" ");
|
|
473
|
+
if (await message.confirm(confirmationText, i18n.baseText("executionsList.confirmMessage.headline"), {
|
|
474
|
+
type: "warning",
|
|
475
|
+
confirmButtonText: i18n.baseText("executionsList.confirmMessage.confirmButtonText"),
|
|
476
|
+
cancelButtonText: i18n.baseText("executionsList.confirmMessage.cancelButtonText")
|
|
477
|
+
}) !== "confirm") return;
|
|
478
|
+
try {
|
|
479
|
+
await executionsStore.deleteExecutions({
|
|
480
|
+
filters: executionsStore.executionsFilters,
|
|
481
|
+
...allExistingSelected.value ? { deleteBefore: /* @__PURE__ */ new Date() } : { ids: Object.keys(selectedItems.value) }
|
|
482
|
+
});
|
|
483
|
+
} catch (error) {
|
|
484
|
+
toast.showError(error, i18n.baseText("executionsList.showError.handleDeleteSelected.title"));
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
toast.showMessage({
|
|
488
|
+
title: i18n.baseText("executionsList.showMessage.handleDeleteSelected.title"),
|
|
489
|
+
type: "success"
|
|
490
|
+
});
|
|
491
|
+
handleClearSelection();
|
|
492
|
+
}
|
|
493
|
+
function handleClearSelection() {
|
|
494
|
+
allVisibleSelected.value = false;
|
|
495
|
+
allExistingSelected.value = false;
|
|
496
|
+
selectedItems.value = {};
|
|
497
|
+
}
|
|
498
|
+
async function onFilterChanged(filters) {
|
|
499
|
+
emit("update:filters", filters);
|
|
500
|
+
handleClearSelection();
|
|
501
|
+
}
|
|
502
|
+
function getExecutionWorkflowName(execution) {
|
|
503
|
+
return getWorkflowName(execution.workflowId ?? "") ?? i18n.baseText("executionsList.unsavedWorkflow");
|
|
504
|
+
}
|
|
505
|
+
function getExecutionWorkflowPermissions(execution) {
|
|
506
|
+
return getResourcePermissions(execution.scopes).workflow;
|
|
507
|
+
}
|
|
508
|
+
function getWorkflowName(workflowId) {
|
|
509
|
+
return workflows.value.find((data) => data.id === workflowId)?.name;
|
|
510
|
+
}
|
|
511
|
+
useIntersectionObserver(useTemplateRef("loadMoreButton"), ([entry]) => {
|
|
512
|
+
if (!entry?.isIntersecting) return;
|
|
513
|
+
loadMore();
|
|
514
|
+
});
|
|
515
|
+
async function loadMore() {
|
|
516
|
+
if (executionsStore.filters.status === "running") return;
|
|
517
|
+
const lastItem = props.executions.at(-1);
|
|
518
|
+
try {
|
|
519
|
+
await executionsStore.fetchExecutions(executionsStore.executionsFilters, lastItem?.id);
|
|
520
|
+
} catch (error) {
|
|
521
|
+
toast.showError(error, i18n.baseText("executionsList.showError.loadMore.title"));
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
function selectAllVisibleExecutions() {
|
|
525
|
+
props.executions.forEach((execution) => {
|
|
526
|
+
selectedItems.value[execution.id] = true;
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
function adjustSelectionAfterMoreItemsLoaded() {
|
|
530
|
+
if (allExistingSelected.value) {
|
|
531
|
+
allVisibleSelected.value = true;
|
|
532
|
+
selectAllVisibleExecutions();
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
async function retrySavedExecution(execution) {
|
|
536
|
+
await retryExecution(execution, true);
|
|
537
|
+
}
|
|
538
|
+
async function retryOriginalExecution(execution) {
|
|
539
|
+
await retryExecution(execution, false);
|
|
540
|
+
}
|
|
541
|
+
async function retryExecution(execution, loadWorkflow) {
|
|
542
|
+
try {
|
|
543
|
+
const retryMessage = executionRetryMessage((await executionsStore.retryExecution(execution.id, loadWorkflow)).status);
|
|
544
|
+
if (retryMessage) toast.showMessage(retryMessage);
|
|
545
|
+
} catch (error) {
|
|
546
|
+
toast.showError(error, i18n.baseText("executionsList.showError.retryExecution.title"));
|
|
547
|
+
}
|
|
548
|
+
telemetry.track("User clicked retry execution button", {
|
|
549
|
+
workflow_id: workflowsStore.workflowId,
|
|
550
|
+
execution_id: execution.id,
|
|
551
|
+
retry_type: loadWorkflow ? "current" : "original"
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
async function stopExecution(execution) {
|
|
555
|
+
try {
|
|
556
|
+
await executionsStore.stopCurrentExecution(execution.id);
|
|
557
|
+
toast.showMessage({
|
|
558
|
+
title: i18n.baseText("executionsList.showMessage.stopExecution.title"),
|
|
559
|
+
message: i18n.baseText("executionsList.showMessage.stopExecution.message", { interpolate: { activeExecutionId: execution.id } }),
|
|
560
|
+
type: "success"
|
|
561
|
+
});
|
|
562
|
+
emit("execution:stop");
|
|
563
|
+
} catch (error) {
|
|
564
|
+
toast.showError(error, i18n.baseText("executionsList.showError.stopExecution.title"));
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
async function deleteExecution(execution) {
|
|
568
|
+
if (!!execution.annotation && (execution.annotation.vote || execution.annotation.tags.length > 0)) {
|
|
569
|
+
if (await message.confirm(i18n.baseText("executionsList.confirmMessage.annotatedExecutionMessage"), i18n.baseText("executionDetails.confirmMessage.headline"), {
|
|
570
|
+
type: "warning",
|
|
571
|
+
confirmButtonText: i18n.baseText("executionDetails.confirmMessage.confirmButtonText"),
|
|
572
|
+
cancelButtonText: ""
|
|
573
|
+
}) !== "confirm") return;
|
|
574
|
+
}
|
|
575
|
+
try {
|
|
576
|
+
await executionsStore.deleteExecutions({ ids: [execution.id] });
|
|
577
|
+
if (allVisibleSelected.value) {
|
|
578
|
+
const { [execution.id]: _,...rest } = selectedItems.value;
|
|
579
|
+
selectedItems.value = rest;
|
|
580
|
+
}
|
|
581
|
+
} catch (error) {
|
|
582
|
+
toast.showError(error, i18n.baseText("executionsList.showError.handleDeleteSelected.title"));
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
async function onAutoRefreshToggle(value) {
|
|
586
|
+
if (typeof value === "boolean" ? value : Boolean(value)) await executionsStore.startAutoRefreshInterval();
|
|
587
|
+
else executionsStore.stopAutoRefreshInterval();
|
|
588
|
+
}
|
|
589
|
+
const goToUpgrade = () => {
|
|
590
|
+
pageRedirectionHelper.goToUpgrade("concurrency", "upgrade-concurrency");
|
|
591
|
+
};
|
|
592
|
+
return (_ctx, _cache) => {
|
|
593
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(_ctx.$style.execListWrapper) }, [
|
|
594
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
595
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.execListHeaderControls) }, [createVNode(ExecutionsFilter_default, {
|
|
596
|
+
workflows: workflows.value,
|
|
597
|
+
class: "execFilter",
|
|
598
|
+
onFilterChanged
|
|
599
|
+
}, null, 8, ["workflows"]), createBaseVNode("div", _hoisted_1, [showConcurrencyHeader.value ? (openBlock(), createBlock(ConcurrentExecutionsHeader_default, {
|
|
600
|
+
key: 0,
|
|
601
|
+
"running-executions-count": _ctx.concurrentTotal,
|
|
602
|
+
"concurrency-cap": unref(settingsStore).concurrency,
|
|
603
|
+
"is-cloud-deployment": unref(settingsStore).isCloudDeployment,
|
|
604
|
+
onGoToUpgrade: goToUpgrade
|
|
605
|
+
}, null, 8, [
|
|
606
|
+
"running-executions-count",
|
|
607
|
+
"concurrency-cap",
|
|
608
|
+
"is-cloud-deployment"
|
|
609
|
+
])) : (openBlock(), createBlock(unref(ElCheckbox), {
|
|
610
|
+
key: 1,
|
|
611
|
+
modelValue: unref(executionsStore).autoRefresh,
|
|
612
|
+
"onUpdate:modelValue": [_cache[0] || (_cache[0] = ($event) => unref(executionsStore).autoRefresh = $event), _cache[1] || (_cache[1] = ($event) => onAutoRefreshToggle($event))],
|
|
613
|
+
"data-test-id": "execution-auto-refresh-checkbox"
|
|
614
|
+
}, {
|
|
615
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("executionsList.autoRefresh")), 1)]),
|
|
616
|
+
_: 1
|
|
617
|
+
}, 8, ["modelValue"]))])], 2),
|
|
618
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.execList) }, [createBaseVNode("div", { class: normalizeClass(_ctx.$style.execTable) }, [createVNode(unref(TableBase_default), null, {
|
|
619
|
+
default: withCtx(() => [createBaseVNode("thead", null, [allVisibleSelected.value && _ctx.total > 0 ? (openBlock(), createElementBlock("tr", _hoisted_2, [createBaseVNode("th", _hoisted_3, [createVNode(unref(N8nCheckbox_default), {
|
|
620
|
+
"model-value": allExistingSelected.value,
|
|
621
|
+
"data-test-id": "select-all-executions-checkbox",
|
|
622
|
+
class: "mb-0",
|
|
623
|
+
"onUpdate:modelValue": handleCheckAllExistingChange
|
|
624
|
+
}, null, 8, ["model-value"])]), createBaseVNode("th", _hoisted_4, toDisplayString(unref(i18n).baseText("executionsList.selectAll", {
|
|
625
|
+
adjustToNumber: _ctx.total,
|
|
626
|
+
interpolate: { count: `${_ctx.total}` }
|
|
627
|
+
})), 1)])) : createCommentVNode("", true), createBaseVNode("tr", null, [
|
|
628
|
+
createBaseVNode("th", _hoisted_5, [createVNode(unref(N8nCheckbox_default), {
|
|
629
|
+
"model-value": allVisibleSelected.value,
|
|
630
|
+
disabled: _ctx.total < 1,
|
|
631
|
+
"data-test-id": "select-visible-executions-checkbox",
|
|
632
|
+
class: "mb-0",
|
|
633
|
+
"onUpdate:modelValue": handleCheckAllVisibleChange
|
|
634
|
+
}, null, 8, ["model-value", "disabled"])]),
|
|
635
|
+
createBaseVNode("th", null, toDisplayString(unref(i18n).baseText("generic.workflow")), 1),
|
|
636
|
+
createBaseVNode("th", null, toDisplayString(unref(i18n).baseText("executionsList.status")), 1),
|
|
637
|
+
createBaseVNode("th", null, toDisplayString(unref(i18n).baseText("executionsList.startedAt")), 1),
|
|
638
|
+
createBaseVNode("th", null, toDisplayString(unref(i18n).baseText("executionsList.runTime")), 1),
|
|
639
|
+
createBaseVNode("th", null, toDisplayString(unref(i18n).baseText("executionsList.id")), 1),
|
|
640
|
+
_cache[3] || (_cache[3] = createBaseVNode("th", null, null, -1)),
|
|
641
|
+
_cache[4] || (_cache[4] = createBaseVNode("th", { style: { "width": "69px" } }, null, -1)),
|
|
642
|
+
_cache[5] || (_cache[5] = createBaseVNode("th", { style: { "width": "50px" } }, null, -1))
|
|
643
|
+
])]), createBaseVNode("tbody", null, [
|
|
644
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.executions, (execution) => {
|
|
645
|
+
return openBlock(), createBlock(GlobalExecutionsListItem_default, {
|
|
646
|
+
key: execution.id,
|
|
647
|
+
execution,
|
|
648
|
+
"workflow-name": getExecutionWorkflowName(execution),
|
|
649
|
+
"workflow-permissions": getExecutionWorkflowPermissions(execution),
|
|
650
|
+
selected: selectedItems.value[execution.id] || allExistingSelected.value,
|
|
651
|
+
"concurrency-cap": unref(settingsStore).concurrency,
|
|
652
|
+
"is-cloud-deployment": unref(settingsStore).isCloudDeployment,
|
|
653
|
+
"data-test-id": "global-execution-list-item",
|
|
654
|
+
onStop: stopExecution,
|
|
655
|
+
onDelete: deleteExecution,
|
|
656
|
+
onSelect: toggleSelectExecution,
|
|
657
|
+
onRetrySaved: retrySavedExecution,
|
|
658
|
+
onRetryOriginal: retryOriginalExecution,
|
|
659
|
+
onGoToUpgrade: goToUpgrade
|
|
660
|
+
}, null, 8, [
|
|
661
|
+
"execution",
|
|
662
|
+
"workflow-name",
|
|
663
|
+
"workflow-permissions",
|
|
664
|
+
"selected",
|
|
665
|
+
"concurrency-cap",
|
|
666
|
+
"is-cloud-deployment"
|
|
667
|
+
]);
|
|
668
|
+
}), 128)),
|
|
669
|
+
unref(executionsStore).loading && !_ctx.executions.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(executionsStore).itemsPerPage, (item) => {
|
|
670
|
+
return openBlock(), createElementBlock("tr", { key: item }, [(openBlock(), createElementBlock(Fragment, null, renderList(9, (col) => {
|
|
671
|
+
return createBaseVNode("td", { key: col }, [createVNode(unref(ElSkeletonItem))]);
|
|
672
|
+
}), 64))]);
|
|
673
|
+
}), 128)) : createCommentVNode("", true),
|
|
674
|
+
createBaseVNode("tr", null, [createBaseVNode("td", _hoisted_6, [!_ctx.executions.length ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(unref(i18n).baseText("executionsList.empty")), 1)) : _ctx.total > _ctx.executions.length || _ctx.estimated ? (openBlock(), createBlock(unref(N8nButton_default), {
|
|
675
|
+
key: 1,
|
|
676
|
+
ref: "loadMoreButton",
|
|
677
|
+
icon: "refresh-cw",
|
|
678
|
+
title: unref(i18n).baseText("executionsList.loadMore"),
|
|
679
|
+
label: unref(i18n).baseText("executionsList.loadMore"),
|
|
680
|
+
loading: unref(executionsStore).loading,
|
|
681
|
+
"data-test-id": "load-more-button",
|
|
682
|
+
onClick: _cache[2] || (_cache[2] = ($event) => loadMore())
|
|
683
|
+
}, null, 8, [
|
|
684
|
+
"title",
|
|
685
|
+
"label",
|
|
686
|
+
"loading"
|
|
687
|
+
])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [createTextVNode(toDisplayString(unref(i18n).baseText("executionsList.loadedAll")), 1)], 64))])])
|
|
688
|
+
])]),
|
|
689
|
+
_: 1
|
|
690
|
+
})], 2)], 2),
|
|
691
|
+
createVNode(SelectedItemsInfo_default, {
|
|
692
|
+
"selected-count": selectedCount.value,
|
|
693
|
+
onDeleteSelected: handleDeleteSelected,
|
|
694
|
+
onClearSelection: handleClearSelection
|
|
695
|
+
}, null, 8, ["selected-count"])
|
|
696
|
+
], 2);
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
});
|
|
700
|
+
var GlobalExecutionsList_vue_vue_type_style_index_0_lang_module_default = {
|
|
701
|
+
execListWrapper: "_execListWrapper_figer_123",
|
|
702
|
+
execList: "_execList_figer_123",
|
|
703
|
+
execListHeaderControls: "_execListHeaderControls_figer_138",
|
|
704
|
+
execTable: "_execTable_figer_145"
|
|
705
|
+
};
|
|
706
|
+
var GlobalExecutionsList_default = /* @__PURE__ */ __plugin_vue_export_helper_default(GlobalExecutionsList_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": GlobalExecutionsList_vue_vue_type_style_index_0_lang_module_default }], ["__scopeId", "data-v-99838607"]]);
|
|
707
|
+
var ExecutionsView_default = /* @__PURE__ */ defineComponent({
|
|
708
|
+
__name: "ExecutionsView",
|
|
709
|
+
setup(__props) {
|
|
710
|
+
const route = useRoute();
|
|
711
|
+
const i18n = useI18n();
|
|
712
|
+
const telemetry = useTelemetry();
|
|
713
|
+
const externalHooks = useExternalHooks();
|
|
714
|
+
const workflowsStore = useWorkflowsStore();
|
|
715
|
+
const executionsStore = useExecutionsStore();
|
|
716
|
+
const insightsStore = useInsightsStore();
|
|
717
|
+
const documentTitle = useDocumentTitle();
|
|
718
|
+
const toast = useToast();
|
|
719
|
+
const overview = useProjectPages();
|
|
720
|
+
const { executionsCount, executionsCountEstimated, concurrentExecutionsCount, filters, allExecutions } = storeToRefs(executionsStore);
|
|
721
|
+
onBeforeMount(async () => {
|
|
722
|
+
await loadWorkflows();
|
|
723
|
+
externalHooks.run("executionsList.openDialog");
|
|
724
|
+
telemetry.track("User opened Executions log", { workflow_id: workflowsStore.workflowId });
|
|
725
|
+
});
|
|
726
|
+
onMounted(async () => {
|
|
727
|
+
documentTitle.set(i18n.baseText("executionsList.workflowExecutions"));
|
|
728
|
+
document.addEventListener("visibilitychange", onDocumentVisibilityChange);
|
|
729
|
+
await executionsStore.initialize();
|
|
730
|
+
});
|
|
731
|
+
onBeforeUnmount(() => {
|
|
732
|
+
executionsStore.reset();
|
|
733
|
+
document.removeEventListener("visibilitychange", onDocumentVisibilityChange);
|
|
734
|
+
});
|
|
735
|
+
async function loadWorkflows() {
|
|
736
|
+
try {
|
|
737
|
+
await workflowsStore.fetchAllWorkflows(route.params?.projectId);
|
|
738
|
+
} catch (error) {
|
|
739
|
+
toast.showError(error, i18n.baseText("executionsList.showError.loadWorkflows.title"));
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
function onDocumentVisibilityChange() {
|
|
743
|
+
if (document.visibilityState === "hidden") executionsStore.stopAutoRefreshInterval();
|
|
744
|
+
else executionsStore.startAutoRefreshInterval();
|
|
745
|
+
}
|
|
746
|
+
async function onRefreshData() {
|
|
747
|
+
try {
|
|
748
|
+
await executionsStore.fetchExecutions();
|
|
749
|
+
} catch (error) {
|
|
750
|
+
toast.showError(error, i18n.baseText("executionsList.showError.refreshData.title"));
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
async function onUpdateFilters(newFilters) {
|
|
754
|
+
executionsStore.reset();
|
|
755
|
+
executionsStore.setFilters(newFilters);
|
|
756
|
+
await executionsStore.initialize();
|
|
757
|
+
}
|
|
758
|
+
async function onExecutionStop() {
|
|
759
|
+
await onRefreshData();
|
|
760
|
+
}
|
|
761
|
+
return (_ctx, _cache) => {
|
|
762
|
+
return openBlock(), createBlock(GlobalExecutionsList_default, {
|
|
763
|
+
executions: unref(allExecutions),
|
|
764
|
+
filters: unref(filters),
|
|
765
|
+
total: unref(executionsCount),
|
|
766
|
+
"estimated-total": unref(executionsCountEstimated),
|
|
767
|
+
"concurrent-total": unref(concurrentExecutionsCount),
|
|
768
|
+
"onExecution:stop": onExecutionStop,
|
|
769
|
+
"onUpdate:filters": onUpdateFilters
|
|
770
|
+
}, {
|
|
771
|
+
default: withCtx(() => [createVNode(ProjectHeader_default, null, {
|
|
772
|
+
default: withCtx(() => [unref(overview).isOverviewSubPage && unref(insightsStore).isSummaryEnabled ? (openBlock(), createBlock(InsightsSummary_default, {
|
|
773
|
+
key: 0,
|
|
774
|
+
loading: unref(insightsStore).weeklySummary.isLoading,
|
|
775
|
+
summary: unref(insightsStore).weeklySummary.state,
|
|
776
|
+
"time-range": "week"
|
|
777
|
+
}, null, 8, ["loading", "summary"])) : createCommentVNode("", true)]),
|
|
778
|
+
_: 1
|
|
779
|
+
})]),
|
|
780
|
+
_: 1
|
|
781
|
+
}, 8, [
|
|
782
|
+
"executions",
|
|
783
|
+
"filters",
|
|
784
|
+
"total",
|
|
785
|
+
"estimated-total",
|
|
786
|
+
"concurrent-total"
|
|
787
|
+
]);
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
export { ExecutionsView_default as default };
|