@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,549 @@
|
|
|
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, W as mergeProps, _t as watch, at as renderSlot, bt as withCtx, et as openBlock, j as createTextVNode, mt as useTemplateRef, vn as normalizeClass, w as createBaseVNode } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { b as useResizeObserver, p as useElementSize, rt as useI18n } from "./core-CRbPymLT.js";
|
|
3
|
+
import { bn as N8nText_default, ht as N8nTooltip_default, it as N8nActionToggle_default, vn as N8nHeading_default, xn as N8nButton_default, xt as N8nIconButton_default, y as N8nTabs_default } from "./src-jviYSG25.js";
|
|
4
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
5
|
+
import { $n as ProjectTypes, $o as VARIABLE_MODAL_KEY, Er as useUsersStore, Qn as useSourceControlStore, Zn as useProjectsStore, aa as useUIStore, k as useTelemetry, ms as useSettingsStore, y as useToast } from "./builder.store-Czk2ipDE.js";
|
|
6
|
+
import { _ as useRoute, v as useRouter } from "./get-BcEmeOxn.js";
|
|
7
|
+
import { Gr as PROJECT_DATA_TABLES, Oo as getResourcePermissions, Ro as VIEWS, yc as EnterpriseEditionFeature } from "./constants-C8OH4tTq.js";
|
|
8
|
+
import { t as useFoldersStore } from "./folders.store-yAFj-5Vl.js";
|
|
9
|
+
import { n as isIconOrEmoji, t as ProjectIcon_default } from "./ProjectIcon-DY8gGuHX.js";
|
|
10
|
+
import { n as useProjectPages, t as useReadyToRunStore } from "./readyToRun.store-YEMvPUqo.js";
|
|
11
|
+
function processDynamicTab(tab, projectId) {
|
|
12
|
+
if (!tab.dynamicRoute) return tab;
|
|
13
|
+
const tabRoute = { name: tab.dynamicRoute.name };
|
|
14
|
+
if (tab.dynamicRoute.includeProjectId && projectId) tabRoute.params = { projectId };
|
|
15
|
+
const { dynamicRoute,...tabWithoutDynamic } = tab;
|
|
16
|
+
return {
|
|
17
|
+
...tabWithoutDynamic,
|
|
18
|
+
to: tabRoute
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function processDynamicTabs(tabs, projectId) {
|
|
22
|
+
return tabs.map((tab) => processDynamicTab(tab, projectId));
|
|
23
|
+
}
|
|
24
|
+
var ProjectTabs_default = /* @__PURE__ */ defineComponent({
|
|
25
|
+
__name: "ProjectTabs",
|
|
26
|
+
props: {
|
|
27
|
+
showSettings: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false
|
|
30
|
+
},
|
|
31
|
+
showExecutions: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: true
|
|
34
|
+
},
|
|
35
|
+
pageType: { default: "project" },
|
|
36
|
+
additionalTabs: { default: () => [] }
|
|
37
|
+
},
|
|
38
|
+
setup(__props) {
|
|
39
|
+
const props = __props;
|
|
40
|
+
const locale = useI18n();
|
|
41
|
+
const route = useRoute();
|
|
42
|
+
const projectStore = useProjectsStore();
|
|
43
|
+
const telemetry = useTelemetry();
|
|
44
|
+
const selectedTab = ref("");
|
|
45
|
+
const selectedTabLabel = computed(() => selectedTab.value ? String(selectedTab.value) : "");
|
|
46
|
+
const projectId = computed(() => {
|
|
47
|
+
return Array.isArray(route?.params?.projectId) ? route.params.projectId[0] : route?.params?.projectId;
|
|
48
|
+
});
|
|
49
|
+
const isTeamProject = computed(() => projectStore.currentProject?.type === ProjectTypes.Team);
|
|
50
|
+
const getRouteConfigs = () => {
|
|
51
|
+
if (projectId.value) return {
|
|
52
|
+
workflows: {
|
|
53
|
+
name: VIEWS.PROJECTS_WORKFLOWS,
|
|
54
|
+
params: { projectId: projectId.value }
|
|
55
|
+
},
|
|
56
|
+
credentials: {
|
|
57
|
+
name: VIEWS.PROJECTS_CREDENTIALS,
|
|
58
|
+
params: { projectId: projectId.value }
|
|
59
|
+
},
|
|
60
|
+
executions: {
|
|
61
|
+
name: VIEWS.PROJECTS_EXECUTIONS,
|
|
62
|
+
params: { projectId: projectId.value }
|
|
63
|
+
},
|
|
64
|
+
variables: {
|
|
65
|
+
name: VIEWS.PROJECTS_VARIABLES,
|
|
66
|
+
params: { projectId: projectId.value }
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
if (props.pageType === "shared") return {
|
|
70
|
+
workflows: { name: VIEWS.SHARED_WORKFLOWS },
|
|
71
|
+
credentials: { name: VIEWS.SHARED_CREDENTIALS },
|
|
72
|
+
executions: { name: VIEWS.NOT_FOUND },
|
|
73
|
+
variables: { name: VIEWS.NOT_FOUND }
|
|
74
|
+
};
|
|
75
|
+
return {
|
|
76
|
+
workflows: { name: VIEWS.WORKFLOWS },
|
|
77
|
+
credentials: { name: VIEWS.CREDENTIALS },
|
|
78
|
+
executions: { name: VIEWS.EXECUTIONS },
|
|
79
|
+
variables: { name: VIEWS.HOME_VARIABLES }
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
const createTab = (label, routeKey, routes) => {
|
|
83
|
+
return {
|
|
84
|
+
label: locale.baseText(label),
|
|
85
|
+
value: routes[routeKey].name,
|
|
86
|
+
to: routes[routeKey]
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
const options = computed(() => {
|
|
90
|
+
const routes = getRouteConfigs();
|
|
91
|
+
const tabs = [createTab("mainSidebar.workflows", "workflows", routes), createTab("mainSidebar.credentials", "credentials", routes)];
|
|
92
|
+
if (props.showExecutions) tabs.push(createTab("mainSidebar.executions", "executions", routes));
|
|
93
|
+
if (props.pageType === "overview" || isTeamProject.value) tabs.push(createTab("mainSidebar.variables", "variables", routes));
|
|
94
|
+
if (props.additionalTabs?.length) {
|
|
95
|
+
const processedAdditionalTabs = processDynamicTabs(props.additionalTabs, projectId.value);
|
|
96
|
+
tabs.push(...processedAdditionalTabs);
|
|
97
|
+
}
|
|
98
|
+
if (props.showSettings) tabs.push({
|
|
99
|
+
label: locale.baseText("projects.settings"),
|
|
100
|
+
value: VIEWS.PROJECT_SETTINGS,
|
|
101
|
+
to: {
|
|
102
|
+
name: VIEWS.PROJECT_SETTINGS,
|
|
103
|
+
params: { projectId: projectId.value }
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
return tabs;
|
|
107
|
+
});
|
|
108
|
+
watch(() => route?.name, () => {
|
|
109
|
+
selectedTab.value = route.name === VIEWS.PROJECTS_FOLDERS ? VIEWS.PROJECTS_WORKFLOWS : route.name;
|
|
110
|
+
}, { immediate: true });
|
|
111
|
+
function onSelectTab(value) {
|
|
112
|
+
if (selectedTab.value === "variables") telemetry.track("User clicked project variables tab", { project_id: projectId.value });
|
|
113
|
+
selectedTab.value = value;
|
|
114
|
+
}
|
|
115
|
+
return (_ctx, _cache) => {
|
|
116
|
+
return openBlock(), createBlock(unref(N8nTabs_default), {
|
|
117
|
+
"model-value": selectedTabLabel.value,
|
|
118
|
+
options: options.value,
|
|
119
|
+
"data-test-id": "project-tabs",
|
|
120
|
+
"onUpdate:modelValue": onSelectTab
|
|
121
|
+
}, null, 8, ["model-value", "options"]);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
var ProjectCreateResource_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
126
|
+
__name: "ProjectCreateResource",
|
|
127
|
+
props: {
|
|
128
|
+
actions: {},
|
|
129
|
+
disabled: { type: Boolean },
|
|
130
|
+
type: {}
|
|
131
|
+
},
|
|
132
|
+
emits: ["action"],
|
|
133
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
134
|
+
const emit = __emit;
|
|
135
|
+
const actionToggleRef = useTemplateRef("actionToggleRef");
|
|
136
|
+
__expose({ openActionToggle: (isOpen) => actionToggleRef.value?.openActionToggle(isOpen) });
|
|
137
|
+
return (_ctx, _cache) => {
|
|
138
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass([_ctx.$style.buttonGroup]) }, [renderSlot(_ctx.$slots, "default"), createVNode(unref(N8nActionToggle_default), {
|
|
139
|
+
ref_key: "actionToggleRef",
|
|
140
|
+
ref: actionToggleRef,
|
|
141
|
+
"data-test-id": "add-resource",
|
|
142
|
+
actions: _ctx.actions,
|
|
143
|
+
placement: "bottom-end",
|
|
144
|
+
teleported: false,
|
|
145
|
+
onAction: _cache[0] || (_cache[0] = ($event) => emit("action", $event))
|
|
146
|
+
}, {
|
|
147
|
+
default: withCtx(() => [createVNode(unref(N8nIconButton_default), {
|
|
148
|
+
disabled: _ctx.disabled,
|
|
149
|
+
class: normalizeClass([_ctx.$style.buttonGroupDropdown]),
|
|
150
|
+
icon: "chevron-down",
|
|
151
|
+
type: _ctx.type ?? "primary"
|
|
152
|
+
}, null, 8, [
|
|
153
|
+
"disabled",
|
|
154
|
+
"class",
|
|
155
|
+
"type"
|
|
156
|
+
])]),
|
|
157
|
+
_: 1
|
|
158
|
+
}, 8, ["actions"])], 2);
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
var ProjectCreateResource_vue_vue_type_style_index_0_lang_module_default = {
|
|
163
|
+
buttonGroup: "_buttonGroup_1ofs3_123",
|
|
164
|
+
buttonGroupDropdown: "_buttonGroupDropdown_1ofs3_137"
|
|
165
|
+
};
|
|
166
|
+
var ProjectCreateResource_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ProjectCreateResource_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": ProjectCreateResource_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
167
|
+
const truncateTextToFitWidth = (text, availableWidth, fontSizeInPixels) => {
|
|
168
|
+
if (!text || availableWidth <= 0) return "";
|
|
169
|
+
const averageCharWidth = .55 * fontSizeInPixels;
|
|
170
|
+
const maxLengthToDisplay = Math.floor(availableWidth / averageCharWidth);
|
|
171
|
+
if (text.length <= maxLengthToDisplay) return "";
|
|
172
|
+
const truncated = text.slice(0, maxLengthToDisplay);
|
|
173
|
+
const lastSpaceIndex = truncated.lastIndexOf(" ");
|
|
174
|
+
return truncated.slice(0, lastSpaceIndex === -1 ? maxLengthToDisplay : lastSpaceIndex) + "...";
|
|
175
|
+
};
|
|
176
|
+
var ReadyToRunButton_default = /* @__PURE__ */ defineComponent({
|
|
177
|
+
__name: "ReadyToRunButton",
|
|
178
|
+
props: { hasActiveCallouts: { type: Boolean } },
|
|
179
|
+
setup(__props) {
|
|
180
|
+
const props = __props;
|
|
181
|
+
const route = useRoute();
|
|
182
|
+
const i18n = useI18n();
|
|
183
|
+
const toast = useToast();
|
|
184
|
+
const projectPages = useProjectPages();
|
|
185
|
+
const projectsStore = useProjectsStore();
|
|
186
|
+
const sourceControlStore = useSourceControlStore();
|
|
187
|
+
const foldersStore = useFoldersStore();
|
|
188
|
+
const readyToRunStore = useReadyToRunStore();
|
|
189
|
+
const projectPermissions = computed(() => {
|
|
190
|
+
return getResourcePermissions(projectsStore.currentProject?.scopes ?? projectsStore.personalProject?.scopes);
|
|
191
|
+
});
|
|
192
|
+
const showButton = computed(() => {
|
|
193
|
+
return readyToRunStore.getButtonVisibility(foldersStore.totalWorkflowCount > 0, projectPermissions.value.workflow.create, sourceControlStore.preferences.branchReadOnly) && !props.hasActiveCallouts;
|
|
194
|
+
});
|
|
195
|
+
const handleClick = async () => {
|
|
196
|
+
const projectId = projectPages.isOverviewSubPage ? projectsStore.personalProject?.id : route.params.projectId;
|
|
197
|
+
try {
|
|
198
|
+
await readyToRunStore.claimCreditsAndOpenWorkflow("button", route.params.folderId, projectId);
|
|
199
|
+
} catch (error) {
|
|
200
|
+
toast.showError(error, i18n.baseText("generic.error"));
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
return (_ctx, _cache) => {
|
|
204
|
+
return showButton.value ? (openBlock(), createBlock(unref(N8nButton_default), {
|
|
205
|
+
key: 0,
|
|
206
|
+
"data-test-id": "ready-to-run-button",
|
|
207
|
+
type: "secondary",
|
|
208
|
+
icon: "sparkles",
|
|
209
|
+
loading: unref(readyToRunStore).claimingCredits,
|
|
210
|
+
disabled: unref(sourceControlStore).preferences.branchReadOnly || unref(readyToRunStore).claimingCredits,
|
|
211
|
+
onClick: handleClick
|
|
212
|
+
}, {
|
|
213
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(i18n).baseText("workflows.empty.readyToRun")), 1)]),
|
|
214
|
+
_: 1
|
|
215
|
+
}, 8, ["loading", "disabled"])) : createCommentVNode("", true);
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
var _hoisted_1 = { style: {
|
|
220
|
+
"display": "flex",
|
|
221
|
+
"gap": "var(--spacing--xs)",
|
|
222
|
+
"align-items": "center"
|
|
223
|
+
} };
|
|
224
|
+
var ProjectHeader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
225
|
+
__name: "ProjectHeader",
|
|
226
|
+
props: {
|
|
227
|
+
hasActiveCallouts: { type: Boolean },
|
|
228
|
+
mainButton: {}
|
|
229
|
+
},
|
|
230
|
+
emits: ["createFolder"],
|
|
231
|
+
setup(__props, { emit: __emit }) {
|
|
232
|
+
const route = useRoute();
|
|
233
|
+
const router = useRouter();
|
|
234
|
+
const i18n = useI18n();
|
|
235
|
+
const projectsStore = useProjectsStore();
|
|
236
|
+
const sourceControlStore = useSourceControlStore();
|
|
237
|
+
const settingsStore = useSettingsStore();
|
|
238
|
+
const uiStore = useUIStore();
|
|
239
|
+
const telemetry = useTelemetry();
|
|
240
|
+
const usersStore = useUsersStore();
|
|
241
|
+
const projectPages = useProjectPages();
|
|
242
|
+
const props = __props;
|
|
243
|
+
const emit = __emit;
|
|
244
|
+
const headerIcon = computed(() => {
|
|
245
|
+
if (projectsStore.currentProject?.type === ProjectTypes.Personal) return {
|
|
246
|
+
type: "icon",
|
|
247
|
+
value: "user"
|
|
248
|
+
};
|
|
249
|
+
else if (projectsStore.currentProject?.name) return isIconOrEmoji(projectsStore.currentProject.icon) ? projectsStore.currentProject.icon : {
|
|
250
|
+
type: "icon",
|
|
251
|
+
value: "layers"
|
|
252
|
+
};
|
|
253
|
+
else return {
|
|
254
|
+
type: "icon",
|
|
255
|
+
value: "house"
|
|
256
|
+
};
|
|
257
|
+
});
|
|
258
|
+
const homeProject = computed(() => projectsStore.currentProject ?? projectsStore.personalProject);
|
|
259
|
+
const isPersonalProject = computed(() => {
|
|
260
|
+
return homeProject.value?.type === ProjectTypes.Personal;
|
|
261
|
+
});
|
|
262
|
+
const projectName = computed(() => {
|
|
263
|
+
if (!projectsStore.currentProject) {
|
|
264
|
+
if (projectPages.isSharedSubPage) return i18n.baseText("projects.header.shared.title");
|
|
265
|
+
else if (projectPages.isOverviewSubPage) return i18n.baseText("projects.menu.overview");
|
|
266
|
+
else if (isPersonalProject.value) return i18n.baseText("projects.menu.personal");
|
|
267
|
+
return null;
|
|
268
|
+
} else if (projectsStore.currentProject.type === ProjectTypes.Personal) return i18n.baseText("projects.menu.personal");
|
|
269
|
+
else return projectsStore.currentProject.name;
|
|
270
|
+
});
|
|
271
|
+
const projectPermissions = computed(() => getResourcePermissions(projectsStore.currentProject?.scopes).project);
|
|
272
|
+
const projectVariablePermissions = computed(() => getResourcePermissions(projectsStore.currentProject?.scopes).projectVariable);
|
|
273
|
+
const globalVariablesPermissions = computed(() => getResourcePermissions(usersStore.currentUser?.globalScopes).variable);
|
|
274
|
+
const showSettings = computed(() => !!route?.params?.projectId && !!projectPermissions.value.update && projectsStore.currentProject?.type === ProjectTypes.Team);
|
|
275
|
+
const showFolders = computed(() => {
|
|
276
|
+
return settingsStore.isFoldersFeatureEnabled && [VIEWS.PROJECTS_WORKFLOWS, VIEWS.PROJECTS_FOLDERS].includes(route.name);
|
|
277
|
+
});
|
|
278
|
+
const customProjectTabs = computed(() => {
|
|
279
|
+
let tabType;
|
|
280
|
+
if (projectPages.isSharedSubPage) tabType = "shared";
|
|
281
|
+
else if (projectPages.isOverviewSubPage) tabType = "overview";
|
|
282
|
+
else tabType = "project";
|
|
283
|
+
return Object.keys(uiStore.moduleTabs[tabType]).filter(settingsStore.isModuleActive).flatMap((module) => uiStore.moduleTabs[tabType][module]);
|
|
284
|
+
});
|
|
285
|
+
const ACTION_TYPES = {
|
|
286
|
+
WORKFLOW: "workflow",
|
|
287
|
+
CREDENTIAL: "credential",
|
|
288
|
+
FOLDER: "folder",
|
|
289
|
+
DATA_TABLE: "dataTable",
|
|
290
|
+
VARIABLE: "variable"
|
|
291
|
+
};
|
|
292
|
+
const createWorkflowButton = computed(() => ({
|
|
293
|
+
value: ACTION_TYPES.WORKFLOW,
|
|
294
|
+
label: i18n.baseText("projects.header.create.workflow"),
|
|
295
|
+
icon: sourceControlStore.preferences.branchReadOnly ? "lock" : void 0,
|
|
296
|
+
size: "mini",
|
|
297
|
+
disabled: sourceControlStore.preferences.branchReadOnly || !getResourcePermissions(homeProject.value?.scopes).workflow.create
|
|
298
|
+
}));
|
|
299
|
+
const createCredentialButton = computed(() => ({
|
|
300
|
+
value: ACTION_TYPES.CREDENTIAL,
|
|
301
|
+
label: i18n.baseText("projects.header.create.credential"),
|
|
302
|
+
icon: sourceControlStore.preferences.branchReadOnly ? "lock" : void 0,
|
|
303
|
+
size: "mini",
|
|
304
|
+
disabled: sourceControlStore.preferences.branchReadOnly || !getResourcePermissions(homeProject.value?.scopes).credential.create
|
|
305
|
+
}));
|
|
306
|
+
const createDataTableButton = computed(() => ({
|
|
307
|
+
value: ACTION_TYPES.DATA_TABLE,
|
|
308
|
+
label: i18n.baseText("dataTable.add.button.label"),
|
|
309
|
+
icon: sourceControlStore.preferences.branchReadOnly ? "lock" : void 0,
|
|
310
|
+
size: "mini",
|
|
311
|
+
disabled: sourceControlStore.preferences.branchReadOnly || !getResourcePermissions(homeProject.value?.scopes)?.dataTable?.create
|
|
312
|
+
}));
|
|
313
|
+
const createVariableButton = computed(() => ({
|
|
314
|
+
value: ACTION_TYPES.VARIABLE,
|
|
315
|
+
label: i18n.baseText("variables.add.button.label"),
|
|
316
|
+
icon: sourceControlStore.preferences.branchReadOnly ? "lock" : void 0,
|
|
317
|
+
size: "mini",
|
|
318
|
+
disabled: sourceControlStore.preferences.branchReadOnly || !projectVariablePermissions.value.create && !globalVariablesPermissions.value.create
|
|
319
|
+
}));
|
|
320
|
+
const selectedMainButtonType = computed(() => props.mainButton ?? ACTION_TYPES.WORKFLOW);
|
|
321
|
+
const mainButtonConfig = computed(() => {
|
|
322
|
+
switch (selectedMainButtonType.value) {
|
|
323
|
+
case ACTION_TYPES.CREDENTIAL: return createCredentialButton.value;
|
|
324
|
+
case ACTION_TYPES.DATA_TABLE: return createDataTableButton.value;
|
|
325
|
+
case ACTION_TYPES.VARIABLE: return createVariableButton.value;
|
|
326
|
+
case ACTION_TYPES.WORKFLOW:
|
|
327
|
+
default: return createWorkflowButton.value;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
const menu = computed(() => {
|
|
331
|
+
const items = [];
|
|
332
|
+
if (selectedMainButtonType.value !== ACTION_TYPES.WORKFLOW) items.push({
|
|
333
|
+
value: ACTION_TYPES.WORKFLOW,
|
|
334
|
+
label: i18n.baseText("projects.header.create.workflow"),
|
|
335
|
+
disabled: sourceControlStore.preferences.branchReadOnly || !getResourcePermissions(homeProject.value?.scopes).workflow.create
|
|
336
|
+
});
|
|
337
|
+
if (selectedMainButtonType.value !== ACTION_TYPES.CREDENTIAL) items.push({
|
|
338
|
+
value: ACTION_TYPES.CREDENTIAL,
|
|
339
|
+
label: i18n.baseText("projects.header.create.credential"),
|
|
340
|
+
disabled: sourceControlStore.preferences.branchReadOnly || !getResourcePermissions(homeProject.value?.scopes).credential.create
|
|
341
|
+
});
|
|
342
|
+
if (selectedMainButtonType.value !== ACTION_TYPES.VARIABLE && settingsStore.isEnterpriseFeatureEnabled[EnterpriseEditionFeature.Variables]) items.push({
|
|
343
|
+
value: ACTION_TYPES.VARIABLE,
|
|
344
|
+
label: i18n.baseText("variables.add.button.label"),
|
|
345
|
+
disabled: sourceControlStore.preferences.branchReadOnly || !getResourcePermissions(homeProject.value?.scopes).projectVariable.create
|
|
346
|
+
});
|
|
347
|
+
if (showFolders.value) items.push({
|
|
348
|
+
value: ACTION_TYPES.FOLDER,
|
|
349
|
+
label: i18n.baseText("projects.header.create.folder"),
|
|
350
|
+
disabled: sourceControlStore.preferences.branchReadOnly || !getResourcePermissions(homeProject.value?.scopes).folder.create
|
|
351
|
+
});
|
|
352
|
+
if (settingsStore.isDataTableFeatureEnabled && selectedMainButtonType.value !== ACTION_TYPES.DATA_TABLE) items.push({
|
|
353
|
+
value: ACTION_TYPES.DATA_TABLE,
|
|
354
|
+
label: i18n.baseText("dataTable.add.button.label"),
|
|
355
|
+
disabled: sourceControlStore.preferences.branchReadOnly || !getResourcePermissions(homeProject.value?.scopes)?.dataTable?.create
|
|
356
|
+
});
|
|
357
|
+
return items;
|
|
358
|
+
});
|
|
359
|
+
const showProjectIcon = computed(() => {
|
|
360
|
+
return !projectPages.isOverviewSubPage && !projectPages.isSharedSubPage && !isPersonalProject.value;
|
|
361
|
+
});
|
|
362
|
+
function isCredentialsListView(routeName) {
|
|
363
|
+
return [
|
|
364
|
+
VIEWS.PROJECTS_CREDENTIALS,
|
|
365
|
+
VIEWS.CREDENTIALS,
|
|
366
|
+
VIEWS.SHARED_CREDENTIALS
|
|
367
|
+
].includes(routeName);
|
|
368
|
+
}
|
|
369
|
+
function isWorkflowListView(routeName) {
|
|
370
|
+
return [
|
|
371
|
+
VIEWS.PROJECTS_WORKFLOWS,
|
|
372
|
+
VIEWS.WORKFLOWS,
|
|
373
|
+
VIEWS.SHARED_WORKFLOWS,
|
|
374
|
+
VIEWS.PROJECTS_FOLDERS
|
|
375
|
+
].includes(routeName);
|
|
376
|
+
}
|
|
377
|
+
function getUIContext(routeName) {
|
|
378
|
+
if (isCredentialsListView(routeName)) return "credentials_list";
|
|
379
|
+
else if (isWorkflowListView(routeName)) return "workflow_list";
|
|
380
|
+
else return;
|
|
381
|
+
}
|
|
382
|
+
const actions$1 = {
|
|
383
|
+
[ACTION_TYPES.WORKFLOW]: (projectId) => {
|
|
384
|
+
router.push({
|
|
385
|
+
name: VIEWS.NEW_WORKFLOW,
|
|
386
|
+
query: {
|
|
387
|
+
projectId,
|
|
388
|
+
parentFolderId: route.params.folderId,
|
|
389
|
+
uiContext: getUIContext(route.name?.toString() ?? "")
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
},
|
|
393
|
+
[ACTION_TYPES.CREDENTIAL]: (projectId) => {
|
|
394
|
+
router.push({
|
|
395
|
+
name: VIEWS.PROJECTS_CREDENTIALS,
|
|
396
|
+
params: {
|
|
397
|
+
projectId,
|
|
398
|
+
credentialId: "create"
|
|
399
|
+
},
|
|
400
|
+
query: { uiContext: getUIContext(route.name?.toString() ?? "") }
|
|
401
|
+
});
|
|
402
|
+
},
|
|
403
|
+
[ACTION_TYPES.FOLDER]: () => {
|
|
404
|
+
emit("createFolder");
|
|
405
|
+
},
|
|
406
|
+
[ACTION_TYPES.DATA_TABLE]: (projectId) => {
|
|
407
|
+
router.push({
|
|
408
|
+
name: PROJECT_DATA_TABLES,
|
|
409
|
+
params: {
|
|
410
|
+
projectId,
|
|
411
|
+
new: "new"
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
},
|
|
415
|
+
[ACTION_TYPES.VARIABLE]: () => {
|
|
416
|
+
uiStore.openModalWithData({
|
|
417
|
+
name: VARIABLE_MODAL_KEY,
|
|
418
|
+
data: { mode: "new" }
|
|
419
|
+
});
|
|
420
|
+
telemetry.track("User clicked header add variable button");
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
const pageType = computed(() => {
|
|
424
|
+
if (projectPages.isSharedSubPage) return "shared";
|
|
425
|
+
else if (projectPages.isOverviewSubPage) return "overview";
|
|
426
|
+
else return "project";
|
|
427
|
+
});
|
|
428
|
+
const sectionDescription = computed(() => {
|
|
429
|
+
if (projectPages.isSharedSubPage) return i18n.baseText("projects.header.shared.subtitle");
|
|
430
|
+
else if (projectPages.isOverviewSubPage) return i18n.baseText(settingsStore.isDataTableFeatureEnabled ? "projects.header.overview.subtitleWithDataTables" : "projects.header.overview.subtitle");
|
|
431
|
+
else if (isPersonalProject.value) return i18n.baseText(settingsStore.isDataTableFeatureEnabled ? "projects.header.personal.subtitleWithDataTables" : "projects.header.personal.subtitle");
|
|
432
|
+
return null;
|
|
433
|
+
});
|
|
434
|
+
const projectDescription = computed(() => {
|
|
435
|
+
if (projectPages.isProjectsSubPage) return projectsStore.currentProject?.description;
|
|
436
|
+
return null;
|
|
437
|
+
});
|
|
438
|
+
const projectHeaderRef = ref(null);
|
|
439
|
+
const { width: projectHeaderWidth } = useElementSize(projectHeaderRef);
|
|
440
|
+
const headerActionsRef = ref(null);
|
|
441
|
+
const { width: headerActionsWidth } = useElementSize(headerActionsRef);
|
|
442
|
+
const projectSubtitleFontSizeInPxs = ref(null);
|
|
443
|
+
useResizeObserver(projectHeaderRef, () => {
|
|
444
|
+
if (!projectHeaderRef.value) return;
|
|
445
|
+
const projectSubtitleEl = projectHeaderRef.value.querySelector("span[data-test-id=\"project-subtitle\"]");
|
|
446
|
+
if (projectSubtitleEl) {
|
|
447
|
+
const computedStyle = window.getComputedStyle(projectSubtitleEl);
|
|
448
|
+
projectSubtitleFontSizeInPxs.value = parseFloat(computedStyle.fontSize);
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
|
+
const projectDescriptionTruncated = computed(() => {
|
|
452
|
+
if (!projectDescription.value) return "";
|
|
453
|
+
const availableTextWidth = projectHeaderWidth.value - headerActionsWidth.value;
|
|
454
|
+
const fontSizeInPixels = projectSubtitleFontSizeInPxs.value ?? 14;
|
|
455
|
+
return truncateTextToFitWidth(projectDescription.value, availableTextWidth, fontSizeInPixels);
|
|
456
|
+
});
|
|
457
|
+
const onSelect = (action) => {
|
|
458
|
+
const executableAction = actions$1[action];
|
|
459
|
+
if (!homeProject.value) return;
|
|
460
|
+
executableAction(homeProject.value.id);
|
|
461
|
+
};
|
|
462
|
+
return (_ctx, _cache) => {
|
|
463
|
+
return openBlock(), createElementBlock("div", null, [
|
|
464
|
+
createBaseVNode("div", {
|
|
465
|
+
ref_key: "projectHeaderRef",
|
|
466
|
+
ref: projectHeaderRef,
|
|
467
|
+
class: normalizeClass(_ctx.$style.projectHeader)
|
|
468
|
+
}, [createBaseVNode("div", { class: normalizeClass(_ctx.$style.projectDetails) }, [showProjectIcon.value ? (openBlock(), createBlock(ProjectIcon_default, {
|
|
469
|
+
key: 0,
|
|
470
|
+
icon: headerIcon.value,
|
|
471
|
+
"border-less": true,
|
|
472
|
+
size: "medium"
|
|
473
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true), createBaseVNode("div", { class: normalizeClass(_ctx.$style.headerActions) }, [projectName.value ? (openBlock(), createBlock(unref(N8nHeading_default), {
|
|
474
|
+
key: 0,
|
|
475
|
+
bold: "",
|
|
476
|
+
tag: "h2",
|
|
477
|
+
size: "xlarge",
|
|
478
|
+
"data-test-id": "project-name"
|
|
479
|
+
}, {
|
|
480
|
+
default: withCtx(() => [createTextVNode(toDisplayString(projectName.value), 1)]),
|
|
481
|
+
_: 1
|
|
482
|
+
})) : createCommentVNode("", true), sectionDescription.value ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
483
|
+
key: 1,
|
|
484
|
+
color: "text-light",
|
|
485
|
+
"data-test-id": "project-subtitle"
|
|
486
|
+
}, {
|
|
487
|
+
default: withCtx(() => [createTextVNode(toDisplayString(sectionDescription.value), 1)]),
|
|
488
|
+
_: 1
|
|
489
|
+
})) : projectDescription.value ? (openBlock(), createElementBlock("div", {
|
|
490
|
+
key: 2,
|
|
491
|
+
class: normalizeClass(_ctx.$style.projectDescriptionWrapper)
|
|
492
|
+
}, [createVNode(unref(N8nText_default), {
|
|
493
|
+
color: "text-light",
|
|
494
|
+
"data-test-id": "project-subtitle"
|
|
495
|
+
}, {
|
|
496
|
+
default: withCtx(() => [createTextVNode(toDisplayString(projectDescriptionTruncated.value || projectDescription.value), 1)]),
|
|
497
|
+
_: 1
|
|
498
|
+
}), projectDescriptionTruncated.value ? (openBlock(), createElementBlock("div", {
|
|
499
|
+
key: 0,
|
|
500
|
+
class: normalizeClass(_ctx.$style.tooltip)
|
|
501
|
+
}, [createVNode(unref(N8nText_default), { color: "text-light" }, {
|
|
502
|
+
default: withCtx(() => [createTextVNode(toDisplayString(projectDescription.value), 1)]),
|
|
503
|
+
_: 1
|
|
504
|
+
})], 2)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)], 2)], 2), unref(route).name !== unref(VIEWS).PROJECT_SETTINGS ? (openBlock(), createElementBlock("div", {
|
|
505
|
+
key: 0,
|
|
506
|
+
ref_key: "headerActionsRef",
|
|
507
|
+
ref: headerActionsRef,
|
|
508
|
+
class: normalizeClass([_ctx.$style.headerActions])
|
|
509
|
+
}, [createVNode(unref(N8nTooltip_default), {
|
|
510
|
+
disabled: !unref(sourceControlStore).preferences.branchReadOnly,
|
|
511
|
+
content: unref(i18n).baseText("readOnlyEnv.cantAdd.any")
|
|
512
|
+
}, {
|
|
513
|
+
default: withCtx(() => [createBaseVNode("div", _hoisted_1, [createVNode(ReadyToRunButton_default, { "has-active-callouts": props.hasActiveCallouts }, null, 8, ["has-active-callouts"]), createVNode(ProjectCreateResource_default, {
|
|
514
|
+
"data-test-id": "add-resource-buttons",
|
|
515
|
+
actions: menu.value,
|
|
516
|
+
disabled: unref(sourceControlStore).preferences.branchReadOnly,
|
|
517
|
+
onAction: onSelect
|
|
518
|
+
}, {
|
|
519
|
+
default: withCtx(() => [createVNode(unref(N8nButton_default), mergeProps({ "data-test-id": `add-resource-${selectedMainButtonType.value}` }, mainButtonConfig.value, { onClick: _cache[0] || (_cache[0] = ($event) => onSelect(selectedMainButtonType.value)) }), null, 16, ["data-test-id"])]),
|
|
520
|
+
_: 1
|
|
521
|
+
}, 8, ["actions", "disabled"])])]),
|
|
522
|
+
_: 1
|
|
523
|
+
}, 8, ["disabled", "content"])], 2)) : createCommentVNode("", true)], 2),
|
|
524
|
+
renderSlot(_ctx.$slots, "default"),
|
|
525
|
+
createBaseVNode("div", { class: normalizeClass(_ctx.$style.actions) }, [createVNode(ProjectTabs_default, {
|
|
526
|
+
"page-type": pageType.value,
|
|
527
|
+
"show-executions": !unref(projectPages).isSharedSubPage,
|
|
528
|
+
"show-settings": showSettings.value,
|
|
529
|
+
"additional-tabs": customProjectTabs.value
|
|
530
|
+
}, null, 8, [
|
|
531
|
+
"page-type",
|
|
532
|
+
"show-executions",
|
|
533
|
+
"show-settings",
|
|
534
|
+
"additional-tabs"
|
|
535
|
+
])], 2)
|
|
536
|
+
]);
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
var ProjectHeader_vue_vue_type_style_index_0_lang_module_default = {
|
|
541
|
+
projectHeader: "_projectHeader_sx5k1_123",
|
|
542
|
+
projectDetails: "_projectDetails_sx5k1_130",
|
|
543
|
+
actions: "_actions_sx5k1_135",
|
|
544
|
+
projectDescriptionWrapper: "_projectDescriptionWrapper_sx5k1_139",
|
|
545
|
+
tooltip: "_tooltip_sx5k1_143",
|
|
546
|
+
headerActions: "_headerActions_sx5k1_166"
|
|
547
|
+
};
|
|
548
|
+
var ProjectHeader_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ProjectHeader_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": ProjectHeader_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
549
|
+
export { ProjectHeader_default as t };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Cn as toDisplayString, D as createElementBlock, E as createCommentVNode, Gt as unref, P as defineComponent, T as createBlock, bt as withCtx, et as openBlock, j as createTextVNode, vn as normalizeClass } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
+
import { Cn as N8nIcon_default, bn as N8nText_default } from "./src-jviYSG25.js";
|
|
3
|
+
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
4
|
+
function isIconOrEmoji(icon$1) {
|
|
5
|
+
return typeof icon$1 === "object" && icon$1 !== null && "type" in icon$1 && (icon$1.type === "icon" || icon$1.type === "emoji") && "value" in icon$1 && typeof icon$1.value === "string";
|
|
6
|
+
}
|
|
7
|
+
var ProjectIcon_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "ProjectIcon",
|
|
9
|
+
props: {
|
|
10
|
+
icon: {},
|
|
11
|
+
size: { default: "medium" },
|
|
12
|
+
round: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false
|
|
15
|
+
},
|
|
16
|
+
borderLess: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false
|
|
19
|
+
},
|
|
20
|
+
color: { default: "text-base" }
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass([
|
|
26
|
+
_ctx.$style.container,
|
|
27
|
+
_ctx.$style[props.size],
|
|
28
|
+
{
|
|
29
|
+
[_ctx.$style.round]: props.round,
|
|
30
|
+
[_ctx.$style.borderless]: props.borderLess
|
|
31
|
+
}
|
|
32
|
+
]) }, [_ctx.icon.type === "icon" ? (openBlock(), createBlock(unref(N8nIcon_default), {
|
|
33
|
+
key: 0,
|
|
34
|
+
icon: _ctx.icon.value,
|
|
35
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
36
|
+
color: _ctx.color
|
|
37
|
+
}, null, 8, [
|
|
38
|
+
"icon",
|
|
39
|
+
"class",
|
|
40
|
+
"color"
|
|
41
|
+
])) : _ctx.icon.type === "emoji" ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
42
|
+
key: 1,
|
|
43
|
+
color: "text-light",
|
|
44
|
+
class: normalizeClass(_ctx.$style.emoji)
|
|
45
|
+
}, {
|
|
46
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.icon.value), 1)]),
|
|
47
|
+
_: 1
|
|
48
|
+
}, 8, ["class"])) : createCommentVNode("", true)], 2);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
var ProjectIcon_vue_vue_type_style_index_0_lang_module_default = {
|
|
53
|
+
container: "_container_kzol1_123",
|
|
54
|
+
round: "_round_kzol1_130",
|
|
55
|
+
borderless: "_borderless_kzol1_133",
|
|
56
|
+
mini: "_mini_kzol1_137",
|
|
57
|
+
icon: "_icon_kzol1_141",
|
|
58
|
+
emoji: "_emoji_kzol1_144",
|
|
59
|
+
small: "_small_kzol1_148",
|
|
60
|
+
medium: "_medium_kzol1_156",
|
|
61
|
+
large: "_large_kzol1_164"
|
|
62
|
+
};
|
|
63
|
+
var ProjectIcon_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ProjectIcon_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": ProjectIcon_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
64
|
+
export { isIconOrEmoji as n, ProjectIcon_default as t };
|