@sockethub/examples 1.0.0-alpha.20 → 1.0.0-alpha.22
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/build/_app/immutable/chunks/BJzWT4a_.js +1 -0
- package/build/_app/immutable/chunks/CfO10NxU.js +1 -0
- package/build/_app/immutable/chunks/{DvaAy1AS.js → ClXGuyPN.js} +1 -1
- package/build/_app/immutable/chunks/{Jq7-e697.js → D1Y6vir5.js} +1 -1
- package/build/_app/immutable/chunks/{CQ8HGycH.js → D8LSvHGD.js} +1 -1
- package/build/_app/immutable/chunks/DJkUObd4.js +43 -0
- package/build/_app/immutable/chunks/{BPenOL9M.js → DM-HM6I1.js} +1 -1
- package/build/_app/immutable/entry/{app.CqSxyeYl.js → app.DFtHEDt4.js} +2 -2
- package/build/_app/immutable/entry/start.D9VP5-bu.js +1 -0
- package/build/_app/immutable/nodes/{0.D5TTD3y1.js → 0.m3qGA7pa.js} +1 -1
- package/build/_app/immutable/nodes/{1.DRvXVQXl.js → 1.C9WfOSx0.js} +1 -1
- package/build/_app/immutable/nodes/{2.CXUMZj8l.js → 2.0BsUoT1J.js} +1 -1
- package/build/_app/immutable/nodes/{3.B0fwK3aW.js → 3.BQPqD7QE.js} +1 -1
- package/build/_app/immutable/nodes/{4.DFuQJ-Je.js → 4.BqgBlJlH.js} +1 -1
- package/build/_app/immutable/nodes/{5.BfoeHjsg.js → 5.u6f77lcO.js} +1 -1
- package/build/_app/immutable/nodes/{6.DXUitiRj.js → 6.CeMQ6TVQ.js} +1 -1
- package/build/_app/immutable/nodes/{7.CsSxMgu7.js → 7.IpDR0NHe.js} +1 -1
- package/build/_app/immutable/nodes/{8.9EVPq4EM.js → 8.CMc3hKqE.js} +1 -1
- package/build/_app/immutable/nodes/{9.DHZYQFPt.js → 9.X8n5ZkeX.js} +1 -1
- package/build/_app/version.json +1 -1
- package/build/caldav.html +7 -7
- package/build/carddav.html +7 -7
- package/build/dummy.html +7 -7
- package/build/feeds.html +7 -7
- package/build/index.html +7 -7
- package/build/irc.html +7 -7
- package/build/metadata.html +7 -7
- package/build/xmpp.html +7 -7
- package/package.json +4 -4
- package/build/_app/immutable/chunks/CpN28GQf.js +0 -43
- package/build/_app/immutable/chunks/FTUC4fkJ.js +0 -1
- package/build/_app/immutable/chunks/xBG1CGhb.js +0 -1
- package/build/_app/immutable/entry/start.Tr6qm187.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as k,a as g,t as z,s as D}from"./Dm9HHmcs.js";import{p as O,H as F,t as w,a as T,k as p,b as m,d as J,f as B,c as x,r as h,s as v,g as r,n as G,u as K,e as i}from"./CD2k2u89.js";import{p as C,i as M,a as Q,c as _,s as R}from"./BYPKMD8u.js";import{s as y,r as U}from"./XtX2ckS1.js";import{b as E,S as V}from"./
|
|
1
|
+
import{f as k,a as g,t as z,s as D}from"./Dm9HHmcs.js";import{p as O,H as F,t as w,a as T,k as p,b as m,d as J,f as B,c as x,r as h,s as v,g as r,n as G,u as K,e as i}from"./CD2k2u89.js";import{p as C,i as M,a as Q,c as _,s as R}from"./BYPKMD8u.js";import{s as y,r as U}from"./XtX2ckS1.js";import{b as E,S as V}from"./D1Y6vir5.js";var W=k(`<textarea class="form-control block w-full px-3 py-1.5 text-base font-normal
|
|
2
2
|
text-gray-700 bg-white bg-clip-padding border border-solid
|
|
3
3
|
border-gray-300 rounded transition ease-in-out m-0 focus:text-gray-700
|
|
4
4
|
focus:bg-white focus:border-blue-600 focus:outline-none" rows="5"></textarea>`);function X(l,t){O(t,!0);let e=C(t,"data",15);var o=W();F(o),w(()=>y(o,"id",`json-object-${t.title??""}`)),E(o,e),g(l,o),T()}var Y=k('<div class="w-full p-2"><label class="inline-block text-gray-900 font-bold w-32">Password</label> <input type="password" class="border-4"/></div>'),Z=k('<div class="w-full"><label class="form-label inline-block text-gray-900 font-bold mb-2"> </label> <!></div> <!> <div class="w-full text-right"><!></div>',1);function $(l,t){O(t,!0);let e=C(t,"buttonText",3,"Send"),o=J(""),S=K(()=>`secret-input-${t.title.toLowerCase().replace(/\s+/g,"-")}`),s=J("");p(()=>{m(o,typeof t.obj.password=="string"?t.obj.password:"",!0)}),p(()=>{const a={...t.obj};delete a.password,m(s,JSON.stringify(a,null,3),!0)});async function j(){let a;try{a=JSON.parse(r(s))}catch(n){const d=n instanceof Error?n.message:String(n);throw new Error(`Invalid JSON: ${d}`)}r(o).length>0&&(a.password=r(o)),t.submitData(JSON.stringify(a))}var u=Z(),f=B(u),c=x(f),b=x(c,!0);h(c);var P=v(c,2);X(P,{get title(){return t.title},get data(){return r(s)},set data(a){m(s,a,!0)}}),h(f);var I=v(f,2);{var H=a=>{var n=Y(),d=x(n),A=v(d,2);U(A),h(n),w(()=>{y(d,"for",r(S)),y(A,"id",r(S))}),E(A,()=>r(o),q=>m(o,q)),g(a,n)};M(I,a=>{typeof t.obj.password=="string"&&a(H)})}var N=v(I,2),L=x(N);V(L,{get disabled(){return t.disabled},buttonAction:j,children:(a,n)=>{G();var d=z();w(()=>D(d,e())),g(a,d)}}),h(N),w(()=>{y(c,"for",`json-object-${t.title??""}`),D(b,t.title)}),g(l,u),T()}var tt=k('<p class="text-sm text-gray-600 mb-2">Define the <code>actor</code> object for credentials and message events. Include <code>id</code>, <code>type</code>, and <code>name</code> on every outbound message.</p> <!>',1);function nt(l,t){O(t,!0);const e=()=>Q(t.sockethubState,"$sockethubState",o),[o,S]=R();let s=J(void 0);p(()=>{e().actorSet&&r(s)&&t.actor.id!==r(s)&&(_(t.sockethubState,i(e).actorSet=!1,i(e)),"credentialsSet"in e()&&_(t.sockethubState,i(e).credentialsSet=!1,i(e)),"connected"in e()&&_(t.sockethubState,i(e).connected=!1,i(e)),"joined"in e()&&_(t.sockethubState,i(e).joined=!1,i(e)))});function j(c){const b=JSON.parse(c);console.log("actor confirmed for this app session:",b),t.sockethubState.set({actorSet:!0,credentialsSet:!1,connected:!1,joined:!1}),m(s,typeof b.id=="string"?b.id:void 0,!0)}var u=tt(),f=v(B(u),2);$(f,{title:"Actor",get obj(){return t.actor},buttonText:"Confirm actor",submitData:j,get disabled(){return e().actorSet}}),g(l,u),T(),S()}export{nt as A,$ as T};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
var U=e=>{throw TypeError(e)};var G=(e,t,r)=>t.has(e)||U("Cannot "+r);var m=(e,t,r)=>(G(e,t,"read from private field"),r?r.call(e):t.get(e)),S=(e,t,r)=>t.has(e)?U("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),j=(e,t,r,o)=>(G(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);import{B as z,Q as H,P as Z,R as $,aj as tt,K as et,e as rt,O as st,ac as at,b as x,ad as nt,g,ak as ot,X as it,Y as ct,p as ut,j as lt,k as mt,d as D,J as ft,f as w,s as dt,a as _t,c as ht,r as vt,u as I,t as gt}from"../chunks/CD2k2u89.js";import{h as Et,m as yt,u as Pt,f as M,a as A,c as V,t as Rt,s as bt}from"../chunks/Dm9HHmcs.js";import{o as Ot}from"../chunks/C7RIZnpe.js";import{p as C,i as B}from"../chunks/BYPKMD8u.js";import{B as kt}from"../chunks/DRQf9AgU.js";function q(e,t,r){z&&H();var o=new kt(e);Z(()=>{var n=t()??null;o.ensure(n,n&&(i=>r(i,n)))},$)}function J(e,t){return e===t||(e==null?void 0:e[at])===t}function Y(e={},t,r,o){return tt(()=>{var n,i;return et(()=>{n=i,i=[],rt(()=>{e!==r(...i)&&(t(e,...i),n&&J(r(...n),e)&&t(null,...n))})}),()=>{st(()=>{i&&J(r(...i),e)&&t(null,...i)})}}),e}function At(e){return class extends Lt{constructor(t){super({component:e,...t})}}}var E,f;class Lt{constructor(t){S(this,E);S(this,f);var i;var r=new Map,o=(a,s)=>{var u=ct(s,!1,!1);return r.set(a,u),u};const n=new Proxy({...t.props||{},$$events:{}},{get(a,s){return g(r.get(s)??o(s,Reflect.get(a,s)))},has(a,s){return s===nt?!0:(g(r.get(s)??o(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,u){return x(r.get(s)??o(s,u),u),Reflect.set(a,s,u)}});j(this,f,(t.hydrate?Et:yt)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((i=t==null?void 0:t.props)!=null&&i.$$host)||t.sync===!1)&&ot(),j(this,E,n.$$events);for(const a of Object.keys(m(this,f)))a==="$set"||a==="$destroy"||a==="$on"||it(this,a,{get(){return m(this,f)[a]},set(s){m(this,f)[a]=s},enumerable:!0});m(this,f).$set=a=>{Object.assign(n,a)},m(this,f).$destroy=()=>{Pt(m(this,f))}}$set(t){m(this,f).$set(t)}$on(t,r){m(this,E)[t]=m(this,E)[t]||[];const o=(...n)=>r.call(this,...n);return m(this,E)[t].push(o),()=>{m(this,E)[t]=m(this,E)[t].filter(n=>n!==o)}}$destroy(){m(this,f).$destroy()}}E=new WeakMap,f=new WeakMap;const Tt="modulepreload",pt=function(e,t){return new URL(e,t).href},K={},h=function(t,r,o){let n=Promise.resolve();if(r&&r.length>0){let a=function(l){return Promise.all(l.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const s=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),L=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));n=a(r.map(l=>{if(l=pt(l,o),l in K)return;K[l]=!0;const v=l.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(o)for(let P=s.length-1;P>=0;P--){const c=s[P];if(c.href===l&&(!v||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${y}`))return;const _=document.createElement("link");if(_.rel=v?"stylesheet":Tt,v||(_.as="script"),_.crossOrigin="",_.href=l,L&&_.setAttribute("nonce",L),document.head.appendChild(_),v)return new Promise((P,c)=>{_.addEventListener("load",P),_.addEventListener("error",()=>c(Error(`Unable to preload CSS for ${l}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return n.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},Ft={};var wt=M('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),xt=M("<!> <!>",1);function St(e,t){ut(t,!0);let r=C(t,"components",23,()=>[]),o=C(t,"data_0",3,null),n=C(t,"data_1",3,null);lt(()=>t.stores.page.set(t.page)),mt(()=>{t.stores,t.page,t.constructors,r(),t.form,o(),n(),t.stores.page.notify()});let i=D(!1),a=D(!1),s=D(null);Ot(()=>{const c=t.stores.page.subscribe(()=>{g(i)&&(x(a,!0),ft().then(()=>{x(s,document.title||"untitled page",!0)}))});return x(i,!0),c});const u=I(()=>t.constructors[1]);var L=xt(),l=w(L);{var v=c=>{const R=I(()=>t.constructors[0]);var b=V(),T=w(b);q(T,()=>g(R),(O,k)=>{Y(k(O,{get data(){return o()},get form(){return t.form},get params(){return t.page.params},children:(d,Dt)=>{var F=V(),Q=w(F);q(Q,()=>g(u),(W,X)=>{Y(X(W,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),p=>r()[1]=p,()=>{var p;return(p=r())==null?void 0:p[1]})}),A(d,F)},$$slots:{default:!0}}),d=>r()[0]=d,()=>{var d;return(d=r())==null?void 0:d[0]})}),A(c,b)},y=c=>{const R=I(()=>t.constructors[0]);var b=V(),T=w(b);q(T,()=>g(R),(O,k)=>{Y(k(O,{get data(){return o()},get form(){return t.form},get params(){return t.page.params}}),d=>r()[0]=d,()=>{var d;return(d=r())==null?void 0:d[0]})}),A(c,b)};B(l,c=>{t.constructors[1]?c(v):c(y,!1)})}var _=dt(l,2);{var P=c=>{var R=wt(),b=ht(R);{var T=O=>{var k=Rt();gt(()=>bt(k,g(s))),A(O,k)};B(b,O=>{g(a)&&O(T)})}vt(R),A(c,R)};B(_,c=>{g(i)&&c(P)})}A(e,L),_t()}const Ut=At(St),Gt=[()=>h(()=>import("../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.m3qGA7pa.js","../chunks/Dm9HHmcs.js","../chunks/CD2k2u89.js","../chunks/XtX2ckS1.js","../chunks/DRQf9AgU.js","../chunks/DJkUObd4.js","../chunks/CbROi3Jn.js","../chunks/C7RIZnpe.js","../chunks/BYPKMD8u.js","../chunks/Cj_plMLy.js","../assets/sockethub.Bpv0Wt6b.css","../chunks/CfO10NxU.js","../chunks/BJzWT4a_.js","../assets/0.C4UYQlfe.css","../nodes/1.C9WfOSx0.js","../nodes/2.0BsUoT1J.js","../chunks/M4yGBGmj.js","../nodes/3.BQPqD7QE.js","../chunks/D1Y6vir5.js","../chunks/D8LSvHGD.js","../nodes/4.BqgBlJlH.js","../chunks/DM-HM6I1.js","../nodes/5.u6f77lcO.js","../chunks/ClXGuyPN.js","../nodes/6.CeMQ6TVQ.js","../nodes/7.IpDR0NHe.js","../nodes/8.CMc3hKqE.js","../nodes/9.X8n5ZkeX.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var U=e=>{throw TypeError(e)};var G=(e,t,r)=>t.has(e)||U("Cannot "+r);var m=(e,t,r)=>(G(e,t,"read from private field"),r?r.call(e):t.get(e)),S=(e,t,r)=>t.has(e)?U("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),j=(e,t,r,o)=>(G(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);import{B as z,Q as H,P as Z,R as $,aj as tt,K as et,e as rt,O as st,ac as at,b as x,ad as nt,g,ak as ot,X as it,Y as ct,p as ut,j as lt,k as mt,d as D,J as ft,f as w,s as dt,a as _t,c as ht,r as vt,u as I,t as gt}from"../chunks/CD2k2u89.js";import{h as Et,m as yt,u as Pt,f as M,a as A,c as V,t as Rt,s as bt}from"../chunks/Dm9HHmcs.js";import{o as Ot}from"../chunks/C7RIZnpe.js";import{p as C,i as B}from"../chunks/BYPKMD8u.js";import{B as kt}from"../chunks/DRQf9AgU.js";function q(e,t,r){z&&H();var o=new kt(e);Z(()=>{var n=t()??null;o.ensure(n,n&&(i=>r(i,n)))},$)}function J(e,t){return e===t||(e==null?void 0:e[at])===t}function Y(e={},t,r,o){return tt(()=>{var n,i;return et(()=>{n=i,i=[],rt(()=>{e!==r(...i)&&(t(e,...i),n&&J(r(...n),e)&&t(null,...n))})}),()=>{st(()=>{i&&J(r(...i),e)&&t(null,...i)})}}),e}function At(e){return class extends Lt{constructor(t){super({component:e,...t})}}}var E,f;class Lt{constructor(t){S(this,E);S(this,f);var i;var r=new Map,o=(a,s)=>{var u=ct(s,!1,!1);return r.set(a,u),u};const n=new Proxy({...t.props||{},$$events:{}},{get(a,s){return g(r.get(s)??o(s,Reflect.get(a,s)))},has(a,s){return s===nt?!0:(g(r.get(s)??o(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,u){return x(r.get(s)??o(s,u),u),Reflect.set(a,s,u)}});j(this,f,(t.hydrate?Et:yt)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((i=t==null?void 0:t.props)!=null&&i.$$host)||t.sync===!1)&&ot(),j(this,E,n.$$events);for(const a of Object.keys(m(this,f)))a==="$set"||a==="$destroy"||a==="$on"||it(this,a,{get(){return m(this,f)[a]},set(s){m(this,f)[a]=s},enumerable:!0});m(this,f).$set=a=>{Object.assign(n,a)},m(this,f).$destroy=()=>{Pt(m(this,f))}}$set(t){m(this,f).$set(t)}$on(t,r){m(this,E)[t]=m(this,E)[t]||[];const o=(...n)=>r.call(this,...n);return m(this,E)[t].push(o),()=>{m(this,E)[t]=m(this,E)[t].filter(n=>n!==o)}}$destroy(){m(this,f).$destroy()}}E=new WeakMap,f=new WeakMap;const Tt="modulepreload",pt=function(e,t){return new URL(e,t).href},K={},h=function(t,r,o){let n=Promise.resolve();if(r&&r.length>0){let a=function(l){return Promise.all(l.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const s=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),L=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));n=a(r.map(l=>{if(l=pt(l,o),l in K)return;K[l]=!0;const v=l.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(o)for(let P=s.length-1;P>=0;P--){const c=s[P];if(c.href===l&&(!v||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${y}`))return;const _=document.createElement("link");if(_.rel=v?"stylesheet":Tt,v||(_.as="script"),_.crossOrigin="",_.href=l,L&&_.setAttribute("nonce",L),document.head.appendChild(_),v)return new Promise((P,c)=>{_.addEventListener("load",P),_.addEventListener("error",()=>c(Error(`Unable to preload CSS for ${l}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return n.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},Ft={};var wt=M('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),xt=M("<!> <!>",1);function St(e,t){ut(t,!0);let r=C(t,"components",23,()=>[]),o=C(t,"data_0",3,null),n=C(t,"data_1",3,null);lt(()=>t.stores.page.set(t.page)),mt(()=>{t.stores,t.page,t.constructors,r(),t.form,o(),n(),t.stores.page.notify()});let i=D(!1),a=D(!1),s=D(null);Ot(()=>{const c=t.stores.page.subscribe(()=>{g(i)&&(x(a,!0),ft().then(()=>{x(s,document.title||"untitled page",!0)}))});return x(i,!0),c});const u=I(()=>t.constructors[1]);var L=xt(),l=w(L);{var v=c=>{const R=I(()=>t.constructors[0]);var b=V(),T=w(b);q(T,()=>g(R),(O,k)=>{Y(k(O,{get data(){return o()},get form(){return t.form},get params(){return t.page.params},children:(d,Dt)=>{var F=V(),Q=w(F);q(Q,()=>g(u),(W,X)=>{Y(X(W,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),p=>r()[1]=p,()=>{var p;return(p=r())==null?void 0:p[1]})}),A(d,F)},$$slots:{default:!0}}),d=>r()[0]=d,()=>{var d;return(d=r())==null?void 0:d[0]})}),A(c,b)},y=c=>{const R=I(()=>t.constructors[0]);var b=V(),T=w(b);q(T,()=>g(R),(O,k)=>{Y(k(O,{get data(){return o()},get form(){return t.form},get params(){return t.page.params}}),d=>r()[0]=d,()=>{var d;return(d=r())==null?void 0:d[0]})}),A(c,b)};B(l,c=>{t.constructors[1]?c(v):c(y,!1)})}var _=dt(l,2);{var P=c=>{var R=wt(),b=ht(R);{var T=O=>{var k=Rt();gt(()=>bt(k,g(s))),A(O,k)};B(b,O=>{g(a)&&O(T)})}vt(R),A(c,R)};B(_,c=>{g(i)&&c(P)})}A(e,L),_t()}const Ut=At(St),Gt=[()=>h(()=>import("../nodes/0.m3qGA7pa.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),()=>h(()=>import("../nodes/1.C9WfOSx0.js"),__vite__mapDeps([14,1,2,6,9,12,7,11]),import.meta.url),()=>h(()=>import("../nodes/2.0BsUoT1J.js"),__vite__mapDeps([15,1,2,6,3,4,11,16]),import.meta.url),()=>h(()=>import("../nodes/3.BQPqD7QE.js"),__vite__mapDeps([17,1,2,5,6,7,8,4,3,9,10,18,16,19]),import.meta.url),()=>h(()=>import("../nodes/4.BqgBlJlH.js"),__vite__mapDeps([20,1,2,8,4,7,21,3,18,5,6,9,10,16,19]),import.meta.url),()=>h(()=>import("../nodes/5.u6f77lcO.js"),__vite__mapDeps([22,1,2,8,4,7,3,18,5,6,9,10,16,21,23]),import.meta.url),()=>h(()=>import("../nodes/6.CeMQ6TVQ.js"),__vite__mapDeps([24,1,2,8,4,7,21,3,18,5,6,9,10,16,19]),import.meta.url),()=>h(()=>import("../nodes/7.IpDR0NHe.js"),__vite__mapDeps([25,1,2,8,4,7,5,6,3,9,10,18,16,19]),import.meta.url),()=>h(()=>import("../nodes/8.CMc3hKqE.js"),__vite__mapDeps([26,1,2,8,4,7,21,3,18,5,6,9,10,16,23,19]),import.meta.url),()=>h(()=>import("../nodes/9.X8n5ZkeX.js"),__vite__mapDeps([27,1,2,8,4,7,5,6,3,9,10,18,16,19]),import.meta.url)],Jt=[],Kt={"/":[2],"/caldav":[9],"/carddav":[7],"/dummy":[3],"/feeds":[6],"/irc":[8],"/metadata":[4],"/xmpp":[5]},N={handleError:({error:e})=>{console.error(e)},reroute:()=>{},transport:{}},jt=Object.fromEntries(Object.entries(N.transport).map(([e,t])=>[e,t.decode])),Mt=Object.fromEntries(Object.entries(N.transport).map(([e,t])=>[e,t.encode])),Nt=!1,Qt=(e,t)=>jt[e](t);export{Qt as decode,jt as decoders,Kt as dictionary,Mt as encoders,Nt as hash,N as hooks,Ft as matchers,Gt as nodes,Ut as root,Jt as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/BJzWT4a_.js";export{o as load_css,r as start};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as y,a as v,s as w,c as B}from"../chunks/Dm9HHmcs.js";import{t as M,c as s,n as Y,r as e,s as b,p as Z,a as ee,b as E,d as q,f as F,g as t,u as L,ai as se,G as te}from"../chunks/CD2k2u89.js";import{a as A,d as z,s as C,c as ae}from"../chunks/XtX2ckS1.js";import{f as re,e as oe,l as le,p as ne,i as ie,h as ce,g as de}from"../chunks/
|
|
1
|
+
import{f as y,a as v,s as w,c as B}from"../chunks/Dm9HHmcs.js";import{t as M,c as s,n as Y,r as e,s as b,p as Z,a as ee,b as E,d as q,f as F,g as t,u as L,ai as se,G as te}from"../chunks/CD2k2u89.js";import{a as A,d as z,s as C,c as ae}from"../chunks/XtX2ckS1.js";import{f as re,e as oe,l as le,p as ne,i as ie,h as ce,g as de}from"../chunks/DJkUObd4.js";import{b as G}from"../chunks/CfO10NxU.js";import"../chunks/CbROi3Jn.js";import{i as H,s as N,a as X}from"../chunks/BYPKMD8u.js";import{o as pe}from"../chunks/C7RIZnpe.js";import{s as he}from"../chunks/BJzWT4a_.js";const ve=!0,me=!1,Te=Object.freeze(Object.defineProperty({__proto__:null,prerender:ve,ssr:me},Symbol.toStringTag,{value:"Module"})),ue=`<style>/*!
|
|
2
2
|
Theme: Edge Light
|
|
3
3
|
Author: cjayross (https://github.com/cjayross)
|
|
4
4
|
License: ~ MIT (or more permissive) [via base16-schemes-source]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as h,a as g,s as e}from"../chunks/Dm9HHmcs.js";import"../chunks/CbROi3Jn.js";import{p as l,f as v,t as d,a as _,c as o,r as p,s as x}from"../chunks/CD2k2u89.js";import{i as $}from"../chunks/Cj_plMLy.js";import{s as k,p as m}from"../chunks/
|
|
1
|
+
import{f as h,a as g,s as e}from"../chunks/Dm9HHmcs.js";import"../chunks/CbROi3Jn.js";import{p as l,f as v,t as d,a as _,c as o,r as p,s as x}from"../chunks/CD2k2u89.js";import{i as $}from"../chunks/Cj_plMLy.js";import{s as k,p as m}from"../chunks/BJzWT4a_.js";const b={get error(){return m.error},get status(){return m.status}};k.updated.check;const i=b;var E=h("<h1> </h1> <p> </p>",1);function A(f,c){l(c,!1),$();var t=E(),r=v(t),n=o(r,!0);p(r);var s=x(r,2),u=o(s,!0);p(s),d(()=>{var a;e(n,i.status),e(u,(a=i.error)==null?void 0:a.message)}),g(f,t),_()}export{A as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as y,a as k}from"../chunks/Dm9HHmcs.js";import"../chunks/CbROi3Jn.js";import{s as e,f as S,c as a,r,n as _,t as P}from"../chunks/CD2k2u89.js";import{s as t}from"../chunks/XtX2ckS1.js";import{b as s}from"../chunks/
|
|
1
|
+
import{f as y,a as k}from"../chunks/Dm9HHmcs.js";import"../chunks/CbROi3Jn.js";import{s as e,f as S,c as a,r,n as _,t as P}from"../chunks/CD2k2u89.js";import{s as t}from"../chunks/XtX2ckS1.js";import{b as s}from"../chunks/CfO10NxU.js";import{I as A}from"../chunks/M4yGBGmj.js";var C=y(`<title>Sockethub Examples</title> <div class="space-y-6"><div class="bg-blue-50 border-l-4 border-blue-400 p-4 rounded-r-lg"><h2 class="text-xl font-semibold text-blue-800 mb-2">What is Sockethub?</h2> <p class="text-blue-700 mb-3">Sockethub is a <strong>protocol gateway</strong> that bridges web applications with various internet protocols
|
|
2
2
|
like IRC, XMPP, RSS/ATOM feeds, and more. Instead of implementing each protocol directly in your web app,
|
|
3
3
|
you send standardized <strong>ActivityStreams</strong> messages to Sockethub, which handles the protocol-specific details.</p> <p class="text-blue-700">Think of it as a universal translator that lets your web application communicate with
|
|
4
4
|
chat servers, feed readers, and other internet services using a single, consistent API.</p></div> <div class="bg-green-50 border-l-4 border-green-400 p-4 rounded-r-lg"><h2 class="text-xl font-semibold text-green-800 mb-2">Key Concepts</h2> <div class="space-y-3"><div><h3 class="font-semibold text-green-700">🎭 Actor</h3> <p class="text-green-600 text-sm">Your identity on a platform (e.g., IRC nickname, XMPP username, feed URL)</p></div> <div><h3 class="font-semibold text-green-700">🔧 Platform</h3> <p class="text-green-600 text-sm">A protocol handler (IRC, XMPP, Feeds, etc.) that runs as a separate process</p></div> <div><h3 class="font-semibold text-green-700">📝 ActivityStreams</h3> <p class="text-green-600 text-sm">Standardized JSON format for describing activities like "send message", "connect", "fetch"</p></div> <div><h3 class="font-semibold text-green-700">🔐 Credentials</h3> <p class="text-green-600 text-sm">Connection details securely stored per session (servers, passwords, API keys)</p></div></div></div> <div class="bg-yellow-50 border-l-4 border-yellow-400 p-4 rounded-r-lg"><h2 class="text-xl font-semibold text-yellow-800 mb-2">How It Works</h2> <ol class="text-yellow-700 space-y-2 text-sm"><li><span class="font-semibold">1.</span> Your web app connects to Sockethub via WebSocket</li> <li><span class="font-semibold">2.</span> You define an actor and send ActivityStreams messages (<code>credentials</code>, <code>connect</code>, <code>join</code>, …) with full actor objects</li> <li><span class="font-semibold">3.</span> Sockethub routes messages to the appropriate platform</li> <li><span class="font-semibold">4.</span> Platform handles protocol-specific communication</li> <li><span class="font-semibold">5.</span> Results are sent back to your web app as ActivityStreams</li></ol></div> <div class="bg-purple-50 border-l-4 border-purple-400 p-4 rounded-r-lg"><h2 class="text-xl font-semibold text-purple-800 mb-2">Explore the Examples</h2> <p class="text-purple-700 mb-3">Each example demonstrates a different platform. Start with <strong>Dummy</strong> to understand
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as be,a as d,t as a}from"../chunks/Dm9HHmcs.js";import{p as xe,a as pe,s,f as fe,c as e,b as he,d as ue,g as N,r as t,n as o}from"../chunks/CD2k2u89.js";import{s as b,c as ge}from"../chunks/
|
|
1
|
+
import{f as be,a as d,t as a}from"../chunks/Dm9HHmcs.js";import{p as xe,a as pe,s,f as fe,c as e,b as he,d as ue,g as N,r as t,n as o}from"../chunks/CD2k2u89.js";import{s as b,c as ge}from"../chunks/DJkUObd4.js";import{B as we,S as l}from"../chunks/D1Y6vir5.js";import{F as ye}from"../chunks/D8LSvHGD.js";var _e=be(`<div class="bg-gradient-to-r from-blue-50 to-blue-100 border border-blue-200 rounded-xl p-6 shadow-sm"><h3 class="text-xl font-bold text-blue-900 mb-3 flex items-center"><span class="mr-2">💡</span> What You'll Learn</h3> <p class="text-blue-800 mb-4 leading-relaxed">This example demonstrates the core Sockethub workflow with a test platform that doesn't require external connections.</p> <div class="grid md:grid-cols-2 gap-3 text-blue-800"><div class="flex items-start space-x-2"><span class="text-lg">📤</span> <div><div class="font-semibold">Sending</div> <div class="text-sm text-blue-700">How to create and send ActivityStreams messages</div></div></div> <div class="flex items-start space-x-2"><span class="text-lg">📥</span> <div><div class="font-semibold">Receiving</div> <div class="text-sm text-blue-700">How Sockethub responds with results or errors</div></div></div> <div class="flex items-start space-x-2"><span class="text-lg">🎯</span> <div><div class="font-semibold">Actor</div> <div class="text-sm text-blue-700">How your identity is represented</div></div></div> <div class="flex items-start space-x-2"><span class="text-lg">🔄</span> <div><div class="font-semibold">Types</div> <div class="text-sm text-blue-700">Different activity types (echo, greet, fail, throw, exit0, exit1, sigterm, sigkill, throwTypeError, throwReferenceError, hang)</div></div></div></div></div> <div class="space-y-4"><!> <p class="text-gray-600 text-sm">⬆️ This text will be included in the <code>object.content</code> field of your ActivityStreams message.</p> <div class="bg-gradient-to-r from-amber-50 to-yellow-50 border border-amber-200 rounded-xl p-6 shadow-sm"><h4 class="text-lg font-bold text-amber-900 mb-3 flex items-center"><span class="mr-2">🚀</span> Try Different Activity Types</h4> <p class="text-amber-800 mb-4 leading-relaxed">Each button sends the same basic message structure but with a different <code class="bg-amber-100 px-1 rounded text-sm">type</code> field:</p> <div class="grid md:grid-cols-2 gap-4"><div class="space-y-4"><div class="bg-white rounded-lg p-4 border border-amber-200"><div class="flex items-center justify-between"><div class="flex-1"><div class="font-semibold text-amber-900 mb-1">Echo</div> <p class="text-amber-700 text-sm">Returns your message back unchanged</p></div> <!></div></div> <div class="bg-white rounded-lg p-4 border border-amber-200"><div class="flex items-center justify-between"><div class="flex-1"><div class="font-semibold text-amber-900 mb-1">Greet</div> <p class="text-amber-700 text-sm">Returns a friendly greeting</p></div> <!></div></div></div> <div class="space-y-4"><div class="bg-white rounded-lg p-4 border border-amber-200"><div class="flex items-center justify-between"><div class="flex-1"><div class="font-semibold text-amber-900 mb-1">Fail</div> <p class="text-amber-700 text-sm">Returns an error message (for testing error handling)</p></div> <!></div></div> <div class="bg-white rounded-lg p-4 border border-amber-200"><div class="flex items-center justify-between"><div class="flex-1"><div class="font-semibold text-amber-900 mb-1">Throw</div> <p class="text-amber-700 text-sm">Throws an exception (for testing exception handling)</p></div> <!></div></div></div></div></div> <div class="bg-gradient-to-r from-red-50 to-rose-50 border border-red-200 rounded-xl p-6 shadow-sm"><h4 class="text-lg font-bold text-red-900 mb-3 flex items-center"><span class="mr-2">⚠️</span> Crash/Recovery Tests</h4> <p class="text-red-800 mb-4 leading-relaxed">These types intentionally terminate or hang the dummy platform process. Use them to validate crash handling and recovery.</p> <div class="grid md:grid-cols-2 gap-4"><div class="space-y-4"><div class="bg-white rounded-lg p-4 border border-red-200"><div class="flex items-center justify-between"><div class="flex-1"><div class="font-semibold text-red-900 mb-1">Exit 0</div> <p class="text-red-700 text-sm">Graceful exit (process.exit(0))</p></div> <!></div></div> <div class="bg-white rounded-lg p-4 border border-red-200"><div class="flex items-center justify-between"><div class="flex-1"><div class="font-semibold text-red-900 mb-1">Exit 1</div> <p class="text-red-700 text-sm">Crash exit (process.exit(1))</p></div> <!></div></div> <div class="bg-white rounded-lg p-4 border border-red-200"><div class="flex items-center justify-between"><div class="flex-1"><div class="font-semibold text-red-900 mb-1">SIGTERM</div> <p class="text-red-700 text-sm">Self-terminate with SIGTERM</p></div> <!></div></div> <div class="bg-white rounded-lg p-4 border border-red-200"><div class="flex items-center justify-between"><div class="flex-1"><div class="font-semibold text-red-900 mb-1">SIGKILL</div> <p class="text-red-700 text-sm">Self-terminate with SIGKILL</p></div> <!></div></div></div> <div class="space-y-4"><div class="bg-white rounded-lg p-4 border border-red-200"><div class="flex items-center justify-between"><div class="flex-1"><div class="font-semibold text-red-900 mb-1">TypeError</div> <p class="text-red-700 text-sm">Throw a TypeError on next tick</p></div> <!></div></div> <div class="bg-white rounded-lg p-4 border border-red-200"><div class="flex items-center justify-between"><div class="flex-1"><div class="font-semibold text-red-900 mb-1">ReferenceError</div> <p class="text-red-700 text-sm">Throw a ReferenceError on next tick</p></div> <!></div></div> <div class="bg-white rounded-lg p-4 border border-red-200"><div class="flex items-center justify-between"><div class="flex-1"><div class="font-semibold text-red-900 mb-1">Hang</div> <p class="text-red-700 text-sm">Block the event loop (heartbeat timeout)</p></div> <!></div></div></div></div></div></div>`,1);function ke(Q,V){xe(V,!0);const T="https://sockethub.org/examples/dummy";let x=ue("");async function c(m){return{"@context":await ge("dummy"),type:m,actor:{type:"person",id:T,name:T},object:{type:"message",content:N(x)}}}async function v(m){await b(await c(m))}async function X(){await b(await c("echo"))}async function Z(){await b(await c("fail"))}async function ee(){await b(await c("throw"))}async function te(){await b(await c("greet"))}we(Q,{title:"Dummy Platform Example",description:"The dummy platform is the most basic test to communicate via Sockethub to a platform, and receive a response back. You can use either the echo or fail types on your Activity Stream object.",children:(m,$e)=>{var S=_e(),A=s(fe(S),2),j=e(A);ye(j,{label:"Message Content",id:"objectContent",placeholder:"Hello from Sockethub",get value(){return N(x)},set value(r){he(x,r,!0)}});var p=s(j,4),k=s(e(p),4),f=e(k),h=e(f),P=e(h),se=s(e(P),2);l(se,{buttonAction:X,children:(r,n)=>{o();var i=a("Echo");d(r,i)}}),t(P),t(h);var R=s(h,2),G=e(R),re=s(e(G),2);l(re,{buttonAction:te,children:(r,n)=>{o();var i=a("Greet");d(r,i)}}),t(G),t(R),t(f);var I=s(f,2),u=e(I),F=e(u),ie=s(e(F),2);l(ie,{buttonAction:Z,children:(r,n)=>{o();var i=a("Fail");d(r,i)}}),t(F),t(u);var L=s(u,2),H=e(L),de=s(e(H),2);l(de,{buttonAction:ee,children:(r,n)=>{o();var i=a("Throw");d(r,i)}}),t(H),t(L),t(I),t(k),t(p);var B=s(p,2),C=s(e(B),4),g=e(C),w=e(g),M=e(w),ae=s(e(M),2);l(ae,{buttonAction:()=>v("exit0"),children:(r,n)=>{o();var i=a("Exit 0");d(r,i)}}),t(M),t(w);var y=s(w,2),D=e(y),oe=s(e(D),2);l(oe,{buttonAction:()=>v("exit1"),children:(r,n)=>{o();var i=a("Exit 1");d(r,i)}}),t(D),t(y);var _=s(y,2),K=e(_),le=s(e(K),2);l(le,{buttonAction:()=>v("sigterm"),children:(r,n)=>{o();var i=a("SIGTERM");d(r,i)}}),t(K),t(_);var Y=s(_,2),q=e(Y),ne=s(e(q),2);l(ne,{buttonAction:()=>v("sigkill"),children:(r,n)=>{o();var i=a("SIGKILL");d(r,i)}}),t(q),t(Y),t(g);var O=s(g,2),$=e(O),U=e($),ve=s(e(U),2);l(ve,{buttonAction:()=>v("throwTypeError"),children:(r,n)=>{o();var i=a("TypeError");d(r,i)}}),t(U),t($);var E=s($,2),W=e(E),ce=s(e(W),2);l(ce,{buttonAction:()=>v("throwReferenceError"),children:(r,n)=>{o();var i=a("ReferenceError");d(r,i)}}),t(W),t(E);var z=s(E,2),J=e(z),me=s(e(J),2);l(me,{buttonAction:()=>v("hang"),children:(r,n)=>{o();var i=a("Hang");d(r,i)}}),t(J),t(z),t(O),t(C),t(B),t(A),d(m,S)}}),pe()}export{ke as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as _,t as F,a as l}from"../chunks/Dm9HHmcs.js";import{p as L,a as R,s,f as A,c as u,b as E,d as P,g as t,u as m,n as U,r as h}from"../chunks/CD2k2u89.js";import{s as B,a as M}from"../chunks/BYPKMD8u.js";import{A as O}from"../chunks/
|
|
1
|
+
import{f as _,t as F,a as l}from"../chunks/Dm9HHmcs.js";import{p as L,a as R,s,f as A,c as u,b as E,d as P,g as t,u as m,n as U,r as h}from"../chunks/CD2k2u89.js";import{s as B,a as M}from"../chunks/BYPKMD8u.js";import{A as O}from"../chunks/DM-HM6I1.js";import{B as T,S as W}from"../chunks/D1Y6vir5.js";import{F as j}from"../chunks/D8LSvHGD.js";import{s as C,a as D,c as G}from"../chunks/DJkUObd4.js";import{w as H}from"../chunks/C7RIZnpe.js";var J=_('<div class="bg-purple-50 border-l-4 border-purple-400 p-4 rounded-r-lg mb-6"><h3 class="text-lg font-semibold text-purple-800 mb-2">🔍 How Metadata Extraction Works</h3> <p class="text-purple-700 text-sm mb-3">This example shows how Sockethub can extract structured metadata from any web page.</p> <div class="text-purple-700 text-sm space-y-1"><div><strong>🌐 Fetching:</strong> Sockethub downloads the web page content</div> <div><strong>🔍 Scanning:</strong> Searches for Open Graph, Twitter Cards, JSON-LD, and meta tags</div> <div><strong>📊 Extracting:</strong> Pulls out titles, descriptions, images, and other metadata</div> <div><strong>📋 Returning:</strong> Provides structured data about the page</div></div></div> <div class="space-y-4"><!> <p class="text-gray-600 text-sm">The page URL is the actor <code>id</code> with <code>type: "website"</code>.</p> <!> <div class="bg-blue-50 border border-blue-200 p-3 rounded-lg"><p class="text-blue-700 text-sm"><strong>💡 What happens when you click Fetch:</strong><br/> Sockethub sends a <code>fetch</code> activity with the page URL as the actor and returns extracted metadata.</p></div> <div class="w-full text-right"><!></div></div>',1);function tt(g,b){L(b,!0);const v=()=>M(r,"$sockethubState",f),[f,x]=B(),r=H({actorSet:!1});let e=P("https://sockethub.org");const o=m(()=>({id:t(e),type:"website",name:t(e)}));async function w(){await C({"@context":await G("metadata"),type:"fetch",actor:D(t(o))})}T(g,{title:"Metadata Platform Example",description:"Sockethub's metadata platform takes a URL, fetches and parses it for any metadata.",children:(S,N)=>{var c=J(),d=s(A(c),2),i=u(d);j(i,{label:"Website URL",id:"URL",placeholder:"https://example.com",get value(){return t(e)},set value(a){E(e,a,!0)}});var n=s(i,4);O(n,{get actor(){return t(o)},get sockethubState(){return r}});var p=s(n,4),k=u(p);{let a=m(()=>!v().actorSet);W(k,{buttonAction:w,get disabled(){return t(a)},children:(y,q)=>{U();var $=F("Extract Metadata");l(y,$)}})}h(p),h(d),l(S,c)}}),R(),x()}export{tt as component};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as k,a as y}from"../chunks/Dm9HHmcs.js";import{p as Q,a as T,s as t,f as U,c as n,g as e,u as P,r as d,n as W,d as S,t as Z,b as m,e as c}from"../chunks/CD2k2u89.js";import{s as ee,b as te,m as re,a as J,i as oe,c as _}from"../chunks/BYPKMD8u.js";import{r as se}from"../chunks/XtX2ckS1.js";import{B as ae,b as ne}from"../chunks/
|
|
1
|
+
import{f as k,a as y}from"../chunks/Dm9HHmcs.js";import{p as Q,a as T,s as t,f as U,c as n,g as e,u as P,r as d,n as W,d as S,t as Z,b as m,e as c}from"../chunks/CD2k2u89.js";import{s as ee,b as te,m as re,a as J,i as oe,c as _}from"../chunks/BYPKMD8u.js";import{r as se}from"../chunks/XtX2ckS1.js";import{B as ae,b as ne}from"../chunks/D1Y6vir5.js";import{A as de}from"../chunks/DM-HM6I1.js";import{A as ce,C as ie,P as le,R as me,S as pe}from"../chunks/ClXGuyPN.js";import{I as ge,s as ue,c as be}from"../chunks/DJkUObd4.js";import{w as R}from"../chunks/C7RIZnpe.js";var ve=k('<div class="bg-white border border-gray-200 rounded-lg p-4"><h4 class="font-semibold text-gray-800 mb-3">Step 4 & 5: Join Room and Chat</h4> <div class="space-y-4"><!> <!> <!></div></div>'),he=k('<div class="bg-gray-50 border border-gray-200 rounded-lg p-4 text-center"><p class="text-gray-500">Connect to the XMPP server to access chat features</p></div>'),fe=k(`<div class="bg-indigo-50 border-l-4 border-indigo-400 p-4 rounded-r-lg mb-6"><h3 class="text-lg font-semibold text-indigo-800 mb-2">📨 XMPP Connection Process</h3> <p class="text-indigo-700 text-sm mb-3">XMPP (Extensible Messaging and Presence Protocol) is a real-time communication protocol used by services like Jabber.</p> <div class="text-indigo-700 text-sm space-y-1"><div><strong>1. 🎭 Actor:</strong> JSON object with <code>id</code>, <code>type</code>, and <code>name</code></div> <div><strong>2. 🔐 Set Credentials:</strong> Your XMPP login secret, sent through the password field</div> <div><strong>3. 🔌 Connect:</strong> Establish connection to XMPP server</div> <div><strong>4. 🏠 Join Room:</strong> Enter a multi-user chat room</div> <div><strong>5. 💬 Send Messages:</strong> Chat with other users in real-time</div></div></div> <div class="space-y-6"><div class="bg-white border border-gray-200 rounded-lg p-4"><h4 class="font-semibold text-gray-800 mb-3">Step 1: Set Your XMPP Address</h4> <!> <p class="text-gray-600 text-sm mt-2">💡 Format: username@server.com (e.g., user@jabber.org, alice@conversations.im)</p> <!></div> <div class="bg-white border border-gray-200 rounded-lg p-4"><h4 class="font-semibold text-gray-800 mb-3">Step 2: Set Your Credentials</h4> <label class="block text-sm font-medium text-gray-700 mb-1" for="xmpp-password-input">Password</label> <input id="xmpp-password-input" type="password" class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm mb-3" placeholder="your XMPP password or compatible bearer token"/> <p class="text-gray-600 text-xs mb-3">💡 If your deployment accepts a bearer-style token in the SASL PLAIN password
|
|
2
2
|
slot, enter that token here. Sockethub's XMPP platform still submits it as <code>password</code>.</p> <!> <p class="text-gray-600 text-sm mt-2">🔐 Sockethub's XMPP platform accepts a single <code>password</code> field.</p></div> <div class="bg-white border border-gray-200 rounded-lg p-4"><h4 class="font-semibold text-gray-800 mb-3">Step 3: Connect to XMPP Server</h4> <!></div> <!></div>`,1);function Ae(F,Y){Q(Y,!0);const p=()=>J(M,"$actorIdStore",w),s=()=>J(o,"$sockethubState",w),[w,B]=ee(),M=R("user@jabber.org");let g=S(!1),u=S("123456"),X=P(()=>`${p()}/SockethubExample`),b=S("kosmos-random@kosmos.chat");const o=R({actorSet:!1,credentialsSet:!1,connected:!1,joined:!1});let a=P(()=>({id:e(X),type:"person",name:e(X)})),L=P(()=>({type:"credentials",userAddress:p(),resource:"SockethubExample",password:e(u)}));async function N(){m(g,!0);try{await ue({"@context":await be("xmpp"),type:"connect",actor:{id:e(a).id,type:e(a).type,name:e(a).name}}),_(o,c(s).connected=!0,c(s))}catch(v){console.error(v),_(o,c(s).connected=!1,c(s)),_(o,c(s).joined=!1,c(s))}finally{m(g,!1)}}ae(F,{title:"XMPP Platform Example",description:"Connect to XMPP servers (Jabber), join multi-user chats, and exchange messages using Sockethub's XMPP platform.",children:(v,xe)=>{var C=fe(),A=t(U(C),2),h=n(A),I=t(n(h),2);ce(I,{get value(){return re(),p()},set value(r){te(M,r)}});var O=t(I,4);de(O,{get actor(){return e(a)},get sockethubState(){return o}}),d(h);var f=t(h,2),l=t(n(f),4);se(l);var V=t(l,4);ie(V,{context:"xmpp",get credentials(){return e(L)},get actor(){return e(a)},get sockethubState(){return o}}),W(2),d(f);var x=t(f,2),q=t(n(x),2);le(q,{get sockethubState(){return o},get connecting(){return e(g)},onConnect:N}),d(x);var z=t(x,2);{var D=r=>{var i=ve(),$=t(n(i),2),E=n($);me(E,{get actor(){return e(a)},get sockethubState(){return o},context:"xmpp",get room(){return e(b)},set room(K){m(b,K,!0)}});var j=t(E,2);ge(j,{});var H=t(j,2);pe(H,{context:"xmpp",get actor(){return e(a)},get sockethubState(){return o},get room(){return e(b)}}),d($),d(i),y(r,i)},G=r=>{var i=he();y(r,i)};oe(z,r=>{s().connected?r(D):r(G,!1)})}d(A),Z(()=>l.disabled=s().credentialsSet),ne(l,()=>e(u),r=>m(u,r)),y(v,C)}}),T(),B()}export{Ae as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as w,t as E,a as p,s as O}from"../chunks/Dm9HHmcs.js";import{p as P,a as j,s as a,f as B,c,b as f,d as y,g as e,u as _,n as M,r as n,t as C}from"../chunks/CD2k2u89.js";import{s as W,i as H,a as Y}from"../chunks/BYPKMD8u.js";import{A as q}from"../chunks/
|
|
1
|
+
import{f as w,t as E,a as p,s as O}from"../chunks/Dm9HHmcs.js";import{p as P,a as j,s as a,f as B,c,b as f,d as y,g as e,u as _,n as M,r as n,t as C}from"../chunks/CD2k2u89.js";import{s as W,i as H,a as Y}from"../chunks/BYPKMD8u.js";import{A as q}from"../chunks/DM-HM6I1.js";import{B as z,S as D}from"../chunks/D1Y6vir5.js";import{F as G}from"../chunks/D8LSvHGD.js";import{s as I,a as J,c as K}from"../chunks/DJkUObd4.js";import{w as N}from"../chunks/C7RIZnpe.js";var Q=w('<div class="bg-red-50 border border-red-200 text-red-800 rounded-lg p-4 text-sm" role="alert"><p class="font-semibold mb-1">Fetch failed</p> <p class="font-mono text-xs whitespace-pre-wrap break-words"> </p></div>'),V=w('<div class="bg-green-50 border-l-4 border-green-400 p-4 rounded-r-lg mb-6"><h3 class="text-lg font-semibold text-green-800 mb-2">📰 How Feed Processing Works</h3> <p class="text-green-700 text-sm mb-3">This example shows how Sockethub can fetch and parse RSS/ATOM feeds from any website.</p> <div class="text-green-700 text-sm space-y-1"><div><strong>🌐 Fetching:</strong> Sockethub downloads the feed content from the URL</div> <div><strong>🔍 Parsing:</strong> Content is parsed from RSS/ATOM format</div> <div><strong>📝 Converting:</strong> Each feed entry becomes an ActivityStreams object</div> <div><strong>📊 Results:</strong> You receive an array of structured feed entries</div></div></div> <div class="space-y-4"><!> <p class="text-gray-600 text-sm">The feed URL is the actor <code>id</code> with <code>type: "feed"</code>.</p> <!> <div class="bg-blue-50 border border-blue-200 p-3 rounded-lg"><p class="text-blue-700 text-sm"><strong>💡 What happens when you click Fetch:</strong><br/> Sockethub sends a <code>fetch</code> activity with the feed URL as the actor and returns a collection of entries.</p></div> <!> <div class="w-full text-right"><!></div></div>',1);function ce(k,F){P(F,!0);const $=()=>Y(m,"$sockethubState",A),[A,R]=W(),m=N({actorSet:!1});let o=y("https://sockethub.org/feed.xml"),d=y(null);const h=_(()=>({id:e(o),type:"feed",name:e(o)}));async function L(){f(d,null);try{await I({"@context":await K("feeds"),type:"fetch",actor:J(e(h))})}catch(r){f(d,r instanceof Error?r.message:String(r),!0)}}z(k,{title:"Feeds Platform Example",description:"The feeds platform takes an RSS/ATOM feed URL, fetches and parses it, and returns an array of Activity Objects for each entry.",children:(r,X)=>{var v=V(),u=a(B(v),2),b=c(u);G(b,{label:"Feed URL",id:"URL",placeholder:"https://example.com/feed.xml",get value(){return e(o)},set value(t){f(o,t,!0)}});var g=a(b,4);q(g,{get actor(){return e(h)},get sockethubState(){return m}});var x=a(g,4);{var T=t=>{var s=Q(),i=a(c(s),2),l=c(i,!0);n(i),n(s),C(()=>O(l,e(d))),p(t,s)};H(x,t=>{e(d)&&t(T)})}var S=a(x,2),U=c(S);{let t=_(()=>!$().actorSet);D(U,{buttonAction:L,get disabled(){return e(t)},children:(s,i)=>{M();var l=E("Fetch Feed");p(s,l)}})}n(S),n(u),p(r,v)}}),j(),R()}export{ce as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as Ve,f as g,t as re,s as h,a as c}from"../chunks/Dm9HHmcs.js";import{p as ze,d as u,h as ue,a as Le,f as pe,s,c as d,b as r,g as e,n as ae,t as k,u as O,r as n}from"../chunks/CD2k2u89.js";import{i as A}from"../chunks/BYPKMD8u.js";import{e as fe,b as Ne,c as se,d as Qe,s as ge}from"../chunks/
|
|
1
|
+
import{d as Ve,f as g,t as re,s as h,a as c}from"../chunks/Dm9HHmcs.js";import{p as ze,d as u,h as ue,a as Le,f as pe,s,c as d,b as r,g as e,n as ae,t as k,u as O,r as n}from"../chunks/CD2k2u89.js";import{i as A}from"../chunks/BYPKMD8u.js";import{e as fe,b as Ne,c as se,d as Qe,s as ge}from"../chunks/DJkUObd4.js";import{b as Ge}from"../chunks/XtX2ckS1.js";import{B as He,S as oe}from"../chunks/D1Y6vir5.js";import{F as N}from"../chunks/D8LSvHGD.js";var Je=g('<div class="rounded-lg border border-red-200 bg-red-50 p-4 text-sm text-red-800" role="alert"> </div>'),Ke=g('<div class="rounded-lg border border-green-200 bg-green-50 p-4 text-sm text-green-800" role="status"> </div>'),Me=g("<option> </option>"),Oe=g('<p class="text-sm text-gray-600"> </p>'),Te=g('<label for="carddav-address-book" class="block text-sm font-semibold text-gray-700">Address book</label> <select id="carddav-address-book" class="w-full rounded-lg border border-gray-300 bg-white px-4 py-3"></select> <!>',1),We=g('<p class="text-sm text-gray-600"> </p>'),Xe=g('<p class="text-sm text-gray-600"> </p>'),Ye=g('<p class="text-sm text-gray-600"> </p>'),Ze=g('<li class="space-y-1 p-4"><h3 class="font-semibold text-gray-900"> </h3> <!> <!> <!></li>'),et=g('<ul class="divide-y divide-gray-200 rounded-lg border border-gray-200"></ul>'),tt=g('<div class="rounded-lg border border-red-200 bg-red-50 p-4 text-sm text-red-800" role="alert"> </div>'),rt=g('<div class="rounded-lg border border-green-200 bg-green-50 p-4 text-sm text-green-800" role="status"> </div>'),at=g('<section class="space-y-4"><h2 class="text-xl font-semibold text-gray-900">1. Set credentials</h2> <p class="text-sm text-gray-600">Use an app password when your contacts provider supports one. Credentials stay in this Sockethub session.</p> <!> <!> <!> <!> <div class="flex justify-end"><!></div> <!> <!></section> <section class="space-y-4 border-t border-gray-200 pt-6"><h2 class="text-xl font-semibold text-gray-900">2. Choose an address book</h2> <div class="flex justify-end"><!></div> <!></section> <section class="space-y-4 border-t border-gray-200 pt-6"><h2 class="text-xl font-semibold text-gray-900">3. Find contacts</h2> <!> <div class="flex justify-end"><!></div> <!></section> <!> <!>',1);function vt(_e,me){ze(me,!0);let Q=u("carddav:alice"),G=u(""),H=u(""),J=u(""),w=u(!1),F=u(ue([])),P=u(""),K=u(""),B=u(ue([])),$=u(!1),I=u(null),j=u(null),R=u(null),D=u(null),C=0,q=0;const U=O(()=>e(F).find(_=>_.id===e(P)));function T(){return{id:e(Q),type:"person"}}function M(){C+=1,q+=1,r(w,!1),r(F,[],!0),r(P,""),r(B,[],!0),r(R,null),r(D,null)}function be(){q+=1,r(B,[],!0),r(I,null),r(j,null)}async function xe(){const _=C;r(R,null),r(D,null),r($,!0);try{await Ne();const m={"@context":await se("carddav"),type:"credentials",actor:T(),object:{type:"credentials",url:e(G),username:e(H),password:e(J)}};await new Promise((p,v)=>{Qe.socket.emit("credentials",m,x=>{if(x!=null&&x.error){v(new Error(x.error));return}p()})}),_===C&&(r(w,!0),r(D,"Credentials set for this Sockethub session."))}catch(m){_===C&&r(R,m instanceof Error?m.message:String(m),!0)}finally{r($,!1)}}async function ye(){var m;if(!e(w))return;const _=C;r(I,null),r(j,null),r(B,[],!0),r($,!0);try{const p=await ge({"@context":await se("carddav"),type:"fetch",actor:T()});if(_!==C||!e(w))return;r(F,(p.items??[]).filter(v=>v.type==="addressBook"&&typeof v.id=="string"&&typeof v.name=="string"),!0),r(P,((m=e(F)[0])==null?void 0:m.id)??"",!0),r(j,`Found ${e(F).length} address book${e(F).length===1?"":"s"}.`)}catch(p){_===C&&r(I,p instanceof Error?p.message:String(p),!0)}finally{r($,!1)}}async function he(){if(!e(w)||!e(U))return;const _=C,m=++q,p=e(U).id;r(I,null),r(j,null),r(B,[],!0),r($,!0);try{const v=await ge({"@context":await se("carddav"),type:"query",actor:T(),target:{id:p,type:"addressBook"},object:{type:"contactQuery",text:e(K),fields:["name"],limit:50}});if(_!==C||m!==q||e(P)!==p||!e(w))return;r(B,(v.items??[]).filter(x=>x.type==="person"&&typeof x.id=="string"&&typeof x.name=="string"),!0),r(j,`Found ${e(B).length} contact${e(B).length===1?"":"s"}.`)}catch(v){_===C&&m===q&&r(I,v instanceof Error?v.message:String(v),!0)}finally{r($,!1)}}He(_e,{title:"CardDAV Platform Example",description:"Discover the address books in a CardDAV account, then find contacts by name.",children:(_,m)=>{var p=at(),v=pe(p),x=s(d(v),4);N(x,{label:"Actor ID",id:"carddav-actor",placeholder:"carddav:alice",onInput:M,get value(){return e(Q)},set value(t){r(Q,t,!0)}});var ne=s(x,2);N(ne,{label:"CardDAV URL",id:"carddav-url",type:"url",placeholder:"https://contacts.example/dav/",onInput:M,get value(){return e(G)},set value(t){r(G,t,!0)}});var le=s(ne,2);N(le,{label:"Username",id:"carddav-username",onInput:M,get value(){return e(H)},set value(t){r(H,t,!0)}});var de=s(le,2);N(de,{label:"Password",id:"carddav-password",type:"password",onInput:M,get value(){return e(J)},set value(t){r(J,t,!0)}});var W=s(de,2),ke=d(W);{let t=O(()=>e(w)||e($)||!e(Q)||!e(G)||!e(H)||!e(J));oe(ke,{buttonAction:xe,get disabled(){return e(t)},children:(a,o)=>{ae();var i=re();k(()=>h(i,e(w)?"Credentials Set":e($)?"Setting Credentials…":"Set Credentials")),c(a,i)}})}n(W);var ie=s(W,2);{var we=t=>{var a=Je(),o=d(a,!0);n(a),k(()=>h(o,e(R))),c(t,a)};A(ie,t=>{e(R)&&t(we)})}var $e=s(ie,2);{var Ce=t=>{var a=Ke(),o=d(a,!0);n(a),k(()=>h(o,e(D))),c(t,a)};A($e,t=>{e(D)&&t(Ce)})}n(v);var X=s(v,2),Y=s(d(X),2),Se=d(Y);{let t=O(()=>e($)||!e(w));oe(Se,{buttonAction:ye,get disabled(){return e(t)},children:(a,o)=>{ae();var i=re("Fetch Address Books");c(a,i)}})}n(Y);var Ae=s(Y,2);{var Be=t=>{var a=Te(),o=s(pe(a),2);o.__change=be,fe(o,21,()=>e(F),f=>f.id,(f,b)=>{var S=Me(),te=d(S,!0);n(S);var z={};k(()=>{h(te,e(b).name),z!==(z=e(b).id)&&(S.value=(S.__value=e(b).id)??"")}),c(f,S)}),n(o);var i=s(o,2);{var V=f=>{var b=Oe(),S=d(b,!0);n(b),k(()=>h(S,e(U).description)),c(f,b)};A(i,f=>{var b;(b=e(U))!=null&&b.description&&f(V)})}Ge(o,()=>e(P),f=>r(P,f)),c(t,a)};A(Ae,t=>{e(F).length>0&&t(Be)})}n(X);var Z=s(X,2),ce=s(d(Z),2);N(ce,{label:"Contact name",id:"carddav-contact-name",placeholder:"Bob",get value(){return e(K)},set value(t){r(K,t,!0)}});var ee=s(ce,2),Fe=d(ee);{let t=O(()=>e($)||!e(w)||!e(U)||!e(K).trim());oe(Fe,{buttonAction:he,get disabled(){return e(t)},children:(a,o)=>{ae();var i=re("Search Contacts");c(a,i)}})}n(ee);var Ie=s(ee,2);{var je=t=>{var a=et();fe(a,21,()=>e(B),o=>o.id,(o,i)=>{var V=Ze(),f=d(V),b=d(f,!0);n(f);var S=s(f,2);{var te=y=>{var l=We(),L=d(l,!0);n(l),k(()=>h(L,e(i).organization)),c(y,l)};A(S,y=>{e(i).organization&&y(te)})}var z=s(S,2);{var De=y=>{var l=Xe(),L=d(l,!0);n(l),k(E=>h(L,E),[()=>e(i).emails.map(E=>E.value).join(", ")]),c(y,l)};A(z,y=>{var l;(l=e(i).emails)!=null&&l.length&&y(De)})}var qe=s(z,2);{var Ue=y=>{var l=Ye(),L=d(l,!0);n(l),k(E=>h(L,E),[()=>e(i).telephones.map(E=>E.value).join(", ")]),c(y,l)};A(qe,y=>{var l;(l=e(i).telephones)!=null&&l.length&&y(Ue)})}n(V),k(()=>h(b,e(i).name)),c(o,V)}),n(a),c(t,a)};A(Ie,t=>{e(B).length>0&&t(je)})}n(Z);var ve=s(Z,2);{var Ee=t=>{var a=tt(),o=d(a,!0);n(a),k(()=>h(o,e(I))),c(t,a)};A(ve,t=>{e(I)&&t(Ee)})}var Pe=s(ve,2);{var Re=t=>{var a=rt(),o=d(a,!0);n(a),k(()=>h(o,e(j))),c(t,a)};A(Pe,t=>{e(j)&&t(Re)})}c(_,p)}}),Le()}Ve(["change"]);export{vt as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as w,a as C}from"../chunks/Dm9HHmcs.js";import{p as ee,a as te,s as t,f as re,c as s,g as e,u as B,r as a,b as l,d as v,e as c}from"../chunks/CD2k2u89.js";import{s as oe,b as se,m as ae,a as q,i as ne,c as S}from"../chunks/BYPKMD8u.js";import{A as de}from"../chunks/
|
|
1
|
+
import{f as w,a as C}from"../chunks/Dm9HHmcs.js";import{p as ee,a as te,s as t,f as re,c as s,g as e,u as B,r as a,b as l,d as v,e as c}from"../chunks/CD2k2u89.js";import{s as oe,b as se,m as ae,a as q,i as ne,c as S}from"../chunks/BYPKMD8u.js";import{A as de}from"../chunks/DM-HM6I1.js";import{A as ce,C as ie,P as le,R as me,S as ve}from"../chunks/ClXGuyPN.js";import{B as ue}from"../chunks/D1Y6vir5.js";import{F as z}from"../chunks/D8LSvHGD.js";import{I as ge,s as pe,c as be}from"../chunks/DJkUObd4.js";import{w as N}from"../chunks/C7RIZnpe.js";var fe=w('<div class="bg-gradient-to-r from-emerald-50 to-green-50 border border-emerald-200 rounded-xl p-6 shadow-sm"><h4 class="text-lg font-bold text-emerald-900 mb-4 flex items-center"><span class="mr-3 w-8 h-8 bg-emerald-600 text-white rounded-full flex items-center justify-center text-sm font-bold">4</span> Join Channel and Chat</h4> <div class="space-y-6"><!> <!> <!></div></div>'),he=w('<div class="bg-gradient-to-r from-gray-50 to-slate-50 border border-gray-200 rounded-xl p-6 text-center shadow-sm"><div class="flex items-center justify-center mb-3"><span class="w-8 h-8 bg-gray-400 text-white rounded-full flex items-center justify-center text-sm font-bold">4</span></div> <p class="text-gray-600 font-medium">Connect to the IRC server to access chat features</p> <p class="text-gray-500 text-sm mt-1">Complete steps 1-3 above to unlock this section</p></div>'),xe=w('<div class="bg-orange-50 border-l-4 border-orange-400 p-4 rounded-r-lg mb-6"><h3 class="text-lg font-semibold text-orange-800 mb-2">💬 IRC Connection Process</h3> <p class="text-orange-700 text-sm mb-3">IRC (Internet Relay Chat) requires several steps to get connected and chatting.</p> <div class="text-orange-700 text-sm space-y-1"><div><strong>1. 🎭 Actor:</strong> JSON object with <code>id</code>, <code>type</code>, and <code>name</code></div> <div><strong>2. 🔐 Set Credentials:</strong> Provide server connection details</div> <div><strong>3. 🔌 Connect:</strong> Establish connection to IRC server</div> <div><strong>4. 🏠 Join Room:</strong> Enter a channel to start chatting</div> <div><strong>5. 💬 Send Messages:</strong> Chat with other users</div></div></div> <div class="space-y-6"><div class="bg-gradient-to-r from-green-50 to-emerald-50 border border-green-200 rounded-xl p-6 shadow-sm"><h4 class="text-lg font-bold text-green-900 mb-4 flex items-center"><span class="mr-3 w-8 h-8 bg-green-600 text-white rounded-full flex items-center justify-center text-sm font-bold">1</span> Confirm your actor</h4> <div class="space-y-4"><!> <!></div></div> <div class="bg-gradient-to-r from-blue-50 to-sky-50 border border-blue-200 rounded-xl p-6 shadow-sm"><h4 class="text-lg font-bold text-blue-900 mb-4 flex items-center"><span class="mr-3 w-8 h-8 bg-blue-600 text-white rounded-full flex items-center justify-center text-sm font-bold">2</span> Configure Server Connection</h4> <div class="space-y-4"><div class="grid md:grid-cols-2 gap-4"><!> <!></div> <div class="bg-blue-100 border border-blue-200 rounded-lg p-3"><p class="text-blue-800 text-sm">💡 <strong>Popular IRC networks:</strong> irc.libera.chat, irc.oftc.net, irc.rizon.net</p></div> <!></div></div> <div class="bg-gradient-to-r from-purple-50 to-violet-50 border border-purple-200 rounded-xl p-6 shadow-sm"><h4 class="text-lg font-bold text-purple-900 mb-4 flex items-center"><span class="mr-3 w-8 h-8 bg-purple-600 text-white rounded-full flex items-center justify-center text-sm font-bold">3</span> Connect to Server</h4> <!></div> <!></div>',1);function Pe(O,D){ee(D,!0);const m=()=>q(k,"$actorIdStore",I),n=()=>q(o,"$sockethubState",I),[I,G]=oe(),k=N(`sh-${(Math.random()+1).toString(36).substring(7)}`);let u=v("chat.freenode.net"),g=v(6697),p=v("#sh-random"),b=v(!1);const o=N({actorSet:!1,credentialsSet:!1,connected:!1,joined:!1});let d=B(()=>({id:m(),type:"person",name:m()})),H=B(()=>({type:"credentials",nick:m(),server:e(u),port:e(g),secure:!0}));async function K(){l(b,!0);try{await pe({"@context":await be("irc"),type:"connect",actor:{id:e(d).id,type:e(d).type,name:e(d).name}}),S(o,c(n).connected=!0,c(n))}catch(f){console.error(f),S(o,c(n).connected=!1,c(n)),S(o,c(n).joined=!1,c(n))}finally{l(b,!1)}}ue(O,{title:"IRC Platform Example",description:"Connect to IRC servers, join channels, and send messages using Sockethub's IRC platform.",children:(f,_e)=>{var R=xe(),j=t(re(R),2),h=s(j),$=t(s(h),2),P=s($);ce(P,{get value(){return ae(),m()},set value(r){se(k,r)}});var L=t(P,2);de(L,{get actor(){return e(d)},get sockethubState(){return o}}),a($),a(h);var x=t(h,2),A=t(s(x),2),_=s(A),F=s(_);z(F,{label:"IRC Server",id:"server",placeholder:"irc.libera.chat",get value(){return e(u)},set value(r){l(u,r,!0)}});var Q=t(F,2);z(Q,{label:"Port",id:"port",type:"number",placeholder:"6697",get value(){return e(g)},set value(r){l(g,r,!0)}}),a(_);var T=t(_,4);ie(T,{context:"irc",get credentials(){return e(H)},get actor(){return e(d)},get sockethubState(){return o}}),a(A),a(x);var y=t(x,2),U=t(s(y),2);le(U,{get sockethubState(){return o},get connecting(){return e(b)},onConnect:K}),a(y);var V=t(y,2);{var W=r=>{var i=fe(),E=t(s(i),2),M=s(E);me(M,{get actor(){return e(d)},get sockethubState(){return o},context:"irc",get room(){return e(p)},set room(Z){l(p,Z,!0)}});var J=t(M,2);ge(J,{});var Y=t(J,2);ve(Y,{context:"irc",get actor(){return e(d)},get sockethubState(){return o},get room(){return e(p)}}),a(E),a(i),C(r,i)},X=r=>{var i=he();C(r,i)};ne(V,r=>{n().connected?r(W):r(X,!1)})}a(j),C(f,R)}}),te(),G()}export{Pe as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as h,t as Y,s as S,a as v}from"../chunks/Dm9HHmcs.js";import{p as Ve,d as o,h as Re,a as Le,f as Z,s as n,c,b as a,g as e,n as V,t as y,u as R,r as i}from"../chunks/CD2k2u89.js";import{i as I}from"../chunks/BYPKMD8u.js";import{e as Ne,b as qe,c as ee,d as ze,s as fe}from"../chunks/
|
|
1
|
+
import{f as h,t as Y,s as S,a as v}from"../chunks/Dm9HHmcs.js";import{p as Ve,d as o,h as Re,a as Le,f as Z,s as n,c,b as a,g as e,n as V,t as y,u as R,r as i}from"../chunks/CD2k2u89.js";import{i as I}from"../chunks/BYPKMD8u.js";import{e as Ne,b as qe,c as ee,d as ze,s as fe}from"../chunks/DJkUObd4.js";import{r as me,b as Ge}from"../chunks/XtX2ckS1.js";import{B as He,S as te,a as ge}from"../chunks/D1Y6vir5.js";import{F as x}from"../chunks/D8LSvHGD.js";var Je=h('<div class="rounded-lg border border-red-200 bg-red-50 p-4 text-sm text-red-800" role="alert"> </div>'),Ke=h('<div class="rounded-lg border border-green-200 bg-green-50 p-4 text-sm text-green-800" role="status"> </div>'),Me=h("<option> </option>"),Qe=h('<label for="caldav-calendar" class="block text-sm font-semibold text-gray-700">Calendar</label> <select id="caldav-calendar" class="w-full rounded-lg border border-gray-300 bg-white px-4 py-3"></select>',1),We=h("<!> <!>",1),Xe=h('<div class="rounded-lg border border-red-200 bg-red-50 p-4 text-sm text-red-800" role="alert"> </div>'),Ye=h('<div class="rounded-lg border border-green-200 bg-green-50 p-4 text-sm text-green-800" role="status"> </div>'),Ze=h('<section class="space-y-4"><h2 class="text-xl font-semibold text-gray-900">1. Set credentials</h2> <p class="text-sm text-gray-600">Use an app password when your calendar provider supports one. Credentials stay in this Sockethub session.</p> <!> <!> <!> <!> <div class="flex justify-end"><!></div> <!> <!></section> <section class="space-y-4 border-t border-gray-200 pt-6"><h2 class="text-xl font-semibold text-gray-900">2. Choose a calendar</h2> <div class="flex justify-end"><!></div> <!></section> <section class="space-y-4 border-t border-gray-200 pt-6"><h2 class="text-xl font-semibold text-gray-900">3. Add an item</h2> <div class="flex gap-6"><label class="flex items-center gap-2"><input type="radio"/> Event</label> <label class="flex items-center gap-2"><input type="radio"/> To-do</label></div> <!> <!> <div class="flex justify-end"><!></div></section> <!> <!>',1);function ot(_e,be){Ve(be,!0);const ae=[];let L=o("caldav:alice"),N=o(""),q=o(""),z=o(""),C=o(!1),m=o(Re([])),k=o(""),u=o("event"),$=o(""),D=o(""),T=o(""),P=o(""),p=o(!1),A=o(null),E=o(null),j=o(null),F=o(null);const w=R(()=>e(m).find(l=>l.id===e(k))),ye=R(()=>{var l;return((l=e(w))==null?void 0:l.components.includes(e(u)))??!1});function H(){return{id:e(L),type:"person"}}function G(){e(C)&&(a(C,!1),a(m,[],!0),a(k,""),a(j,null),a(F,null))}async function xe(){a(j,null),a(F,null),a(p,!0);try{await qe();const l={"@context":await ee("caldav"),type:"credentials",actor:H(),object:{type:"credentials",url:e(N),username:e(q),password:e(z)}};await new Promise((g,f)=>{ze.socket.emit("credentials",l,_=>{if(_!=null&&_.error){f(new Error(_.error));return}g()})}),a(C,!0),a(F,"Credentials set for this Sockethub session.")}catch(l){a(j,l instanceof Error?l.message:String(l),!0)}finally{a(p,!1)}}async function he(){var l;a(A,null),a(E,null),a(p,!0);try{const g=await fe({"@context":await ee("caldav"),type:"fetch",actor:H()});a(m,(g.items??[]).filter(f=>f.type==="calendar"&&typeof f.id=="string"&&typeof f.name=="string"&&Array.isArray(f.components)),!0),a(k,((l=e(m)[0])==null?void 0:l.id)??"",!0),a(E,`Found ${e(m).length} calendar${e(m).length===1?"":"s"}.`)}catch(g){a(A,g instanceof Error?g.message:String(g),!0)}finally{a(p,!1)}}async function we(){if(e(w)){a(A,null),a(E,null),a(p,!0);try{const l=e(u)==="event"?{type:"event",name:e($),startTime:new Date(e(D)).toISOString(),...e(T)?{endTime:new Date(e(T)).toISOString()}:{}}:{type:"task",name:e($),...e(P)?{due:new Date(e(P)).toISOString()}:{}};await fe({"@context":await ee("caldav"),type:"create",actor:H(),target:{id:e(w).id,type:"calendar"},object:l}),a(E,`${e(u)==="event"?"Event":"To-do"} created.`),a($,""),a(D,""),a(T,""),a(P,"")}catch(l){a(A,l instanceof Error?l.message:String(l),!0)}finally{a(p,!1)}}}He(_e,{title:"CalDAV Platform Example",description:"Discover the calendars in a CalDAV account, then add an event or to-do.",children:(l,g)=>{var f=Ze(),_=Z(f),re=n(c(_),4);x(re,{label:"Actor ID",id:"caldav-actor",placeholder:"caldav:alice",onInput:G,get value(){return e(L)},set value(t){a(L,t,!0)}});var le=n(re,2);x(le,{label:"CalDAV URL",id:"caldav-url",type:"url",placeholder:"https://calendar.example/dav/",onInput:G,get value(){return e(N)},set value(t){a(N,t,!0)}});var ne=n(le,2);x(ne,{label:"Username",id:"caldav-username",onInput:G,get value(){return e(q)},set value(t){a(q,t,!0)}});var se=n(ne,2);x(se,{label:"Password",id:"caldav-password",type:"password",onInput:G,get value(){return e(z)},set value(t){a(z,t,!0)}});var J=n(se,2),Se=c(J);{let t=R(()=>e(C)||e(p)||!e(L)||!e(N)||!e(q)||!e(z));te(Se,{buttonAction:xe,get disabled(){return e(t)},children:(r,s)=>{V();var d=Y();y(()=>S(d,e(C)?"Credentials Set":e(p)?"Setting Credentials…":"Set Credentials")),v(r,d)}})}i(J);var oe=n(J,2);{var Ce=t=>{var r=Je(),s=c(r,!0);i(r),y(()=>S(s,e(j))),v(t,r)};I(oe,t=>{e(j)&&t(Ce)})}var $e=n(oe,2);{var Ae=t=>{var r=Ke(),s=c(r,!0);i(r),y(()=>S(s,e(F))),v(t,r)};I($e,t=>{e(F)&&t(Ae)})}i(_);var K=n(_,2),M=n(c(K),2),Ee=c(M);{let t=R(()=>e(p)||!e(C));te(Ee,{buttonAction:he,get disabled(){return e(t)},children:(r,s)=>{V();var d=Y("Fetch Calendars");v(r,d)}})}i(M);var Ie=n(M,2);{var ke=t=>{var r=Qe(),s=n(Z(r),2);Ne(s,21,()=>e(m),d=>d.id,(d,b)=>{var O=Me(),Ue=c(O);i(O);var pe={};y(Oe=>{S(Ue,`${e(b).name??""} (${Oe??""})`),pe!==(pe=e(b).id)&&(O.value=(O.__value=e(b).id)??"")},[()=>e(b).components.join(", ")]),v(d,O)}),i(s),Ge(s,()=>e(k),d=>a(k,d)),v(t,r)};I(Ie,t=>{e(m).length>0&&t(ke)})}i(K);var Q=n(K,2),W=n(c(Q),2),X=c(W),B=c(X);me(B),B.value=B.__value="event",V(),i(X);var de=n(X,2),U=c(de);me(U),U.value=U.__value="task",V(),i(de),i(W);var ie=n(W,2);x(ie,{label:"Name",id:"caldav-item-name",get value(){return e($)},set value(t){a($,t,!0)}});var ce=n(ie,2);{var De=t=>{var r=We(),s=Z(r);x(s,{label:"Starts",id:"caldav-start",type:"datetime-local",get value(){return e(D)},set value(b){a(D,b,!0)}});var d=n(s,2);x(d,{label:"Ends (optional)",id:"caldav-end",type:"datetime-local",get value(){return e(T)},set value(b){a(T,b,!0)}}),v(t,r)},Te=t=>{x(t,{label:"Due (optional)",id:"caldav-due",type:"datetime-local",get value(){return e(P)},set value(r){a(P,r,!0)}})};I(ce,t=>{e(u)==="event"?t(De):t(Te,!1)})}var ve=n(ce,2),Pe=c(ve);{let t=R(()=>e(p)||!e(ye)||!e($)||e(u)==="event"&&!e(D));te(Pe,{buttonAction:we,get disabled(){return e(t)},children:(r,s)=>{V();var d=Y();y(()=>S(d,`Add ${e(u)==="event"?"Event":"To-do"}`)),v(r,d)}})}i(ve),i(Q);var ue=n(Q,2);{var je=t=>{var r=Xe(),s=c(r,!0);i(r),y(()=>S(s,e(A))),v(t,r)};I(ue,t=>{e(A)&&t(je)})}var Fe=n(ue,2);{var Be=t=>{var r=Ye(),s=c(r,!0);i(r),y(()=>S(s,e(E))),v(t,r)};I(Fe,t=>{e(E)&&t(Be)})}y((t,r)=>{B.disabled=t,U.disabled=r},[()=>!!(e(w)&&!e(w).components.includes("event")),()=>!!(e(w)&&!e(w).components.includes("task"))]),ge(ae,[],B,()=>e(u),t=>a(u,t)),ge(ae,[],U,()=>e(u),t=>a(u,t)),v(l,f)}}),Le()}export{ot as component};
|
package/build/_app/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1787315755178"}
|
package/build/caldav.html
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
<link rel="icon" href="./favicon.ico" />
|
|
6
6
|
<meta name="viewport" content="width=device-width" />
|
|
7
7
|
|
|
8
|
-
<link rel="modulepreload" href="./_app/immutable/entry/start.
|
|
9
|
-
<link rel="modulepreload" href="./_app/immutable/chunks/
|
|
8
|
+
<link rel="modulepreload" href="./_app/immutable/entry/start.D9VP5-bu.js">
|
|
9
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/BJzWT4a_.js">
|
|
10
10
|
<link rel="modulepreload" href="./_app/immutable/chunks/CD2k2u89.js">
|
|
11
11
|
<link rel="modulepreload" href="./_app/immutable/chunks/C7RIZnpe.js">
|
|
12
|
-
<link rel="modulepreload" href="./_app/immutable/chunks/
|
|
13
|
-
<link rel="modulepreload" href="./_app/immutable/entry/app.
|
|
12
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/CfO10NxU.js">
|
|
13
|
+
<link rel="modulepreload" href="./_app/immutable/entry/app.DFtHEDt4.js">
|
|
14
14
|
<link rel="modulepreload" href="./_app/immutable/chunks/Dm9HHmcs.js">
|
|
15
15
|
<link rel="modulepreload" href="./_app/immutable/chunks/BYPKMD8u.js">
|
|
16
16
|
<link rel="modulepreload" href="./_app/immutable/chunks/DRQf9AgU.js">
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
<div class="container mx-auto pl-2 pr-2 pt-2">
|
|
20
20
|
<script>
|
|
21
21
|
{
|
|
22
|
-
|
|
22
|
+
__sveltekit_1b31kb6 = {
|
|
23
23
|
base: new URL(".", location).pathname.slice(0, -1)
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.D9VP5-bu.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.DFtHEDt4.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/build/carddav.html
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
<link rel="icon" href="./favicon.ico" />
|
|
6
6
|
<meta name="viewport" content="width=device-width" />
|
|
7
7
|
|
|
8
|
-
<link rel="modulepreload" href="./_app/immutable/entry/start.
|
|
9
|
-
<link rel="modulepreload" href="./_app/immutable/chunks/
|
|
8
|
+
<link rel="modulepreload" href="./_app/immutable/entry/start.D9VP5-bu.js">
|
|
9
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/BJzWT4a_.js">
|
|
10
10
|
<link rel="modulepreload" href="./_app/immutable/chunks/CD2k2u89.js">
|
|
11
11
|
<link rel="modulepreload" href="./_app/immutable/chunks/C7RIZnpe.js">
|
|
12
|
-
<link rel="modulepreload" href="./_app/immutable/chunks/
|
|
13
|
-
<link rel="modulepreload" href="./_app/immutable/entry/app.
|
|
12
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/CfO10NxU.js">
|
|
13
|
+
<link rel="modulepreload" href="./_app/immutable/entry/app.DFtHEDt4.js">
|
|
14
14
|
<link rel="modulepreload" href="./_app/immutable/chunks/Dm9HHmcs.js">
|
|
15
15
|
<link rel="modulepreload" href="./_app/immutable/chunks/BYPKMD8u.js">
|
|
16
16
|
<link rel="modulepreload" href="./_app/immutable/chunks/DRQf9AgU.js">
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
<div class="container mx-auto pl-2 pr-2 pt-2">
|
|
20
20
|
<script>
|
|
21
21
|
{
|
|
22
|
-
|
|
22
|
+
__sveltekit_1b31kb6 = {
|
|
23
23
|
base: new URL(".", location).pathname.slice(0, -1)
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.D9VP5-bu.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.DFtHEDt4.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/build/dummy.html
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
<link rel="icon" href="./favicon.ico" />
|
|
6
6
|
<meta name="viewport" content="width=device-width" />
|
|
7
7
|
|
|
8
|
-
<link rel="modulepreload" href="./_app/immutable/entry/start.
|
|
9
|
-
<link rel="modulepreload" href="./_app/immutable/chunks/
|
|
8
|
+
<link rel="modulepreload" href="./_app/immutable/entry/start.D9VP5-bu.js">
|
|
9
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/BJzWT4a_.js">
|
|
10
10
|
<link rel="modulepreload" href="./_app/immutable/chunks/CD2k2u89.js">
|
|
11
11
|
<link rel="modulepreload" href="./_app/immutable/chunks/C7RIZnpe.js">
|
|
12
|
-
<link rel="modulepreload" href="./_app/immutable/chunks/
|
|
13
|
-
<link rel="modulepreload" href="./_app/immutable/entry/app.
|
|
12
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/CfO10NxU.js">
|
|
13
|
+
<link rel="modulepreload" href="./_app/immutable/entry/app.DFtHEDt4.js">
|
|
14
14
|
<link rel="modulepreload" href="./_app/immutable/chunks/Dm9HHmcs.js">
|
|
15
15
|
<link rel="modulepreload" href="./_app/immutable/chunks/BYPKMD8u.js">
|
|
16
16
|
<link rel="modulepreload" href="./_app/immutable/chunks/DRQf9AgU.js">
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
<div class="container mx-auto pl-2 pr-2 pt-2">
|
|
20
20
|
<script>
|
|
21
21
|
{
|
|
22
|
-
|
|
22
|
+
__sveltekit_1b31kb6 = {
|
|
23
23
|
base: new URL(".", location).pathname.slice(0, -1)
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.D9VP5-bu.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.DFtHEDt4.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/build/feeds.html
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
<link rel="icon" href="./favicon.ico" />
|
|
6
6
|
<meta name="viewport" content="width=device-width" />
|
|
7
7
|
|
|
8
|
-
<link rel="modulepreload" href="./_app/immutable/entry/start.
|
|
9
|
-
<link rel="modulepreload" href="./_app/immutable/chunks/
|
|
8
|
+
<link rel="modulepreload" href="./_app/immutable/entry/start.D9VP5-bu.js">
|
|
9
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/BJzWT4a_.js">
|
|
10
10
|
<link rel="modulepreload" href="./_app/immutable/chunks/CD2k2u89.js">
|
|
11
11
|
<link rel="modulepreload" href="./_app/immutable/chunks/C7RIZnpe.js">
|
|
12
|
-
<link rel="modulepreload" href="./_app/immutable/chunks/
|
|
13
|
-
<link rel="modulepreload" href="./_app/immutable/entry/app.
|
|
12
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/CfO10NxU.js">
|
|
13
|
+
<link rel="modulepreload" href="./_app/immutable/entry/app.DFtHEDt4.js">
|
|
14
14
|
<link rel="modulepreload" href="./_app/immutable/chunks/Dm9HHmcs.js">
|
|
15
15
|
<link rel="modulepreload" href="./_app/immutable/chunks/BYPKMD8u.js">
|
|
16
16
|
<link rel="modulepreload" href="./_app/immutable/chunks/DRQf9AgU.js">
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
<div class="container mx-auto pl-2 pr-2 pt-2">
|
|
20
20
|
<script>
|
|
21
21
|
{
|
|
22
|
-
|
|
22
|
+
__sveltekit_1b31kb6 = {
|
|
23
23
|
base: new URL(".", location).pathname.slice(0, -1)
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.D9VP5-bu.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.DFtHEDt4.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/build/index.html
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
<link rel="icon" href="/favicon.ico" />
|
|
6
6
|
<meta name="viewport" content="width=device-width" />
|
|
7
7
|
|
|
8
|
-
<link rel="modulepreload" href="/_app/immutable/entry/start.
|
|
9
|
-
<link rel="modulepreload" href="/_app/immutable/chunks/
|
|
8
|
+
<link rel="modulepreload" href="/_app/immutable/entry/start.D9VP5-bu.js">
|
|
9
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/BJzWT4a_.js">
|
|
10
10
|
<link rel="modulepreload" href="/_app/immutable/chunks/CD2k2u89.js">
|
|
11
11
|
<link rel="modulepreload" href="/_app/immutable/chunks/C7RIZnpe.js">
|
|
12
|
-
<link rel="modulepreload" href="/_app/immutable/chunks/
|
|
13
|
-
<link rel="modulepreload" href="/_app/immutable/entry/app.
|
|
12
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/CfO10NxU.js">
|
|
13
|
+
<link rel="modulepreload" href="/_app/immutable/entry/app.DFtHEDt4.js">
|
|
14
14
|
<link rel="modulepreload" href="/_app/immutable/chunks/Dm9HHmcs.js">
|
|
15
15
|
<link rel="modulepreload" href="/_app/immutable/chunks/BYPKMD8u.js">
|
|
16
16
|
<link rel="modulepreload" href="/_app/immutable/chunks/DRQf9AgU.js">
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
<div class="container mx-auto pl-2 pr-2 pt-2">
|
|
20
20
|
<script>
|
|
21
21
|
{
|
|
22
|
-
|
|
22
|
+
__sveltekit_1b31kb6 = {
|
|
23
23
|
base: ""
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("/_app/immutable/entry/start.
|
|
30
|
-
import("/_app/immutable/entry/app.
|
|
29
|
+
import("/_app/immutable/entry/start.D9VP5-bu.js"),
|
|
30
|
+
import("/_app/immutable/entry/app.DFtHEDt4.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/build/irc.html
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
<link rel="icon" href="./favicon.ico" />
|
|
6
6
|
<meta name="viewport" content="width=device-width" />
|
|
7
7
|
|
|
8
|
-
<link rel="modulepreload" href="./_app/immutable/entry/start.
|
|
9
|
-
<link rel="modulepreload" href="./_app/immutable/chunks/
|
|
8
|
+
<link rel="modulepreload" href="./_app/immutable/entry/start.D9VP5-bu.js">
|
|
9
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/BJzWT4a_.js">
|
|
10
10
|
<link rel="modulepreload" href="./_app/immutable/chunks/CD2k2u89.js">
|
|
11
11
|
<link rel="modulepreload" href="./_app/immutable/chunks/C7RIZnpe.js">
|
|
12
|
-
<link rel="modulepreload" href="./_app/immutable/chunks/
|
|
13
|
-
<link rel="modulepreload" href="./_app/immutable/entry/app.
|
|
12
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/CfO10NxU.js">
|
|
13
|
+
<link rel="modulepreload" href="./_app/immutable/entry/app.DFtHEDt4.js">
|
|
14
14
|
<link rel="modulepreload" href="./_app/immutable/chunks/Dm9HHmcs.js">
|
|
15
15
|
<link rel="modulepreload" href="./_app/immutable/chunks/BYPKMD8u.js">
|
|
16
16
|
<link rel="modulepreload" href="./_app/immutable/chunks/DRQf9AgU.js">
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
<div class="container mx-auto pl-2 pr-2 pt-2">
|
|
20
20
|
<script>
|
|
21
21
|
{
|
|
22
|
-
|
|
22
|
+
__sveltekit_1b31kb6 = {
|
|
23
23
|
base: new URL(".", location).pathname.slice(0, -1)
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.D9VP5-bu.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.DFtHEDt4.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|