@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,61 @@
|
|
|
1
|
+
import { Cn as toDisplayString, D as createElementBlock, E as createCommentVNode, Gt as unref, M as createVNode, P as defineComponent, T as createBlock, bt as withCtx, et as openBlock, j as createTextVNode, vn as normalizeClass, w as createBaseVNode } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { rt as useI18n } from "./core-CRbPymLT.js";
|
|
3
|
+
import { Cn as N8nIcon_default, bn as N8nText_default, vn as N8nHeading_default, xn as N8nButton_default } from "./src-jviYSG25.js";
|
|
4
|
+
import "./en-CF30SCh2.js";
|
|
5
|
+
import "./preload-helper-dyVz7ck7.js";
|
|
6
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
7
|
+
import "./truncate-C0KYt7i3.js";
|
|
8
|
+
import "./empty-BuGRxzl4.js";
|
|
9
|
+
import { v as useRouter } from "./get-BcEmeOxn.js";
|
|
10
|
+
import "./sanitize-html-CbW56HUN.js";
|
|
11
|
+
import "./CalendarDate-DgQUMbNo.js";
|
|
12
|
+
import "./path-browserify-RUt2u7iT.js";
|
|
13
|
+
import "./_MapCache-CcdIl4Ae.js";
|
|
14
|
+
import { Ro as VIEWS } from "./constants-C8OH4tTq.js";
|
|
15
|
+
import "./merge-DhuTk1HM.js";
|
|
16
|
+
var ErrorView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
17
|
+
__name: "ErrorView",
|
|
18
|
+
props: {
|
|
19
|
+
messageKey: {},
|
|
20
|
+
errorCode: {},
|
|
21
|
+
redirectTextKey: {},
|
|
22
|
+
redirectPage: {}
|
|
23
|
+
},
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const router = useRouter();
|
|
26
|
+
const props = __props;
|
|
27
|
+
const i18n = useI18n();
|
|
28
|
+
function onButtonClick() {
|
|
29
|
+
router.push({ name: props.redirectPage ?? VIEWS.HOMEPAGE });
|
|
30
|
+
}
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(_ctx.$style.container) }, [
|
|
33
|
+
createVNode(unref(N8nIcon_default), {
|
|
34
|
+
icon: "triangle-alert",
|
|
35
|
+
class: normalizeClass(_ctx.$style.icon)
|
|
36
|
+
}, null, 8, ["class"]),
|
|
37
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.message) }, [createBaseVNode("div", null, [createVNode(unref(N8nHeading_default), { size: "2xlarge" }, {
|
|
38
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText(_ctx.messageKey)), 1)]),
|
|
39
|
+
_: 1
|
|
40
|
+
})]), createBaseVNode("div", null, [_ctx.errorCode ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
41
|
+
key: 0,
|
|
42
|
+
size: "large"
|
|
43
|
+
}, {
|
|
44
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.errorCode) + " " + toDisplayString(unref(i18n).baseText("error")), 1)]),
|
|
45
|
+
_: 1
|
|
46
|
+
})) : createCommentVNode("", true)])], 2),
|
|
47
|
+
createVNode(unref(N8nButton_default), {
|
|
48
|
+
label: unref(i18n).baseText(_ctx.redirectTextKey),
|
|
49
|
+
onClick: onButtonClick
|
|
50
|
+
}, null, 8, ["label"])
|
|
51
|
+
], 2);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
var ErrorView_vue_vue_type_style_index_0_lang_module_default = {
|
|
56
|
+
container: "_container_whkd2_123",
|
|
57
|
+
icon: "_icon_whkd2_132",
|
|
58
|
+
message: "_message_whkd2_139"
|
|
59
|
+
};
|
|
60
|
+
var ErrorView_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ErrorView_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": ErrorView_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
61
|
+
export { ErrorView_default as default };
|
|
@@ -0,0 +1,523 @@
|
|
|
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, at as renderSlot, bt as withCtx, et as openBlock, j as createTextVNode, ot as resolveComponent, vn as normalizeClass, w as createBaseVNode } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { it as I18nT, rt as useI18n, s as useAsyncState } from "./core-CRbPymLT.js";
|
|
3
|
+
import { Cn as N8nIcon_default, Ct as N8nActionBox_default, bn as N8nText_default, lt as N8nBadge_default, mt as N8nLink_default, xn as N8nButton_default, yn as N8nCallout_default } from "./src-jviYSG25.js";
|
|
4
|
+
import "./en-CF30SCh2.js";
|
|
5
|
+
import "./preload-helper-dyVz7ck7.js";
|
|
6
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
7
|
+
import "./truncate-C0KYt7i3.js";
|
|
8
|
+
import { It as useEvaluationStore, P as useWorkflowsStore, Pt as useNodeTypesStore, Qn as useSourceControlStore, aa as useUIStore, k as useTelemetry, ts as COMMUNITY_PLUS_ENROLLMENT_MODAL, y as useToast } from "./builder.store-Czk2ipDE.js";
|
|
9
|
+
import "./empty-BuGRxzl4.js";
|
|
10
|
+
import { _ as useRoute, v as useRouter } from "./get-BcEmeOxn.js";
|
|
11
|
+
import "./sanitize-html-CbW56HUN.js";
|
|
12
|
+
import "./CalendarDate-DgQUMbNo.js";
|
|
13
|
+
import "./path-browserify-RUt2u7iT.js";
|
|
14
|
+
import "./_MapCache-CcdIl4Ae.js";
|
|
15
|
+
import { Ro as VIEWS, g as EVALUATIONS_DOCS_URL } 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 "./executions.store-B9uRYwgv.js";
|
|
21
|
+
import "./usePinnedData-BhZkqttf.js";
|
|
22
|
+
import "./nodeCreator.store-Bpnrwp2l.js";
|
|
23
|
+
import "./nodeIcon-D6X-ENYt.js";
|
|
24
|
+
import "./useClipboard-DvjhVHqJ.js";
|
|
25
|
+
import { t as useCanvasOperations } from "./useCanvasOperations-8ULLtMkY.js";
|
|
26
|
+
import "./folders.store-yAFj-5Vl.js";
|
|
27
|
+
import "./versions.store-B1z2OrLE.js";
|
|
28
|
+
import { t as usePageRedirectionHelper } from "./usePageRedirectionHelper-DjkznpX6.js";
|
|
29
|
+
import { t as useUsageStore } from "./usage.store-CU5J_nGm.js";
|
|
30
|
+
var EvaluationsPaywall_default = /* @__PURE__ */ defineComponent({
|
|
31
|
+
__name: "EvaluationsPaywall",
|
|
32
|
+
setup(__props) {
|
|
33
|
+
const i18n = useI18n();
|
|
34
|
+
const uiStore = useUIStore();
|
|
35
|
+
const goToUpgrade = async () => {
|
|
36
|
+
uiStore.openModalWithData({
|
|
37
|
+
name: COMMUNITY_PLUS_ENROLLMENT_MODAL,
|
|
38
|
+
data: { customHeading: void 0 }
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createBlock(unref(N8nActionBox_default), {
|
|
43
|
+
"data-test-id": "evaluations-unlicensed",
|
|
44
|
+
heading: unref(i18n).baseText("evaluations.paywall.title"),
|
|
45
|
+
description: unref(i18n).baseText("evaluations.paywall.description"),
|
|
46
|
+
"button-text": unref(i18n).baseText("evaluations.paywall.cta"),
|
|
47
|
+
onClick: goToUpgrade
|
|
48
|
+
}, null, 8, [
|
|
49
|
+
"heading",
|
|
50
|
+
"description",
|
|
51
|
+
"button-text"
|
|
52
|
+
]);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
var StepIndicator_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
57
|
+
__name: "StepIndicator",
|
|
58
|
+
props: {
|
|
59
|
+
stepNumber: {},
|
|
60
|
+
isCompleted: { type: Boolean },
|
|
61
|
+
isActive: { type: Boolean }
|
|
62
|
+
},
|
|
63
|
+
setup(__props) {
|
|
64
|
+
return (_ctx, _cache) => {
|
|
65
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass([
|
|
66
|
+
_ctx.$style.stepIndicator,
|
|
67
|
+
_ctx.isCompleted && _ctx.$style.completed,
|
|
68
|
+
_ctx.isActive && _ctx.$style.active,
|
|
69
|
+
!_ctx.isActive && !_ctx.isCompleted && _ctx.$style.inactive
|
|
70
|
+
]) }, [_ctx.isCompleted ? (openBlock(), createBlock(unref(N8nIcon_default), {
|
|
71
|
+
key: 0,
|
|
72
|
+
icon: "check",
|
|
73
|
+
size: "xsmall"
|
|
74
|
+
})) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(_ctx.stepNumber), 1)], 64))], 2);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
var StepIndicator_vue_vue_type_style_index_0_lang_module_default = {
|
|
79
|
+
stepIndicator: "_stepIndicator_l3z5l_123",
|
|
80
|
+
active: "_active_l3z5l_137",
|
|
81
|
+
completed: "_completed_l3z5l_141",
|
|
82
|
+
inactive: "_inactive_l3z5l_146"
|
|
83
|
+
};
|
|
84
|
+
var StepIndicator_default = /* @__PURE__ */ __plugin_vue_export_helper_default(StepIndicator_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": StepIndicator_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
85
|
+
var StepHeader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
86
|
+
__name: "StepHeader",
|
|
87
|
+
props: {
|
|
88
|
+
stepNumber: {},
|
|
89
|
+
title: {},
|
|
90
|
+
isCompleted: { type: Boolean },
|
|
91
|
+
isActive: { type: Boolean },
|
|
92
|
+
isOptional: { type: Boolean }
|
|
93
|
+
},
|
|
94
|
+
emits: ["click"],
|
|
95
|
+
setup(__props, { emit: __emit }) {
|
|
96
|
+
const emit = __emit;
|
|
97
|
+
const locale = useI18n();
|
|
98
|
+
const handleClick = (event) => {
|
|
99
|
+
if (!event.target.closest("button") && !event.target.closest("a") && !event.target.closest("input") && !event.target.closest("select")) emit("click");
|
|
100
|
+
};
|
|
101
|
+
return (_ctx, _cache) => {
|
|
102
|
+
return openBlock(), createElementBlock("div", {
|
|
103
|
+
class: normalizeClass(_ctx.$style.stepHeader),
|
|
104
|
+
onClick: handleClick
|
|
105
|
+
}, [
|
|
106
|
+
createVNode(StepIndicator_default, {
|
|
107
|
+
"step-number": _ctx.stepNumber,
|
|
108
|
+
"is-completed": _ctx.isCompleted,
|
|
109
|
+
"is-active": _ctx.isActive
|
|
110
|
+
}, null, 8, [
|
|
111
|
+
"step-number",
|
|
112
|
+
"is-completed",
|
|
113
|
+
"is-active"
|
|
114
|
+
]),
|
|
115
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.titleSlot) }, [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(unref(N8nText_default), {
|
|
116
|
+
size: "medium",
|
|
117
|
+
color: _ctx.isActive || _ctx.isCompleted ? "text-dark" : "text-light",
|
|
118
|
+
tag: "span",
|
|
119
|
+
bold: ""
|
|
120
|
+
}, {
|
|
121
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.title), 1)]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["color"])])], 2),
|
|
124
|
+
_ctx.isOptional ? (openBlock(), createBlock(unref(N8nBadge_default), {
|
|
125
|
+
key: 0,
|
|
126
|
+
style: {
|
|
127
|
+
"background-color": "var(--color--background)",
|
|
128
|
+
"border": "none"
|
|
129
|
+
}
|
|
130
|
+
}, {
|
|
131
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.stepHeader.optional")), 1)]),
|
|
132
|
+
_: 1
|
|
133
|
+
})) : createCommentVNode("", true)
|
|
134
|
+
], 2);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
var StepHeader_vue_vue_type_style_index_0_lang_module_default = { stepHeader: "_stepHeader_cqtb0_123" };
|
|
139
|
+
var StepHeader_default = /* @__PURE__ */ __plugin_vue_export_helper_default(StepHeader_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": StepHeader_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
140
|
+
var SetupWizard_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
141
|
+
__name: "SetupWizard",
|
|
142
|
+
emits: ["runTest"],
|
|
143
|
+
setup(__props) {
|
|
144
|
+
const router = useRouter();
|
|
145
|
+
const locale = useI18n();
|
|
146
|
+
const workflowsStore = useWorkflowsStore();
|
|
147
|
+
const evaluationStore = useEvaluationStore();
|
|
148
|
+
const usageStore = useUsageStore();
|
|
149
|
+
const pageRedirectionHelper = usePageRedirectionHelper();
|
|
150
|
+
const hasRuns = computed(() => {
|
|
151
|
+
return evaluationStore.testRunsByWorkflowId[workflowsStore.workflow.id]?.length > 0;
|
|
152
|
+
});
|
|
153
|
+
const evaluationsAvailable = computed(() => {
|
|
154
|
+
return usageStore.workflowsWithEvaluationsLimit === -1 || usageStore.workflowsWithEvaluationsCount < usageStore.workflowsWithEvaluationsLimit;
|
|
155
|
+
});
|
|
156
|
+
const evaluationsQuotaExceeded = computed(() => {
|
|
157
|
+
return usageStore.workflowsWithEvaluationsLimit !== -1 && usageStore.workflowsWithEvaluationsCount >= usageStore.workflowsWithEvaluationsLimit && !hasRuns.value;
|
|
158
|
+
});
|
|
159
|
+
const activeStepIndex = ref(0);
|
|
160
|
+
const initializeActiveStep = () => {
|
|
161
|
+
if (evaluationsQuotaExceeded.value) {
|
|
162
|
+
activeStepIndex.value = 2;
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
if (evaluationStore.evaluationTriggerExists && evaluationStore.evaluationSetMetricsNodeExist) activeStepIndex.value = 3;
|
|
166
|
+
else if (evaluationStore.evaluationTriggerExists && evaluationStore.evaluationSetOutputsNodeExist) activeStepIndex.value = 2;
|
|
167
|
+
else if (evaluationStore.evaluationTriggerExists) activeStepIndex.value = 1;
|
|
168
|
+
else activeStepIndex.value = 0;
|
|
169
|
+
};
|
|
170
|
+
initializeActiveStep();
|
|
171
|
+
const toggleStep = (index) => {
|
|
172
|
+
activeStepIndex.value = index;
|
|
173
|
+
};
|
|
174
|
+
function navigateToWorkflow(action) {
|
|
175
|
+
const routeWorkflowId = workflowsStore.workflow.id || "new";
|
|
176
|
+
router.push({
|
|
177
|
+
name: VIEWS.WORKFLOW,
|
|
178
|
+
params: { name: routeWorkflowId },
|
|
179
|
+
query: action ? { action } : void 0
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function onSeePlans() {
|
|
183
|
+
pageRedirectionHelper.goToUpgrade("evaluations", "upgrade-evaluations");
|
|
184
|
+
}
|
|
185
|
+
return (_ctx, _cache) => {
|
|
186
|
+
return openBlock(), createElementBlock("div", {
|
|
187
|
+
class: normalizeClass(_ctx.$style.container),
|
|
188
|
+
"data-test-id": "evaluation-setup-wizard"
|
|
189
|
+
}, [createBaseVNode("div", { class: normalizeClass(_ctx.$style.steps) }, [
|
|
190
|
+
createBaseVNode("div", { class: normalizeClass([_ctx.$style.step, _ctx.$style.completed]) }, [createVNode(StepHeader_default, {
|
|
191
|
+
"step-number": 1,
|
|
192
|
+
title: unref(locale).baseText("evaluations.setupWizard.step1.title"),
|
|
193
|
+
"is-completed": unref(evaluationStore).evaluationTriggerExists,
|
|
194
|
+
"is-active": activeStepIndex.value === 0,
|
|
195
|
+
onClick: _cache[0] || (_cache[0] = ($event) => toggleStep(0))
|
|
196
|
+
}, null, 8, [
|
|
197
|
+
"title",
|
|
198
|
+
"is-completed",
|
|
199
|
+
"is-active"
|
|
200
|
+
]), activeStepIndex.value === 0 ? (openBlock(), createElementBlock("div", {
|
|
201
|
+
key: 0,
|
|
202
|
+
class: normalizeClass(_ctx.$style.stepContent)
|
|
203
|
+
}, [createBaseVNode("ul", { class: normalizeClass(_ctx.$style.bulletPoints) }, [createBaseVNode("li", null, [createVNode(unref(N8nText_default), {
|
|
204
|
+
size: "small",
|
|
205
|
+
color: "text-base"
|
|
206
|
+
}, {
|
|
207
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.step1.item1")), 1)]),
|
|
208
|
+
_: 1
|
|
209
|
+
})]), createBaseVNode("li", null, [createVNode(unref(N8nText_default), {
|
|
210
|
+
size: "small",
|
|
211
|
+
color: "text-base"
|
|
212
|
+
}, {
|
|
213
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.step1.item2")), 1)]),
|
|
214
|
+
_: 1
|
|
215
|
+
})])], 2), createBaseVNode("div", { class: normalizeClass(_ctx.$style.actionButton) }, [createVNode(unref(N8nButton_default), {
|
|
216
|
+
size: "small",
|
|
217
|
+
type: "secondary",
|
|
218
|
+
onClick: _cache[1] || (_cache[1] = ($event) => navigateToWorkflow("addEvaluationTrigger"))
|
|
219
|
+
}, {
|
|
220
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.step1.button")), 1)]),
|
|
221
|
+
_: 1
|
|
222
|
+
})], 2)], 2)) : createCommentVNode("", true)], 2),
|
|
223
|
+
createBaseVNode("div", { class: normalizeClass([_ctx.$style.step, activeStepIndex.value === 1 ? _ctx.$style.active : ""]) }, [createVNode(StepHeader_default, {
|
|
224
|
+
"step-number": 2,
|
|
225
|
+
title: unref(locale).baseText("evaluations.setupWizard.step2.title"),
|
|
226
|
+
"is-completed": unref(evaluationStore).evaluationSetOutputsNodeExist,
|
|
227
|
+
"is-active": activeStepIndex.value === 1,
|
|
228
|
+
onClick: _cache[2] || (_cache[2] = ($event) => toggleStep(1))
|
|
229
|
+
}, null, 8, [
|
|
230
|
+
"title",
|
|
231
|
+
"is-completed",
|
|
232
|
+
"is-active"
|
|
233
|
+
]), activeStepIndex.value === 1 ? (openBlock(), createElementBlock("div", {
|
|
234
|
+
key: 0,
|
|
235
|
+
class: normalizeClass(_ctx.$style.stepContent)
|
|
236
|
+
}, [createBaseVNode("ul", { class: normalizeClass(_ctx.$style.bulletPoints) }, [createBaseVNode("li", null, [createVNode(unref(N8nText_default), {
|
|
237
|
+
size: "small",
|
|
238
|
+
color: "text-base"
|
|
239
|
+
}, {
|
|
240
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.step2.item1")), 1)]),
|
|
241
|
+
_: 1
|
|
242
|
+
})])], 2), createBaseVNode("div", { class: normalizeClass(_ctx.$style.actionButton) }, [createVNode(unref(N8nButton_default), {
|
|
243
|
+
size: "small",
|
|
244
|
+
type: "secondary",
|
|
245
|
+
onClick: _cache[3] || (_cache[3] = ($event) => navigateToWorkflow("addEvaluationNode"))
|
|
246
|
+
}, {
|
|
247
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.step2.button")), 1)]),
|
|
248
|
+
_: 1
|
|
249
|
+
})], 2)], 2)) : createCommentVNode("", true)], 2),
|
|
250
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.step) }, [createVNode(StepHeader_default, {
|
|
251
|
+
"step-number": 3,
|
|
252
|
+
title: unref(locale).baseText("evaluations.setupWizard.step3.title"),
|
|
253
|
+
"is-completed": unref(evaluationStore).evaluationSetMetricsNodeExist,
|
|
254
|
+
"is-active": activeStepIndex.value === 2,
|
|
255
|
+
"is-optional": true,
|
|
256
|
+
onClick: _cache[4] || (_cache[4] = ($event) => toggleStep(2))
|
|
257
|
+
}, null, 8, [
|
|
258
|
+
"title",
|
|
259
|
+
"is-completed",
|
|
260
|
+
"is-active"
|
|
261
|
+
]), activeStepIndex.value === 2 ? (openBlock(), createElementBlock("div", {
|
|
262
|
+
key: 0,
|
|
263
|
+
class: normalizeClass(_ctx.$style.stepContent)
|
|
264
|
+
}, [
|
|
265
|
+
!evaluationsQuotaExceeded.value ? (openBlock(), createElementBlock("ul", {
|
|
266
|
+
key: 0,
|
|
267
|
+
class: normalizeClass(_ctx.$style.bulletPoints)
|
|
268
|
+
}, [createBaseVNode("li", null, [createVNode(unref(N8nText_default), {
|
|
269
|
+
size: "small",
|
|
270
|
+
color: "text-base"
|
|
271
|
+
}, {
|
|
272
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.step3.item1")), 1)]),
|
|
273
|
+
_: 1
|
|
274
|
+
})]), createBaseVNode("li", null, [createVNode(unref(N8nText_default), {
|
|
275
|
+
size: "small",
|
|
276
|
+
color: "text-base"
|
|
277
|
+
}, {
|
|
278
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.step3.item2")), 1)]),
|
|
279
|
+
_: 1
|
|
280
|
+
})])], 2)) : (openBlock(), createBlock(unref(N8nCallout_default), {
|
|
281
|
+
key: 1,
|
|
282
|
+
theme: "warning",
|
|
283
|
+
iconless: ""
|
|
284
|
+
}, {
|
|
285
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.limitReached")), 1)]),
|
|
286
|
+
_: 1
|
|
287
|
+
})),
|
|
288
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.actionButton) }, [!evaluationsQuotaExceeded.value ? (openBlock(), createBlock(unref(N8nButton_default), {
|
|
289
|
+
key: 0,
|
|
290
|
+
size: "small",
|
|
291
|
+
type: "secondary",
|
|
292
|
+
onClick: _cache[5] || (_cache[5] = ($event) => navigateToWorkflow("addEvaluationNode"))
|
|
293
|
+
}, {
|
|
294
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.step3.button")), 1)]),
|
|
295
|
+
_: 1
|
|
296
|
+
})) : (openBlock(), createBlock(unref(N8nButton_default), {
|
|
297
|
+
key: 1,
|
|
298
|
+
size: "small",
|
|
299
|
+
onClick: onSeePlans
|
|
300
|
+
}, {
|
|
301
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("generic.seePlans")), 1)]),
|
|
302
|
+
_: 1
|
|
303
|
+
})), createVNode(unref(N8nButton_default), {
|
|
304
|
+
size: "small",
|
|
305
|
+
text: "",
|
|
306
|
+
style: { "color": "var(--color--text--tint-1)" },
|
|
307
|
+
onClick: _cache[6] || (_cache[6] = ($event) => toggleStep(3))
|
|
308
|
+
}, {
|
|
309
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.step3.skip")), 1)]),
|
|
310
|
+
_: 1
|
|
311
|
+
})], 2),
|
|
312
|
+
unref(usageStore).workflowsWithEvaluationsLimit !== -1 && evaluationsAvailable.value ? (openBlock(), createElementBlock("div", {
|
|
313
|
+
key: 2,
|
|
314
|
+
class: normalizeClass(_ctx.$style.quotaNote)
|
|
315
|
+
}, [createVNode(unref(N8nText_default), {
|
|
316
|
+
size: "xsmall",
|
|
317
|
+
color: "text-base"
|
|
318
|
+
}, {
|
|
319
|
+
default: withCtx(() => [createVNode(unref(I18nT), {
|
|
320
|
+
keypath: "evaluations.setupWizard.step3.notice",
|
|
321
|
+
scope: "global"
|
|
322
|
+
}, {
|
|
323
|
+
link: withCtx(() => [createBaseVNode("a", {
|
|
324
|
+
style: {
|
|
325
|
+
"text-decoration": "underline",
|
|
326
|
+
"color": "inherit"
|
|
327
|
+
},
|
|
328
|
+
onClick: onSeePlans
|
|
329
|
+
}, toDisplayString(unref(locale).baseText("evaluations.setupWizard.step3.notice.link")), 1)]),
|
|
330
|
+
_: 1
|
|
331
|
+
})]),
|
|
332
|
+
_: 1
|
|
333
|
+
})], 2)) : createCommentVNode("", true)
|
|
334
|
+
], 2)) : createCommentVNode("", true)], 2),
|
|
335
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.step) }, [createVNode(StepHeader_default, {
|
|
336
|
+
"step-number": 4,
|
|
337
|
+
title: unref(locale).baseText("evaluations.setupWizard.step4.title"),
|
|
338
|
+
"is-completed": false,
|
|
339
|
+
"is-active": activeStepIndex.value === 3,
|
|
340
|
+
onClick: _cache[9] || (_cache[9] = ($event) => toggleStep(3))
|
|
341
|
+
}, {
|
|
342
|
+
default: withCtx(() => [createBaseVNode("div", { class: normalizeClass([_ctx.$style.actionButton, _ctx.$style.actionButtonInline]) }, [unref(evaluationStore).evaluationSetMetricsNodeExist && !evaluationsQuotaExceeded.value ? (openBlock(), createBlock(unref(N8nButton_default), {
|
|
343
|
+
key: 0,
|
|
344
|
+
size: "medium",
|
|
345
|
+
type: "secondary",
|
|
346
|
+
disabled: !unref(evaluationStore).evaluationTriggerExists || !unref(evaluationStore).evaluationSetOutputsNodeExist && !unref(evaluationStore).evaluationSetMetricsNodeExist,
|
|
347
|
+
onClick: _cache[7] || (_cache[7] = ($event) => _ctx.$emit("runTest"))
|
|
348
|
+
}, {
|
|
349
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.step4.button")), 1)]),
|
|
350
|
+
_: 1
|
|
351
|
+
}, 8, ["disabled"])) : (openBlock(), createBlock(unref(N8nButton_default), {
|
|
352
|
+
key: 1,
|
|
353
|
+
size: "medium",
|
|
354
|
+
type: "secondary",
|
|
355
|
+
disabled: !unref(evaluationStore).evaluationTriggerExists || !unref(evaluationStore).evaluationSetOutputsNodeExist && !unref(evaluationStore).evaluationSetMetricsNodeExist,
|
|
356
|
+
onClick: _cache[8] || (_cache[8] = ($event) => navigateToWorkflow("executeEvaluation"))
|
|
357
|
+
}, {
|
|
358
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.step4.altButton")), 1)]),
|
|
359
|
+
_: 1
|
|
360
|
+
}, 8, ["disabled"]))], 2)]),
|
|
361
|
+
_: 1
|
|
362
|
+
}, 8, ["title", "is-active"])], 2)
|
|
363
|
+
], 2)], 2);
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
var SetupWizard_vue_vue_type_style_index_0_lang_module_default = {
|
|
368
|
+
container: "_container_7v9ik_123",
|
|
369
|
+
steps: "_steps_7v9ik_127",
|
|
370
|
+
step: "_step_7v9ik_127",
|
|
371
|
+
stepContent: "_stepContent_7v9ik_137",
|
|
372
|
+
slideDown: "_slideDown_7v9ik_1",
|
|
373
|
+
bulletPoints: "_bulletPoints_7v9ik_142",
|
|
374
|
+
actionButton: "_actionButton_7v9ik_149",
|
|
375
|
+
actionButtonInline: "_actionButtonInline_7v9ik_158",
|
|
376
|
+
quotaNote: "_quotaNote_7v9ik_162"
|
|
377
|
+
};
|
|
378
|
+
var SetupWizard_default = /* @__PURE__ */ __plugin_vue_export_helper_default(SetupWizard_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": SetupWizard_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
379
|
+
var EvaluationsRootView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
380
|
+
__name: "EvaluationsRootView",
|
|
381
|
+
props: { name: {} },
|
|
382
|
+
setup(__props) {
|
|
383
|
+
const props = __props;
|
|
384
|
+
const workflowsStore = useWorkflowsStore();
|
|
385
|
+
const usageStore = useUsageStore();
|
|
386
|
+
const evaluationStore = useEvaluationStore();
|
|
387
|
+
const nodeTypesStore = useNodeTypesStore();
|
|
388
|
+
const telemetry = useTelemetry();
|
|
389
|
+
const toast = useToast();
|
|
390
|
+
const locale = useI18n();
|
|
391
|
+
const route = useRoute();
|
|
392
|
+
const sourceControlStore = useSourceControlStore();
|
|
393
|
+
const { initializeWorkspace } = useCanvasOperations();
|
|
394
|
+
const evaluationsLicensed = computed(() => {
|
|
395
|
+
return usageStore.workflowsWithEvaluationsLimit !== 0;
|
|
396
|
+
});
|
|
397
|
+
const isProtectedEnvironment = computed(() => {
|
|
398
|
+
return sourceControlStore.preferences.branchReadOnly;
|
|
399
|
+
});
|
|
400
|
+
const runs = computed(() => {
|
|
401
|
+
return Object.values(evaluationStore.testRunsById ?? {}).filter(({ workflowId }) => workflowId === props.name);
|
|
402
|
+
});
|
|
403
|
+
const hasRuns = computed(() => {
|
|
404
|
+
return runs.value.length > 0;
|
|
405
|
+
});
|
|
406
|
+
const showWizard = computed(() => !hasRuns.value);
|
|
407
|
+
const isNewWorkflowRoute = computed(() => {
|
|
408
|
+
return route.query.new === "true";
|
|
409
|
+
});
|
|
410
|
+
async function runTest() {
|
|
411
|
+
try {
|
|
412
|
+
await evaluationStore.startTestRun(props.name);
|
|
413
|
+
} catch (error) {
|
|
414
|
+
toast.showError(error, locale.baseText("evaluation.listRuns.error.cantStartTestRun"));
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
try {
|
|
418
|
+
await evaluationStore.fetchTestRuns(props.name);
|
|
419
|
+
} catch (error) {
|
|
420
|
+
toast.showError(error, locale.baseText("evaluation.listRuns.error.cantFetchTestRuns"));
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
const evaluationsQuotaExceeded = computed(() => {
|
|
424
|
+
return usageStore.workflowsWithEvaluationsLimit !== -1 && usageStore.workflowsWithEvaluationsCount >= usageStore.workflowsWithEvaluationsLimit && !hasRuns.value;
|
|
425
|
+
});
|
|
426
|
+
const { isReady } = useAsyncState(async () => {
|
|
427
|
+
try {
|
|
428
|
+
await usageStore.getLicenseInfo();
|
|
429
|
+
await evaluationStore.fetchTestRuns(props.name);
|
|
430
|
+
} catch (error) {
|
|
431
|
+
toast.showError(error, locale.baseText("evaluation.listRuns.error.cantFetchTestRuns"));
|
|
432
|
+
}
|
|
433
|
+
const workflowId = props.name;
|
|
434
|
+
const isAlreadyInitialized = workflowsStore.workflow.id === workflowId;
|
|
435
|
+
if (isNewWorkflowRoute.value || isAlreadyInitialized) return;
|
|
436
|
+
if (!workflowsStore.workflowsById[workflowId]) try {
|
|
437
|
+
const data = await workflowsStore.fetchWorkflow(workflowId);
|
|
438
|
+
if (nodeTypesStore.allNodeTypes.length === 0) await nodeTypesStore.getNodeTypes();
|
|
439
|
+
await initializeWorkspace(data);
|
|
440
|
+
} catch (error) {
|
|
441
|
+
toast.showError(error, locale.baseText("nodeView.showError.openWorkflow.title"));
|
|
442
|
+
}
|
|
443
|
+
}, void 0);
|
|
444
|
+
watch(isReady, (ready) => {
|
|
445
|
+
if (ready) if (showWizard.value) telemetry.track("User viewed tests tab", {
|
|
446
|
+
workflow_id: props.name,
|
|
447
|
+
test_type: "evaluation",
|
|
448
|
+
view: "setup",
|
|
449
|
+
trigger_set_up: evaluationStore.evaluationTriggerExists,
|
|
450
|
+
output_set_up: evaluationStore.evaluationSetOutputsNodeExist,
|
|
451
|
+
metrics_set_up: evaluationStore.evaluationSetMetricsNodeExist,
|
|
452
|
+
quota_reached: evaluationsQuotaExceeded.value
|
|
453
|
+
});
|
|
454
|
+
else telemetry.track("User viewed tests tab", {
|
|
455
|
+
workflow_id: props.name,
|
|
456
|
+
test_type: "evaluation",
|
|
457
|
+
view: "overview",
|
|
458
|
+
run_count: runs.value.length
|
|
459
|
+
});
|
|
460
|
+
}, { immediate: true });
|
|
461
|
+
return (_ctx, _cache) => {
|
|
462
|
+
const _component_RouterView = resolveComponent("RouterView");
|
|
463
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(_ctx.$style.evaluationsView) }, [unref(isReady) && showWizard.value ? (openBlock(), createElementBlock("div", {
|
|
464
|
+
key: 0,
|
|
465
|
+
class: normalizeClass(_ctx.$style.setupContent)
|
|
466
|
+
}, [createBaseVNode("div", null, [createVNode(unref(N8nText_default), {
|
|
467
|
+
size: "large",
|
|
468
|
+
color: "text-dark",
|
|
469
|
+
tag: "h3",
|
|
470
|
+
bold: ""
|
|
471
|
+
}, {
|
|
472
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.title")), 1)]),
|
|
473
|
+
_: 1
|
|
474
|
+
}), createVNode(unref(N8nText_default), {
|
|
475
|
+
tag: "p",
|
|
476
|
+
size: "small",
|
|
477
|
+
color: "text-base",
|
|
478
|
+
class: normalizeClass(_ctx.$style.description)
|
|
479
|
+
}, {
|
|
480
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.description")) + " ", 1), createVNode(unref(N8nLink_default), {
|
|
481
|
+
size: "small",
|
|
482
|
+
href: unref(EVALUATIONS_DOCS_URL)
|
|
483
|
+
}, {
|
|
484
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.setupWizard.moreInfo")), 1)]),
|
|
485
|
+
_: 1
|
|
486
|
+
}, 8, ["href"])]),
|
|
487
|
+
_: 1
|
|
488
|
+
}, 8, ["class"])]), isProtectedEnvironment.value ? (openBlock(), createBlock(unref(N8nCallout_default), {
|
|
489
|
+
key: 0,
|
|
490
|
+
theme: "info",
|
|
491
|
+
icon: "info"
|
|
492
|
+
}, {
|
|
493
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("evaluations.readOnlyNotice")), 1)]),
|
|
494
|
+
_: 1
|
|
495
|
+
})) : (openBlock(), createElementBlock("div", {
|
|
496
|
+
key: 1,
|
|
497
|
+
class: normalizeClass(_ctx.$style.config)
|
|
498
|
+
}, [_cache[0] || (_cache[0] = createBaseVNode("iframe", {
|
|
499
|
+
style: { "min-width": "500px" },
|
|
500
|
+
width: "500",
|
|
501
|
+
height: "280",
|
|
502
|
+
src: "https://www.youtube.com/embed/5LlF196PKaE",
|
|
503
|
+
title: "n8n Evaluation quickstart",
|
|
504
|
+
frameborder: "0",
|
|
505
|
+
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
|
|
506
|
+
referrerpolicy: "strict-origin-when-cross-origin",
|
|
507
|
+
allowfullscreen: ""
|
|
508
|
+
}, null, -1)), evaluationsLicensed.value ? (openBlock(), createBlock(SetupWizard_default, {
|
|
509
|
+
key: 0,
|
|
510
|
+
onRunTest: runTest
|
|
511
|
+
})) : (openBlock(), createBlock(EvaluationsPaywall_default, { key: 1 }))], 2))], 2)) : unref(isReady) ? (openBlock(), createBlock(_component_RouterView, { key: 1 })) : createCommentVNode("", true)], 2);
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
var EvaluationsRootView_vue_vue_type_style_index_0_lang_module_default = {
|
|
516
|
+
evaluationsView: "_evaluationsView_3y4a8_123",
|
|
517
|
+
setupContent: "_setupContent_3y4a8_130",
|
|
518
|
+
description: "_description_3y4a8_139",
|
|
519
|
+
config: "_config_3y4a8_144",
|
|
520
|
+
setupDescription: "_setupDescription_3y4a8_150"
|
|
521
|
+
};
|
|
522
|
+
var EvaluationsRootView_default = /* @__PURE__ */ __plugin_vue_export_helper_default(EvaluationsRootView_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": EvaluationsRootView_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
523
|
+
export { EvaluationsRootView_default as default };
|