@dubusoft/toodo-linux-arm64 1.10.3-dev.137 → 1.10.3-dev.139
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/bin/toodo +0 -0
- package/bin/toodo-server +0 -0
- package/package.json +1 -1
- package/web/assets/{Item-BiwrlHZa.js → Item-CAMGehg3.js} +2 -2
- package/web/assets/{ItemSwipeLayer-DSK7WABa.js → ItemSwipeLayer-CzJ5oMra.js} +1 -1
- package/web/assets/{MenuBottomSheet-DJ5ZAjnp.js → MenuBottomSheet-BGNDdPFP.js} +1 -1
- package/web/assets/{MenuBottomSheetActionList-rEFgvnOF.js → MenuBottomSheetActionList-B3PRwjcv.js} +1 -1
- package/web/assets/{Selector-Bs45STiV.js → Selector-81Y9IJq2.js} +2 -2
- package/web/assets/{button-CYct_8pr.js → button-BpXTpERz.js} +1 -1
- package/web/assets/{details-sheet-B-OLVIT9.js → details-sheet-D027ENPe.js} +1 -1
- package/web/assets/{event-nWLJH5ci.js → event-AVe5c5qy.js} +1 -1
- package/web/assets/{index-C7R1rzMC.js → index-osnrKXYn.js} +5 -5
- package/web/assets/{markdown-CUTRRztI.js → markdown-dO5pKeaR.js} +1 -1
- package/web/assets/{offline-screen-CF3rX1CI.js → offline-screen-IAbJnWQd.js} +1 -1
- package/web/assets/{queries-BcImfAHL.js → queries-C98z8oZ0.js} +1 -1
- package/web/assets/{review-DX2hFw76.js → review-DIazpqrn.js} +1 -1
- package/web/assets/{server-access-BalgYGuz.js → server-access-CnAoPB0W.js} +1 -1
- package/web/assets/session-sBDFnC3r.js +1 -0
- package/web/assets/{task-details-BFdZQpCy.js → task-details-4tOrRJ6r.js} +1 -1
- package/web/assets/{task-graph-DxI9XtPf.js → task-graph-C98dZljZ.js} +1 -1
- package/web/index.html +8 -8
- package/web/sw.js +2 -2
- package/web/version.json +1 -1
- package/web/assets/session-BGnFINme.js +0 -1
package/web/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":"
|
|
1
|
+
{"build":"c277280d61d331df"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={url:e=>e,key:e=>e,fetch:(e,t)=>fetch(e,t)},t=2e3,n=3e4,r=1e4,i=5e3,a=3e3,o=`The sign-in to the proxy in front of the server (such as Cloudflare Access) ran out. Reload the page to sign in again.`,s=`reachable`,c=t,l,u=0,d=``,f=new Set,p=new Set;function m(e){s!==e&&(s=e,f.forEach(e=>e()))}function h(){return s}function g(e){return f.add(e),()=>f.delete(e)}function _(){return d}function v(){return d===o}function y(){return u}function b(e){return p.add(e),()=>p.delete(e)}function x(e){let{status:t}=e;return(t===502||t===503||t===504||t>=520&&t<=530)&&!(e.headers.get(`Content-Type`)??``).includes(`application/json`)}function S(){clearTimeout(l),l=void 0,c=t,s!==`reachable`&&(u+=1,m(`reachable`),p.forEach(e=>e()))}function C(){s===`reachable`&&w(`checking`)}async function w(e){clearTimeout(l),l=void 0,m(e);let t=await T(r);s===e&&(t===null?S():(d=t,E()))}async function T(t){try{let n=await e.fetch(`/api`,{cache:`no-store`,redirect:`manual`,signal:AbortSignal.timeout(t)});return n.body?.cancel(),n.type===`opaqueredirect`?o:x(n)?`A gateway in front of the server answered ${n.status}.`:null}catch(e){return e instanceof DOMException&&e.name===`TimeoutError`?`The server did not answer in time.`:`No connection to the server.`}}function E(){m(`unreachable`),l=setTimeout(()=>void w(`retrying`),c),c=Math.min(c*2,n)}async function D(){if(s!==`reachable`||document.visibilityState!==`visible`)return;let e=await T(a);e!==null&&s===`reachable`&&(d=e,E())}function O(){s===`unreachable`&&w(`retrying`)}async function k(t,n){let r;try{r=await e.fetch(t,n)}catch(e){throw e instanceof TypeError&&C(),e}return x(r)?C():S(),r}function A(){addEventListener(`offline`,C),addEventListener(`online`,O),setInterval(()=>void D(),i),document.addEventListener(`visibilitychange`,()=>{document.visibilityState===`visible`&&O()})}var j=e.key(`toodo-server-token`),M=`Toodo API:`,N=new Set,P=!1;function F(){N.forEach(e=>e())}function I(){return localStorage.getItem(j)}function L(e){localStorage.setItem(j,e),F()}function R(){localStorage.removeItem(j),P=!1,F()}function z(){return P||I()!==null}function B(e){return N.add(e),()=>N.delete(e)}function V(e){return{Authorization:`Bearer ${e}`}}function H(){let e=I();return e===null?P?{}:null:V(e)}async function U(e){return e.status===401&&(await e.clone().text()).startsWith(M)}function W(){return Error(`A proxy in front of the Toodo server refused the request (401). Reload the app to sign in to it again.`)}async function G(){let e=await k(`/api/session`,{cache:`no-store`});if(!e.ok)return e.body?.cancel(),!1;let{via:t}=await e.json();return t===`access`&&(P=!0,F(),!0)}async function K(e,t={}){let n=H();if(n===null)throw Error(`No access token for the Toodo server.`);let r=await k(e,{...t,headers:{...n,...t.headers}});if(r.status===401)throw await U(r)?(R(),Error(`The Toodo server did not accept the access token.`)):W();if(!r.ok)throw Error(await q(r));return r}async function q(e){let t=await e.text(),n=t||`${e.status} ${e.statusText}`;try{n=JSON.parse(t).message??n}catch{}return n}export{v as _,q as a,A as b,W as c,B as d,b as f,k as g,O as h,H as i,U as l,y as m,V as n,R as o,h as p,G as r,z as s,K as t,L as u,g as v,e as x,_ as y};
|