@budibase/server 1.0.212-alpha.1 → 1.0.212-alpha.2
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/builder/assets/{index.0da107e0.js → index.44dea5cc.js} +1 -1
- package/builder/index.html +1 -1
- package/coverage/clover.xml +55 -49
- package/coverage/coverage-final.json +2 -2
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
- package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
- package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
- package/coverage/lcov-report/api/controllers/component.js.html +1 -1
- package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
- package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
- package/coverage/lcov-report/api/controllers/index.html +1 -1
- package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
- package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
- package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
- package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +1 -1
- package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/role.js.html +1 -1
- package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
- package/coverage/lcov-report/api/controllers/script.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
- package/coverage/lcov-report/api/controllers/user.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
- package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
- package/coverage/lcov-report/api/index.html +1 -1
- package/coverage/lcov-report/api/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
- package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/routes/auth.js.html +1 -1
- package/coverage/lcov-report/api/routes/automation.js.html +1 -1
- package/coverage/lcov-report/api/routes/backup.js.html +1 -1
- package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
- package/coverage/lcov-report/api/routes/component.js.html +1 -1
- package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
- package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
- package/coverage/lcov-report/api/routes/dev.js.html +1 -1
- package/coverage/lcov-report/api/routes/index.html +1 -1
- package/coverage/lcov-report/api/routes/integration.js.html +1 -1
- package/coverage/lcov-report/api/routes/layout.js.html +1 -1
- package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
- package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
- package/coverage/lcov-report/api/routes/permission.js.html +1 -1
- package/coverage/lcov-report/api/routes/query.js.html +1 -1
- package/coverage/lcov-report/api/routes/role.js.html +1 -1
- package/coverage/lcov-report/api/routes/routing.js.html +1 -1
- package/coverage/lcov-report/api/routes/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.js.html +1 -1
- package/coverage/lcov-report/api/routes/table.js.html +1 -1
- package/coverage/lcov-report/api/routes/templates.js.html +1 -1
- package/coverage/lcov-report/api/routes/user.js.html +1 -1
- package/coverage/lcov-report/api/routes/utils/index.html +1 -1
- package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
- package/coverage/lcov-report/api/routes/view.js.html +1 -1
- package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/actions.js.html +1 -1
- package/coverage/lcov-report/automations/automationUtils.js.html +57 -12
- package/coverage/lcov-report/automations/bullboard.js.html +1 -1
- package/coverage/lcov-report/automations/index.html +15 -15
- package/coverage/lcov-report/automations/index.js.html +1 -1
- package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
- package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
- package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
- package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
- package/coverage/lcov-report/automations/steps/index.html +1 -1
- package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
- package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
- package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
- package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
- package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
- package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
- package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
- package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
- package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/triggers.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/index.js.html +1 -1
- package/coverage/lcov-report/constants/layouts.js.html +1 -1
- package/coverage/lcov-report/constants/screens.js.html +1 -1
- package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
- package/coverage/lcov-report/db/index.html +1 -1
- package/coverage/lcov-report/db/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
- package/coverage/lcov-report/db/newid.js.html +1 -1
- package/coverage/lcov-report/db/utils.js.html +1 -1
- package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
- package/coverage/lcov-report/events/index.html +1 -1
- package/coverage/lcov-report/events/index.js.html +1 -1
- package/coverage/lcov-report/events/utils.js.html +1 -1
- package/coverage/lcov-report/index.html +15 -15
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
- package/coverage/lcov-report/middleware/builder.js.html +1 -1
- package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
- package/coverage/lcov-report/middleware/index.html +1 -1
- package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
- package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
- package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/threads/automation.js.html +2 -2
- package/coverage/lcov-report/threads/index.html +1 -1
- package/coverage/lcov-report/threads/query.js.html +1 -1
- package/coverage/lcov-report/threads/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
- package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
- package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
- package/coverage/lcov-report/utilities/global.js.html +1 -1
- package/coverage/lcov-report/utilities/index.html +1 -1
- package/coverage/lcov-report/utilities/index.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
- package/coverage/lcov-report/utilities/security.js.html +1 -1
- package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
- package/coverage/lcov.info +85 -75
- package/dist/automations/automationUtils.js +16 -4
- package/dist/environment.js +1 -1
- package/dist/package.json +6 -6
- package/dist/threads/automation.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/automations/automationUtils.js +19 -4
- package/src/environment.js +2 -1
- package/src/threads/automation.js +1 -1
|
@@ -1245,7 +1245,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1245
1245
|
`),t=D("i"),i=F(n),l=F("?"),s=F(`
|
|
1246
1246
|
This action cannot be undone.`)},m(o,a){$(o,e,a),$(o,t,a),P(t,i),P(t,l),$(o,s,a)},p(o,a){a&1&&n!==(n=o[0].name+"")&&Ce(i,n)},d(o){o&&b(e),o&&b(t),o&&b(s)}}}function x1e(r){let e,t,n,i,l,s;e=new kr({props:{$$slots:{control:[K1e],default:[Q1e]},$$scope:{ctx:r}}});let o={okText:"Delete Automation",onOk:r[3],title:"Confirm Deletion",$$slots:{default:[Z1e]},$$scope:{ctx:r}};n=new cr({props:o}),r[4](n);let a={automation:r[0]};return l=new Y1e({props:a}),r[5](l),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment)},m(u,f){S(e,u,f),$(u,t,f),S(n,u,f),$(u,i,f),S(l,u,f),s=!0},p(u,[f]){const c={};f&134&&(c.$$scope={dirty:f,ctx:u}),e.$set(c);const p={};f&129&&(p.$$scope={dirty:f,ctx:u}),n.$set(p);const d={};f&1&&(d.automation=u[0]),l.$set(d)},i(u){s||(m(e.$$.fragment,u),m(n.$$.fragment,u),m(l.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),_(n.$$.fragment,u),_(l.$$.fragment,u),s=!1},d(u){A(e,u),u&&b(t),r[4](null),A(n,u),u&&b(i),r[5](null),A(l,u)}}}function eme(r,e,t){let n;ae(r,jt,f=>t(6,n=f));let{automation:i}=e,l,s;async function o(){try{await Ft.actions.delete(i),we.success("Automation deleted successfully"),n("../automate")}catch{we.error("Error deleting automation")}}function a(f){K[f?"unshift":"push"](()=>{l=f,t(1,l)})}function u(f){K[f?"unshift":"push"](()=>{s=f,t(2,s)})}return r.$$set=f=>{"automation"in f&&t(0,i=f.automation)},[i,l,s,o,a,u]}class tme extends se{constructor(e){super();oe(this,e,eme,x1e,ie,{automation:0})}}function i7(r,e,t){const n=r.slice();return n[5]=e[t],n[7]=t,n}function nme(r){let e,t,n;return e=new tme({props:{automation:r[5]}}),{c(){C(e.$$.fragment),t=R()},m(i,l){S(e,i,l),$(i,t,l),n=!0},p(i,l){const s={};l&1&&(s.automation=i[5]),e.$set(s)},i(i){n||(m(e.$$.fragment,i),n=!0)},o(i){_(e.$$.fragment,i),n=!1},d(i){A(e,i),i&&b(t)}}}function l7(r){let e,t;function n(){return r[3](r[5])}return e=new Nl({props:{border:r[7]>0,icon:"ShareAndroid",text:r[5].name,selected:r[5]._id===r[1],$$slots:{default:[nme]},$$scope:{ctx:r}}}),e.$on("click",n),{c(){C(e.$$.fragment)},m(i,l){S(e,i,l),t=!0},p(i,l){r=i;const s={};l&1&&(s.text=r[5].name),l&3&&(s.selected=r[5]._id===r[1]),l&257&&(s.$$scope={dirty:l,ctx:r}),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){A(e,i)}}}function rme(r){let e,t,n=r[0].automations,i=[];for(let s=0;s<n.length;s+=1)i[s]=l7(i7(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){e=D("div");for(let s=0;s<i.length;s+=1)i[s].c();y(e,"class","automations-list svelte-g64vb")},m(s,o){$(s,e,o);for(let a=0;a<i.length;a+=1)i[a].m(e,null);t=!0},p(s,[o]){if(o&7){n=s[0].automations;let a;for(a=0;a<n.length;a+=1){const u=i7(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=l7(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){s&&b(e),mt(i,s)}}}function ime(r,e,t){let n,i,l;ae(r,jt,a=>t(4,i=a)),ae(r,Ft,a=>t(0,l=a)),Tt(async()=>{try{await Ft.actions.fetch()}catch{we.error("Error getting automations list")}});function s(a){Ft.actions.select(a),i(`./${a._id}`)}const o=a=>s(a);return r.$$.update=()=>{var a,u;r.$$.dirty&1&&t(1,n=(u=(a=l.selectedAutomation)==null?void 0:a.automation)==null?void 0:u._id)},[l,n,s,o]}class lme extends se{constructor(e){super();oe(this,e,ime,rme,ie,{})}}function s7(r,e,t){const n=r.slice();return n[17]=e[t][0],n[18]=e[t][1],n}function sme(r){let e;return{c(){e=F(`Please name your automation, then select a trigger. Every automation must
|
|
1247
1247
|
start with a trigger.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ome(r){let e;return{c(){e=F("Triggers")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ame(r){let e=r[18].name+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i&8&&e!==(e=n[18].name+"")&&Ce(t,e)},d(n){n&&b(t)}}}function o7(r){let e,t,n,i,l,s,o,a,u,f;n=new at({props:{name:r[18].icon}}),s=new Ue({props:{size:"S",$$slots:{default:[ame]},$$scope:{ctx:r}}});function c(){return r[13](r[18])}return{c(){e=D("div"),t=D("div"),C(n.$$.fragment),i=R(),l=D("span"),C(s.$$.fragment),o=R(),y(l,"class","icon-spacing svelte-d3iboa"),y(t,"class","item-body svelte-d3iboa"),y(e,"class","item svelte-d3iboa"),le(e,"selected",r[2]===r[18].name)},m(p,d){$(p,e,d),P(e,t),S(n,t,null),P(t,i),P(t,l),S(s,l,null),P(e,o),a=!0,u||(f=Le(e,"click",c),u=!0)},p(p,d){r=p;const g={};d&8&&(g.name=r[18].icon),n.$set(g);const h={};d&2097160&&(h.$$scope={dirty:d,ctx:r}),s.$set(h),d&12&&le(e,"selected",r[2]===r[18].name)},i(p){a||(m(n.$$.fragment,p),m(s.$$.fragment,p),a=!0)},o(p){_(n.$$.fragment,p),_(s.$$.fragment,p),a=!1},d(p){p&&b(e),A(n),A(s),u=!1,f()}}}function ume(r){let e,t,n,i;e=new Ue({props:{size:"S",$$slots:{default:[ome]},$$scope:{ctx:r}}});let l=r[3],s=[];for(let a=0;a<l.length;a+=1)s[a]=o7(s7(r,l,a));const o=a=>_(s[a],1,1,()=>{s[a]=null});return{c(){C(e.$$.fragment),t=R(),n=D("div");for(let a=0;a<s.length;a+=1)s[a].c();y(n,"class","item-list svelte-d3iboa")},m(a,u){S(e,a,u),$(a,t,u),$(a,n,u);for(let f=0;f<s.length;f+=1)s[f].m(n,null);i=!0},p(a,u){const f={};if(u&2097152&&(f.$$scope={dirty:u,ctx:a}),e.$set(f),u&76){l=a[3];let c;for(c=0;c<l.length;c+=1){const p=s7(a,l,c);s[c]?(s[c].p(p,u),m(s[c],1)):(s[c]=o7(p),s[c].c(),m(s[c],1),s[c].m(n,null))}for(x(),c=l.length;c<s.length;c+=1)o(c);ee()}},i(a){if(!i){m(e.$$.fragment,a);for(let u=0;u<l.length;u+=1)m(s[u]);i=!0}},o(a){_(e.$$.fragment,a),s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)_(s[u]);i=!1},d(a){A(e,a),a&&b(t),a&&b(n),mt(s,a)}}}function fme(r){let e,t,n,i,l,s,o,a,u,f;e=new c1({props:{header:"You must publish your app to activate your automations.",message:"To test your automation before publishing, you can use the 'Run Test' functionality on the next screen."}}),n=new Ue({props:{size:"XS",$$slots:{default:[sme]},$$scope:{ctx:r}}});function c(g){r[10](g)}function p(g){r[11](g)}let d={label:"Name"};return r[0]!==void 0&&(d.value=r[0]),r[4]!==void 0&&(d.error=r[4]),l=new et({props:d}),K.push(()=>ce(l,"value",c)),K.push(()=>ce(l,"error",p)),l.$on("change",r[12]),u=new ze({props:{noPadding:!0,$$slots:{default:[ume]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment),a=R(),C(u.$$.fragment)},m(g,h){S(e,g,h),$(g,t,h),S(n,g,h),$(g,i,h),S(l,g,h),$(g,a,h),S(u,g,h),f=!0},p(g,h){const v={};h&2097152&&(v.$$scope={dirty:h,ctx:g}),n.$set(v);const w={};!s&&h&1&&(s=!0,w.value=g[0],pe(()=>s=!1)),!o&&h&16&&(o=!0,w.error=g[4],pe(()=>o=!1)),l.$set(w);const k={};h&2097164&&(k.$$scope={dirty:h,ctx:g}),u.$set(k)},i(g){f||(m(e.$$.fragment,g),m(n.$$.fragment,g),m(l.$$.fragment,g),m(u.$$.fragment,g),f=!0)},o(g){_(e.$$.fragment,g),_(n.$$.fragment,g),_(l.$$.fragment,g),_(u.$$.fragment,g),f=!1},d(g){A(e,g),g&&b(t),A(n,g),g&&b(i),A(l,g),g&&b(a),A(u,g)}}}function cme(r){let e,t;return e=new It({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:r[5],disabled:!r[2]||!r[0],$$slots:{default:[fme]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,[i]){const l={};i&5&&(l.disabled=!n[2]||!n[0]),i&2097183&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function pme(r,e,t){let n,i,l,s,o,a;ae(r,Ft,T=>t(8,s=T)),ae(r,jt,T=>t(16,o=T)),ae(r,Ps,T=>t(9,a=T));let u,f,c=!1,p,{webhookModal:d}=e;async function g(){var T;try{await Ft.actions.create({name:u,instanceId:n});const E=s.selectedAutomation.constructBlock("TRIGGER",p.stepId,p);Ft.actions.addBlockToAutomation(E),p.stepId==="WEBHOOK"&&d.show,await Ft.actions.save((T=s.selectedAutomation)==null?void 0:T.automation),we.success(`Automation ${u} created`),o(`./${s.selectedAutomation.automation._id}`)}catch{we.error("Error creating automation")}}const h=T=>{p=T,t(2,f=T.name)};function v(T){u=T,t(0,u)}function w(T){i=T,t(4,i),t(1,c),t(0,u)}const k=()=>t(1,c=!0),I=T=>h(T);return r.$$set=T=>{"webhookModal"in T&&t(7,d=T.webhookModal)},r.$$.update=()=>{r.$$.dirty&512&&(n=a._id),r.$$.dirty&3&&t(4,i=c&&!u?"Please specify a name for the automation.":null),r.$$.dirty&256&&t(3,l=Object.entries(s.blockDefinitions.TRIGGER))},[u,c,f,l,i,g,h,d,s,a,v,w,k,I]}class a7 extends se{constructor(e){super();oe(this,e,pme,cme,ie,{webhookModal:7})}}function dme(r){let e,t;return e=new a7({props:{webhookModal:r[1]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.webhookModal=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function mme(r){let e,t,n,i;e=new lme({});let l={$$slots:{default:[dme]},$$scope:{ctx:r}};return n=new yt({props:l}),r[2](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(n,s,o),i=!0},p(s,o){const a={};o&10&&(a.$$scope={dirty:o,ctx:s}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){A(e,s),s&&b(t),r[2](null),A(n,s)}}}function gme(r){let e,t;return e=new _n({props:{title:"Automations",$$slots:{default:[mme]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&11&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function _me(r){let e,t,n,i,l,s;return t=new Sr({props:{selected:"Automations",$$slots:{default:[gme]},$$scope:{ctx:r}}}),l=new at({props:{hoverable:!0,name:"AddCircle"}}),l.$on("click",function(){ft(r[0].show)&&r[0].show.apply(this,arguments)}),{c(){e=D("div"),C(t.$$.fragment),n=R(),i=D("div"),C(l.$$.fragment),y(i,"class","add-button svelte-mcmub4"),y(e,"class","title svelte-mcmub4")},m(o,a){$(o,e,a),S(t,e,null),P(e,n),P(e,i),S(l,i,null),s=!0},p(o,[a]){r=o;const u={};a&11&&(u.$$scope={dirty:a,ctx:r}),t.$set(u)},i(o){s||(m(t.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&b(e),A(t),A(l)}}}function hme(r,e,t){let{modal:n}=e,{webhookModal:i}=e;function l(s){K[s?"unshift":"push"](()=>{n=s,t(0,n)})}return r.$$set=s=>{"modal"in s&&t(0,n=s.modal),"webhookModal"in s&&t(1,i=s.webhookModal)},[n,i,l]}class $me extends se{constructor(e){super();oe(this,e,hme,_me,ie,{modal:0,webhookModal:1})}}function u7(r,e,t){const n=r.slice();return n[7]=e[t],n[9]=t,n}function f7(r){let e,t,n,i,l;function s(u){r[6](u)}let o={showTestStatus:!0,block:r[7]};r[2]!==void 0&&(o.showParameters=r[2]),e=new wy({props:o}),K.push(()=>ce(e,"showParameters",s));let a=r[2]&&r[2][r[7].id]&&c7(r);return{c(){C(e.$$.fragment),n=R(),a&&a.c(),i=Oe()},m(u,f){S(e,u,f),$(u,n,f),a&&a.m(u,f),$(u,i,f),l=!0},p(u,f){const c={};f&1&&(c.block=u[7]),!t&&f&4&&(t=!0,c.showParameters=u[2],pe(()=>t=!1)),e.$set(c),u[2]&&u[2][u[7].id]?a?(a.p(u,f),f&5&&m(a,1)):(a=c7(u),a.c(),m(a,1),a.m(i.parentNode,i)):a&&(x(),_(a,1,1,()=>{a=null}),ee())},i(u){l||(m(e.$$.fragment,u),m(a),l=!0)},o(u){_(e.$$.fragment,u),_(a),l=!1},d(u){A(e,u),u&&b(n),a&&a.d(u),u&&b(i)}}}function c7(r){var a,u;let e,t,n,i,l,s;e=new Yt({props:{noMargin:!0}});let o=((u=(a=r[3])==null?void 0:a[r[9]])==null?void 0:u.outputs.iterations)&&p7(r);return l=new Sr({props:{quiet:!0,noPadding:!0,selected:"Input",$$slots:{default:[yme]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment),t=R(),o&&o.c(),n=R(),i=D("div"),C(l.$$.fragment),y(i,"class","tabs svelte-1mnmi2e")},m(f,c){S(e,f,c),$(f,t,c),o&&o.m(f,c),$(f,n,c),$(f,i,c),S(l,i,null),s=!0},p(f,c){var d,g;((g=(d=f[3])==null?void 0:d[f[9]])==null?void 0:g.outputs.iterations)?o?(o.p(f,c),c&8&&m(o,1)):(o=p7(f),o.c(),m(o,1),o.m(n.parentNode,n)):o&&(x(),_(o,1,1,()=>{o=null}),ee());const p={};c&1032&&(p.$$scope={dirty:c,ctx:f}),l.$set(p)},i(f){s||(m(e.$$.fragment,f),m(o),m(l.$$.fragment,f),s=!0)},o(f){_(e.$$.fragment,f),_(o),_(l.$$.fragment,f),s=!1},d(f){A(e,f),f&&b(t),o&&o.d(f),f&&b(n),f&&b(i),A(l)}}}function p7(r){let e,t,n,i,l,s;return t=new at({props:{name:"Reuse"}}),l=new Je({props:{$$slots:{default:[bme]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),n=R(),i=D("div"),C(l.$$.fragment),Ct(i,"margin-left","10px"),Ct(e,"display","flex"),Ct(e,"padding","10px 10px 0px 12px")},m(o,a){$(o,e,a),S(t,e,null),P(e,n),P(e,i),S(l,i,null),s=!0},p(o,a){const u={};a&1032&&(u.$$scope={dirty:a,ctx:o}),l.$set(u)},i(o){s||(m(t.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&b(e),A(t),A(l)}}}function bme(r){var l,s;let e,t=((s=(l=r[3])==null?void 0:l[r[9]])==null?void 0:s.outputs.iterations)+"",n,i;return{c(){e=F("This loop ran "),n=F(t),i=F(" times.")},m(o,a){$(o,e,a),$(o,n,a),$(o,i,a)},p(o,a){var u,f;a&8&&t!==(t=((f=(u=o[3])==null?void 0:u[o[9]])==null?void 0:f.outputs.iterations)+"")&&Ce(n,t)},d(o){o&&b(e),o&&b(n),o&&b(i)}}}function vme(r){var i,l;let e,t,n;return t=new _i({props:{minHeight:"80px",disabled:!0,value:JSON.stringify((l=(i=r[3])==null?void 0:i[r[9]])==null?void 0:l.inputs,null,2)}}),{c(){e=D("div"),C(t.$$.fragment),Ct(e,"padding","10px 10px 10px 10px")},m(s,o){$(s,e,o),S(t,e,null),n=!0},p(s,o){var u,f;const a={};o&8&&(a.value=JSON.stringify((f=(u=s[3])==null?void 0:u[s[9]])==null?void 0:f.inputs,null,2)),t.$set(a)},i(s){n||(m(t.$$.fragment,s),n=!0)},o(s){_(t.$$.fragment,s),n=!1},d(s){s&&b(e),A(t)}}}function wme(r){var i,l;let e,t,n;return t=new _i({props:{minHeight:"100px",disabled:!0,value:JSON.stringify((l=(i=r[3])==null?void 0:i[r[9]])==null?void 0:l.outputs,null,2)}}),{c(){e=D("div"),C(t.$$.fragment),Ct(e,"padding","10px 10px 10px 10px")},m(s,o){$(s,e,o),S(t,e,null),n=!0},p(s,o){var u,f;const a={};o&8&&(a.value=JSON.stringify((f=(u=s[3])==null?void 0:u[s[9]])==null?void 0:f.outputs,null,2)),t.$set(a)},i(s){n||(m(t.$$.fragment,s),n=!0)},o(s){_(t.$$.fragment,s),n=!1},d(s){s&&b(e),A(t)}}}function yme(r){let e,t,n,i;return e=new _n({props:{title:"Input",$$slots:{default:[vme]},$$scope:{ctx:r}}}),n=new _n({props:{title:"Output",$$slots:{default:[wme]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(l,s){S(e,l,s),$(l,t,s),S(n,l,s),i=!0},p(l,s){const o={};s&1032&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&1032&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){A(e,l),l&&b(t),A(n,l)}}}function d7(r){let e;return{c(){e=D("div"),y(e,"class","separator svelte-1mnmi2e")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function m7(r){let e,t,n,i,l=r[7].stepId!=="LOOP"&&f7(r),s=r[0].length-1!==r[9]&&d7();return{c(){e=D("div"),l&&l.c(),t=R(),s&&s.c(),n=Oe(),y(e,"class","block svelte-1mnmi2e")},m(o,a){$(o,e,a),l&&l.m(e,null),$(o,t,a),s&&s.m(o,a),$(o,n,a),i=!0},p(o,a){o[7].stepId!=="LOOP"?l?(l.p(o,a),a&1&&m(l,1)):(l=f7(o),l.c(),m(l,1),l.m(e,null)):l&&(x(),_(l,1,1,()=>{l=null}),ee()),o[0].length-1!==o[9]?s||(s=d7(),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(o){i||(m(l),i=!0)},o(o){_(l),i=!1},d(o){o&&b(e),l&&l.d(),o&&b(t),s&&s.d(o),o&&b(n)}}}function kme(r){let e,t,n,i,l,s,o,a,u,f,c,p,d;n=new at({props:{name:"MultipleCheck"}}),a=new at({props:{hoverable:!0,name:"Close"}}),a.$on("click",r[5]),f=new Yt({});let g=r[0],h=[];for(let w=0;w<g.length;w+=1)h[w]=m7(u7(r,g,w));const v=w=>_(h[w],1,1,()=>{h[w]=null});return{c(){e=D("div"),t=D("div"),C(n.$$.fragment),i=R(),l=D("div"),l.textContent="Test Details",s=R(),o=D("div"),C(a.$$.fragment),u=R(),C(f.$$.fragment),c=R(),p=D("div");for(let w=0;w<h.length;w+=1)h[w].c();Ct(l,"padding-left","var(--spacing-l)"),y(t,"class","title-text svelte-1mnmi2e"),Ct(o,"padding-right","var(--spacing-xl)"),y(e,"class","title svelte-1mnmi2e"),y(p,"class","container svelte-1mnmi2e")},m(w,k){$(w,e,k),P(e,t),S(n,t,null),P(t,i),P(t,l),P(e,s),P(e,o),S(a,o,null),$(w,u,k),S(f,w,k),$(w,c,k),$(w,p,k);for(let I=0;I<h.length;I+=1)h[I].m(p,null);d=!0},p(w,[k]){if(k&13){g=w[0];let I;for(I=0;I<g.length;I+=1){const T=u7(w,g,I);h[I]?(h[I].p(T,k),m(h[I],1)):(h[I]=m7(T),h[I].c(),m(h[I],1),h[I].m(p,null))}for(x(),I=g.length;I<h.length;I+=1)v(I);ee()}},i(w){if(!d){m(n.$$.fragment,w),m(a.$$.fragment,w),m(f.$$.fragment,w);for(let k=0;k<g.length;k+=1)m(h[k]);d=!0}},o(w){_(n.$$.fragment,w),_(a.$$.fragment,w),_(f.$$.fragment,w),h=h.filter(Boolean);for(let k=0;k<h.length;k+=1)_(h[k]);d=!1},d(w){w&&b(e),A(n),A(a),w&&b(u),A(f,w),w&&b(c),w&&b(p),mt(h,w)}}}function Cme(r,e,t){let n,i;ae(r,Ft,f=>t(1,i=f));let{automation:l}=e,s,o;const a=async()=>{Cn(Ft,i.selectedAutomation.automation.showTestPanel=!1,i)};function u(f){s=f,t(2,s)}return r.$$set=f=>{"automation"in f&&t(4,l=f.automation)},r.$$.update=()=>{var f,c;r.$$.dirty&17&&(t(0,o=[]),l&&(l.definition.trigger&&o.push(l.definition.trigger),t(0,o=o.concat(l.definition.steps||[]).filter(p=>p.stepId!=="LOOP")))),r.$$.dirty&2&&t(3,n=(c=(f=i.selectedAutomation)==null?void 0:f.testResults)==null?void 0:c.steps.filter(p=>p.stepId!=="LOOP"||[]))},[o,i,s,n,l,a,u]}class Sme extends se{constructor(e){super();oe(this,e,Cme,kme,ie,{automation:4})}}function Ame(r){let e,t,n,i;return n=new ze({props:{gap:"S",justifyItems:"center",$$slots:{default:[Lme]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),C(n.$$.fragment),y(t,"class","main svelte-374m3f"),y(e,"class","centered svelte-374m3f")},m(l,s){$(l,e,s),P(e,t),S(n,t,null),i=!0},p(l,s){const o={};s&257&&(o.$$scope={dirty:s,ctx:l}),n.$set(o)},i(l){i||(m(n.$$.fragment,l),i=!0)},o(l){_(n.$$.fragment,l),i=!1},d(l){l&&b(e),A(n)}}}function Ome(r){let e;const t=r[4].default,n=$t(t,r,r[8],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,l){n&&n.p&&(!e||l&256)&&bt(n,t,i,i[8],e?wt(t,i[8],l,null):vt(i[8]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function Eme(r){let e;return{c(){e=F("You have no automations")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Tme(r){let e;return{c(){e=F("Let's fix that. Call the bots!")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ime(r){let e;return{c(){e=F("Create automation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Lme(r){let e,t,n,i,l,s,o,a,u;return i=new ct({props:{size:"M",$$slots:{default:[Eme]},$$scope:{ctx:r}}}),s=new Ue({props:{size:"M",$$slots:{default:[Tme]},$$scope:{ctx:r}}}),a=new lt({props:{size:"M",cta:!0,$$slots:{default:[Ime]},$$scope:{ctx:r}}}),a.$on("click",r[5]),{c(){e=de("svg"),t=de("use"),n=R(),C(i.$$.fragment),l=R(),C(s.$$.fragment),o=R(),C(a.$$.fragment),Wt(t,"xlink:href","#spectrum-icon-18-WorkflowAdd"),y(e,"width","60px"),y(e,"height","60px"),y(e,"class","spectrum-Icon"),y(e,"focusable","false")},m(f,c){$(f,e,c),P(e,t),$(f,n,c),S(i,f,c),$(f,l,c),S(s,f,c),$(f,o,c),S(a,f,c),u=!0},p(f,c){const p={};c&256&&(p.$$scope={dirty:c,ctx:f}),i.$set(p);const d={};c&256&&(d.$$scope={dirty:c,ctx:f}),s.$set(d);const g={};c&256&&(g.$$scope={dirty:c,ctx:f}),a.$set(g)},i(f){u||(m(i.$$.fragment,f),m(s.$$.fragment,f),m(a.$$.fragment,f),u=!0)},o(f){_(i.$$.fragment,f),_(s.$$.fragment,f),_(a.$$.fragment,f),u=!1},d(f){f&&b(e),f&&b(n),A(i,f),f&&b(l),A(s,f),f&&b(o),A(a,f)}}}function g7(r){let e,t,n;return t=new Sme({props:{automation:r[2]}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","setup svelte-374m3f")},m(i,l){$(i,e,l),S(t,e,null),n=!0},p(i,l){const s={};l&4&&(s.automation=i[2]),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function Pme(r){let e,t;return e=new a7({props:{webhookModal:r[1]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.webhookModal=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Nme(r){let e,t;return e=new J1({}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Rme(r){var T;let e,t,n,i,l,s,o,a,u,f,c,p,d;n=new $me({props:{modal:r[0],webhookModal:r[1]}});const g=[Ome,Ame],h=[];function v(E,L){return E[2]?0:1}s=v(r),o=h[s]=g[s](r);let w=((T=r[2])==null?void 0:T.showTestPanel)&&g7(r),k={$$slots:{default:[Pme]},$$scope:{ctx:r}};f=new yt({props:k}),r[6](f);let I={width:"30%",$$slots:{default:[Nme]},$$scope:{ctx:r}};return p=new yt({props:I}),r[7](p),{c(){e=D("div"),t=D("div"),C(n.$$.fragment),i=R(),l=D("div"),o.c(),a=R(),w&&w.c(),u=R(),C(f.$$.fragment),c=R(),C(p.$$.fragment),y(t,"class","nav svelte-374m3f"),y(l,"class","content svelte-374m3f"),y(e,"class","root svelte-374m3f")},m(E,L){$(E,e,L),P(e,t),S(n,t,null),P(e,i),P(e,l),h[s].m(l,null),P(e,a),w&&w.m(e,null),P(e,u),S(f,e,null),P(e,c),S(p,e,null),d=!0},p(E,[L]){var q;const M={};L&1&&(M.modal=E[0]),L&2&&(M.webhookModal=E[1]),n.$set(M);let B=s;s=v(E),s===B?h[s].p(E,L):(x(),_(h[B],1,1,()=>{h[B]=null}),ee(),o=h[s],o?o.p(E,L):(o=h[s]=g[s](E),o.c()),m(o,1),o.m(l,null)),((q=E[2])==null?void 0:q.showTestPanel)?w?(w.p(E,L),L&4&&m(w,1)):(w=g7(E),w.c(),m(w,1),w.m(e,u)):w&&(x(),_(w,1,1,()=>{w=null}),ee());const j={};L&258&&(j.$$scope={dirty:L,ctx:E}),f.$set(j);const U={};L&256&&(U.$$scope={dirty:L,ctx:E}),p.$set(U)},i(E){d||(m(n.$$.fragment,E),m(o),m(w),m(f.$$.fragment,E),m(p.$$.fragment,E),d=!0)},o(E){_(n.$$.fragment,E),_(o),_(w),_(f.$$.fragment,E),_(p.$$.fragment,E),d=!1},d(E){E&&b(e),A(n),h[s].d(),w&&w.d(),r[6](null),A(f),r[7](null),A(p)}}}function Mme(r,e,t){let n,i;ae(r,Ft,p=>t(3,i=p));let{$$slots:l={},$$scope:s}=e,o,a;const u=()=>o.show();function f(p){K[p?"unshift":"push"](()=>{o=p,t(0,o)})}function c(p){K[p?"unshift":"push"](()=>{a=p,t(1,a)})}return r.$$set=p=>{"$$scope"in p&&t(8,s=p.$$scope)},r.$$.update=()=>{var p;r.$$.dirty&8&&t(2,n=((p=i.selectedAutomation)==null?void 0:p.automation)||i.automations[0])},[o,a,n,i,l,u,f,c,s]}class Dme extends se{constructor(e){super();oe(this,e,Mme,Rme,ie,{})}}function jme(r){let e,t,n,i,l,s,o;function a(f){r[4](f)}let u={};return r[2]!==void 0&&(u.value=r[2]),l=new et({props:u}),K.push(()=>ce(l,"value",a)),{c(){e=D("span"),e.textContent=`The changes you have made will be deleted and the application reverted
|
|
1248
|
-
back to its production state.`,t=R(),n=D("span"),n.textContent="Please enter your app name to continue.",i=R(),C(l.$$.fragment)},m(f,c){$(f,e,c),$(f,t,c),$(f,n,c),$(f,i,c),S(l,f,c),o=!0},p(f,c){const p={};!s&&c&4&&(s=!0,p.value=f[2],pe(()=>s=!1)),l.$set(p)},i(f){o||(m(l.$$.fragment,f),o=!0)},o(f){_(l.$$.fragment,f),o=!1},d(f){f&&b(e),f&&b(t),f&&b(n),f&&b(i),A(l,f)}}}function Bme(r){let e,t;return e=new It({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:r[3],disabled:r[2]!==r[0].name,$$slots:{default:[jme]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&5&&(l.disabled=n[2]!==n[0].name),i&132&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function zme(r){let e,t,n,i;e=new at({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){ft(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[Bme]},$$scope:{ctx:r}};return n=new yt({props:l}),r[5](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&133&&(a.$$scope={dirty:o,ctx:r}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){A(e,s),s&&b(t),r[5](null),A(n,s)}}}function qme(r,e,t){let n,i;ae(r,qe,f=>t(0,i=f));let l,s;const o=async()=>{try{await We.revertAppChanges(n);const f=await We.fetchAppPackage(n);await qe.actions.initialise(f),we.info("Changes reverted successfully")}catch(f){we.error(`Error reverting changes: ${f}`)}};function a(f){s=f,t(2,s)}function u(f){K[f?"unshift":"push"](()=>{l=f,t(1,l)})}return r.$$.update=()=>{r.$$.dirty&1&&(n=i.appId)},[i,l,s,o,a,u]}class Ume extends se{constructor(e){super();oe(this,e,qme,zme,ie,{})}}const Fme="@budibase/client",Vme="1.0.212-alpha.
|
|
1248
|
+
back to its production state.`,t=R(),n=D("span"),n.textContent="Please enter your app name to continue.",i=R(),C(l.$$.fragment)},m(f,c){$(f,e,c),$(f,t,c),$(f,n,c),$(f,i,c),S(l,f,c),o=!0},p(f,c){const p={};!s&&c&4&&(s=!0,p.value=f[2],pe(()=>s=!1)),l.$set(p)},i(f){o||(m(l.$$.fragment,f),o=!0)},o(f){_(l.$$.fragment,f),o=!1},d(f){f&&b(e),f&&b(t),f&&b(n),f&&b(i),A(l,f)}}}function Bme(r){let e,t;return e=new It({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:r[3],disabled:r[2]!==r[0].name,$$slots:{default:[jme]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&5&&(l.disabled=n[2]!==n[0].name),i&132&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function zme(r){let e,t,n,i;e=new at({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){ft(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[Bme]},$$scope:{ctx:r}};return n=new yt({props:l}),r[5](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&133&&(a.$$scope={dirty:o,ctx:r}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){A(e,s),s&&b(t),r[5](null),A(n,s)}}}function qme(r,e,t){let n,i;ae(r,qe,f=>t(0,i=f));let l,s;const o=async()=>{try{await We.revertAppChanges(n);const f=await We.fetchAppPackage(n);await qe.actions.initialise(f),we.info("Changes reverted successfully")}catch(f){we.error(`Error reverting changes: ${f}`)}};function a(f){s=f,t(2,s)}function u(f){K[f?"unshift":"push"](()=>{l=f,t(1,l)})}return r.$$.update=()=>{r.$$.dirty&1&&(n=i.appId)},[i,l,s,o,a,u]}class Ume extends se{constructor(e){super();oe(this,e,qme,zme,ie,{})}}const Fme="@budibase/client",Vme="1.0.212-alpha.1",Hme="MPL-2.0",Wme="dist/budibase-client.js",Gme="dist/budibase-client.js",Yme="module",Jme="src/index.js",Xme={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},Qme={build:"rollup -c","dev:builder":"rollup -cw"},Kme={"@budibase/bbui":"^1.0.212-alpha.1","@budibase/frontend-core":"^1.0.212-alpha.1","@budibase/string-templates":"^1.0.212-alpha.1","@spectrum-css/button":"^3.0.3","@spectrum-css/card":"^3.0.3","@spectrum-css/divider":"^1.0.3","@spectrum-css/link":"^3.1.3","@spectrum-css/page":"^3.0.1","@spectrum-css/tag":"^3.1.4","@spectrum-css/typography":"^3.0.2","@spectrum-css/vars":"^3.0.1",apexcharts:"^3.22.1",dayjs:"^1.10.5",downloadjs:"1.4.7",leaflet:"^1.7.1",regexparam:"^1.3.0","rollup-plugin-polyfill-node":"^0.8.0","sanitize-html":"^2.7.0",screenfull:"^6.0.1",shortid:"^2.2.15",svelte:"^3.38.2","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},Zme={"@rollup/plugin-alias":"^3.1.5","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^11.2.1",postcss:"^8.2.10",rollup:"^2.44.0","rollup-plugin-json":"^4.0.0","rollup-plugin-postcss":"^4.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-svg":"^2.0.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-visualizer":"^5.5.4"},xme="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc";var js={name:Fme,version:Vme,license:Hme,module:Wme,main:Gme,type:Yme,svelte:Jme,exports:Xme,scripts:Qme,dependencies:Kme,devDependencies:Zme,gitHead:xme};function _7(r){let e,t,n;return t=new at({props:{name:"Refresh",hoverable:!0}}),t.$on("click",function(){ft(r[2].show)&&r[2].show.apply(this,arguments)}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","icon-wrapper svelte-18djg2h"),le(e,"highlight",r[4])},m(i,l){$(i,e,l),S(t,e,null),n=!0},p(i,l){r=i,l&16&&le(e,"highlight",r[4])},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function ege(r){let e,t;return e=new Ue({props:{size:"S",$$slots:{default:[nge]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&4098&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function tge(r){let e,t;return e=new Ue({props:{size:"S",$$slots:{default:[rge]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&4098&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function nge(r){let e,t,n=r[1].version+"",i,l;return{c(){e=F("This app is currently using version "),t=D("b"),i=F(n),l=F(` which is the
|
|
1249
1249
|
latest version available.`)},m(s,o){$(s,e,o),$(s,t,o),P(t,i),$(s,l,o)},p(s,o){o&2&&n!==(n=s[1].version+"")&&Ce(i,n)},d(s){s&&b(e),s&&b(t),s&&b(l)}}}function rge(r){let e,t,n=r[1].version+"",i,l,s,o;return{c(){e=F("This app is currently using version "),t=D("b"),i=F(n),l=F(`, but version
|
|
1250
1250
|
`),s=D("b"),s.textContent=`${js.version}`,o=F(` is available. Updates can contain new features,
|
|
1251
1251
|
performance improvements and bug fixes.`)},m(a,u){$(a,e,u),$(a,t,u),P(t,i),$(a,l,u),$(a,s,u),$(a,o,u)},p(a,u){u&2&&n!==(n=a[1].version+"")&&Ce(i,n)},d(a){a&&b(e),a&&b(t),a&&b(l),a&&b(s),a&&b(o)}}}function h7(r){let e,t;return e=new Ue({props:{size:"S",$$slots:{default:[ige]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&4098&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function ige(r){let e,t,n=r[1].revertableVersion+"",i,l;return{c(){e=F(`You can revert this app to version
|
package/builder/index.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
|
|
11
11
|
rel="stylesheet"
|
|
12
12
|
/>
|
|
13
|
-
<script type="module" crossorigin src="/builder/assets/index.
|
|
13
|
+
<script type="module" crossorigin src="/builder/assets/index.44dea5cc.js"></script>
|
|
14
14
|
<link rel="modulepreload" href="/builder/assets/vendor.9bf2fcb4.js">
|
|
15
15
|
<link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
|
|
16
16
|
<link rel="stylesheet" href="/builder/assets/index.c6912819.css">
|
package/coverage/clover.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1656424463193" clover="3.2.0">
|
|
3
|
+
<project timestamp="1656424463194" name="All files">
|
|
4
|
+
<metrics statements="4314" coveredstatements="3129" conditionals="1793" coveredconditionals="951" methods="625" coveredmethods="446" elements="6732" coveredelements="4526" complexity="0" loc="4314" ncloc="4314" packages="23" files="129" classes="129"/>
|
|
5
5
|
<package name="api">
|
|
6
6
|
<metrics statements="34" coveredstatements="34" conditionals="3" coveredconditionals="1" methods="4" coveredmethods="4"/>
|
|
7
7
|
<file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
|
|
@@ -2553,7 +2553,7 @@
|
|
|
2553
2553
|
</file>
|
|
2554
2554
|
</package>
|
|
2555
2555
|
<package name="automations">
|
|
2556
|
-
<metrics statements="
|
|
2556
|
+
<metrics statements="169" coveredstatements="128" conditionals="70" coveredconditionals="47" methods="21" coveredmethods="13"/>
|
|
2557
2557
|
<file name="actions.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/actions.js">
|
|
2558
2558
|
<metrics statements="24" coveredstatements="24" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
|
|
2559
2559
|
<line num="1" count="44" type="stmt"/>
|
|
@@ -2582,53 +2582,59 @@
|
|
|
2582
2582
|
<line num="74" count="44" type="stmt"/>
|
|
2583
2583
|
</file>
|
|
2584
2584
|
<file name="automationUtils.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/automationUtils.js">
|
|
2585
|
-
<metrics statements="
|
|
2585
|
+
<metrics statements="52" coveredstatements="32" conditionals="33" coveredconditionals="21" methods="5" coveredmethods="3"/>
|
|
2586
2586
|
<line num="1" count="44" type="stmt"/>
|
|
2587
|
-
<line num="
|
|
2588
|
-
<line num="
|
|
2589
|
-
<line num="
|
|
2590
|
-
<line num="
|
|
2591
|
-
<line num="
|
|
2592
|
-
<line num="
|
|
2593
|
-
<line num="
|
|
2594
|
-
<line num="
|
|
2595
|
-
<line num="
|
|
2596
|
-
<line num="
|
|
2597
|
-
<line num="
|
|
2598
|
-
<line num="
|
|
2599
|
-
<line num="
|
|
2600
|
-
<line num="
|
|
2601
|
-
<line num="
|
|
2602
|
-
<line num="
|
|
2603
|
-
<line num="
|
|
2604
|
-
<line num="
|
|
2605
|
-
<line num="
|
|
2606
|
-
<line num="
|
|
2607
|
-
<line num="
|
|
2608
|
-
<line num="
|
|
2609
|
-
<line num="61" count="44" type="stmt"/>
|
|
2610
|
-
<line num="62" count="8" type="stmt"/>
|
|
2611
|
-
<line num="63" count="7" type="stmt"/>
|
|
2587
|
+
<line num="7" count="44" type="stmt"/>
|
|
2588
|
+
<line num="25" count="44" type="stmt"/>
|
|
2589
|
+
<line num="26" count="14" type="cond" truecount="2" falsecount="0"/>
|
|
2590
|
+
<line num="27" count="1" type="stmt"/>
|
|
2591
|
+
<line num="29" count="13" type="stmt"/>
|
|
2592
|
+
<line num="30" count="33" type="stmt"/>
|
|
2593
|
+
<line num="31" count="33" type="cond" truecount="2" falsecount="0"/>
|
|
2594
|
+
<line num="32" count="6" type="stmt"/>
|
|
2595
|
+
<line num="34" count="27" type="stmt"/>
|
|
2596
|
+
<line num="35" count="27" type="cond" truecount="2" falsecount="0"/>
|
|
2597
|
+
<line num="36" count="11" type="stmt"/>
|
|
2598
|
+
<line num="38" count="16" type="cond" truecount="2" falsecount="0"/>
|
|
2599
|
+
<line num="39" count="2" type="stmt"/>
|
|
2600
|
+
<line num="40" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
2601
|
+
<line num="41" count="1" type="stmt"/>
|
|
2602
|
+
<line num="43" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
2603
|
+
<line num="44" count="1" type="stmt"/>
|
|
2604
|
+
<line num="47" count="16" type="cond" truecount="2" falsecount="0"/>
|
|
2605
|
+
<line num="48" count="1" type="stmt"/>
|
|
2606
|
+
<line num="49" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
2607
|
+
<line num="50" count="1" type="stmt"/>
|
|
2608
|
+
<line num="54" count="13" type="stmt"/>
|
|
2612
2609
|
<line num="66" count="44" type="stmt"/>
|
|
2613
|
-
<line num="67" count="
|
|
2614
|
-
<line num="68" count="
|
|
2615
|
-
<line num="
|
|
2616
|
-
<line num="
|
|
2617
|
-
<line num="
|
|
2618
|
-
<line num="
|
|
2619
|
-
<line num="
|
|
2620
|
-
<line num="81" count="
|
|
2621
|
-
<line num="
|
|
2622
|
-
<line num="
|
|
2623
|
-
<line num="
|
|
2624
|
-
<line num="87" count="0" type="
|
|
2625
|
-
<line num="
|
|
2626
|
-
<line num="
|
|
2627
|
-
<line num="
|
|
2628
|
-
<line num="
|
|
2629
|
-
<line num="
|
|
2630
|
-
<line num="
|
|
2631
|
-
<line num="
|
|
2610
|
+
<line num="67" count="8" type="stmt"/>
|
|
2611
|
+
<line num="68" count="7" type="stmt"/>
|
|
2612
|
+
<line num="71" count="44" type="stmt"/>
|
|
2613
|
+
<line num="72" count="3" type="cond" truecount="1" falsecount="1"/>
|
|
2614
|
+
<line num="73" count="0" type="stmt"/>
|
|
2615
|
+
<line num="75" count="3" type="cond" truecount="1" falsecount="1"/>
|
|
2616
|
+
<line num="79" count="0" type="stmt"/>
|
|
2617
|
+
<line num="81" count="3" type="cond" truecount="1" falsecount="1"/>
|
|
2618
|
+
<line num="84" count="44" type="stmt"/>
|
|
2619
|
+
<line num="85" count="0" type="stmt"/>
|
|
2620
|
+
<line num="86" count="0" type="stmt"/>
|
|
2621
|
+
<line num="87" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
2622
|
+
<line num="88" count="0" type="stmt"/>
|
|
2623
|
+
<line num="89" count="0" type="stmt"/>
|
|
2624
|
+
<line num="91" count="0" type="stmt"/>
|
|
2625
|
+
<line num="93" count="0" type="stmt"/>
|
|
2626
|
+
<line num="94" count="0" type="stmt"/>
|
|
2627
|
+
<line num="95" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
2628
|
+
<line num="96" count="0" type="stmt"/>
|
|
2629
|
+
<line num="98" count="0" type="stmt"/>
|
|
2630
|
+
<line num="102" count="0" type="stmt"/>
|
|
2631
|
+
<line num="105" count="44" type="stmt"/>
|
|
2632
|
+
<line num="106" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
2633
|
+
<line num="107" count="0" type="stmt"/>
|
|
2634
|
+
<line num="109" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
2635
|
+
<line num="110" count="0" type="stmt"/>
|
|
2636
|
+
<line num="112" count="0" type="stmt"/>
|
|
2637
|
+
<line num="114" count="0" type="stmt"/>
|
|
2632
2638
|
</file>
|
|
2633
2639
|
<file name="bullboard.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/bullboard.js">
|
|
2634
2640
|
<metrics statements="33" coveredstatements="16" conditionals="8" coveredconditionals="3" methods="4" coveredmethods="0"/>
|