ocearo-ui 2.0.2 → 2.1.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/404.html +1 -1
- package/README.fr.md +23 -3
- package/README.md +23 -3
- package/__next.__PAGE__.txt +3 -3
- package/__next._full.txt +3 -3
- package/__next._tree.txt +2 -2
- package/_next/static/chunks/0-jqvc-r0kh0c.js +1 -0
- package/_next/static/chunks/{2g-xpe7xnropn.js → 05do10p9ldt1p.js} +1 -1
- package/_next/static/chunks/07gn9z0d6clzs.js +1 -0
- package/_next/static/chunks/{2w44atvyp9o_w.js → 096zaxs1gf_3q.js} +2 -1
- package/_next/static/chunks/0b3cus8izqkmg.js +119 -0
- package/_next/static/chunks/0j11dppxb9l0b.js +1 -0
- package/_next/static/chunks/0jucaltuccn03.js +1 -0
- package/_next/static/chunks/{1gt2hhqk1821k.js → 0zvzu5fnwh4_a.js} +3 -3
- package/_next/static/chunks/1_g85m2d7jjpo.css +3 -0
- package/_next/static/chunks/1arvue9o-atui.js +739 -0
- package/_next/static/chunks/1bo0ke8gjc1c2.js +1 -0
- package/_next/static/chunks/1cp1kkarm5gxz.js +1 -0
- package/_next/static/chunks/1e-w_-usen7fy.js +3 -0
- package/_next/static/chunks/1hz_mzl8l35j8.js +1 -0
- package/_next/static/chunks/1k72cpd0x8veh.js +1 -0
- package/_next/static/chunks/1mtfh1vqpvit2.js +1 -0
- package/_next/static/chunks/1u6o5_s2b39xh.js +1 -0
- package/_next/static/chunks/{1exvcc71cgr4t.js → 2aivnrnff0avu.js} +1 -1
- package/_next/static/chunks/2fe99e03gnvg9.js +1 -0
- package/_next/static/chunks/{3nm7o0eq5abhg.js → 2fthh9f57zzm2.js} +1 -1
- package/_next/static/chunks/{0jfox92up1jvy.js → 2gr1d26f-ymoh.js} +1 -1
- package/_next/static/chunks/2r98jty3a4wel.js +564 -0
- package/_next/static/chunks/2v6ebsavxlgyw.js +1 -0
- package/_next/static/chunks/{1w1xks0hp_tlr.js → 33u782y6vhw-f.js} +9 -9
- package/_next/static/chunks/3qik_nv7zlj4e.js +1 -0
- package/_next/static/chunks/3qzb9nvvw-b-k.js +1 -0
- package/_next/static/chunks/41mro59si-xxc.js +1 -0
- package/_next/static/chunks/41odv061mfm6t.js +1 -0
- package/_not-found/__next._full.txt +2 -2
- package/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/_not-found/__next._tree.txt +2 -2
- package/_not-found.html +1 -1
- package/_not-found.txt +2 -2
- package/docs/index.json +10 -5
- package/docs/signalk-server.html +3751 -0
- package/docs/signalk-specification.html +8507 -0
- package/guide/anchor.jpg +0 -0
- package/guide/bathymetry.jpg +0 -0
- package/guide/dashboard.jpg +0 -0
- package/guide/hero.jpg +0 -0
- package/guide/logbook.jpg +0 -0
- package/guide/mob.jpg +0 -0
- package/guide/parking.jpg +0 -0
- package/guide/polars.jpg +0 -0
- package/guide/traffic.jpg +0 -0
- package/guide/weather.jpg +0 -0
- package/index.html +1 -1
- package/index.txt +3 -3
- package/package.json +1 -1
- package/settings/__next._full.txt +3 -3
- package/settings/__next._tree.txt +2 -2
- package/settings/__next.settings.__PAGE__.txt +3 -3
- package/settings.html +1 -1
- package/settings.txt +3 -3
- package/_next/static/chunks/0iqdztntvxh3c.js +0 -119
- package/_next/static/chunks/0iztd835j5p1n.js +0 -700
- package/_next/static/chunks/0voiofm58khqd.js +0 -1
- package/_next/static/chunks/0w_skktmh3e48.js +0 -1
- package/_next/static/chunks/0zwc9m4qgtwle.js +0 -1
- package/_next/static/chunks/144mjqdrx42lq.js +0 -1
- package/_next/static/chunks/1ed7ayfg19cjb.js +0 -1
- package/_next/static/chunks/1epya-yh2wvj2.js +0 -1
- package/_next/static/chunks/1gq4t2dyr7rq3.js +0 -1
- package/_next/static/chunks/1ptj3mv8b_tzs.js +0 -1
- package/_next/static/chunks/1y35unwvy8p98.js +0 -1
- package/_next/static/chunks/1zm03hw2ylxw8.js +0 -1
- package/_next/static/chunks/2aq8orcir5h03.js +0 -1
- package/_next/static/chunks/2kmptoy43h0mx.js +0 -1
- package/_next/static/chunks/2kwn4iymxaom3.js +0 -1
- package/_next/static/chunks/2rebcvig176xk.js +0 -564
- package/_next/static/chunks/2ryo_bbmt6t74.css +0 -3
- package/_next/static/chunks/3--qzv1u6c7_7.js +0 -1
- package/_next/static/chunks/37t6vg8fb1-z8.js +0 -1
- package/_next/static/chunks/3p9ziqn6r35qf.js +0 -1
- package/_next/static/chunks/3q8o52_juxmdp.js +0 -1
- package/docs/opencpn.pdf +0 -0
- package/docs/signalk.pdf +0 -0
- /package/_next/static/{_UKzzvfzAh-9NIsngWWio → EuchA2ImhjrwCnR5WjCLX}/_buildManifest.js +0 -0
- /package/_next/static/{_UKzzvfzAh-9NIsngWWio → EuchA2ImhjrwCnR5WjCLX}/_clientMiddlewareManifest.js +0 -0
- /package/_next/static/{_UKzzvfzAh-9NIsngWWio → EuchA2ImhjrwCnR5WjCLX}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23320,e=>{"use strict";var t=e.i(43476),a=e.i(71645);e.i(85269);var r=e.i(22831),o=e.i(88608),i=e.i(3666);e.s(["default",0,()=>{let{t:e}=(0,r.useTranslation)(),l=(0,a.useSyncExternalStore)(o.subscribeForecast,o.getForecastHour,o.getForecastHour),n=new Date(Date.now()+36e5*l),s=i.WINDY_SCALE.filter(([e])=>e<=25).map(([e,[t,a,r]])=>`rgb(${t},${a},${r}) ${e/25*100}%`).join(", ");return(0,t.jsxs)("div",{className:"hud-halo flex flex-col gap-1 px-3 py-2 rounded-2xl bg-hud-bg/80 backdrop-blur select-none w-[min(30rem,100%)]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"text-caption font-semibold uppercase tracking-widest text-hud-muted shrink-0",children:e("meteo.forecast")}),(0,t.jsx)("input",{type:"range",min:0,max:47,step:1,value:l,onChange:e=>(0,o.setForecastHour)(Number(e.target.value)),"aria-label":e("meteo.forecast"),className:"flex-1 min-w-0 accent-oBlue"}),(0,t.jsx)("span",{className:"text-label font-semibold tabular-nums text-hud-main shrink-0",children:0===l?e("meteo.now"):`+${l} h \xb7 ${n.toLocaleTimeString([],{weekday:"short",hour:"2-digit",minute:"2-digit"})}`})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"flex-1 h-2 rounded-full",style:{background:`linear-gradient(to right, ${s})`}}),(0,t.jsxs)("span",{className:"text-caption text-hud-muted tabular-nums shrink-0",children:["0 – ",Math.round(48.5961)," kn"]})]})]})}])},79224,function(e){e.n(e.i(23320))},88608,e=>{"use strict";let t=0,a=new Set;e.s(["getForecastHour",0,()=>t,"setForecastHour",0,e=>{t=Math.max(0,e),a.forEach(e=>e(t))},"subscribeForecast",0,e=>(a.add(e),()=>a.delete(e))])},3666,3950,e=>{"use strict";let t="ocearo-offline-v2",a=["ocearo-offline-v1"],r=!1,o=async(e,{kind:o="tile"}={})=>{if(!("u">typeof caches))return fetch(e,{referrerPolicy:"strict-origin-when-cross-origin"});r||(r=!0,a.forEach(e=>caches.delete(e).catch(()=>{})));let i=await caches.open(t);if("tile"===o){let t=await i.match(e);if(t)return t}try{let t=await fetch(e,{mode:"cors",referrerPolicy:"strict-origin-when-cross-origin"});return t.ok&&await i.put(e,t.clone()),t}catch(a){let t=await i.match(e);if(t)return t;throw a}},i=async e=>{let t=await o(e,{kind:"tile"});if(!t.ok)throw Error(`${t.status} ${e}`);return createImageBitmap(await t.blob())},l=(e,t,a,r)=>{let o=2**r,i=(e,t)=>({x:Math.floor((t+180)/360*o),y:Math.floor((1-Math.log(Math.tan(e*Math.PI/180)+1/Math.cos(e*Math.PI/180))/Math.PI)/2*o)}),l=a/111320,n=a/(111320*Math.cos(e*Math.PI/180)),s=i(e+l,t-n),c=i(e-l,t+n),h=[];for(let e=s.x;e<=c.x;e++)for(let t=s.y;t<=c.y;t++)h.push({z:r,x:e,y:t});return h},n=async({lat:e,lon:t,radiusM:a,layers:r,urls:i=[],onProgress:n})=>{let s=[];for(let{template:o,zooms:i}of r)for(let r of i)for(let i of l(e,t,a,r))s.push(o.replace("{z}",i.z).replace("{x}",i.x).replace("{y}",i.y));s.push(...i);let c=0,h=0,u=[...s],f=async()=>{for(;u.length;){let e=u.shift();try{!(await o(e,{kind:e.includes("forecast")?"forecast":"tile"})).ok&&h++}catch{h++}c++,n?.(c,s.length,h)}};return await Promise.all(Array.from({length:4},f)),{done:c,failed:h,total:s.length}},s=async()=>{if(navigator.storage?.estimate){let{usage:e}=await navigator.storage.estimate();return e}return null};e.s(["cachedFetch",0,o,"cachedImage",0,i,"clearOfflineCache",0,()=>"u">typeof caches?caches.delete(t):Promise.resolve(!1),"offlineCacheSize",0,s,"prefetchArea",0,n],3950);let
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23320,e=>{"use strict";var t=e.i(43476),a=e.i(71645);e.i(85269);var r=e.i(22831),o=e.i(88608),i=e.i(3666);e.s(["default",0,()=>{let{t:e}=(0,r.useTranslation)(),l=(0,a.useSyncExternalStore)(o.subscribeForecast,o.getForecastHour,o.getForecastHour),n=new Date(Date.now()+36e5*l),s=i.WINDY_SCALE.filter(([e])=>e<=25).map(([e,[t,a,r]])=>`rgb(${t},${a},${r}) ${e/25*100}%`).join(", ");return(0,t.jsxs)("div",{className:"hud-halo flex flex-col gap-1 px-3 py-2 rounded-2xl bg-hud-bg/80 backdrop-blur select-none w-[min(30rem,100%)]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"text-caption font-semibold uppercase tracking-widest text-hud-muted shrink-0",children:e("meteo.forecast")}),(0,t.jsx)("input",{type:"range",min:0,max:47,step:1,value:l,onChange:e=>(0,o.setForecastHour)(Number(e.target.value)),"aria-label":e("meteo.forecast"),className:"flex-1 min-w-0 accent-oBlue"}),(0,t.jsx)("span",{className:"text-label font-semibold tabular-nums text-hud-main shrink-0",children:0===l?e("meteo.now"):`+${l} h \xb7 ${n.toLocaleTimeString([],{weekday:"short",hour:"2-digit",minute:"2-digit"})}`})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"flex-1 h-2 rounded-full",style:{background:`linear-gradient(to right, ${s})`}}),(0,t.jsxs)("span",{className:"text-caption text-hud-muted tabular-nums shrink-0",children:["0 – ",Math.round(48.5961)," kn"]})]})]})}])},79224,function(e){e.n(e.i(23320))},88608,e=>{"use strict";let t=0,a=new Set;e.s(["getForecastHour",0,()=>t,"setForecastHour",0,e=>{t=Math.max(0,e),a.forEach(e=>e(t))},"subscribeForecast",0,e=>(a.add(e),()=>a.delete(e))])},3666,3950,e=>{"use strict";let t="ocearo-offline-v2",a=["ocearo-offline-v1"],r=!1,o=async(e,{kind:o="tile"}={})=>{if(!("u">typeof caches))return fetch(e,{referrerPolicy:"strict-origin-when-cross-origin"});r||(r=!0,a.forEach(e=>caches.delete(e).catch(()=>{})));let i=await caches.open(t);if("tile"===o){let t=await i.match(e);if(t)return t}try{let t=await fetch(e,{mode:"cors",referrerPolicy:"strict-origin-when-cross-origin"});return t.ok&&await i.put(e,t.clone()),t}catch(a){let t=await i.match(e);if(t)return t;throw a}},i=async e=>{let t=await o(e,{kind:"tile"});if(!t.ok)throw Error(`${t.status} ${e}`);return createImageBitmap(await t.blob())},l=(e,t,a,r)=>{let o=2**r,i=(e,t)=>({x:Math.floor((t+180)/360*o),y:Math.floor((1-Math.log(Math.tan(e*Math.PI/180)+1/Math.cos(e*Math.PI/180))/Math.PI)/2*o)}),l=a/111320,n=a/(111320*Math.cos(e*Math.PI/180)),s=i(e+l,t-n),c=i(e-l,t+n),h=[];for(let e=s.x;e<=c.x;e++)for(let t=s.y;t<=c.y;t++)h.push({z:r,x:e,y:t});return h},n=async({lat:e,lon:t,radiusM:a,layers:r,urls:i=[],onProgress:n})=>{let s=[];for(let{template:o,zooms:i}of r)for(let r of i)for(let i of l(e,t,a,r))s.push(o.replace("{z}",i.z).replace("{x}",i.x).replace("{y}",i.y));s.push(...i);let c=0,h=0,u=[...s],f=async()=>{for(;u.length;){let e=u.shift();try{!(await o(e,{kind:e.includes("forecast")?"forecast":"tile"})).ok&&h++}catch{h++}c++,n?.(c,s.length,h)}};return await Promise.all(Array.from({length:4},f)),{done:c,failed:h,total:s.length}},s=async()=>{if(navigator.storage?.estimate){let{usage:e}=await navigator.storage.estimate();return e}return null},c=async(e,a)=>{if(!("u">typeof caches))return!1;let r=await caches.open(t);return await r.put(e,a),!0},h=async e=>{if(!("u">typeof caches))return null;let a=await caches.open(t);return await a.match(e)||null};e.s(["cachedFetch",0,o,"cachedImage",0,i,"clearOfflineCache",0,()=>"u">typeof caches?caches.delete(t):Promise.resolve(!1),"offlineCacheSize",0,s,"prefetchArea",0,n,"readCached",0,h,"storeCached",0,c],3950);let u={key:null,at:0,field:null},f=(e,t,a,r)=>({lat:e+(r/8*2-1)*4e4/6371e3*180/Math.PI,lon:t+(a/8*2-1)*4e4/(6371e3*Math.cos(e*Math.PI/180))*180/Math.PI}),d=(e,t)=>{let a=[],r=[];for(let o=0;o<9;o++)for(let i=0;i<9;i++){let l=f(e,t,i,o);a.push(l.lat.toFixed(4)),r.push(l.lon.toFixed(4))}return`https://api.open-meteo.com/v1/forecast?latitude=${a.join(",")}&longitude=${r.join(",")}&hourly=wind_speed_10m,wind_direction_10m&wind_speed_unit=ms&forecast_hours=48&timezone=GMT`},m=async(e,t)=>{let a=`${e.toFixed(1)},${t.toFixed(1)}`;if(u.field&&u.key===a&&Date.now()-u.at<18e5)return u.field;let r=d(e,t),i=await o(r,{kind:"forecast"});if(!i.ok)throw Error(`Open-Meteo ${i.status}`);let l=await i.json(),n=Array.isArray(l)?l:[l],s=n[0]?.hourly?.time||[],c=s.length,h=[],f=[];for(let e=0;e<c;e++){let t=new Float32Array(81),a=new Float32Array(81);n.forEach((r,o)=>{let i=r.hourly.wind_speed_10m[e]??0,l=(r.hourly.wind_direction_10m[e]??0)*Math.PI/180;t[o]=-i*Math.sin(l),a[o]=-i*Math.cos(l)}),h.push(t),f.push(a)}let m={origin:{lat:e,lon:t},start:Date.parse(`${s[0]}Z`),hours:c,u:h,v:f,source:"open-meteo"};return u={key:a,at:Date.now(),field:m},m},p=[[0,[98,113,183]],[1,[57,97,159]],[3,[74,148,169]],[5,[77,141,123]],[7,[83,165,83]],[9,[53,159,53]],[11,[167,157,81]],[13,[159,127,58]],[15,[161,108,92]],[17,[129,58,78]],[19,[175,80,136]],[21,[117,74,147]],[24,[109,97,163]],[27,[68,105,141]],[29,[92,144,152]],[36,[125,68,165]]];e.s(["HALF_EXTENT_M",0,4e4,"WINDY_SCALE",0,p,"fetchWindField",0,m,"sampleWind",0,(e,t,a,r=0)=>{let o=Math.min(9-1.001,Math.max(0,(t/4e4+1)/2*8)),i=Math.min(9-1.001,Math.max(0,(a/4e4+1)/2*8)),l=Math.floor(o),n=Math.floor(i),s=o-l,c=i-n,h=Math.min(e.hours-1,Math.max(0,Math.floor(r))),u=Math.min(e.hours-1,h+1),f=Math.min(1,Math.max(0,r-h)),d=(e,t)=>{let a=e[t],r=9*n+l;return(a[r]*(1-s)+a[r+1]*s)*(1-c)+(a[r+9]*(1-s)+a[r+9+1]*s)*c};return{u:d(e.u,h)*(1-f)+d(e.u,u)*f,v:d(e.v,h)*(1-f)+d(e.v,u)*f}},"uniformField",0,(e,t,a,r)=>{let o=new Float32Array(81).fill(-a*Math.sin(r)),i=new Float32Array(81).fill(-a*Math.cos(r));return{origin:{lat:e,lon:t},start:Date.now(),hours:1,u:[o],v:[i],source:"boat"}},"windColor",0,e=>{if(e<=p[0][0])return p[0][1];for(let t=1;t<p.length;t++)if(e<=p[t][0]){let[a,r]=p[t-1],[o,i]=p[t],l=(e-a)/(o-a);return r.map((e,t)=>e+(i[t]-e)*l)}return p[p.length-1][1]},"windFieldUrl",0,d],3666)}]);
|