n8n-editor-ui 1.60.1 → 1.61.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/dist/assets/@n8n/api-types-1C3yIoBV.js +1 -0
- package/dist/assets/@sentry/vue-UFuYeDxK.js +23662 -0
- package/dist/assets/@vue-flow/{background-BBsDO5na.js → background-VFdKMN89.js} +2 -2
- package/dist/assets/@vue-flow/{controls-3RHEV3L7.js → controls-ByUYVWad.js} +2 -2
- package/dist/assets/@vue-flow/{core-CM-Aqnx_.js → core-DgOSPOHv.js} +1 -1
- package/dist/assets/@vue-flow/{minimap-CbqX0yYi.js → minimap-CXuyA5pl.js} +2 -2
- package/dist/assets/@vue-flow/{node-resizer-CV5M1itj.js → node-resizer-BiyXe9J3.js} +2 -2
- package/dist/assets/@vueuse/{core-BZR8MlRU.js → core-DP7mNILw.js} +6 -6
- package/dist/assets/{AnnotationTagsDropdown-C6L10zAt.js → AnnotationTagsDropdown-DqvseWwg.js} +3 -3
- package/dist/assets/AuthView-BLQKeVDa.js +157 -0
- package/dist/assets/{AuthView-CFsZVOHy.css → AuthView-BnHKMYu_.css} +3 -3
- package/dist/assets/{CanvasControls-DhP5_ZaG.js → CanvasControls-ColeN4c7.js} +12 -11
- package/dist/assets/ChangePasswordView-laaON5B-.js +177 -0
- package/dist/assets/{CredentialsView-zPqWzrJZ.js → CredentialsView-RsHO-hid.js} +15 -14
- package/dist/assets/{ErrorView-C7_LED8T.js → ErrorView-CVlhihDL.js} +12 -11
- package/dist/assets/{ExecutionsFilter-CaMUarba.js → ExecutionsFilter-373wd0v7.js} +4 -4
- package/dist/assets/{ExecutionsView-D-faxzDF.js → ExecutionsView-B1Y-qi0D.js} +41 -16
- package/dist/assets/{FixedCollectionParameter-BOqBR9JK.js → FixedCollectionParameter-D9g5OebO.js} +12 -11
- package/dist/assets/ForgotMyPasswordView-BWtMCTvE.js +127 -0
- package/dist/assets/{MainHeader-D5QtvVVm.js → MainHeader-D9Zo0BIA.js} +19 -18
- package/dist/assets/{MainSidebar-CVXe55j5.js → MainSidebar-DtqGWmgj.js} +12 -11
- package/dist/assets/{NodeCreation-CM9wiEKu.js → NodeCreation-Z5Kx0dXZ.js} +6 -6
- package/dist/assets/{NodeCreator-DRzlClIY.js → NodeCreator-Cwd8lDNF.js} +27 -26
- package/dist/assets/{NodeViewSwitcher-9b7PTcw5.css → NodeViewSwitcher-Bee93VCg.css} +42 -42
- package/dist/assets/{NodeViewSwitcher-BWkrDbac.js → NodeViewSwitcher-DZvKqdTk.js} +147 -71
- package/dist/assets/{ProjectCardBadge-BoGz9diL.js → ProjectCardBadge-Dj0cvfM0.js} +2 -2
- package/dist/assets/{ProjectSettings-B7iqwGnI.js → ProjectSettings-zPM6vepm.js} +12 -11
- package/dist/assets/{ProjectTabs-Cvrg52Pf.js → ProjectTabs-ByCqXofn.js} +3 -3
- package/dist/assets/{PushConnectionTracker-DOnROXP4.js → PushConnectionTracker-B4vL4y_R.js} +4 -4
- package/dist/assets/{ResourcesListLayout-BF42RJP6.js → ResourcesListLayout-D5Jl-SNJ.js} +4 -4
- package/dist/assets/{RunDataAi-BBCJLEbr.js → RunDataAi-50EsjDf6.js} +3 -3
- package/dist/assets/RunDataJson-BlxN0xwc.js +219 -0
- package/dist/assets/{RunDataJson-DGge2zsB.css → RunDataJson-Dtc8i0I7.css} +12 -10
- package/dist/assets/{RunDataJsonActions-r9WehaXR.js → RunDataJsonActions-BnEGvH1N.js} +13 -12
- package/dist/assets/{RunDataSearch-DEZgbY-N.js → RunDataSearch-DS3pvMvG.js} +12 -11
- package/dist/assets/{RunDataTable-D3OOm7ll.js → RunDataTable-C7ykxdts.js} +17 -16
- package/dist/assets/{SamlOnboarding-CkD-eWMm.js → SamlOnboarding-MqtO_Q7o.js} +24 -20
- package/dist/assets/{SettingsApiView-D3BTk9vw.js → SettingsApiView-CItYnGov.js} +12 -11
- package/dist/assets/{SettingsCommunityNodesView-q-tCQNcW.js → SettingsCommunityNodesView-DZNQSYYy.js} +17 -41
- package/dist/assets/{SettingsExternalSecrets-4GeXTRK_.js → SettingsExternalSecrets-BVw27tqX.js} +12 -11
- package/dist/assets/{SettingsFakeDoorView-D27PjwUb.js → SettingsFakeDoorView-DwImvIGm.js} +12 -11
- package/dist/assets/SettingsLdapView-CCXZA2cJ.js +746 -0
- package/dist/assets/{SettingsLogStreamingView-CNoL-zt6.js → SettingsLogStreamingView-CyrM8m6J.js} +12 -11
- package/dist/assets/{SettingsPersonalView-FC1RJZD3.js → SettingsPersonalView-MdnL1_ii.js} +12 -11
- package/dist/assets/{SettingsSourceControl-_HOgFrui.js → SettingsSourceControl-DCY2PqLz.js} +12 -11
- package/dist/assets/{SettingsSso-C-eicXLy.js → SettingsSso-B8p13jLP.js} +12 -11
- package/dist/assets/{SettingsUsageAndPlan-PX3ezziV.js → SettingsUsageAndPlan-BN31-STz.js} +17 -33
- package/dist/assets/{SettingsUsageAndPlan-9dhwk2eO.css → SettingsUsageAndPlan-ayybRhnz.css} +3 -3
- package/dist/assets/{SettingsUsersView-CSHs7EOy.js → SettingsUsersView-BMsD7GNO.js} +12 -11
- package/dist/assets/SettingsView-CtXcNiVg.js +276 -0
- package/dist/assets/SetupView-BLuVCwIj.js +140 -0
- package/dist/assets/{SetupWorkflowCredentialsButton-DDUqVzq4.js → SetupWorkflowCredentialsButton-Div5SUON.js} +11 -10
- package/dist/assets/{SetupWorkflowFromTemplateView-BOzz1mg-.js → SetupWorkflowFromTemplateView-DfFXky0J.js} +14 -13
- package/dist/assets/{SigninView-CBZFW33H.js → SigninView-BqL0a-cZ.js} +121 -133
- package/dist/assets/{SignoutView-CsZY5epQ.js → SignoutView-D01-eFg_.js} +11 -10
- package/dist/assets/{SignupView-BMZ58KZV.js → SignupView-UX8-7Wvn.js} +12 -11
- package/dist/assets/{TemplateDetails-yCPWrFJ_.js → TemplateDetails-DvrkJ9pc.js} +4 -4
- package/dist/assets/{TemplateList-D6SkLaGz.js → TemplateList-Dxye-Lxs.js} +3 -3
- package/dist/assets/TemplatesCollectionView-kKvnA0FM.js +240 -0
- package/dist/assets/{TemplatesSearchView-Vf3xXYJ5.js → TemplatesSearchView-sUgBNVnh.js} +139 -158
- package/dist/assets/{TemplatesView-1ta2NOlv.js → TemplatesView-CCcE6ceG.js} +3 -3
- package/dist/assets/TemplatesWorkflowView-CQWB7PN1.js +245 -0
- package/dist/assets/{VariablesView-DoD7bryP.js → VariablesView-BFvSr6vu.js} +15 -14
- package/dist/assets/{VariablesView-Bj3MOQeD.css → VariablesView-D88cddoZ.css} +18 -18
- package/dist/assets/{WorkerView-DBAJ7wby.js → WorkerView-BpwPXZ6o.js} +16 -15
- package/dist/assets/{WorkflowActivator-CEAGoTVp.js → WorkflowActivator-C98Z6FLJ.js} +4 -4
- package/dist/assets/{WorkflowExecutionsInfoAccordion-Cm1Tl7oM.js → WorkflowExecutionsInfoAccordion-DVXqECJb.js} +3 -3
- package/dist/assets/{WorkflowExecutionsLandingPage-DNYtElvS.js → WorkflowExecutionsLandingPage-DXDsNOih.js} +13 -12
- package/dist/assets/{WorkflowExecutionsPreview-D6jklpDe.js → WorkflowExecutionsPreview-6-8MfOm9.js} +27 -16
- package/dist/assets/{WorkflowExecutionsView-Bfiz_05B.js → WorkflowExecutionsView-D4lW8BoL.js} +16 -15
- package/dist/assets/{WorkflowHistory-B6J45Y57.js → WorkflowHistory-Bvx0HbCZ.js} +14 -13
- package/dist/assets/{WorkflowOnboardingView-sLbtLj5U.js → WorkflowOnboardingView-otfpn0DB.js} +11 -10
- package/dist/assets/{WorkflowPreview-C2PJW2WU.js → WorkflowPreview-DdyMz4mx.js} +3 -3
- package/dist/assets/{WorkflowsView-B3hH8n6V.js → WorkflowsView-BUbDrUpG.js} +17 -16
- package/dist/assets/{cloud-D5p2bTjc.js → cloud-Cxh_nDLb.js} +11 -10
- package/dist/assets/{dateFormatter-BQycHW-g.js → dateFormatter-BFLNShbl.js} +1 -1
- package/dist/assets/{dateformat-DYMw-0LU.js → dateformat-DfmxUC-6.js} +1 -1
- package/dist/assets/email-providers-DOaL31jY.js +1 -0
- package/dist/assets/{fast-json-stable-stringify-dgHKYgJi.js → fast-json-stable-stringify-DDe8InQN.js} +1 -1
- package/dist/assets/{file-saver-taM_eo9L.js → file-saver-DU9Y2h5E.js} +1 -1
- package/dist/assets/highlight.js-DOaL31jY.js +1 -0
- package/dist/assets/{humanize-duration-DLMU-N1g.js → humanize-duration-BS9LxAIm.js} +1 -1
- package/dist/assets/{index-DAAQrhEE.js → index-BK9gQqb6.js} +9034 -8999
- package/dist/assets/{index-CDdd6K0Q.css → index-CUw3_ZiY.css} +216 -138
- package/dist/assets/{jsonpath-B2TgTZLp.js → jsonpath-DbhX-MUF.js} +1 -1
- package/dist/assets/{n8n-DS_nZ0wb.js → n8n-DLOq6Kd-.js} +3306 -3377
- package/dist/assets/{n8n-CZShcbZx.css → n8n-wnQsH82d.css} +60 -60
- package/dist/assets/{pinia-C4PgcsWV.js → pinia-CH9HlKCh.js} +155 -8
- package/dist/assets/{prettier-_aQB57xD.js → prettier-DuWRKCwA.js} +1115 -1052
- package/dist/assets/{pushConnection.store-CGzscDgD.js → pushConnection.store-0ae9n5RY.js} +3 -3
- package/dist/assets/{qrcode.vue-EmD3D6Vb.js → qrcode.vue-BxNS_c3b.js} +1 -1
- package/dist/assets/{templateActions-CR50SItO.js → templateActions-DWDf_J_7.js} +1 -1
- package/dist/assets/{useBeforeUnload-BtEtqBA0.js → useBeforeUnload-Bu28h_Oh.js} +2 -2
- package/dist/assets/{useExecutionDebugging-DdfabEne.js → useExecutionDebugging-Ij7ccVln.js} +2 -2
- package/dist/assets/{usePushConnection-Bs4EtQYE.js → usePushConnection-C5cJk_Eh.js} +5 -5
- package/dist/assets/{useUserHelpers-5Z9lMhqT.js → useUserHelpers-Dec8q_5J.js} +1 -1
- package/dist/assets/{useWorkflowActivate-BvN97i1i.js → useWorkflowActivate-DhxP8t5T.js} +2 -2
- package/dist/assets/{v3-infinite-loading-BDSwUlAm.js → v3-infinite-loading-lAZO0HDs.js} +1 -1
- package/dist/assets/{vendor-DCtS1fjk.js → vendor-DCeaNtb_.js} +212 -133
- package/dist/assets/{vue-agile-Dr5uE4S4.js → vue-agile-B6SWje8b.js} +2 -2
- package/dist/assets/{vue-chartjs-ytwxJ63I.js → vue-chartjs-CAJPqBur.js} +1 -1
- package/dist/assets/{vue-i18n-DBLN2Rh9.js → vue-i18n-CVQE9o3c.js} +1 -1
- package/dist/assets/{vue-json-pretty-DbJSbzQx.js → vue-json-pretty-DyN9p2di.js} +2 -2
- package/dist/assets/xss-DOaL31jY.js +1 -0
- package/dist/index.html +35 -33
- package/index.html +1 -0
- package/package.json +1 -1
- package/vite.config.mts +3 -3
- package/dist/assets/@n8n/api-types-l0sNRNKZ.js +0 -1
- package/dist/assets/AuthView-C4BGHvOD.js +0 -170
- package/dist/assets/ChangePasswordView-DAER_rhe.js +0 -184
- package/dist/assets/ForgotMyPasswordView-DnB1YoK7.js +0 -133
- package/dist/assets/RunDataJson-Cxnl7zBS.js +0 -260
- package/dist/assets/SettingsLdapView-D1c597gY.js +0 -769
- package/dist/assets/SettingsView-B_m4_yr-.js +0 -312
- package/dist/assets/SetupView-B_DKgHYt.js +0 -148
- package/dist/assets/TemplatesCollectionView-CGWvieer.js +0 -253
- package/dist/assets/TemplatesWorkflowView-CxnRbF7x.js +0 -255
- package/dist/assets/email-providers-NhjWeVZA.js +0 -1
- package/dist/assets/highlight.js-NhjWeVZA.js +0 -1
- package/dist/assets/xss-NhjWeVZA.js +0 -1
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import { _ as __unplugin_components_1, i as isFullTemplatesCollection } from "./TemplateDetails-yCPWrFJ_.js";
|
|
2
|
-
import { _ as __unplugin_components_2 } from "./TemplateList-D6SkLaGz.js";
|
|
3
|
-
import { I as defineComponent, an as resolveComponent, J as openBlock, V as createBlock, ah as createSlots, a3 as withCtx, K as createElementBlock, _ as normalizeClass, L as createBaseVNode, a6 as createTextVNode, a7 as toDisplayString, U as createCommentVNode, a8 as createVNode } from "./vendor-DCtS1fjk.js";
|
|
4
|
-
import { m as mapStores } from "./pinia-C4PgcsWV.js";
|
|
5
|
-
import { T as TemplatesView } from "./TemplatesView-1ta2NOlv.js";
|
|
6
|
-
import { br as usePostHog, $ as useTemplatesStore, dP as setPageTitle, V as VIEWS, a4 as useNodeTypesStore, a1 as useExternalHooks } from "./index-DAAQrhEE.js";
|
|
7
|
-
import { u as useTemplateWorkflow } from "./templateActions-CR50SItO.js";
|
|
8
|
-
import { _ as _export_sfc } from "./n8n-DS_nZ0wb.js";
|
|
9
|
-
import "./axios-B4zXCSve.js";
|
|
10
|
-
import "./flatted-D70IerrI.js";
|
|
11
|
-
import "./bowser-C3wWO1p5.js";
|
|
12
|
-
import "./@vueuse/core-BZR8MlRU.js";
|
|
13
|
-
import "./lodash-es-rVh4nriD.js";
|
|
14
|
-
import "./@n8n/permissions-BxSXRD9U.js";
|
|
15
|
-
import "./uuid-BoySKAeK.js";
|
|
16
|
-
import "./dateformat-DYMw-0LU.js";
|
|
17
|
-
import "./vue-i18n-DBLN2Rh9.js";
|
|
18
|
-
import "./@jsplumb/util-BwtpiQ4c.js";
|
|
19
|
-
import "./@jsplumb/core-B__RSZHf.js";
|
|
20
|
-
import "./@jsplumb/common-s1StEx7B.js";
|
|
21
|
-
import "./@jsplumb/connector-bezier-D659hq4c.js";
|
|
22
|
-
import "./@jsplumb/browser-ui-BphmFVJY.js";
|
|
23
|
-
import "./luxon-Bt_g4NOb.js";
|
|
24
|
-
import "./@n8n/codemirror-lang-CIGGB1t0.js";
|
|
25
|
-
import "./@lezer/common-CnY9etib.js";
|
|
26
|
-
import "./@n8n/codemirror-lang-sql-C41WNa63.js";
|
|
27
|
-
import "./prettier-_aQB57xD.js";
|
|
28
|
-
import "./codemirror-lang-html-n8n-CXTCIWzP.js";
|
|
29
|
-
import "./esprima-next-DUEu30kB.js";
|
|
30
|
-
import "./fast-json-stable-stringify-dgHKYgJi.js";
|
|
31
|
-
import "./timeago.js-CgQus8nl.js";
|
|
32
|
-
import "./qrcode.vue-EmD3D6Vb.js";
|
|
33
|
-
import "./vue3-touch-events-DVOgU3fI.js";
|
|
34
|
-
import "./chart.js-DiBOFLDH.js";
|
|
35
|
-
const _sfc_main = defineComponent({
|
|
36
|
-
name: "TemplatesCollectionView",
|
|
37
|
-
components: {
|
|
38
|
-
TemplateDetails: __unplugin_components_1,
|
|
39
|
-
TemplateList: __unplugin_components_2,
|
|
40
|
-
TemplatesView
|
|
41
|
-
},
|
|
42
|
-
setup() {
|
|
43
|
-
const externalHooks = useExternalHooks();
|
|
44
|
-
return {
|
|
45
|
-
externalHooks
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
computed: {
|
|
49
|
-
...mapStores(useTemplatesStore, usePostHog),
|
|
50
|
-
collection() {
|
|
51
|
-
return this.templatesStore.getCollectionById(this.collectionId);
|
|
52
|
-
},
|
|
53
|
-
collectionId() {
|
|
54
|
-
return Array.isArray(this.$route.params.id) ? this.$route.params.id[0] : this.$route.params.id;
|
|
55
|
-
},
|
|
56
|
-
collectionWorkflows() {
|
|
57
|
-
if (!this.collection || this.loading) {
|
|
58
|
-
return [];
|
|
59
|
-
}
|
|
60
|
-
return this.collection.workflows.map(({ id }) => this.templatesStore.getTemplateById(id.toString())).filter((workflow) => !!workflow);
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
data() {
|
|
64
|
-
return {
|
|
65
|
-
loading: true,
|
|
66
|
-
notFoundError: false
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
watch: {
|
|
70
|
-
collection(collection) {
|
|
71
|
-
if (collection) {
|
|
72
|
-
setPageTitle(`n8n - Template collection: ${collection.name}`);
|
|
73
|
-
} else {
|
|
74
|
-
setPageTitle("n8n - Templates");
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
async mounted() {
|
|
79
|
-
this.scrollToTop();
|
|
80
|
-
if (this.collection && "full" in this.collection && this.collection.full) {
|
|
81
|
-
this.loading = false;
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
try {
|
|
85
|
-
await this.templatesStore.fetchCollectionById(this.collectionId);
|
|
86
|
-
} catch (e) {
|
|
87
|
-
this.notFoundError = true;
|
|
88
|
-
}
|
|
89
|
-
this.loading = false;
|
|
90
|
-
},
|
|
91
|
-
methods: {
|
|
92
|
-
scrollToTop() {
|
|
93
|
-
setTimeout(() => {
|
|
94
|
-
const contentArea = document.getElementById("content");
|
|
95
|
-
if (contentArea) {
|
|
96
|
-
contentArea.scrollTo({
|
|
97
|
-
top: 0,
|
|
98
|
-
behavior: "smooth"
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}, 50);
|
|
102
|
-
},
|
|
103
|
-
onOpenTemplate({ event, id }) {
|
|
104
|
-
this.navigateTo(event, VIEWS.TEMPLATE, id);
|
|
105
|
-
},
|
|
106
|
-
async onUseWorkflow({ event, id }) {
|
|
107
|
-
await useTemplateWorkflow({
|
|
108
|
-
posthogStore: this.posthogStore,
|
|
109
|
-
router: this.$router,
|
|
110
|
-
templateId: id,
|
|
111
|
-
inNewBrowserTab: event.metaKey || event.ctrlKey,
|
|
112
|
-
templatesStore: useTemplatesStore(),
|
|
113
|
-
externalHooks: this.externalHooks,
|
|
114
|
-
nodeTypesStore: useNodeTypesStore(),
|
|
115
|
-
telemetry: this.$telemetry,
|
|
116
|
-
source: "template_list"
|
|
117
|
-
});
|
|
118
|
-
},
|
|
119
|
-
navigateTo(e, page, id) {
|
|
120
|
-
if (e.metaKey || e.ctrlKey) {
|
|
121
|
-
const route = this.$router.resolve({ name: page, params: { id } });
|
|
122
|
-
window.open(route.href, "_blank");
|
|
123
|
-
return;
|
|
124
|
-
} else {
|
|
125
|
-
void this.$router.push({ name: page, params: { id } });
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
isFullTemplatesCollection
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
const wrapper = "_wrapper_b0vqe_1";
|
|
132
|
-
const notFound = "_notFound_b0vqe_11";
|
|
133
|
-
const title = "_title_b0vqe_15";
|
|
134
|
-
const button = "_button_b0vqe_19";
|
|
135
|
-
const mainContent = "_mainContent_b0vqe_23";
|
|
136
|
-
const markdown = "_markdown_b0vqe_34";
|
|
137
|
-
const details = "_details_b0vqe_38";
|
|
138
|
-
const style0 = {
|
|
139
|
-
wrapper,
|
|
140
|
-
notFound,
|
|
141
|
-
title,
|
|
142
|
-
button,
|
|
143
|
-
mainContent,
|
|
144
|
-
markdown,
|
|
145
|
-
details
|
|
146
|
-
};
|
|
147
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
148
|
-
const _component_n8n_heading = resolveComponent("n8n-heading");
|
|
149
|
-
const _component_n8n_text = resolveComponent("n8n-text");
|
|
150
|
-
const _component_n8n_loading = resolveComponent("n8n-loading");
|
|
151
|
-
const _component_n8n_markdown = resolveComponent("n8n-markdown");
|
|
152
|
-
const _component_TemplateList = __unplugin_components_2;
|
|
153
|
-
const _component_TemplateDetails = __unplugin_components_1;
|
|
154
|
-
const _component_TemplatesView = resolveComponent("TemplatesView");
|
|
155
|
-
return openBlock(), createBlock(_component_TemplatesView, { "go-back-enabled": true }, createSlots({
|
|
156
|
-
header: withCtx(() => [
|
|
157
|
-
!_ctx.notFoundError ? (openBlock(), createElementBlock("div", {
|
|
158
|
-
key: 0,
|
|
159
|
-
class: normalizeClass(_ctx.$style.wrapper)
|
|
160
|
-
}, [
|
|
161
|
-
createBaseVNode("div", {
|
|
162
|
-
class: normalizeClass(_ctx.$style.title)
|
|
163
|
-
}, [
|
|
164
|
-
_ctx.collection && _ctx.collection.name ? (openBlock(), createBlock(_component_n8n_heading, {
|
|
165
|
-
key: 0,
|
|
166
|
-
tag: "h1",
|
|
167
|
-
size: "2xlarge"
|
|
168
|
-
}, {
|
|
169
|
-
default: withCtx(() => [
|
|
170
|
-
createTextVNode(toDisplayString(_ctx.collection.name), 1)
|
|
171
|
-
]),
|
|
172
|
-
_: 1
|
|
173
|
-
})) : createCommentVNode("", true),
|
|
174
|
-
_ctx.collection && _ctx.collection.name ? (openBlock(), createBlock(_component_n8n_text, {
|
|
175
|
-
key: 1,
|
|
176
|
-
color: "text-base",
|
|
177
|
-
size: "small"
|
|
178
|
-
}, {
|
|
179
|
-
default: withCtx(() => [
|
|
180
|
-
createTextVNode(toDisplayString(_ctx.$locale.baseText("templates.collection")), 1)
|
|
181
|
-
]),
|
|
182
|
-
_: 1
|
|
183
|
-
})) : createCommentVNode("", true),
|
|
184
|
-
createVNode(_component_n8n_loading, {
|
|
185
|
-
loading: !_ctx.collection || !_ctx.collection.name,
|
|
186
|
-
rows: 2,
|
|
187
|
-
variant: "h1"
|
|
188
|
-
}, null, 8, ["loading"])
|
|
189
|
-
], 2)
|
|
190
|
-
], 2)) : (openBlock(), createElementBlock("div", {
|
|
191
|
-
key: 1,
|
|
192
|
-
class: normalizeClass(_ctx.$style.notFound)
|
|
193
|
-
}, [
|
|
194
|
-
createVNode(_component_n8n_text, { color: "text-base" }, {
|
|
195
|
-
default: withCtx(() => [
|
|
196
|
-
createTextVNode(toDisplayString(_ctx.$locale.baseText("templates.collectionsNotFound")), 1)
|
|
197
|
-
]),
|
|
198
|
-
_: 1
|
|
199
|
-
})
|
|
200
|
-
], 2))
|
|
201
|
-
]),
|
|
202
|
-
_: 2
|
|
203
|
-
}, [
|
|
204
|
-
!_ctx.notFoundError ? {
|
|
205
|
-
name: "content",
|
|
206
|
-
fn: withCtx(() => [
|
|
207
|
-
createBaseVNode("div", {
|
|
208
|
-
class: normalizeClass(_ctx.$style.wrapper)
|
|
209
|
-
}, [
|
|
210
|
-
createBaseVNode("div", {
|
|
211
|
-
class: normalizeClass(_ctx.$style.mainContent)
|
|
212
|
-
}, [
|
|
213
|
-
_ctx.loading || _ctx.isFullTemplatesCollection(_ctx.collection) ? (openBlock(), createElementBlock("div", {
|
|
214
|
-
key: 0,
|
|
215
|
-
class: normalizeClass(_ctx.$style.markdown)
|
|
216
|
-
}, [
|
|
217
|
-
createVNode(_component_n8n_markdown, {
|
|
218
|
-
content: _ctx.isFullTemplatesCollection(_ctx.collection) && _ctx.collection.description,
|
|
219
|
-
images: _ctx.isFullTemplatesCollection(_ctx.collection) && _ctx.collection.image,
|
|
220
|
-
loading: _ctx.loading
|
|
221
|
-
}, null, 8, ["content", "images", "loading"])
|
|
222
|
-
], 2)) : createCommentVNode("", true),
|
|
223
|
-
createVNode(_component_TemplateList, {
|
|
224
|
-
"infinite-scroll-enabled": false,
|
|
225
|
-
loading: _ctx.loading,
|
|
226
|
-
"use-workflow-button": true,
|
|
227
|
-
workflows: _ctx.collectionWorkflows,
|
|
228
|
-
onUseWorkflow: _ctx.onUseWorkflow,
|
|
229
|
-
onOpenTemplate: _ctx.onOpenTemplate
|
|
230
|
-
}, null, 8, ["loading", "workflows", "onUseWorkflow", "onOpenTemplate"])
|
|
231
|
-
], 2),
|
|
232
|
-
createBaseVNode("div", {
|
|
233
|
-
class: normalizeClass(_ctx.$style.details)
|
|
234
|
-
}, [
|
|
235
|
-
createVNode(_component_TemplateDetails, {
|
|
236
|
-
"block-title": _ctx.$locale.baseText("template.details.appsInTheCollection"),
|
|
237
|
-
loading: _ctx.loading,
|
|
238
|
-
template: _ctx.collection
|
|
239
|
-
}, null, 8, ["block-title", "loading", "template"])
|
|
240
|
-
], 2)
|
|
241
|
-
], 2)
|
|
242
|
-
]),
|
|
243
|
-
key: "0"
|
|
244
|
-
} : void 0
|
|
245
|
-
]), 1024);
|
|
246
|
-
}
|
|
247
|
-
const cssModules = {
|
|
248
|
-
"$style": style0
|
|
249
|
-
};
|
|
250
|
-
const TemplatesCollectionView = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__cssModules", cssModules]]);
|
|
251
|
-
export {
|
|
252
|
-
TemplatesCollectionView as default
|
|
253
|
-
};
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { _ as __unplugin_components_1 } from "./TemplateDetails-yCPWrFJ_.js";
|
|
2
|
-
import { W as WorkflowPreview } from "./WorkflowPreview-C2PJW2WU.js";
|
|
3
|
-
import { I as defineComponent, an as resolveComponent, J as openBlock, V as createBlock, ah as createSlots, a3 as withCtx, K as createElementBlock, _ as normalizeClass, L as createBaseVNode, a6 as createTextVNode, a7 as toDisplayString, U as createCommentVNode, a8 as createVNode } from "./vendor-DCtS1fjk.js";
|
|
4
|
-
import { m as mapStores } from "./pinia-C4PgcsWV.js";
|
|
5
|
-
import { T as TemplatesView } from "./TemplatesView-1ta2NOlv.js";
|
|
6
|
-
import { br as usePostHog, $ as useTemplatesStore, dP as setPageTitle, a4 as useNodeTypesStore, a1 as useExternalHooks } from "./index-DAAQrhEE.js";
|
|
7
|
-
import { u as useTemplateWorkflow } from "./templateActions-CR50SItO.js";
|
|
8
|
-
import { _ as _export_sfc } from "./n8n-DS_nZ0wb.js";
|
|
9
|
-
import "./axios-B4zXCSve.js";
|
|
10
|
-
import "./flatted-D70IerrI.js";
|
|
11
|
-
import "./bowser-C3wWO1p5.js";
|
|
12
|
-
import "./@vueuse/core-BZR8MlRU.js";
|
|
13
|
-
import "./lodash-es-rVh4nriD.js";
|
|
14
|
-
import "./@n8n/permissions-BxSXRD9U.js";
|
|
15
|
-
import "./uuid-BoySKAeK.js";
|
|
16
|
-
import "./dateformat-DYMw-0LU.js";
|
|
17
|
-
import "./vue-i18n-DBLN2Rh9.js";
|
|
18
|
-
import "./@jsplumb/util-BwtpiQ4c.js";
|
|
19
|
-
import "./@jsplumb/core-B__RSZHf.js";
|
|
20
|
-
import "./@jsplumb/common-s1StEx7B.js";
|
|
21
|
-
import "./@jsplumb/connector-bezier-D659hq4c.js";
|
|
22
|
-
import "./@jsplumb/browser-ui-BphmFVJY.js";
|
|
23
|
-
import "./luxon-Bt_g4NOb.js";
|
|
24
|
-
import "./@n8n/codemirror-lang-CIGGB1t0.js";
|
|
25
|
-
import "./@lezer/common-CnY9etib.js";
|
|
26
|
-
import "./@n8n/codemirror-lang-sql-C41WNa63.js";
|
|
27
|
-
import "./prettier-_aQB57xD.js";
|
|
28
|
-
import "./codemirror-lang-html-n8n-CXTCIWzP.js";
|
|
29
|
-
import "./esprima-next-DUEu30kB.js";
|
|
30
|
-
import "./fast-json-stable-stringify-dgHKYgJi.js";
|
|
31
|
-
import "./timeago.js-CgQus8nl.js";
|
|
32
|
-
import "./qrcode.vue-EmD3D6Vb.js";
|
|
33
|
-
import "./vue3-touch-events-DVOgU3fI.js";
|
|
34
|
-
import "./chart.js-DiBOFLDH.js";
|
|
35
|
-
const _sfc_main = defineComponent({
|
|
36
|
-
name: "TemplatesWorkflowView",
|
|
37
|
-
components: {
|
|
38
|
-
TemplateDetails: __unplugin_components_1,
|
|
39
|
-
TemplatesView,
|
|
40
|
-
WorkflowPreview
|
|
41
|
-
},
|
|
42
|
-
setup() {
|
|
43
|
-
const externalHooks = useExternalHooks();
|
|
44
|
-
return {
|
|
45
|
-
externalHooks
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
computed: {
|
|
49
|
-
...mapStores(useTemplatesStore, usePostHog),
|
|
50
|
-
template() {
|
|
51
|
-
return this.templatesStore.getFullTemplateById(this.templateId);
|
|
52
|
-
},
|
|
53
|
-
templateId() {
|
|
54
|
-
return Array.isArray(this.$route.params.id) ? this.$route.params.id[0] : this.$route.params.id;
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
data() {
|
|
58
|
-
return {
|
|
59
|
-
loading: true,
|
|
60
|
-
showPreview: true,
|
|
61
|
-
notFoundError: false
|
|
62
|
-
};
|
|
63
|
-
},
|
|
64
|
-
watch: {
|
|
65
|
-
template(template) {
|
|
66
|
-
if (template) {
|
|
67
|
-
setPageTitle(`n8n - Template template: ${template.name}`);
|
|
68
|
-
} else {
|
|
69
|
-
setPageTitle("n8n - Templates");
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
async mounted() {
|
|
74
|
-
this.scrollToTop();
|
|
75
|
-
if (this.template && this.template.full) {
|
|
76
|
-
this.loading = false;
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
try {
|
|
80
|
-
await this.templatesStore.fetchTemplateById(this.templateId);
|
|
81
|
-
} catch (e) {
|
|
82
|
-
this.notFoundError = true;
|
|
83
|
-
}
|
|
84
|
-
this.loading = false;
|
|
85
|
-
},
|
|
86
|
-
methods: {
|
|
87
|
-
async openTemplateSetup(id, e) {
|
|
88
|
-
await useTemplateWorkflow({
|
|
89
|
-
posthogStore: this.posthogStore,
|
|
90
|
-
router: this.$router,
|
|
91
|
-
templateId: id,
|
|
92
|
-
inNewBrowserTab: e.metaKey || e.ctrlKey,
|
|
93
|
-
externalHooks: this.externalHooks,
|
|
94
|
-
nodeTypesStore: useNodeTypesStore(),
|
|
95
|
-
telemetry: this.$telemetry,
|
|
96
|
-
templatesStore: useTemplatesStore(),
|
|
97
|
-
source: "template_preview"
|
|
98
|
-
});
|
|
99
|
-
},
|
|
100
|
-
onHidePreview() {
|
|
101
|
-
this.showPreview = false;
|
|
102
|
-
},
|
|
103
|
-
scrollToTop() {
|
|
104
|
-
const contentArea = document.getElementById("content");
|
|
105
|
-
if (contentArea) {
|
|
106
|
-
contentArea.scrollTo({
|
|
107
|
-
top: 0
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
const wrapper = "_wrapper_trbdo_1";
|
|
114
|
-
const notFound = "_notFound_trbdo_6";
|
|
115
|
-
const title = "_title_trbdo_10";
|
|
116
|
-
const button = "_button_trbdo_14";
|
|
117
|
-
const image = "_image_trbdo_18";
|
|
118
|
-
const content = "_content_trbdo_29";
|
|
119
|
-
const markdown = "_markdown_trbdo_40";
|
|
120
|
-
const details = "_details_trbdo_51";
|
|
121
|
-
const style0 = {
|
|
122
|
-
wrapper,
|
|
123
|
-
notFound,
|
|
124
|
-
title,
|
|
125
|
-
button,
|
|
126
|
-
image,
|
|
127
|
-
content,
|
|
128
|
-
markdown,
|
|
129
|
-
details
|
|
130
|
-
};
|
|
131
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
132
|
-
const _component_n8n_heading = resolveComponent("n8n-heading");
|
|
133
|
-
const _component_n8n_text = resolveComponent("n8n-text");
|
|
134
|
-
const _component_n8n_loading = resolveComponent("n8n-loading");
|
|
135
|
-
const _component_n8n_button = resolveComponent("n8n-button");
|
|
136
|
-
const _component_WorkflowPreview = WorkflowPreview;
|
|
137
|
-
const _component_n8n_markdown = resolveComponent("n8n-markdown");
|
|
138
|
-
const _component_TemplateDetails = __unplugin_components_1;
|
|
139
|
-
const _component_TemplatesView = resolveComponent("TemplatesView");
|
|
140
|
-
return openBlock(), createBlock(_component_TemplatesView, { "go-back-enabled": true }, createSlots({
|
|
141
|
-
header: withCtx(() => [
|
|
142
|
-
!_ctx.notFoundError ? (openBlock(), createElementBlock("div", {
|
|
143
|
-
key: 0,
|
|
144
|
-
class: normalizeClass(_ctx.$style.wrapper)
|
|
145
|
-
}, [
|
|
146
|
-
createBaseVNode("div", {
|
|
147
|
-
class: normalizeClass(_ctx.$style.title)
|
|
148
|
-
}, [
|
|
149
|
-
_ctx.template && _ctx.template.name ? (openBlock(), createBlock(_component_n8n_heading, {
|
|
150
|
-
key: 0,
|
|
151
|
-
tag: "h1",
|
|
152
|
-
size: "2xlarge"
|
|
153
|
-
}, {
|
|
154
|
-
default: withCtx(() => [
|
|
155
|
-
createTextVNode(toDisplayString(_ctx.template.name), 1)
|
|
156
|
-
]),
|
|
157
|
-
_: 1
|
|
158
|
-
})) : createCommentVNode("", true),
|
|
159
|
-
_ctx.template && _ctx.template.name ? (openBlock(), createBlock(_component_n8n_text, {
|
|
160
|
-
key: 1,
|
|
161
|
-
color: "text-base",
|
|
162
|
-
size: "small"
|
|
163
|
-
}, {
|
|
164
|
-
default: withCtx(() => [
|
|
165
|
-
createTextVNode(toDisplayString(_ctx.$locale.baseText("generic.workflow")), 1)
|
|
166
|
-
]),
|
|
167
|
-
_: 1
|
|
168
|
-
})) : createCommentVNode("", true),
|
|
169
|
-
createVNode(_component_n8n_loading, {
|
|
170
|
-
loading: !_ctx.template || !_ctx.template.name,
|
|
171
|
-
rows: 2,
|
|
172
|
-
variant: "h1"
|
|
173
|
-
}, null, 8, ["loading"])
|
|
174
|
-
], 2),
|
|
175
|
-
createBaseVNode("div", {
|
|
176
|
-
class: normalizeClass(_ctx.$style.button)
|
|
177
|
-
}, [
|
|
178
|
-
_ctx.template ? (openBlock(), createBlock(_component_n8n_button, {
|
|
179
|
-
key: 0,
|
|
180
|
-
"data-test-id": "use-template-button",
|
|
181
|
-
label: _ctx.$locale.baseText("template.buttons.useThisWorkflowButton"),
|
|
182
|
-
size: "large",
|
|
183
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.openTemplateSetup(_ctx.templateId, $event))
|
|
184
|
-
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
185
|
-
createVNode(_component_n8n_loading, {
|
|
186
|
-
loading: !_ctx.template,
|
|
187
|
-
rows: 1,
|
|
188
|
-
variant: "button"
|
|
189
|
-
}, null, 8, ["loading"])
|
|
190
|
-
], 2)
|
|
191
|
-
], 2)) : (openBlock(), createElementBlock("div", {
|
|
192
|
-
key: 1,
|
|
193
|
-
class: normalizeClass(_ctx.$style.notFound)
|
|
194
|
-
}, [
|
|
195
|
-
createVNode(_component_n8n_text, { color: "text-base" }, {
|
|
196
|
-
default: withCtx(() => [
|
|
197
|
-
createTextVNode(toDisplayString(_ctx.$locale.baseText("templates.workflowsNotFound")), 1)
|
|
198
|
-
]),
|
|
199
|
-
_: 1
|
|
200
|
-
})
|
|
201
|
-
], 2))
|
|
202
|
-
]),
|
|
203
|
-
_: 2
|
|
204
|
-
}, [
|
|
205
|
-
!_ctx.notFoundError ? {
|
|
206
|
-
name: "content",
|
|
207
|
-
fn: withCtx(() => {
|
|
208
|
-
var _a, _b, _c;
|
|
209
|
-
return [
|
|
210
|
-
createBaseVNode("div", {
|
|
211
|
-
class: normalizeClass(_ctx.$style.image)
|
|
212
|
-
}, [
|
|
213
|
-
_ctx.showPreview ? (openBlock(), createBlock(_component_WorkflowPreview, {
|
|
214
|
-
key: 0,
|
|
215
|
-
loading: _ctx.loading,
|
|
216
|
-
workflow: (_a = _ctx.template) == null ? void 0 : _a.workflow,
|
|
217
|
-
onClose: _ctx.onHidePreview
|
|
218
|
-
}, null, 8, ["loading", "workflow", "onClose"])) : createCommentVNode("", true)
|
|
219
|
-
], 2),
|
|
220
|
-
createBaseVNode("div", {
|
|
221
|
-
class: normalizeClass(_ctx.$style.content)
|
|
222
|
-
}, [
|
|
223
|
-
createBaseVNode("div", {
|
|
224
|
-
class: normalizeClass(_ctx.$style.markdown),
|
|
225
|
-
"data-test-id": "template-description"
|
|
226
|
-
}, [
|
|
227
|
-
createVNode(_component_n8n_markdown, {
|
|
228
|
-
content: (_b = _ctx.template) == null ? void 0 : _b.description,
|
|
229
|
-
images: (_c = _ctx.template) == null ? void 0 : _c.image,
|
|
230
|
-
loading: _ctx.loading
|
|
231
|
-
}, null, 8, ["content", "images", "loading"])
|
|
232
|
-
], 2),
|
|
233
|
-
createBaseVNode("div", {
|
|
234
|
-
class: normalizeClass(_ctx.$style.details)
|
|
235
|
-
}, [
|
|
236
|
-
createVNode(_component_TemplateDetails, {
|
|
237
|
-
"block-title": _ctx.$locale.baseText("template.details.appsInTheWorkflow"),
|
|
238
|
-
loading: _ctx.loading,
|
|
239
|
-
template: _ctx.template
|
|
240
|
-
}, null, 8, ["block-title", "loading", "template"])
|
|
241
|
-
], 2)
|
|
242
|
-
], 2)
|
|
243
|
-
];
|
|
244
|
-
}),
|
|
245
|
-
key: "0"
|
|
246
|
-
} : void 0
|
|
247
|
-
]), 1024);
|
|
248
|
-
}
|
|
249
|
-
const cssModules = {
|
|
250
|
-
"$style": style0
|
|
251
|
-
};
|
|
252
|
-
const TemplatesWorkflowView = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__cssModules", cssModules]]);
|
|
253
|
-
export {
|
|
254
|
-
TemplatesWorkflowView as default
|
|
255
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./n8n-DS_nZ0wb.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./n8n-DS_nZ0wb.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./n8n-DS_nZ0wb.js";
|