Schedules list as a table with enable, run now, edit, duplicate, delete and view runs; built-ins only enable, retime and run. The runs page links each run's tasks through its capture's dispatches. The Start node gains a Schedule trigger that picks or creates a schedule and binds the schedule source to the workflow. Times show in a per-browser display zone set under Appearance; the cron time zone and run retention are edited on the Schedules page.
1 line
1.8 KiB
JavaScript
1 line
1.8 KiB
JavaScript
var e=[`INPUT`,`TEXTAREA`];function t(t,r,i,a={}){if(!r||a.enableIgnoredElement&&e.includes(r.nodeName))return null;let{arrowKeyOptions:o=`both`,attributeName:s=`[data-reka-collection-item]`,itemsArray:c=[],loop:l=!0,dir:u=`ltr`,preventScroll:d=!0,focus:f=!1}=a,[p,m,h,g,_,v]=[t.key===`ArrowRight`,t.key===`ArrowLeft`,t.key===`ArrowUp`,t.key===`ArrowDown`,t.key===`Home`,t.key===`End`],y=h||g,b=p||m;if(!_&&!v&&(!y&&!b||o===`vertical`&&b||o===`horizontal`&&y))return null;let x=i?Array.from(i.querySelectorAll(s)):c;if(!x.length)return null;d&&t.preventDefault();let S=null;return b||y?S=n(x,r,{goForward:y?g:u===`ltr`?p:m,loop:l}):_?S=x.at(0)||null:v&&(S=x.at(-1)||null),f&&S?.focus(),S}function n(e,t,r,i=e.includes(t)?e.length:e.length+1){if(--i===0)return null;let a=e.indexOf(t),o;if(o=a===-1?r.goForward?0:e.length-1:r.goForward?a+1:a-1,!r.loop&&(o<0||o>=e.length))return null;let s=e[(o+e.length)%e.length];return s?s.hasAttribute(`disabled`)&&s.getAttribute(`disabled`)!==`false`?n(e,s,r,i):s:null}var r={ns:1e-6,us:.001,µs:.001,ms:1,s:1e3,m:6e4,h:36e5},i=[`ms`,`s`,`m`,`h`];function a(e){let t=e.trim();if(t===`0`)return 0;let n=t.startsWith(`-`)?-1:1,i=t.replace(/^[-+]/,``);if(i===``)return null;let a=/(\d+(?:\.\d*)?|\.\d+)(ns|us|µs|ms|s|m|h)/gy,o=0,s=0,c;for(;(c=a.exec(i))!==null;)o+=Number(c[1])*r[c[2]],s=a.lastIndex;return s===i.length?n*o:null}function o(e){return Number(e.toFixed(9)).toString()}function s(e){if(e===0)return`0s`;let t=e<0?`-`:``,n=Math.abs(e);if(n<1e3)return`${t}${o(n)}ms`;let r=Math.floor(n/36e5);n-=r*36e5;let i=Math.floor(n/6e4);n-=i*6e4;let a=`${o(n/1e3)}s`;return r>0?`${t}${r}h${i}m${a}`:i>0?`${t}${i}m${a}`:`${t}${a}`}function c(e){for(let t of[`h`,`m`,`s`]){let n=r[t];if(e!==0&&e%n===0)return{value:e/n,unit:t}}return e===0?{value:0,unit:`s`}:{value:e,unit:`ms`}}function l(e,t){return e*r[t]}export{c as a,a as i,s as n,t as o,l as r,i as t}; |