n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 9.66 kB
JavaScript
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.13.4"}}catch(e){}}(),System.register(["./chunk-legacy-TXBRODOR.js","./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./_MapCache-legacy-DwgdC8YO.js","./src-legacy-Dwzr7bD0.js","./_plugin-vue_export-helper-legacy-DEZAmQqp.js","./sanitize-html-legacy-ChR3ikxn.js","./constants-legacy-DNCca_FT.js","./merge-legacy-uu1aGqHK.js","./_baseOrderBy-legacy-PsQY_Pvh.js","./orderBy-legacy-B1QhOZ6M.js","./SeverityTag-legacy-BPkIOAOu.js"],(function(e,t){var n,i,a,r,s,o,l,d,u,c,g,p,_,f,m,b,v,k,y,x,w,h,C,T,R,I,N,S,j,L,B,D,U,A,E,W,$,z,M;return{setters:[function(e){n=e.o},function(e){i=e.$,a=e.A,r=e.C,s=e.E,o=e.Ft,l=e.N,d=e.S,u=e.Sn,c=e.T,g=e.Wt,p=e._,_=e._n,f=e.c,m=e.it,b=e.j,v=e.rt,k=e.w,y=e.yt},function(e){x=e.bt,w=e.x},function(e){h=e.$i,C=e.F,T=e.Mi,R=e.Qi,I=e.Zi,N=e.lt,S=e.zt},function(e){j=e.t},function(e){},function(e){L=e.ms,e.ri},function(e){},function(e){B=e.r},function(e){D=e.t},function(e){U=e.i,A=e.n,E=e.t}],execute:function(){(W=document.createElement("style")).textContent="._NoIssuesContainer_1o8ra_2{text-align:center;padding:var(--spacing--4xl)0;flex-direction:column;justify-content:center;align-items:center;display:flex}._CardContainer_i8nk0_2{border:var(--border);border-radius:var(--radius)}._CardContainer_i8nk0_2 ._Card_i8nk0_2:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}._CardContainer_i8nk0_2 ._Card_i8nk0_2:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}._CardContainer_i8nk0_2 ._Card_i8nk0_2:not(:last-child){border-bottom:var(--border)}._Card_i8nk0_2{padding:var(--spacing--sm)var(--spacing--md);align-items:center;gap:var(--spacing--md);background-color:var(--color--background--light-3);grid-template-columns:4fr 1fr;display:grid}._CardTitleContainer_i8nk0_32{margin-bottom:var(--spacing--2xs);align-items:center;gap:var(--spacing--2xs);display:flex}._NoLineBreak_i8nk0_39{white-space:nowrap;align-items:center;gap:var(--spacing--4xs);display:inline-flex}._ActionBar_i8nk0_46{margin-bottom:var(--spacing--sm);justify-content:space-between;align-items:center;display:flex}._NoIssuesContainer_i8nk0_53{text-align:center;padding:var(--spacing--4xl)0;flex-direction:column;justify-content:center;align-items:center;display:flex}._PLoading_i8nk0_62 .el-skeleton__p{margin-top:0}._UnderlinedText_i8nk0_68{text-decoration:underline}\n/*$vite$:1*/",document.head.appendChild(W);try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(P=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[P]="1cb4f9f5-2193-45bf-9c02-4c25a9226147",t._sentryDebugIdIdentifier="sentry-dbid-1cb4f9f5-2193-45bf-9c02-4c25a9226147")}catch(t){}var t,P;$=n(D(),1),z=j(l({__name:"EmptyTab",setup:e=>(e,t)=>(i(),s("div",{class:_(e.$style.NoIssuesContainer)},[b(g(I),{tag:"h3",size:"large",color:"text-base",class:"mb-2xs"},{default:y((()=>[m(e.$slots,"title")])),_:3}),b(g(I),{tag:"p",size:"medium",color:"text-light",class:"mb-2xl"},{default:y((()=>[m(e.$slots,"description")])),_:3})],2))}),[["__cssModules",{$style:{NoIssuesContainer:"_NoIssuesContainer_1o8ra_2"}}]]),M={style:{"max-width":"700px",margin:"0 auto","padding-bottom":"40px"}},e("default",j(l({__name:"MigrationRules",setup(e){const t=f(),n=B(),l=x(),m=o("workflow-issues"),j=o(!1),D=void 0,{state:W,isLoading:P,execute:O}=w((async(e=!1)=>{if(e){const e=await U(n.restApiContext,D);return 0===e.report.workflowResults.length&&e.report.instanceResults.length>0&&(m.value="instance-issues"),j.value=e.shouldCache,e}const t=await A(n.restApiContext,D);return j.value=t.shouldCache,t}),void 0);async function V(){await O(0,!0)}const F=d((()=>[{label:l.baseText("settings.migrationReport.tabs.workflowIssues"),value:"workflow-issues",tag:W.value?.report.workflowResults.length?String(W.value.report.workflowResults.length):void 0},{label:l.baseText("settings.migrationReport.tabs.instanceIssues"),value:"instance-issues",tag:W.value?.report.instanceResults.length?String(W.value.report.instanceResults.length):void 0}])),G=d((()=>({critical:l.baseText("settings.migrationReport.workflowTooltip.critical"),medium:l.baseText("settings.migrationReport.workflowTooltip.medium"),low:l.baseText("settings.migrationReport.workflowTooltip.low")}))),H=d((()=>({critical:l.baseText("settings.migrationReport.instanceTooltip.critical"),medium:l.baseText("settings.migrationReport.instanceTooltip.medium"),low:l.baseText("settings.migrationReport.instanceTooltip.low")}))),J=d((()=>W.value?W.value.totalWorkflows-W.value.report.workflowResults.reduce(((e,t)=>e+t.nbAffectedWorkflows),0):0)),Q={critical:0,medium:1,low:2},Y=d((()=>W.value?.report.workflowResults?(0,$.default)(W.value.report.workflowResults,[e=>Q[e.ruleSeverity]],["asc"]):[])),Z=d((()=>W.value?.report.instanceResults?(0,$.default)(W.value.report.instanceResults,[e=>Q[e.ruleSeverity]],["asc"]):[]));return(e,n)=>(i(),s("div",M,[b(g(I),{tag:"h2",size:"xlarge",color:"text-dark",class:"mb-2xs"},{default:y((()=>[a(u(g(l).baseText("settings.migrationReport.title")),1)])),_:1}),b(g(I),{tag:"p",color:"text-base",class:"mb-2xl"},{default:y((()=>[a(u(g(l).baseText("settings.migrationReport.description",{interpolate:{compatibleCount:String(J.value),totalCount:String(g(W)?.totalWorkflows??0)}}))+" ",1),b(g(N),{theme:"text",href:"https://docs.n8n.io/2-0-breaking-changes/",target:"_blank",rel:"noopener noreferrer"},{default:y((()=>[r("span",{class:_(g(t).UnderlinedText)},u(g(l).baseText("settings.migrationReport.documentationLink")),3),n[1]||(n[1]=a(" ↗ ",-1))])),_:1})])),_:1}),r("div",{class:_(g(t).ActionBar)},[b(g(C),{modelValue:m.value,"onUpdate:modelValue":n[0]||(n[0]=e=>m.value=e),options:F.value,variant:"modern"},null,8,["modelValue","options"]),j.value?(i(),k(g(R),{key:0,variant:"subtle",label:g(l).baseText("settings.migrationReport.refreshButton"),icon:"refresh-cw",loading:g(P),disabled:g(P),onClick:V},null,8,["label","loading","disabled"])):c("",!0)],2),g(P)?(i(),s("div",{key:0,class:_(g(t).CardContainer)},[(i(),s(p,null,v(4,(e=>r("div",{key:e,class:_(g(t).Card)},[r("div",null,[b(g(S),{variant:"p",rows:3,class:_(g(t).PLoading)},null,8,["class"])]),b(g(S),{variant:"button"})],2))),64))],2)):"workflow-issues"===m.value?(i(),s(p,{key:1},[0===g(W)?.report.workflowResults.length?(i(),k(z,{key:0},{title:y((()=>[a(u(g(l).baseText("settings.migrationReport.emptyWorkflowIssues.title")),1)])),description:y((()=>[a(u(g(l).baseText("settings.migrationReport.emptyWorkflowIssues.description")),1)])),_:1})):(i(),s("div",{key:1,class:_(g(t).CardContainer)},[(i(!0),s(p,null,v(Y.value,(e=>(i(),s("div",{key:e.ruleId,class:_(g(t).Card)},[r("div",null,[r("div",{class:_(g(t).CardTitleContainer)},[b(g(I),{tag:"h3",size:"medium",color:"text-dark"},{default:y((()=>[a(u(e.ruleTitle),1)])),_:2},1024),b(g(T),{content:G.value[e.ruleSeverity],placement:"top",enterable:!1},{default:y((()=>[b(E,{severity:e.ruleSeverity},null,8,["severity"])])),_:2},1032,["content"])],2),b(g(I),{tag:"p",color:"text-base"},{default:y((()=>[a(u(e.ruleDescription)+u(e.ruleDescription.endsWith(".")?"":".")+" ",1),e.ruleDocumentationUrl?(i(),k(g(N),{key:0,theme:"text",href:e.ruleDocumentationUrl,target:"_blank",rel:"noopener noreferrer",class:_(g(t).NoLineBreak)},{default:y((()=>[r("span",{class:_(g(t).UnderlinedText)},u(g(l).baseText("settings.migrationReport.documentation")),3),n[2]||(n[2]=a(" ↗ ",-1))])),_:1},8,["href","class"])):c("",!0)])),_:2},1024)]),b(g(N),{class:_(g(t).NoLineBreak),theme:"text",to:{name:g(L).MIGRATION_RULE_REPORT,params:{migrationRuleId:e.ruleId}}},{default:y((()=>[r("span",{class:_(g(t).NoLineBreak)},[a(u(g(l).baseText("settings.migrationReport.workflowsCount",{interpolate:{count:e.nbAffectedWorkflows}}))+" ",1),b(g(h),{icon:"chevron-right",size:24})],2)])),_:2},1032,["class","to"])],2)))),128))],2))],64)):"instance-issues"===m.value?(i(),s(p,{key:2},[0===g(W)?.report.instanceResults.length?(i(),k(z,{key:0},{title:y((()=>[a(u(g(l).baseText("settings.migrationReport.emptyInstanceIssues.title")),1)])),description:y((()=>[a(u(g(l).baseText("settings.migrationReport.emptyInstanceIssues.description")),1)])),_:1})):(i(),s("div",{key:1,class:_(g(t).CardContainer)},[(i(!0),s(p,null,v(Z.value,(e=>(i(),s("div",{key:e.ruleId,class:_(g(t).Card)},[r("div",null,[r("div",{class:_(g(t).CardTitleContainer)},[b(g(I),{tag:"h3"},{default:y((()=>[a(u(e.ruleTitle),1)])),_:2},1024),b(g(T),{content:H.value[e.ruleSeverity],placement:"top",enterable:!1},{default:y((()=>[b(E,{severity:e.ruleSeverity},null,8,["severity"])])),_:2},1032,["content"])],2),b(g(I),{tag:"p",color:"text-base"},{default:y((()=>[a(u(e.ruleDescription)+u(e.ruleDescription.endsWith(".")?"":".")+" ",1),e.ruleDocumentationUrl?(i(),k(g(N),{key:0,theme:"text",href:e.ruleDocumentationUrl,target:"_blank",rel:"noopener noreferrer",class:_(g(t).NoLineBreak)},{default:y((()=>[r("span",{class:_(g(t).UnderlinedText)},u(g(l).baseText("settings.migrationReport.documentation")),3),n[3]||(n[3]=a(" ↗ ",-1))])),_:1},8,["href","class"])):c("",!0)])),_:2},1024)])],2)))),128))],2))],64)):c("",!0)]))}}),[["__cssModules",{$style:{CardContainer:"_CardContainer_i8nk0_2",Card:"_Card_i8nk0_2",CardTitleContainer:"_CardTitleContainer_i8nk0_32",NoLineBreak:"_NoLineBreak_i8nk0_39",ActionBar:"_ActionBar_i8nk0_46",NoIssuesContainer:"_NoIssuesContainer_i8nk0_53",PLoading:"_PLoading_i8nk0_62",UnderlinedText:"_UnderlinedText_i8nk0_68"}}]]))}}}));
//# sourceMappingURL=MigrationRules-legacy-RHGMTpTq.js.map