n8n-editor-ui 1.106.3 → 1.107.1
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/dist/assets/AddDataStoreModal-D3j8deoq.css +133 -0
- package/dist/assets/AddDataStoreModal-DnuHX1S2.js +108 -0
- package/dist/assets/{AnimatedSpinner-D3ljAc96.js → AnimatedSpinner-6v6irDSW.js} +1 -1
- package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-BnwFrfgh.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-ozlwYXWj.js} +1 -1
- package/dist/assets/{AuthView-Ku2373Sr.js → AuthView-BJQzJmO7.js} +9 -9
- package/dist/assets/{AuthView-DZB9HITQ.css → AuthView-CWVio_MZ.css} +9 -9
- package/dist/assets/{ChangePasswordView-Skwn2QGk.js → ChangePasswordView-AJr06gB_.js} +3 -3
- package/dist/assets/CollectionParameter-78DalTOi.js +4 -0
- package/dist/assets/{ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-BNkO3XxQ.js → ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-BW0CieDo.js} +1 -1
- package/dist/assets/{CredentialsView-C6V_m3u-.js → CredentialsView-CXub2k-f.js} +8 -8
- package/dist/assets/{DataStoreView-5Dr8wZrK.js → DataStoreView-CM5VvI7D.js} +150 -71
- package/dist/assets/{DataStoreView-bZrewhaR.css → DataStoreView-D-Wmcgs5.css} +15 -10
- package/dist/assets/{DemoFooter-Dp-EiWsO.js → DemoFooter-B3t7CS9X.js} +6 -6
- package/dist/assets/{EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-BO3rV-x9.js → EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-xgH7GJvn.js} +1 -1
- package/dist/assets/{EntityNotFound-O4ORqb15.js → EntityNotFound-C3W-Gouk.js} +3 -6
- package/dist/assets/{EntityNotFound-CBu7H3J_.css → EntityNotFound-DvXhVSfv.css} +2 -2
- package/dist/assets/{EntityUnAuthorised-DDEfWc5w.js → EntityUnAuthorised-Du_1dCDH.js} +1 -1
- package/dist/assets/{ErrorView-DQ0b3uWF.js → ErrorView-B4s983XH.js} +1 -1
- package/dist/assets/{EvaluationsRootView-BalOBb-M.js → EvaluationsRootView-2xzNr5pT.js} +19 -5
- package/dist/assets/{EvaluationsView-Dl30Shle.js → EvaluationsView-CWy0SffW.js} +3 -3
- package/dist/assets/{ExecutionsTime.vue_vue_type_script_setup_true_lang-dShXDoGB.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-DBWrBSV7.js} +2 -2
- package/dist/assets/{ExecutionsView-B5Jh1Slf.js → ExecutionsView-DUoLBkxb.js} +8 -8
- package/dist/assets/{FixedCollectionParameter-CEzpjeQZ.css → FixedCollectionParameter-DTkvAml6.css} +18 -18
- package/dist/assets/{FixedCollectionParameter-4ZwUaGbi.js → FixedCollectionParameter-xSZHY6A2.js} +4 -3
- package/dist/assets/{ForgotMyPasswordView-DynIpDPH.js → ForgotMyPasswordView-DgKin1FL.js} +3 -3
- package/dist/assets/{InfoAccordion-MlURVMcX.js → InfoAccordion-BoIzf-yz.js} +1 -1
- package/dist/assets/{InsightsChartAverageRuntime-BgEppbrD.js → InsightsChartAverageRuntime-CWGu6ocC.js} +4 -4
- package/dist/assets/{InsightsChartFailed-B9pKFsLn.js → InsightsChartFailed-BBlIfrXu.js} +4 -4
- package/dist/assets/{InsightsChartFailureRate-BWblqNp_.js → InsightsChartFailureRate-CXhB2MIz.js} +4 -4
- package/dist/assets/{InsightsChartTimeSaved-Bsjt89_E.js → InsightsChartTimeSaved-C7d5mIdl.js} +4 -4
- package/dist/assets/{InsightsChartTotal-D9mguvTz.js → InsightsChartTotal-DBS3cVYs.js} +4 -4
- package/dist/assets/{InsightsDashboard-BFQzAJ30.js → InsightsDashboard-D2CF6m01.js} +10 -10
- package/dist/assets/{InsightsPaywall-ol8lMMqv.js → InsightsPaywall-CWEHpnSN.js} +1 -1
- package/dist/assets/{InsightsSummary-DuEa77Gq.js → InsightsSummary-7514XMdb.js} +1 -1
- package/dist/assets/{InsightsTableWorkflows-CKfAgykg.js → InsightsTableWorkflows-CQZmCGc2.js} +4 -4
- package/dist/assets/{Logo-BOrUbRLm.js → Logo-CtGKRONY.js} +7 -7
- package/dist/assets/{Logo-DLBj1gMw.css → Logo-DaegEk2m.css} +9 -9
- package/dist/assets/{LogsPanel-lijAjBs3.js → LogsPanel-CIAt3lTg.js} +8 -10
- package/dist/assets/{MainHeader-qSHM1Rvp.css → MainHeader-C7eM_NQZ.css} +203 -115
- package/dist/assets/{MainHeader-CnzavsYg.js → MainHeader-DmIxSulT.js} +435 -66
- package/dist/assets/{MainSidebar-YKfo6G0t.js → MainSidebar-IXI0NYYP.js} +2 -2
- package/dist/assets/{NodeCreation-DfOnzJmi.js → NodeCreation-DqXKrY6w.js} +3 -3
- package/dist/assets/{NodeCreator-NztmH4n_.js → NodeCreator-CI6mRPpP.js} +104 -45
- package/dist/assets/{NodeCreator-Cb92WDsx.css → NodeCreator-COgNP4W1.css} +39 -31
- package/dist/assets/{NodeDetailsView-DzhT36su.js → NodeDetailsView-BLAGih5E.js} +27 -27
- package/dist/assets/{NodeDetailsView-Cam4nPwL.css → NodeDetailsView-CjdovDgq.css} +16 -16
- package/dist/assets/{NodeDetailsViewV2-LzYZcnv5.css → NodeDetailsViewV2-Bn1PbAPe.css} +18 -22
- package/dist/assets/{NodeDetailsViewV2-CVLb9jZL.js → NodeDetailsViewV2-zTI7VLUX.js} +28 -28
- package/dist/assets/{NodeView-CFpi2pKv.js → NodeView-CFuNDv8s.js} +118 -76
- package/dist/assets/{NodeView-BMiOpmk4.css → NodeView-CiaJbQtZ.css} +12 -9
- package/dist/assets/{ProjectHeader-C_V4cUfD.js → ProjectHeader-CIqf2gpl.js} +20 -3
- package/dist/assets/{ProjectSettings-wxEj0vl7.js → ProjectSettings-DGaIUK8h.js} +3 -3
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-DtD6uMAu.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-C3fRIVZH.js} +1 -1
- package/dist/assets/{ResourcesListLayout-6eIqe4Ld.css → ResourcesListLayout-C1JgyGhX.css} +24 -24
- package/dist/assets/{ResourcesListLayout-M_mVBaMn.js → ResourcesListLayout-DM01TqXK.js} +12 -12
- package/dist/assets/{RunDataJson-C6fe3tyE.js → RunDataJson-7m3wHhLP.js} +3 -3
- package/dist/assets/{RunDataJsonActions-Bf40hCdJ.js → RunDataJsonActions-CCs-K7u-.js} +1 -1
- package/dist/assets/{RunDataParsedAiContent-DNxDdAFA.js → RunDataParsedAiContent-qSEryFRl.js} +2 -2
- package/dist/assets/{RunDataSearch-BOHOVGZo.js → RunDataSearch-Cn2iAGkx.js} +1 -1
- package/dist/assets/{RunDataTable-Covbkrbq.js → RunDataTable-CqcDdqpf.js} +1 -1
- package/dist/assets/{SamlOnboarding-DuS7thyH.js → SamlOnboarding-CExc8LrJ.js} +3 -3
- package/dist/assets/{SettingsApiView-DiTe65f0.js → SettingsApiView-CyzaLF2j.js} +1 -1
- package/dist/assets/{SettingsCommunityNodesView-CyJ8VH0M.js → SettingsCommunityNodesView-Ci1jidLI.js} +4 -4
- package/dist/assets/{SettingsExternalSecrets-DkwQSOWE.js → SettingsExternalSecrets-JWxQMJpD.js} +1 -1
- package/dist/assets/{SettingsLdapView-BqkJjxxG.js → SettingsLdapView-BjZFbcTn.js} +8 -8
- package/dist/assets/{SettingsLdapView-Bx1eqk76.css → SettingsLdapView-D0SUO3ai.css} +10 -10
- package/dist/assets/{SettingsLogStreamingView-kquIKMzZ.js → SettingsLogStreamingView-DvWmdSgA.js} +1 -1
- package/dist/assets/{SettingsPersonalView-_PA-j_XK.js → SettingsPersonalView-DqrkCtlS.js} +1 -1
- package/dist/assets/{SettingsSourceControl-jkTTsdtR.js → SettingsSourceControl-N9lSG0gK.js} +1 -1
- package/dist/assets/{SettingsSso-DAdOHMeU.js → SettingsSso-lzPmnXZl.js} +1 -1
- package/dist/assets/{SettingsUsageAndPlan-BBp6XwhR.js → SettingsUsageAndPlan-BF2mv_rX.js} +2 -2
- package/dist/assets/{SettingsUsageAndPlan-ZZQpCmyQ.css → SettingsUsageAndPlan-_VxSs28G.css} +3 -3
- package/dist/assets/{SettingsUsersView-RQTdLxyb.css → SettingsUsersView-BG7JdfYz.css} +9 -9
- package/dist/assets/{SettingsUsersView-CiqFBEDz.js → SettingsUsersView-TueQ1ATe.js} +9 -9
- package/dist/assets/{SettingsView-U8wVTFLp.js → SettingsView-TKZutR1C.js} +1 -1
- package/dist/assets/{SetupView-DKS_9Pmw.js → SetupView-DAFe0s88.js} +3 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-DrvkXjx2.js → SetupWorkflowCredentialsButton-D_e5xPYq.js} +1 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-CuVhbPBO.js → SetupWorkflowFromTemplateView-C40rZsY1.js} +3 -3
- package/dist/assets/{SigninView-CnPzFRL5.js → SigninView-rw-BhvFO.js} +3 -3
- package/dist/assets/{SignoutView-BOpZmdFV.js → SignoutView-hmcLIumg.js} +1 -1
- package/dist/assets/{SignupView-CRnkvPuS.js → SignupView-B8utUMjA.js} +3 -3
- package/dist/assets/{TableBase-DIje27Wa.js → TableBase-Dg9jrpSs.js} +1 -1
- package/dist/assets/{Tags-B0bIUnzf.css → Tag-Cg-Hqs2H.css} +0 -141
- package/dist/assets/Tag-DBkUcYd_.js +32 -0
- package/dist/assets/{Tags-BjFupN4S.js → Tags-BABZPMfc.js} +6 -33
- package/dist/assets/Tags-CCemj7t9.css +142 -0
- package/dist/assets/{TemplateDetails-mqzPHlzS.js → TemplateDetails-DY7lPygm.js} +3 -10
- package/dist/assets/{TemplateList-Cjo0X1gf.js → TemplateList-UnYTakQQ.js} +8 -8
- package/dist/assets/{TemplateList-DcOqRM10.css → TemplateList-XNW-2Ugr.css} +8 -8
- package/dist/assets/{TemplatesCollectionView-CdqalUWl.js → TemplatesCollectionView-DTVw3VF0.js} +7 -6
- package/dist/assets/{TemplatesSearchView-hZVsLLXI.js → TemplatesSearchView-DolE_9AA.js} +3 -3
- package/dist/assets/{TemplatesView-D8AaaysW.js → TemplatesView-CwNytFHx.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-Df38vzRS.js → TemplatesWorkflowView-iSKd7uht.js} +7 -6
- package/dist/assets/{TriggerPanel-CRLzika6.js → TriggerPanel-BTLbaSMz.js} +34 -29
- package/dist/assets/{TriggerPanel-gMtmEr6n.css → TriggerPanel-DmVMaaLr.css} +25 -45
- package/dist/assets/{VariablesView-BLr_Gtfp.js → VariablesView-Dk54OZ1f.js} +5 -5
- package/dist/assets/{WorkerView-B5OYF2l5.js → WorkerView-CwuTFYrO.js} +6 -6
- package/dist/assets/{WorkflowActivator-DhLX6i1H.css → WorkflowActivator-22RW64G2.css} +3 -4
- package/dist/assets/{WorkflowActivator-D35S71ij.js → WorkflowActivator-DH6Riyap.js} +4 -4
- package/dist/assets/{WorkflowExecutionsInfoAccordion-Cx845yD1.js → WorkflowExecutionsInfoAccordion-CP2uh-PB.js} +2 -2
- package/dist/assets/{WorkflowExecutionsLandingPage-BcJAFFID.js → WorkflowExecutionsLandingPage-BoIaBPDG.js} +3 -3
- package/dist/assets/{WorkflowExecutionsPreview-BVpVifuf.js → WorkflowExecutionsPreview-C11ZxZ-4.js} +4 -4
- package/dist/assets/{WorkflowExecutionsView-bww_ZIUE.js → WorkflowExecutionsView-5rikocSa.js} +7 -6
- package/dist/assets/{WorkflowHistory-B9p3ubCQ.js → WorkflowHistory-Cph_B-2a.js} +2 -2
- package/dist/assets/{WorkflowOnboardingView-CK3btKpS.js → WorkflowOnboardingView-CTo8mbw7.js} +1 -1
- package/dist/assets/{WorkflowPreview-BICG36-Y.js → WorkflowPreview-fJy3X_xW.js} +1 -1
- package/dist/assets/{WorkflowsView-DsJIOJ7h.css → WorkflowsView-eYGsq80b.css} +267 -0
- package/dist/assets/{WorkflowsView-DQBqlF0o.js → WorkflowsView-mdIBSRa_.js} +201 -48
- package/dist/assets/{canvas-BAegJxph.js → canvas-DenCY4AJ.js} +1 -1
- package/dist/assets/{chartjs.utils-BW1BHqON.js → chartjs.utils-BlhTVSE9.js} +2 -2
- package/dist/assets/{VueMarkdown-BXoAxQ2V.js → core-lMJc92pa.js} +26 -26
- package/dist/assets/dataStore.store-CDiWuK8E.js +98 -0
- package/dist/assets/{en-ORjqW56z.js → en-B7EAgfR5.js} +50 -2
- package/dist/assets/{global-link-actions-BLMbNlby.js → global-link-actions-D18bp17X.js} +1 -1
- package/dist/assets/{index-B09aakje.css → index-BFyMw9-0.css} +8121 -7775
- package/dist/assets/{index-BpQz0FGO.js → index-Cpz83ovC.js} +1 -1
- package/dist/assets/{index-DJu2gb_4.js → index-CxleUtlq.js} +57377 -55708
- package/dist/assets/{pickBy-9DlC43KL.js → pickBy-D7GSyF5E.js} +1 -1
- package/dist/assets/{readyToRunWorkflows.store-bkk9BfbV.js → readyToRunWorkflows.store-Dz_KLa8_.js} +3 -3
- package/dist/assets/{templateActions-DWPclqQi.js → templateActions-xbNJmRy6.js} +1 -1
- package/dist/assets/{typescript.worker-KwUz68Jx.js → typescript.worker-ku8s_Oaf.js} +8407 -7241
- package/dist/assets/{useBeforeUnload-hEveYtYY.js → useBeforeUnload-D0WL7mpb.js} +1 -1
- package/dist/assets/{useExecutionDebugging-D0j03ZAv.js → useExecutionDebugging-Bd_2vpLq.js} +4 -4
- package/dist/assets/{useImportCurlCommand-BKQ4XONK.js → useImportCurlCommand-Cyf8dlDO.js} +1 -1
- package/dist/assets/{useProjectPages-CFEdc5ap.js → useProjectPages-BpsdwyKW.js} +1 -1
- package/dist/assets/{usePushConnection-g2LnZI3X.js → usePushConnection-BaTxjUZd.js} +18 -18
- package/dist/assets/{useWorkflowActivate-G9wdzjX4.js → useWorkflowActivate-DrpskU4R.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/stylelint.config.mjs +3 -0
- package/dist/assets/CollectionParameter-BAZmSBB4.js +0 -4
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { d as defineComponent,
|
|
2
|
-
import { _ as _sfc_main$
|
|
3
|
-
import { B as Breadcrumbs, W as WorkflowActivator, _ as __unplugin_components_0 } from "./WorkflowActivator-
|
|
4
|
-
import { R as ResourcesListLayout } from "./ResourcesListLayout-
|
|
5
|
-
import { P as ProjectHeader } from "./ProjectHeader-
|
|
6
|
-
import { T as Tags } from "./Tags-
|
|
7
|
-
import { u as useProjectPages } from "./useProjectPages-
|
|
8
|
-
import { u as useAITemplatesStarterCollectionStore, a as useReadyToRunWorkflowsStore } from "./readyToRunWorkflows.store-
|
|
9
|
-
import { I as InsightsSummary } from "./InsightsSummary-
|
|
10
|
-
import "./useWorkflowActivate-
|
|
11
|
-
import "./TableBase-
|
|
1
|
+
import { d as defineComponent, aa as useRoute, b as useRouter, aw as useFoldersStore, r as ref, x as computed, c as useI18n, aG as ProjectTypes, V as VIEWS, T as resolveComponent, h as createElementBlock, g as openBlock, i as createVNode, w as withCtx, s as N8nCard, n as normalizeClass, j as createBaseVNode, f as createCommentVNode, e as createBlock, f_ as ProjectCardBadge, l as unref, aU as ResourceType, eb as N8nActionToggle, B as withModifiers, p as N8nText, k as createTextVNode, t as toDisplayString, eI as _sfc_main$7, m as N8nHeading, aL as N8nBadge, N as N8nIcon, _ as _export_sfc, a as useToast, v as useSettingsStore, Z as useUIStore, u as useUsersStore, a9 as useWorkflowsStore, av as useProjectsStore, aC as getResourcePermissions, fS as dateFormat, b4 as withDirectives, b5 as vShow, aO as WORKFLOW_SHARE_MODAL_KEY, ap as useTelemetry, aT as DUPLICATE_MODAL_KEY, aq as useMessage, ar as MODAL_CONFIRM, aV as PROJECT_MOVE_RESOURCE_MODAL, f$ as FOLDER_NAME_ILLEGAL_CHARACTERS_REGEX, g0 as ILLEGAL_FOLDER_CHARACTERS, g1 as FOLDER_NAME_ONLY_DOTS_REGEX, g2 as FOLDER_NAME_MAX_LENGTH, a7 as defineStore, dd as usePostHog, bh as useCloudPlanStore, bp as useTemplatesStore, bi as useStorage, g3 as LOCAL_STORAGE_EXPERIMENTAL_DISMISSED_SUGGESTED_WORKFLOWS, dk as jsonParse, af as watch, fn as TEMPLATE_ONBOARDING_EXPERIMENT, ac as STORES, z as N8nCallout, C as N8nLink, Q as renderSlot, ah as useNodeTypesStore, g4 as usePersonalizedTemplatesV2Store, o as onMounted, c0 as NodeIcon, g5 as EXPERIMENT_TEMPLATE_RECO_V2_KEY, F as Fragment, A as renderList, aj as useSourceControlStore, X as useTagsStore, eY as useUsageStore, g6 as useInsightsStore, ay as useDocumentTitle, Y as useDebounce, aF as EnterpriseEditionFeature, g7 as isExtraTemplateLinksExperimentEnabled, W as createEventBus, P as onBeforeUnmount, S as debounce, g8 as PROJECT_ROOT, aH as useTemplateRef, bt as createSlots, a4 as N8nTooltip, q as N8nButton, cQ as InfoTip, dW as N8nActionBox, e3 as N8nInputLabel, aK as _sfc_main$9, e6 as N8nSelect, e7 as _sfc_main$a, eW as N8nCheckbox, g9 as Draggable, dI as N8nLoading, aI as InlineRename, ga as DEFAULT_WORKFLOW_PAGE_SIZE, bx as trackTemplatesClick, by as TemplateClickSource, gb as getEasyAiWorkflowJson, e_ as COMMUNITY_PLUS_ENROLLMENT_MODAL } from "./index-CxleUtlq.js";
|
|
2
|
+
import { _ as _sfc_main$8 } from "./EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-xgH7GJvn.js";
|
|
3
|
+
import { B as Breadcrumbs, W as WorkflowActivator, _ as __unplugin_components_0 } from "./WorkflowActivator-DH6Riyap.js";
|
|
4
|
+
import { R as ResourcesListLayout } from "./ResourcesListLayout-DM01TqXK.js";
|
|
5
|
+
import { P as ProjectHeader } from "./ProjectHeader-CIqf2gpl.js";
|
|
6
|
+
import { T as Tags } from "./Tags-BABZPMfc.js";
|
|
7
|
+
import { u as useProjectPages } from "./useProjectPages-BpsdwyKW.js";
|
|
8
|
+
import { u as useAITemplatesStarterCollectionStore, a as useReadyToRunWorkflowsStore } from "./readyToRunWorkflows.store-Dz_KLa8_.js";
|
|
9
|
+
import { I as InsightsSummary } from "./InsightsSummary-7514XMdb.js";
|
|
10
|
+
import "./useWorkflowActivate-DrpskU4R.js";
|
|
11
|
+
import "./TableBase-Dg9jrpSs.js";
|
|
12
|
+
import "./Tag-DBkUcYd_.js";
|
|
12
13
|
const FOLDER_LIST_ITEM_ACTIONS = {
|
|
13
14
|
OPEN: "open",
|
|
14
15
|
CREATE: "create",
|
|
@@ -17,9 +18,9 @@ const FOLDER_LIST_ITEM_ACTIONS = {
|
|
|
17
18
|
MOVE: "move",
|
|
18
19
|
DELETE: "delete"
|
|
19
20
|
};
|
|
20
|
-
const _hoisted_1$
|
|
21
|
+
const _hoisted_1$3 = { "data-test-id": "folder-card" };
|
|
21
22
|
const _hoisted_2$1 = { key: 0 };
|
|
22
|
-
const _sfc_main$
|
|
23
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
23
24
|
__name: "FolderCard",
|
|
24
25
|
props: {
|
|
25
26
|
data: {},
|
|
@@ -115,13 +116,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
115
116
|
const _component_n8n_heading = N8nHeading;
|
|
116
117
|
const _component_N8nBadge = N8nBadge;
|
|
117
118
|
const _component_n8n_text = N8nText;
|
|
118
|
-
const _component_TimeAgo = _sfc_main$
|
|
119
|
+
const _component_TimeAgo = _sfc_main$7;
|
|
119
120
|
const _component_n8n_breadcrumbs = Breadcrumbs;
|
|
120
121
|
const _component_ProjectCardBadge = ProjectCardBadge;
|
|
121
122
|
const _component_n8n_action_toggle = N8nActionToggle;
|
|
122
123
|
const _component_n8n_card = N8nCard;
|
|
123
124
|
const _component_router_link = resolveComponent("router-link");
|
|
124
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
125
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
125
126
|
createVNode(_component_router_link, {
|
|
126
127
|
to: cardUrl.value,
|
|
127
128
|
onClick: _cache[1] || (_cache[1] = () => emit("folderOpened", { folder: props.data }))
|
|
@@ -289,7 +290,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
289
290
|
});
|
|
290
291
|
const card = "_card_pt4ir_123";
|
|
291
292
|
const cardBadge$1 = "_cardBadge_pt4ir_157";
|
|
292
|
-
const style0$
|
|
293
|
+
const style0$6 = {
|
|
293
294
|
card,
|
|
294
295
|
"folder-icon": "_folder-icon_pt4ir_131",
|
|
295
296
|
"card-header": "_card-header_pt4ir_140",
|
|
@@ -300,11 +301,11 @@ const style0$4 = {
|
|
|
300
301
|
"card-actions": "_card-actions_pt4ir_164",
|
|
301
302
|
"info-cell--created": "_info-cell--created_pt4ir_182"
|
|
302
303
|
};
|
|
303
|
-
const cssModules$
|
|
304
|
-
"$style": style0$
|
|
304
|
+
const cssModules$6 = {
|
|
305
|
+
"$style": style0$6
|
|
305
306
|
};
|
|
306
|
-
const __unplugin_components_4 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
307
|
-
const _sfc_main$
|
|
307
|
+
const __unplugin_components_4 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__cssModules", cssModules$6]]);
|
|
308
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
308
309
|
__name: "WorkflowCard",
|
|
309
310
|
props: {
|
|
310
311
|
data: {},
|
|
@@ -742,7 +743,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
742
743
|
default: withCtx(() => [
|
|
743
744
|
withDirectives(createBaseVNode("span", null, [
|
|
744
745
|
createTextVNode(toDisplayString(unref(locale).baseText("workflows.item.updated")) + " ", 1),
|
|
745
|
-
createVNode(_sfc_main$
|
|
746
|
+
createVNode(_sfc_main$7, {
|
|
746
747
|
date: String(_ctx.data.updatedAt)
|
|
747
748
|
}, null, 8, ["date"]),
|
|
748
749
|
_cache[1] || (_cache[1] = createTextVNode(" | "))
|
|
@@ -786,7 +787,7 @@ const cardActions = "_cardActions_ycbf3_158";
|
|
|
786
787
|
const cardBadge = "_cardBadge_ycbf3_168";
|
|
787
788
|
const cardArchived = "_cardArchived_ycbf3_179";
|
|
788
789
|
const breadcrumbs = "_breadcrumbs_ycbf3_197";
|
|
789
|
-
const style0$
|
|
790
|
+
const style0$5 = {
|
|
790
791
|
cardLink,
|
|
791
792
|
cardHeading,
|
|
792
793
|
cardHeadingArchived,
|
|
@@ -798,10 +799,10 @@ const style0$3 = {
|
|
|
798
799
|
cardArchived,
|
|
799
800
|
breadcrumbs
|
|
800
801
|
};
|
|
801
|
-
const cssModules$
|
|
802
|
-
"$style": style0$
|
|
802
|
+
const cssModules$5 = {
|
|
803
|
+
"$style": style0$5
|
|
803
804
|
};
|
|
804
|
-
const WorkflowCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
805
|
+
const WorkflowCard = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__cssModules", cssModules$5]]);
|
|
805
806
|
function isDropTarget(target) {
|
|
806
807
|
return target.type === "folder" || target.type === "project";
|
|
807
808
|
}
|
|
@@ -1054,7 +1055,7 @@ const usePersonalizedTemplatesStore = defineStore(STORES.PERSONALIZED_TEMPLATES,
|
|
|
1054
1055
|
getTemplateRoute
|
|
1055
1056
|
};
|
|
1056
1057
|
});
|
|
1057
|
-
const _sfc_main$
|
|
1058
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1058
1059
|
__name: "SuggestedWorkflowCard",
|
|
1059
1060
|
props: {
|
|
1060
1061
|
data: {}
|
|
@@ -1121,32 +1122,148 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1121
1122
|
};
|
|
1122
1123
|
}
|
|
1123
1124
|
});
|
|
1124
|
-
const style0$
|
|
1125
|
+
const style0$4 = {
|
|
1125
1126
|
"suggested-workflow-callout": "_suggested-workflow-callout_1alzo_123",
|
|
1126
1127
|
"callout-content": "_callout-content_1alzo_129",
|
|
1127
1128
|
"callout-trailing-content": "_callout-trailing-content_1alzo_133"
|
|
1128
1129
|
};
|
|
1129
|
-
const cssModules$
|
|
1130
|
-
"$style": style0$
|
|
1130
|
+
const cssModules$4 = {
|
|
1131
|
+
"$style": style0$4
|
|
1131
1132
|
};
|
|
1132
|
-
const SuggestedWorkflowCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1133
|
-
const style0$
|
|
1133
|
+
const SuggestedWorkflowCard = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__cssModules", cssModules$4]]);
|
|
1134
|
+
const style0$3 = {
|
|
1134
1135
|
"suggested-workflows": "_suggested-workflows_t3ed6_123"
|
|
1135
1136
|
};
|
|
1136
|
-
const _sfc_main$
|
|
1137
|
-
const _hoisted_1$
|
|
1137
|
+
const _sfc_main$3 = {};
|
|
1138
|
+
const _hoisted_1$2 = {
|
|
1138
1139
|
class: "suggested-workflows",
|
|
1139
1140
|
"data-test-id": "suggested-workflows"
|
|
1140
1141
|
};
|
|
1141
1142
|
function _sfc_render(_ctx, _cache) {
|
|
1142
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1143
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
1143
1144
|
renderSlot(_ctx.$slots, "default")
|
|
1144
1145
|
]);
|
|
1145
1146
|
}
|
|
1147
|
+
const cssModules$3 = {
|
|
1148
|
+
"$style": style0$3
|
|
1149
|
+
};
|
|
1150
|
+
const SuggestedWorkflows = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__cssModules", cssModules$3]]);
|
|
1151
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1152
|
+
__name: "NodeRecommendationCard",
|
|
1153
|
+
props: {
|
|
1154
|
+
nodeName: {}
|
|
1155
|
+
},
|
|
1156
|
+
setup(__props) {
|
|
1157
|
+
const props = __props;
|
|
1158
|
+
const uiStore = useUIStore();
|
|
1159
|
+
const nodeTypesStore = useNodeTypesStore();
|
|
1160
|
+
const { trackMinicardClick } = usePersonalizedTemplatesV2Store();
|
|
1161
|
+
const nodeType = computed(() => nodeTypesStore.getNodeType(props.nodeName));
|
|
1162
|
+
const openModal = () => {
|
|
1163
|
+
trackMinicardClick(nodeType.value?.displayName ?? props.nodeName);
|
|
1164
|
+
uiStore.openModalWithData({
|
|
1165
|
+
name: EXPERIMENT_TEMPLATE_RECO_V2_KEY,
|
|
1166
|
+
data: { nodeName: props.nodeName }
|
|
1167
|
+
});
|
|
1168
|
+
};
|
|
1169
|
+
onMounted(async () => {
|
|
1170
|
+
await nodeTypesStore.loadNodeTypesIfNotLoaded();
|
|
1171
|
+
});
|
|
1172
|
+
return (_ctx, _cache) => {
|
|
1173
|
+
const _component_NodeIcon = NodeIcon;
|
|
1174
|
+
const _component_N8nText = N8nText;
|
|
1175
|
+
const _component_N8nCard = N8nCard;
|
|
1176
|
+
return openBlock(), createElementBlock("div", null, [
|
|
1177
|
+
createVNode(_component_N8nCard, {
|
|
1178
|
+
class: normalizeClass(_ctx.$style.nodeCard),
|
|
1179
|
+
hoverable: "",
|
|
1180
|
+
onClick: openModal
|
|
1181
|
+
}, {
|
|
1182
|
+
default: withCtx(() => [
|
|
1183
|
+
createBaseVNode("div", {
|
|
1184
|
+
class: normalizeClass(_ctx.$style.emptyStateCardContent)
|
|
1185
|
+
}, [
|
|
1186
|
+
createVNode(_component_NodeIcon, {
|
|
1187
|
+
"node-type": nodeType.value,
|
|
1188
|
+
class: normalizeClass(_ctx.$style.nodeIcon),
|
|
1189
|
+
"stroke-width": 1.5
|
|
1190
|
+
}, null, 8, ["node-type", "class"]),
|
|
1191
|
+
createVNode(_component_N8nText, {
|
|
1192
|
+
size: "xsmall",
|
|
1193
|
+
class: "mt-xs pl-2xs pr-2xs",
|
|
1194
|
+
bold: true
|
|
1195
|
+
}, {
|
|
1196
|
+
default: withCtx(() => [
|
|
1197
|
+
createTextVNode(toDisplayString(nodeType.value?.displayName), 1)
|
|
1198
|
+
]),
|
|
1199
|
+
_: 1
|
|
1200
|
+
})
|
|
1201
|
+
], 2)
|
|
1202
|
+
]),
|
|
1203
|
+
_: 1
|
|
1204
|
+
}, 8, ["class"])
|
|
1205
|
+
]);
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
});
|
|
1209
|
+
const nodeCard = "_nodeCard_1ub18_123";
|
|
1210
|
+
const nodeIcon = "_nodeIcon_1ub18_133";
|
|
1211
|
+
const emptyStateCardContent$1 = "_emptyStateCardContent_1ub18_137";
|
|
1212
|
+
const style0$2 = {
|
|
1213
|
+
nodeCard,
|
|
1214
|
+
nodeIcon,
|
|
1215
|
+
emptyStateCardContent: emptyStateCardContent$1
|
|
1216
|
+
};
|
|
1217
|
+
const cssModules$2 = {
|
|
1218
|
+
"$style": style0$2
|
|
1219
|
+
};
|
|
1220
|
+
const NodeRecommendationCard = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__cssModules", cssModules$2]]);
|
|
1221
|
+
const _hoisted_1$1 = {
|
|
1222
|
+
key: 0,
|
|
1223
|
+
class: "text-center mt-3xl",
|
|
1224
|
+
"data-test-id": "list-empty-state"
|
|
1225
|
+
};
|
|
1226
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1227
|
+
__name: "TemplateRecommendationV2",
|
|
1228
|
+
setup(__props) {
|
|
1229
|
+
const templateRecoV2Store = usePersonalizedTemplatesV2Store();
|
|
1230
|
+
const locale = useI18n();
|
|
1231
|
+
return (_ctx, _cache) => {
|
|
1232
|
+
const _component_N8nHeading = N8nHeading;
|
|
1233
|
+
return unref(templateRecoV2Store).nodes.length ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
1234
|
+
createVNode(_component_N8nHeading, {
|
|
1235
|
+
tag: "h2",
|
|
1236
|
+
size: "medium",
|
|
1237
|
+
class: "mb-2xs",
|
|
1238
|
+
color: "text-light"
|
|
1239
|
+
}, {
|
|
1240
|
+
default: withCtx(() => [
|
|
1241
|
+
createTextVNode(toDisplayString(unref(locale).baseText("workflows.templateRecoV2.exploreTemplates")), 1)
|
|
1242
|
+
]),
|
|
1243
|
+
_: 1
|
|
1244
|
+
}),
|
|
1245
|
+
createBaseVNode("div", {
|
|
1246
|
+
class: normalizeClass(_ctx.$style.nodeCardsContainer)
|
|
1247
|
+
}, [
|
|
1248
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(templateRecoV2Store).nodes, (node) => {
|
|
1249
|
+
return openBlock(), createBlock(NodeRecommendationCard, {
|
|
1250
|
+
key: node,
|
|
1251
|
+
"node-name": node
|
|
1252
|
+
}, null, 8, ["node-name"]);
|
|
1253
|
+
}), 128))
|
|
1254
|
+
], 2)
|
|
1255
|
+
])) : createCommentVNode("", true);
|
|
1256
|
+
};
|
|
1257
|
+
}
|
|
1258
|
+
});
|
|
1259
|
+
const nodeCardsContainer = "_nodeCardsContainer_7g2he_123";
|
|
1260
|
+
const style0$1 = {
|
|
1261
|
+
nodeCardsContainer
|
|
1262
|
+
};
|
|
1146
1263
|
const cssModules$1 = {
|
|
1147
1264
|
"$style": style0$1
|
|
1148
1265
|
};
|
|
1149
|
-
const
|
|
1266
|
+
const TemplateRecommendationV2 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__cssModules", cssModules$1]]);
|
|
1150
1267
|
const _hoisted_1 = { key: 0 };
|
|
1151
1268
|
const _hoisted_2 = { key: 0 };
|
|
1152
1269
|
const _hoisted_3 = { key: 1 };
|
|
@@ -1199,6 +1316,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1199
1316
|
const aiStarterTemplatesStore = useAITemplatesStarterCollectionStore();
|
|
1200
1317
|
const personalizedTemplatesStore = usePersonalizedTemplatesStore();
|
|
1201
1318
|
const readyToRunWorkflowsStore = useReadyToRunWorkflowsStore();
|
|
1319
|
+
const personalizedTemplatesV2Store = usePersonalizedTemplatesV2Store();
|
|
1202
1320
|
const documentTitle = useDocumentTitle();
|
|
1203
1321
|
const { callDebounced } = useDebounce();
|
|
1204
1322
|
const projectPages = useProjectPages();
|
|
@@ -1397,6 +1515,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1397
1515
|
const hasFilters = computed(() => {
|
|
1398
1516
|
return !!(filters.value.search || filters.value.status !== StatusFilter.ALL || filters.value.showArchived || filters.value.tags.length);
|
|
1399
1517
|
});
|
|
1518
|
+
const showArchivedOnlyHint = computed(() => {
|
|
1519
|
+
return workflowsAndFolders.value.length === 0 && !hasFilters.value && !filters.value.showArchived && foldersStore.totalWorkflowCount > 0;
|
|
1520
|
+
});
|
|
1400
1521
|
const isSelfHostedDeployment = computed(() => settingsStore.deploymentType === "default");
|
|
1401
1522
|
const canUserRegisterCommunityPlus = computed(
|
|
1402
1523
|
() => getResourcePermissions(usersStore.currentUser?.globalScopes).community.register
|
|
@@ -1454,6 +1575,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1454
1575
|
deleted_sub_workflows: payload.workflowCount
|
|
1455
1576
|
});
|
|
1456
1577
|
};
|
|
1578
|
+
const showInsights = computed(() => {
|
|
1579
|
+
return projectPages.isOverviewSubPage && insightsStore.isSummaryEnabled && (!personalizedTemplatesV2Store.isFeatureEnabled() || workflowListResources.value.length > 0);
|
|
1580
|
+
});
|
|
1581
|
+
const showTemplateRecommendationV2 = computed(() => {
|
|
1582
|
+
return personalizedTemplatesV2Store.isFeatureEnabled() && !loading.value;
|
|
1583
|
+
});
|
|
1457
1584
|
onMounted(async () => {
|
|
1458
1585
|
documentTitle.set(i18n.baseText("workflows.heading"));
|
|
1459
1586
|
void usersStore.showPersonalizationSurvey();
|
|
@@ -1769,6 +1896,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1769
1896
|
return;
|
|
1770
1897
|
}
|
|
1771
1898
|
};
|
|
1899
|
+
const dismissStarterCollectionCallout = () => {
|
|
1900
|
+
aiStarterTemplatesStore.dismissCallout();
|
|
1901
|
+
aiStarterTemplatesStore.trackUserDismissedCallout();
|
|
1902
|
+
};
|
|
1903
|
+
const dismissEasyAICallout = () => {
|
|
1904
|
+
easyAICalloutVisible.value = false;
|
|
1905
|
+
};
|
|
1772
1906
|
const openAIWorkflow = async (source) => {
|
|
1773
1907
|
dismissEasyAICallout();
|
|
1774
1908
|
telemetry.track("User clicked test AI workflow", {
|
|
@@ -1781,12 +1915,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1781
1915
|
query: { fromJson: "true", parentFolderId: route.params.folderId }
|
|
1782
1916
|
});
|
|
1783
1917
|
};
|
|
1784
|
-
const
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
};
|
|
1788
|
-
const dismissEasyAICallout = () => {
|
|
1789
|
-
easyAICalloutVisible.value = false;
|
|
1918
|
+
const onShowArchived = async () => {
|
|
1919
|
+
filters.value.showArchived = true;
|
|
1920
|
+
await onFiltersUpdated();
|
|
1790
1921
|
};
|
|
1791
1922
|
const handleDismissReadyToRunCallout = () => {
|
|
1792
1923
|
readyToRunWorkflowsStore.dismissCallout();
|
|
@@ -2413,8 +2544,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2413
2544
|
const _component_n8n_loading = N8nLoading;
|
|
2414
2545
|
const _component_FolderBreadcrumbs = __unplugin_components_0;
|
|
2415
2546
|
const _component_FolderCard = __unplugin_components_4;
|
|
2416
|
-
const _component_EmptySharedSectionActionBox = _sfc_main$
|
|
2547
|
+
const _component_EmptySharedSectionActionBox = _sfc_main$8;
|
|
2417
2548
|
const _component_N8nCheckbox = N8nCheckbox;
|
|
2549
|
+
const _component_N8nLink = N8nLink;
|
|
2550
|
+
const _component_N8nInfoTip = InfoTip;
|
|
2418
2551
|
const _component_N8nActionBox = N8nActionBox;
|
|
2419
2552
|
return openBlock(), createBlock(ResourcesListLayout, {
|
|
2420
2553
|
filters: filters.value,
|
|
@@ -2443,7 +2576,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2443
2576
|
header: withCtx(() => [
|
|
2444
2577
|
createVNode(ProjectHeader, { onCreateFolder: createFolderInCurrent }, {
|
|
2445
2578
|
default: withCtx(() => [
|
|
2446
|
-
|
|
2579
|
+
showInsights.value ? (openBlock(), createBlock(InsightsSummary, {
|
|
2447
2580
|
key: 0,
|
|
2448
2581
|
loading: unref(insightsStore).weeklySummary.isLoading,
|
|
2449
2582
|
summary: unref(insightsStore).weeklySummary.state,
|
|
@@ -2900,7 +3033,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2900
3033
|
]),
|
|
2901
3034
|
_: 1
|
|
2902
3035
|
}, 8, ["class"])) : createCommentVNode("", true)
|
|
2903
|
-
], 2)) : createCommentVNode("", true)
|
|
3036
|
+
], 2)) : createCommentVNode("", true),
|
|
3037
|
+
showTemplateRecommendationV2.value ? (openBlock(), createBlock(TemplateRecommendationV2, { key: 1 })) : createCommentVNode("", true)
|
|
2904
3038
|
]))
|
|
2905
3039
|
]),
|
|
2906
3040
|
filters: withCtx(({ setKeyValue }) => [
|
|
@@ -2912,7 +3046,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2912
3046
|
color: "text-base",
|
|
2913
3047
|
class: "mb-3xs"
|
|
2914
3048
|
}, null, 8, ["label"]),
|
|
2915
|
-
createVNode(_sfc_main$
|
|
3049
|
+
createVNode(_sfc_main$9, {
|
|
2916
3050
|
placeholder: unref(i18n).baseText("workflowOpen.filterWorkflows"),
|
|
2917
3051
|
"model-value": filters.value.tags,
|
|
2918
3052
|
"create-enabled": false,
|
|
@@ -2934,7 +3068,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2934
3068
|
}, {
|
|
2935
3069
|
default: withCtx(() => [
|
|
2936
3070
|
(openBlock(true), createElementBlock(Fragment, null, renderList(statusFilterOptions.value, (option) => {
|
|
2937
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3071
|
+
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
2938
3072
|
key: option.label,
|
|
2939
3073
|
label: option.label,
|
|
2940
3074
|
value: option.value,
|
|
@@ -2960,12 +3094,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2960
3094
|
class: normalizeClass(_ctx.$style["empty-folder-container"]),
|
|
2961
3095
|
"data-test-id": "empty-folder-container"
|
|
2962
3096
|
}, [
|
|
2963
|
-
|
|
3097
|
+
showArchivedOnlyHint.value ? (openBlock(), createBlock(_component_N8nInfoTip, {
|
|
2964
3098
|
key: 0,
|
|
3099
|
+
bold: false
|
|
3100
|
+
}, {
|
|
3101
|
+
default: withCtx(() => [
|
|
3102
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("workflows.archivedOnly.hint")) + " ", 1),
|
|
3103
|
+
createVNode(_component_N8nLink, {
|
|
3104
|
+
size: "small",
|
|
3105
|
+
"data-test-id": "show-archived-link",
|
|
3106
|
+
onClick: onShowArchived
|
|
3107
|
+
}, {
|
|
3108
|
+
default: withCtx(() => [
|
|
3109
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("workflows.archivedOnly.hint.link")), 1)
|
|
3110
|
+
]),
|
|
3111
|
+
_: 1
|
|
3112
|
+
})
|
|
3113
|
+
]),
|
|
3114
|
+
_: 1
|
|
3115
|
+
})) : createCommentVNode("", true),
|
|
3116
|
+
unref(projectPages).isSharedSubPage && personalProject.value ? (openBlock(), createBlock(_component_EmptySharedSectionActionBox, {
|
|
3117
|
+
key: 1,
|
|
2965
3118
|
"personal-project": personalProject.value,
|
|
2966
3119
|
"resource-type": "workflows"
|
|
2967
3120
|
}, null, 8, ["personal-project"])) : currentFolder.value ? (openBlock(), createBlock(_component_N8nActionBox, {
|
|
2968
|
-
key:
|
|
3121
|
+
key: 2,
|
|
2969
3122
|
"data-test-id": "empty-folder-action-box",
|
|
2970
3123
|
heading: unref(i18n).baseText("folders.empty.actionbox.title", {
|
|
2971
3124
|
interpolate: { folderName: currentFolder.value.name }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as smartDecimal } from "./InsightsSummary-
|
|
1
|
+
import { fV as useCssVar, hA as merge } from "./index-CxleUtlq.js";
|
|
2
|
+
import { s as smartDecimal } from "./InsightsSummary-7514XMdb.js";
|
|
3
3
|
const generateLinearGradient = (ctx, height) => {
|
|
4
4
|
const gradient = ctx.createLinearGradient(0, 0, 0, height);
|
|
5
5
|
gradient.addColorStop(0, "rgba(255, 111,92, 1)");
|
|
@@ -1,4 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as defineComponent, r as ref, fr as MarkdownIt, x as computed, aY as h, bX as getDefaultExportFromCjs } from "./index-CxleUtlq.js";
|
|
2
|
+
const VueMarkdown = defineComponent({
|
|
3
|
+
name: "VueMarkdown",
|
|
4
|
+
props: {
|
|
5
|
+
source: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true
|
|
8
|
+
},
|
|
9
|
+
options: {
|
|
10
|
+
type: Object,
|
|
11
|
+
required: false
|
|
12
|
+
},
|
|
13
|
+
plugins: {
|
|
14
|
+
type: Array,
|
|
15
|
+
required: false
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(props) {
|
|
19
|
+
const md = ref(new MarkdownIt(props.options ?? {}));
|
|
20
|
+
for (const plugin of props.plugins ?? []) {
|
|
21
|
+
md.value.use(plugin);
|
|
22
|
+
}
|
|
23
|
+
const content = computed(() => md.value.render(props.source));
|
|
24
|
+
return () => h("div", { innerHTML: content.value });
|
|
25
|
+
}
|
|
26
|
+
});
|
|
2
27
|
var core;
|
|
3
28
|
var hasRequiredCore;
|
|
4
29
|
function requireCore() {
|
|
@@ -1539,31 +1564,6 @@ function requireCore() {
|
|
|
1539
1564
|
}
|
|
1540
1565
|
var coreExports = /* @__PURE__ */ requireCore();
|
|
1541
1566
|
const HighlightJS = /* @__PURE__ */ getDefaultExportFromCjs(coreExports);
|
|
1542
|
-
const VueMarkdown = defineComponent({
|
|
1543
|
-
name: "VueMarkdown",
|
|
1544
|
-
props: {
|
|
1545
|
-
source: {
|
|
1546
|
-
type: String,
|
|
1547
|
-
required: true
|
|
1548
|
-
},
|
|
1549
|
-
options: {
|
|
1550
|
-
type: Object,
|
|
1551
|
-
required: false
|
|
1552
|
-
},
|
|
1553
|
-
plugins: {
|
|
1554
|
-
type: Array,
|
|
1555
|
-
required: false
|
|
1556
|
-
}
|
|
1557
|
-
},
|
|
1558
|
-
setup(props) {
|
|
1559
|
-
const md = ref(new MarkdownIt(props.options ?? {}));
|
|
1560
|
-
for (const plugin of props.plugins ?? []) {
|
|
1561
|
-
md.value.use(plugin);
|
|
1562
|
-
}
|
|
1563
|
-
const content = computed(() => md.value.render(props.source));
|
|
1564
|
-
return () => h("div", { innerHTML: content.value });
|
|
1565
|
-
}
|
|
1566
|
-
});
|
|
1567
1567
|
export {
|
|
1568
1568
|
HighlightJS as H,
|
|
1569
1569
|
VueMarkdown as V
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { f3 as makeRestApiRequest, a7 as defineStore, at as useRootStore, r as ref, gB as DATA_STORE_STORE } from "./index-CxleUtlq.js";
|
|
2
|
+
const fetchDataStoresApi = async (context, projectId, options) => {
|
|
3
|
+
const apiEndpoint = projectId ? `/projects/${projectId}/data-stores` : "/data-stores-global";
|
|
4
|
+
return await makeRestApiRequest(
|
|
5
|
+
context,
|
|
6
|
+
"GET",
|
|
7
|
+
apiEndpoint,
|
|
8
|
+
{
|
|
9
|
+
...options
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
};
|
|
13
|
+
const createDataStoreApi = async (context, name, projectId) => {
|
|
14
|
+
return await makeRestApiRequest(
|
|
15
|
+
context,
|
|
16
|
+
"POST",
|
|
17
|
+
`/projects/${projectId}/data-stores`,
|
|
18
|
+
{
|
|
19
|
+
name,
|
|
20
|
+
columns: []
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
const deleteDataStoreApi = async (context, dataStoreId, projectId) => {
|
|
25
|
+
return await makeRestApiRequest(
|
|
26
|
+
context,
|
|
27
|
+
"DELETE",
|
|
28
|
+
`/projects/${projectId}/data-stores/${dataStoreId}`,
|
|
29
|
+
{
|
|
30
|
+
dataStoreId,
|
|
31
|
+
projectId
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
const updateDataStoreApi = async (context, dataStoreId, name, projectId) => {
|
|
36
|
+
return await makeRestApiRequest(
|
|
37
|
+
context,
|
|
38
|
+
"PATCH",
|
|
39
|
+
`/projects/${projectId}/data-stores/${dataStoreId}`,
|
|
40
|
+
{
|
|
41
|
+
name
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
const useDataStoreStore = defineStore(DATA_STORE_STORE, () => {
|
|
46
|
+
const rootStore = useRootStore();
|
|
47
|
+
const dataStores = ref([]);
|
|
48
|
+
const totalCount = ref(0);
|
|
49
|
+
const fetchDataStores = async (projectId, page, pageSize) => {
|
|
50
|
+
const response = await fetchDataStoresApi(rootStore.restApiContext, projectId, {
|
|
51
|
+
skip: (page - 1) * pageSize,
|
|
52
|
+
take: pageSize
|
|
53
|
+
});
|
|
54
|
+
console.log("Data stores fetched:", response);
|
|
55
|
+
dataStores.value = response.data;
|
|
56
|
+
totalCount.value = response.count;
|
|
57
|
+
};
|
|
58
|
+
const createDataStore = async (name, projectId) => {
|
|
59
|
+
const newStore = await createDataStoreApi(rootStore.restApiContext, name, projectId);
|
|
60
|
+
dataStores.value.push(newStore);
|
|
61
|
+
totalCount.value += 1;
|
|
62
|
+
return newStore;
|
|
63
|
+
};
|
|
64
|
+
const deleteDataStore = async (datastoreId, projectId) => {
|
|
65
|
+
const deleted = await deleteDataStoreApi(rootStore.restApiContext, datastoreId, projectId);
|
|
66
|
+
if (deleted) {
|
|
67
|
+
dataStores.value = dataStores.value.filter((store) => store.id !== datastoreId);
|
|
68
|
+
totalCount.value -= 1;
|
|
69
|
+
}
|
|
70
|
+
return deleted;
|
|
71
|
+
};
|
|
72
|
+
const updateDataStore = async (datastoreId, name, projectId) => {
|
|
73
|
+
const updated = await updateDataStoreApi(
|
|
74
|
+
rootStore.restApiContext,
|
|
75
|
+
datastoreId,
|
|
76
|
+
name,
|
|
77
|
+
projectId
|
|
78
|
+
);
|
|
79
|
+
if (updated) {
|
|
80
|
+
const index = dataStores.value.findIndex((store) => store.id === datastoreId);
|
|
81
|
+
if (index !== -1) {
|
|
82
|
+
dataStores.value[index] = { ...dataStores.value[index], name };
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return updated;
|
|
86
|
+
};
|
|
87
|
+
return {
|
|
88
|
+
dataStores,
|
|
89
|
+
totalCount,
|
|
90
|
+
fetchDataStores,
|
|
91
|
+
createDataStore,
|
|
92
|
+
deleteDataStore,
|
|
93
|
+
updateDataStore
|
|
94
|
+
};
|
|
95
|
+
});
|
|
96
|
+
export {
|
|
97
|
+
useDataStoreStore as u
|
|
98
|
+
};
|