@sockethub/examples 1.0.0-alpha.10 → 1.0.0-alpha.11
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/B48xiOwQ.js +1 -0
- package/build/_app/immutable/chunks/{BhL0iima.js → D34JQ8ay.js} +1 -1
- package/build/_app/immutable/chunks/{BqKPKu0n.js → DJd_9GSN.js} +1 -1
- package/build/_app/immutable/chunks/{CoHdmBcD.js → DRqIvF0-.js} +1 -1
- package/build/_app/immutable/chunks/{BBdxXcNs.js → Duf23zEt.js} +6 -6
- package/build/_app/immutable/chunks/{C1LF9VyP.js → DvzjJQ_P.js} +1 -1
- package/build/_app/immutable/chunks/{CFHe0i8O.js → DxLbbUVu.js} +1 -1
- package/build/_app/immutable/entry/{app.DgSDqHHR.js → app.24uSP5jR.js} +2 -2
- package/build/_app/immutable/entry/start.odGQGxrg.js +1 -0
- package/build/_app/immutable/nodes/{0.i_jJRDZB.js → 0.CRxtfUZO.js} +1 -1
- package/build/_app/immutable/nodes/{1.BlhUuP-P.js → 1.CjzaWbdc.js} +1 -1
- package/build/_app/immutable/nodes/{2.CggxtO4e.js → 2.Dzi-FWBZ.js} +1 -1
- package/build/_app/immutable/nodes/{3.1s4AoiT3.js → 3.WM6k04_L.js} +1 -1
- package/build/_app/immutable/nodes/{4.Ck-0hor4.js → 4.C0mUcLdq.js} +1 -1
- package/build/_app/immutable/nodes/{5.BV2I1j0o.js → 5.JU4p_B8j.js} +1 -1
- package/build/_app/immutable/nodes/{6.PZ-pmrq7.js → 6.BjGCqlQt.js} +1 -1
- package/build/_app/immutable/nodes/{7.C7IiHO6h.js → 7.HL4NrxY9.js} +1 -1
- package/build/_app/version.json +1 -1
- 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 +6 -4
- package/build/_app/immutable/chunks/Br1aAxXP.js +0 -1
- package/build/_app/immutable/entry/start.CTdg5BqQ.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
var M=e=>{throw TypeError(e)};var N=(e,t,r)=>t.has(e)||M("Cannot "+r);var f=(e,t,r)=>(N(e,t,"read from private field"),r?r.call(e):t.get(e)),p=(e,t,r)=>t.has(e)?M("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),j=(e,t,r,o)=>(N(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);import{A as Q,M as X,L as Z,N as $,ah as tt,J as et,e as rt,ai as st,aa as at,b as S,ab as nt,g as v,aj as ot,U as it,V as ct,p as ut,i as lt,j as ft,d as I,I as mt,f as x,s as dt,a as ht,c as _t,r as vt,u as V,t as gt}from"../chunks/Ciq9INsC.js";import{h as Et,m as yt,u as Pt,f as J,a as L,c as C,t as bt,s as Rt}from"../chunks/DqdrLdzV.js";import{o as Ot}from"../chunks/CARmnL8B.js";import{p as D,i as B}from"../chunks/Cf7Xaqef.js";import{B as At}from"../chunks/CC-fhLYv.js";function q(e,t,r){Q&&X();var o=new At(e);Z(()=>{var n=t()??null;o.ensure(n,n&&(i=>r(i,n)))},$)}function Y(e,t){return e===t||(e==null?void 0:e[at])===t}function U(e={},t,r,o){return tt(()=>{var n,i;return et(()=>{n=i,i=[],rt(()=>{e!==r(...i)&&(t(e,...i),n&&Y(r(...n),e)&&t(null,...n))})}),()=>{st(()=>{i&&Y(r(...i),e)&&t(null,...i)})}}),e}function Lt(e){return class extends kt{constructor(t){super({component:e,...t})}}}var g,m;class kt{constructor(t){p(this,g);p(this,m);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 v(r.get(s)??o(s,Reflect.get(a,s)))},has(a,s){return s===nt?!0:(v(r.get(s)??o(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,u){return S(r.get(s)??o(s,u),u),Reflect.set(a,s,u)}});j(this,m,(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,g,n.$$events);for(const a of Object.keys(f(this,m)))a==="$set"||a==="$destroy"||a==="$on"||it(this,a,{get(){return f(this,m)[a]},set(s){f(this,m)[a]=s},enumerable:!0});f(this,m).$set=a=>{Object.assign(n,a)},f(this,m).$destroy=()=>{Pt(f(this,m))}}$set(t){f(this,m).$set(t)}$on(t,r){f(this,g)[t]=f(this,g)[t]||[];const o=(...n)=>r.call(this,...n);return f(this,g)[t].push(o),()=>{f(this,g)[t]=f(this,g)[t].filter(n=>n!==o)}}$destroy(){f(this,m).$destroy()}}g=new WeakMap,m=new WeakMap;const Tt="modulepreload",wt=function(e,t){return new URL(e,t).href},G={},E=function(t,r,o){let n=Promise.resolve();if(r&&r.length>0){let a=function(l){return Promise.all(l.map(_=>Promise.resolve(_).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const s=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),k=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));n=a(r.map(l=>{if(l=wt(l,o),l in G)return;G[l]=!0;const _=l.endsWith(".css"),y=_?'[rel="stylesheet"]':"";if(o)for(let P=s.length-1;P>=0;P--){const c=s[P];if(c.href===l&&(!_||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${y}`))return;const h=document.createElement("link");if(h.rel=_?"stylesheet":Tt,_||(h.as="script"),h.crossOrigin="",h.href=l,k&&h.setAttribute("nonce",k),document.head.appendChild(h),_)return new Promise((P,c)=>{h.addEventListener("load",P),h.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 xt=J('<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>'),St=J("<!> <!>",1);function pt(e,t){ut(t,!0);let r=D(t,"components",23,()=>[]),o=D(t,"data_0",3,null),n=D(t,"data_1",3,null);lt(()=>t.stores.page.set(t.page)),ft(()=>{t.stores,t.page,t.constructors,r(),t.form,o(),n(),t.stores.page.notify()});let i=I(!1),a=I(!1),s=I(null);Ot(()=>{const c=t.stores.page.subscribe(()=>{v(i)&&(S(a,!0),mt().then(()=>{S(s,document.title||"untitled page",!0)}))});return S(i,!0),c});const u=V(()=>t.constructors[1]);var k=St(),l=x(k);{var _=c=>{const b=V(()=>t.constructors[0]);var R=C(),T=x(R);q(T,()=>v(b),(O,A)=>{U(A(O,{get data(){return o()},get form(){return t.form},get params(){return t.page.params},children:(d,It)=>{var F=C(),z=x(F);q(z,()=>v(u),(H,K)=>{U(K(H,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),w=>r()[1]=w,()=>{var w;return(w=r())==null?void 0:w[1]})}),L(d,F)},$$slots:{default:!0}}),d=>r()[0]=d,()=>{var d;return(d=r())==null?void 0:d[0]})}),L(c,R)},y=c=>{const b=V(()=>t.constructors[0]);var R=C(),T=x(R);q(T,()=>v(b),(O,A)=>{U(A(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]})}),L(c,R)};B(l,c=>{t.constructors[1]?c(_):c(y,!1)})}var h=dt(l,2);{var P=c=>{var b=xt(),R=_t(b);{var T=O=>{var A=bt();gt(()=>Rt(A,v(s))),L(O,A)};B(R,O=>{v(a)&&O(T)})}vt(b),L(c,b)};B(h,c=>{v(i)&&c(P)})}L(e,k),ht()}const Mt=Lt(pt),Nt=[()=>E(()=>import("../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CRxtfUZO.js","../chunks/DqdrLdzV.js","../chunks/Ciq9INsC.js","../chunks/P3PHXZz3.js","../chunks/CC-fhLYv.js","../chunks/Duf23zEt.js","../chunks/BnKTx64M.js","../chunks/CARmnL8B.js","../chunks/B-2myMF5.js","../chunks/Cf7Xaqef.js","../assets/sockethub.Bpv0Wt6b.css","../chunks/B48xiOwQ.js","../chunks/DJd_9GSN.js","../assets/0.JUA-HkH6.css","../nodes/1.CjzaWbdc.js","../nodes/2.Dzi-FWBZ.js","../chunks/D_xw8KSE.js","../nodes/3.WM6k04_L.js","../chunks/D34JQ8ay.js","../chunks/DxLbbUVu.js","../chunks/DRqIvF0-.js","../chunks/DvzjJQ_P.js","../nodes/4.C0mUcLdq.js","../nodes/5.JU4p_B8j.js","../nodes/6.BjGCqlQt.js","../nodes/7.HL4NrxY9.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var M=e=>{throw TypeError(e)};var N=(e,t,r)=>t.has(e)||M("Cannot "+r);var f=(e,t,r)=>(N(e,t,"read from private field"),r?r.call(e):t.get(e)),p=(e,t,r)=>t.has(e)?M("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),j=(e,t,r,o)=>(N(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);import{A as Q,M as X,L as Z,N as $,ah as tt,J as et,e as rt,ai as st,aa as at,b as S,ab as nt,g as v,aj as ot,U as it,V as ct,p as ut,i as lt,j as ft,d as I,I as mt,f as x,s as dt,a as ht,c as _t,r as vt,u as V,t as gt}from"../chunks/Ciq9INsC.js";import{h as Et,m as yt,u as Pt,f as J,a as L,c as C,t as bt,s as Rt}from"../chunks/DqdrLdzV.js";import{o as Ot}from"../chunks/CARmnL8B.js";import{p as D,i as B}from"../chunks/Cf7Xaqef.js";import{B as At}from"../chunks/CC-fhLYv.js";function q(e,t,r){Q&&X();var o=new At(e);Z(()=>{var n=t()??null;o.ensure(n,n&&(i=>r(i,n)))},$)}function Y(e,t){return e===t||(e==null?void 0:e[at])===t}function U(e={},t,r,o){return tt(()=>{var n,i;return et(()=>{n=i,i=[],rt(()=>{e!==r(...i)&&(t(e,...i),n&&Y(r(...n),e)&&t(null,...n))})}),()=>{st(()=>{i&&Y(r(...i),e)&&t(null,...i)})}}),e}function Lt(e){return class extends kt{constructor(t){super({component:e,...t})}}}var g,m;class kt{constructor(t){p(this,g);p(this,m);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 v(r.get(s)??o(s,Reflect.get(a,s)))},has(a,s){return s===nt?!0:(v(r.get(s)??o(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,u){return S(r.get(s)??o(s,u),u),Reflect.set(a,s,u)}});j(this,m,(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,g,n.$$events);for(const a of Object.keys(f(this,m)))a==="$set"||a==="$destroy"||a==="$on"||it(this,a,{get(){return f(this,m)[a]},set(s){f(this,m)[a]=s},enumerable:!0});f(this,m).$set=a=>{Object.assign(n,a)},f(this,m).$destroy=()=>{Pt(f(this,m))}}$set(t){f(this,m).$set(t)}$on(t,r){f(this,g)[t]=f(this,g)[t]||[];const o=(...n)=>r.call(this,...n);return f(this,g)[t].push(o),()=>{f(this,g)[t]=f(this,g)[t].filter(n=>n!==o)}}$destroy(){f(this,m).$destroy()}}g=new WeakMap,m=new WeakMap;const Tt="modulepreload",wt=function(e,t){return new URL(e,t).href},G={},E=function(t,r,o){let n=Promise.resolve();if(r&&r.length>0){let a=function(l){return Promise.all(l.map(_=>Promise.resolve(_).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const s=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),k=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));n=a(r.map(l=>{if(l=wt(l,o),l in G)return;G[l]=!0;const _=l.endsWith(".css"),y=_?'[rel="stylesheet"]':"";if(o)for(let P=s.length-1;P>=0;P--){const c=s[P];if(c.href===l&&(!_||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${y}`))return;const h=document.createElement("link");if(h.rel=_?"stylesheet":Tt,_||(h.as="script"),h.crossOrigin="",h.href=l,k&&h.setAttribute("nonce",k),document.head.appendChild(h),_)return new Promise((P,c)=>{h.addEventListener("load",P),h.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 xt=J('<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>'),St=J("<!> <!>",1);function pt(e,t){ut(t,!0);let r=D(t,"components",23,()=>[]),o=D(t,"data_0",3,null),n=D(t,"data_1",3,null);lt(()=>t.stores.page.set(t.page)),ft(()=>{t.stores,t.page,t.constructors,r(),t.form,o(),n(),t.stores.page.notify()});let i=I(!1),a=I(!1),s=I(null);Ot(()=>{const c=t.stores.page.subscribe(()=>{v(i)&&(S(a,!0),mt().then(()=>{S(s,document.title||"untitled page",!0)}))});return S(i,!0),c});const u=V(()=>t.constructors[1]);var k=St(),l=x(k);{var _=c=>{const b=V(()=>t.constructors[0]);var R=C(),T=x(R);q(T,()=>v(b),(O,A)=>{U(A(O,{get data(){return o()},get form(){return t.form},get params(){return t.page.params},children:(d,It)=>{var F=C(),z=x(F);q(z,()=>v(u),(H,K)=>{U(K(H,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),w=>r()[1]=w,()=>{var w;return(w=r())==null?void 0:w[1]})}),L(d,F)},$$slots:{default:!0}}),d=>r()[0]=d,()=>{var d;return(d=r())==null?void 0:d[0]})}),L(c,R)},y=c=>{const b=V(()=>t.constructors[0]);var R=C(),T=x(R);q(T,()=>v(b),(O,A)=>{U(A(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]})}),L(c,R)};B(l,c=>{t.constructors[1]?c(_):c(y,!1)})}var h=dt(l,2);{var P=c=>{var b=xt(),R=_t(b);{var T=O=>{var A=bt();gt(()=>Rt(A,v(s))),L(O,A)};B(R,O=>{v(a)&&O(T)})}vt(b),L(c,b)};B(h,c=>{v(i)&&c(P)})}L(e,k),ht()}const Mt=Lt(pt),Nt=[()=>E(()=>import("../nodes/0.CRxtfUZO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),()=>E(()=>import("../nodes/1.CjzaWbdc.js"),__vite__mapDeps([14,1,2,6,8,12,7,11]),import.meta.url),()=>E(()=>import("../nodes/2.Dzi-FWBZ.js"),__vite__mapDeps([15,1,2,6,3,4,11,16]),import.meta.url),()=>E(()=>import("../nodes/3.WM6k04_L.js"),__vite__mapDeps([17,1,2,9,4,7,18,3,19,5,6,8,10,16,20,21]),import.meta.url),()=>E(()=>import("../nodes/4.C0mUcLdq.js"),__vite__mapDeps([22,1,2,7,18,9,4,3,19,5,6,8,10,16,21]),import.meta.url),()=>E(()=>import("../nodes/5.JU4p_B8j.js"),__vite__mapDeps([23,1,2,9,4,7,18,3,19,5,6,8,10,16,20]),import.meta.url),()=>E(()=>import("../nodes/6.BjGCqlQt.js"),__vite__mapDeps([24,1,2,7,18,9,4,3,19,5,6,8,10,16,21]),import.meta.url),()=>E(()=>import("../nodes/7.HL4NrxY9.js"),__vite__mapDeps([25,1,2,5,6,7,8,9,4,3,10,19,16,21]),import.meta.url)],Yt=[],Gt={"/":[2],"/dummy":[7],"/feeds":[4],"/irc":[3],"/metadata":[6],"/xmpp":[5]},W={handleError:({error:e})=>{console.error(e)},reroute:()=>{},transport:{}},jt=Object.fromEntries(Object.entries(W.transport).map(([e,t])=>[e,t.decode])),Jt=Object.fromEntries(Object.entries(W.transport).map(([e,t])=>[e,t.encode])),Wt=!1,zt=(e,t)=>jt[e](t);export{zt as decode,jt as decoders,Gt as dictionary,Jt as encoders,Wt as hash,W as hooks,Ft as matchers,Nt as nodes,Mt as root,Yt as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/DJd_9GSN.js";export{o as load_css,r as start};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as x,a as g,s as y,c as W}from"../chunks/DqdrLdzV.js";import{t as S,c as t,n as C,r as e,s as m,p as q,a as z,g as f,u as D,ag as E,f as F,F as B}from"../chunks/Ciq9INsC.js";import{a as w,s as k,b as H}from"../chunks/P3PHXZz3.js";import{c as N,e as V,i as X,h as G,b as J}from"../chunks/
|
|
1
|
+
import{f as x,a as g,s as y,c as W}from"../chunks/DqdrLdzV.js";import{t as S,c as t,n as C,r as e,s as m,p as q,a as z,g as f,u as D,ag as E,f as F,F as B}from"../chunks/Ciq9INsC.js";import{a as w,s as k,b as H}from"../chunks/P3PHXZz3.js";import{c as N,e as V,i as X,h as G,b as J}from"../chunks/Duf23zEt.js";import{b as A}from"../chunks/B48xiOwQ.js";import"../chunks/BnKTx64M.js";import{i as K,s as I,b as T}from"../chunks/Cf7Xaqef.js";import{i as Q}from"../chunks/B-2myMF5.js";import{s as U}from"../chunks/DJd_9GSN.js";const Y=!0,Z=!1,fe=Object.freeze(Object.defineProperty({__proto__:null,prerender:Y,ssr:Z},Symbol.toStringTag,{value:"Module"})),ee=`<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/DqdrLdzV.js";import"../chunks/BnKTx64M.js";import{p as l,f as v,t as d,a as _,c as o,r as p,s as x}from"../chunks/Ciq9INsC.js";import{i as $}from"../chunks/B-2myMF5.js";import{s as k,p as m}from"../chunks/
|
|
1
|
+
import{f as h,a as g,s as e}from"../chunks/DqdrLdzV.js";import"../chunks/BnKTx64M.js";import{p as l,f as v,t as d,a as _,c as o,r as p,s as x}from"../chunks/Ciq9INsC.js";import{i as $}from"../chunks/B-2myMF5.js";import{s as k,p as m}from"../chunks/DJd_9GSN.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 x,a as f}from"../chunks/DqdrLdzV.js";import"../chunks/BnKTx64M.js";import{s as e,f as y,c as t,r as s,n as w,t as S}from"../chunks/Ciq9INsC.js";import{s as a}from"../chunks/P3PHXZz3.js";import{b as r}from"../chunks/
|
|
1
|
+
import{f as x,a as f}from"../chunks/DqdrLdzV.js";import"../chunks/BnKTx64M.js";import{s as e,f as y,c as t,r as s,n as w,t as S}from"../chunks/Ciq9INsC.js";import{s as a}from"../chunks/P3PHXZz3.js";import{b as r}from"../chunks/B48xiOwQ.js";import{I as k}from"../chunks/D_xw8KSE.js";var P=x(`<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 send ActivityStreams messages describing what you want to do</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 y,a as C}from"../chunks/DqdrLdzV.js";import{p as ee,a as te,s as e,f as re,c as n,g as o,u as q,r as d,b as l,d as S,e as a}from"../chunks/Ciq9INsC.js";import{s as se,a as oe,m as ae,b as z,i as ne,c as v}from"../chunks/Cf7Xaqef.js";import{A as de}from"../chunks/
|
|
1
|
+
import{f as y,a as C}from"../chunks/DqdrLdzV.js";import{p as ee,a as te,s as e,f as re,c as n,g as o,u as q,r as d,b as l,d as S,e as a}from"../chunks/Ciq9INsC.js";import{s as se,a as oe,m as ae,b as z,i as ne,c as v}from"../chunks/Cf7Xaqef.js";import{A as de}from"../chunks/D34JQ8ay.js";import{A as ce,C as ie,P as le,R as ve,S as me}from"../chunks/DRqIvF0-.js";import{B as ue}from"../chunks/DxLbbUVu.js";import{F as N}from"../chunks/DvzjJQ_P.js";import{I as ge,s as pe}from"../chunks/Duf23zEt.js";import{w as Y}from"../chunks/CARmnL8B.js";var fe=y('<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>'),be=y('<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>'),he=y('<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. 🎭 Set Actor:</strong> Choose your IRC nickname</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> Choose Your IRC Nickname</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 $e(D,G){ee(G,!0);const c=()=>z(I,"$actorIdStore",w),r=()=>z(s,"$sockethubState",w),[w,H]=se(),I=Y(`sh-${(Math.random()+1).toString(36).substring(7)}`);let g=S("chat.freenode.net"),p=S(6697),k="#sh-random",m=S(!1);const s=Y({actorSet:!1,credentialsSet:!1,connected:!1,joined:!1});let u=q(()=>({id:c(),type:"person",name:c()})),K=q(()=>({type:"credentials",nick:c(),server:o(g),port:o(p),secure:!0}));function R(){v(s,a(r).actorSet=!1,a(r)),v(s,a(r).credentialsSet=!1,a(r)),v(s,a(r).connected=!1,a(r)),v(s,a(r).joined=!1,a(r)),l(m,!1)}async function L(){l(m,!0),await pe({context:"irc",type:"connect",actor:c()}).catch(()=>{R()}).then(()=>{v(s,a(r).connected=!0,a(r)),l(m,!1)},f=>{console.error(f),R()})}ue(D,{title:"IRC Platform Example",description:"Connect to IRC servers, join channels, and send messages using Sockethub's IRC platform.",children:(f,xe)=>{var j=he(),$=e(re(j),2),b=n($),P=e(n(b),2),A=n(P);ce(A,{get value(){return ae(),c()},set value(t){oe(I,t)}});var O=e(A,2);de(O,{get actor(){return o(u)},get sockethubState(){return s}}),d(P),d(b);var h=e(b,2),E=e(n(h),2),x=n(E),F=n(x);N(F,{label:"IRC Server",id:"server",placeholder:"irc.libera.chat",get value(){return o(g)},set value(t){l(g,t,!0)}});var Q=e(F,2);N(Q,{label:"Port",id:"port",type:"number",placeholder:"6697",get value(){return o(p)},set value(t){l(p,t,!0)}}),d(x);var T=e(x,4);ie(T,{context:"irc",get credentials(){return o(K)},get actor(){return o(u)},get sockethubState(){return s}}),d(E),d(h);var _=e(h,2),U=e(n(_),2);le(U,{get sockethubState(){return s},get connecting(){return o(m)},onConnect:L}),d(_);var V=e(_,2);{var W=t=>{var i=fe(),M=e(n(i),2),B=n(M);ve(B,{get actor(){return o(u)},get sockethubState(){return s},room:k,context:"irc"});var J=e(B,2);ge(J,{});var Z=e(J,2);me(Z,{context:"irc",get actor(){return o(u)},get sockethubState(){return s},room:k}),d(M),d(i),C(t,i)},X=t=>{var i=be();C(t,i)};ne(V,t=>{r().connected?t(W):t(X,!1)})}d($),C(f,j)}}),te(),H()}export{$e as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as y,t as w,a as f}from"../chunks/DqdrLdzV.js";import{p as k,a as A,s as o,f as F,c as p,b as R,d as _,g as e,u as T,n as O,r as m}from"../chunks/Ciq9INsC.js";import{w as L}from"../chunks/CARmnL8B.js";import{A as P}from"../chunks/
|
|
1
|
+
import{f as y,t as w,a as f}from"../chunks/DqdrLdzV.js";import{p as k,a as A,s as o,f as F,c as p,b as R,d as _,g as e,u as T,n as O,r as m}from"../chunks/Ciq9INsC.js";import{w as L}from"../chunks/CARmnL8B.js";import{A as P}from"../chunks/D34JQ8ay.js";import{B as U,S as $}from"../chunks/DxLbbUVu.js";import{F as M}from"../chunks/DvzjJQ_P.js";import{s as j}from"../chunks/Duf23zEt.js";var B=y('<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">⬆️ Try different RSS/ATOM feeds: news sites, blogs, podcasts, etc.</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/> The feed URL becomes the "actor" (like a website identity), and Sockethub sends a "fetch" activity to download and parse the feed content.</p></div> <div class="w-full text-right"><!></div></div>',1);function I(h,g){k(g,!0);const v=L({actorSet:!1});let t=_("https://sockethub.org/feed.xml");const a=T(()=>({type:"website",id:e(t)}));function u(s){return{context:"feeds",type:s,actor:e(a)}}async function b(){j(u("fetch"))}U(h,{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:(s,E)=>{var n=B(),d=o(F(n),2),i=p(d);M(i,{label:"Feed URL",id:"URL",placeholder:"https://example.com/feed.xml",get value(){return e(t)},set value(r){R(t,r,!0)}});var c=o(i,4);P(c,{get actor(){return e(a)},get sockethubState(){return v}});var l=o(c,4),x=p(l);$(x,{buttonAction:b,children:(r,C)=>{O();var S=w("Fetch Feed");f(r,S)}}),m(l),m(d),f(s,n)}}),A()}export{I as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as P,a as f}from"../chunks/DqdrLdzV.js";import{p as L,a as N,s as r,f as O,c as n,g as o,u as x,r as c,n as Q,d as T,b as E,e as s}from"../chunks/Ciq9INsC.js";import{s as V,a as W,m as Z,b as I,i as ee,c as d}from"../chunks/Cf7Xaqef.js";import{A as te}from"../chunks/
|
|
1
|
+
import{f as P,a as f}from"../chunks/DqdrLdzV.js";import{p as L,a as N,s as r,f as O,c as n,g as o,u as x,r as c,n as Q,d as T,b as E,e as s}from"../chunks/Ciq9INsC.js";import{s as V,a as W,m as Z,b as I,i as ee,c as d}from"../chunks/Cf7Xaqef.js";import{A as te}from"../chunks/D34JQ8ay.js";import{A as re,C as se,P as oe,R as ae,S as ne}from"../chunks/DRqIvF0-.js";import{B as ce}from"../chunks/DxLbbUVu.js";import{I as ie,s as de}from"../chunks/Duf23zEt.js";import{w as j}from"../chunks/CARmnL8B.js";var le=P('<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>'),ge=P('<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>'),me=P('<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. 🎭 Set Actor:</strong> Your XMPP address (e.g., user@jabber.org)</div> <div><strong>2. 🔐 Set Credentials:</strong> Your XMPP login and password</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> <!> <p class="text-gray-600 text-sm mt-2">🔐 Use your actual XMPP account credentials to connect</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 _e(J,R){L(R,!0);const g=()=>I(_,"$actorIdStore",S),e=()=>I(t,"$sockethubState",S),[S,Y]=V(),_=j("user@jabber.org");let m=T(!1),u=x(()=>`${g()}/SockethubExample`);const y="kosmos-random@kosmos.chat",t=j({actorSet:!1,credentialsSet:!1,connected:!1,joined:!1});let l=x(()=>({id:o(u),type:"person",name:o(u)})),B=x(()=>({type:"credentials",userAddress:g(),password:"123456",resource:"SockethubExample"}));function k(){d(t,s(e).actorSet=!1,s(e)),d(t,s(e).credentialsSet=!1,s(e)),d(t,s(e).connected=!1,s(e)),d(t,s(e).joined=!1,s(e)),E(m,!1)}async function F(){return E(m,!0),await de({context:"xmpp",type:"connect",actor:o(u)}).then(()=>{d(t,s(e).connected=!0,s(e))},v=>{console.error(v),k()}).catch(()=>{k()})}ce(J,{title:"XMPP Platform Example",description:"Connect to XMPP servers (Jabber), join multi-user chats, and exchange messages using Sockethub's XMPP platform.",children:(v,ue)=>{var M=me(),C=r(O(M),2),p=n(C),X=r(n(p),2);re(X,{get value(){return Z(),g()},set value(a){W(_,a)}});var U=r(X,4);te(U,{get actor(){return o(l)},get sockethubState(){return t}}),c(p);var b=r(p,2),q=r(n(b),2);se(q,{context:"xmpp",get credentials(){return o(B)},get actor(){return o(l)},get sockethubState(){return t}}),Q(2),c(b);var h=r(b,2),z=r(n(h),2);oe(z,{get sockethubState(){return t},get connecting(){return o(m)},onConnect:F}),c(h);var D=r(h,2);{var G=a=>{var i=le(),w=r(n(i),2),$=n(w);ae($,{get actor(){return o(l)},get sockethubState(){return t},room:y,context:"xmpp"});var A=r($,2);ie(A,{});var K=r(A,2);ne(K,{context:"xmpp",get actor(){return o(l)},get sockethubState(){return t},room:y}),c(w),c(i),f(a,i)},H=a=>{var i=ge();f(a,i)};ee(D,a=>{e().connected?a(G):a(H,!1)})}c(C),f(v,M)}}),N(),Y()}export{_e as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as S,t as k,a as p}from"../chunks/DqdrLdzV.js";import{p as y,a as _,s as r,f as F,c as m,b as A,d as E,g as t,u as L,n as P,r as u}from"../chunks/Ciq9INsC.js";import{w as R}from"../chunks/CARmnL8B.js";import{A as $}from"../chunks/
|
|
1
|
+
import{f as S,t as k,a as p}from"../chunks/DqdrLdzV.js";import{p as y,a as _,s as r,f as F,c as m,b as A,d as E,g as t,u as L,n as P,r as u}from"../chunks/Ciq9INsC.js";import{w as R}from"../chunks/CARmnL8B.js";import{A as $}from"../chunks/D34JQ8ay.js";import{B as T,S as U}from"../chunks/DxLbbUVu.js";import{F as B}from"../chunks/DvzjJQ_P.js";import{s as M}from"../chunks/Duf23zEt.js";var O=S('<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">⬆️ Try different websites: news articles, social media posts, product pages, etc.</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/> The website URL becomes the "actor", and Sockethub sends a "fetch" activity to download the page and extract all available metadata like page titles, descriptions, and social media preview data.</p></div> <div class="w-full text-right"><!></div></div>',1);function z(h,g){y(g,!0);const b=R({actorSet:!1});let e=E("https://sockethub.org"),o=L(()=>({id:t(e),type:"website"}));function v(a){return{context:"metadata",type:a,actor:t(o)}}async function f(){M(v("fetch"))}T(h,{title:"Metadata Platform Example",description:"Sockethub's metadata platform takes a URL, fetches and parses it for any metadata.",children:(a,W)=>{var i=O(),d=r(F(i),2),n=m(d);B(n,{label:"Website URL",id:"URL",placeholder:"https://example.com",get value(){return t(e)},set value(s){A(e,s,!0)}});var c=r(n,4);$(c,{get actor(){return t(o)},get sockethubState(){return b}});var l=r(c,4),x=m(l);U(x,{buttonAction:f,children:(s,j)=>{P();var w=k("Extract Metadata");p(s,w)}}),u(l),u(d),p(a,i)}}),_()}export{z as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as L,t as o,a as r}from"../chunks/DqdrLdzV.js";import{p as M,a as O,s,f as W,c as e,b as z,d as J,g as E,n as l,r as t}from"../chunks/Ciq9INsC.js";import{s as n}from"../chunks/
|
|
1
|
+
import{f as L,t as o,a as r}from"../chunks/DqdrLdzV.js";import{p as M,a as O,s,f as W,c as e,b as z,d as J,g as E,n as l,r as t}from"../chunks/Ciq9INsC.js";import{s as n}from"../chunks/Duf23zEt.js";import{B as K,S as c}from"../chunks/DxLbbUVu.js";import{F as N}from"../chunks/DvzjJQ_P.js";var Q=L(`<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)</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>`,1);function se(F,P){M(P,!0);const H="https://sockethub.org/examples/dummy";let v=J("");function d(m){return{context:"dummy",type:m,actor:{type:"person",id:H},object:{type:"message",content:E(v)}}}async function R(){n(d("echo"))}async function B(){n(d("fail"))}async function D(){n(d("throw"))}async function G(){n(d("greet"))}K(F,{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,U)=>{var f=Q(),h=s(W(f),2),g=e(h);N(g,{label:"Message Content",id:"objectContent",placeholder:"Hello from Sockethub",get value(){return E(v)},set value(a){z(v,a,!0)}});var y=s(g,4),w=s(e(y),4),b=e(w),p=e(b),_=e(p),C=s(e(_),2);c(C,{buttonAction:R,children:(a,u)=>{l();var i=o("Echo");r(a,i)}}),t(_),t(p);var S=s(p,2),$=e(S),Y=s(e($),2);c(Y,{buttonAction:G,children:(a,u)=>{l();var i=o("Greet");r(a,i)}}),t($),t(S),t(b);var A=s(b,2),x=e(A),T=e(x),q=s(e(T),2);c(q,{buttonAction:B,children:(a,u)=>{l();var i=o("Fail");r(a,i)}}),t(T),t(x);var j=s(x,2),k=e(j),I=s(e(k),2);c(I,{buttonAction:D,children:(a,u)=>{l();var i=o("Throw");r(a,i)}}),t(k),t(j),t(A),t(w),t(y),t(h),r(m,f)}}),O()}export{se as component};
|
package/build/_app/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1770315992417"}
|
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.odGQGxrg.js">
|
|
9
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/DJd_9GSN.js">
|
|
10
10
|
<link rel="modulepreload" href="./_app/immutable/chunks/Ciq9INsC.js">
|
|
11
11
|
<link rel="modulepreload" href="./_app/immutable/chunks/CARmnL8B.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/B48xiOwQ.js">
|
|
13
|
+
<link rel="modulepreload" href="./_app/immutable/entry/app.24uSP5jR.js">
|
|
14
14
|
<link rel="modulepreload" href="./_app/immutable/chunks/DqdrLdzV.js">
|
|
15
15
|
<link rel="modulepreload" href="./_app/immutable/chunks/Cf7Xaqef.js">
|
|
16
16
|
<link rel="modulepreload" href="./_app/immutable/chunks/CC-fhLYv.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_ff71sj = {
|
|
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.odGQGxrg.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.24uSP5jR.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.odGQGxrg.js">
|
|
9
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/DJd_9GSN.js">
|
|
10
10
|
<link rel="modulepreload" href="./_app/immutable/chunks/Ciq9INsC.js">
|
|
11
11
|
<link rel="modulepreload" href="./_app/immutable/chunks/CARmnL8B.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/B48xiOwQ.js">
|
|
13
|
+
<link rel="modulepreload" href="./_app/immutable/entry/app.24uSP5jR.js">
|
|
14
14
|
<link rel="modulepreload" href="./_app/immutable/chunks/DqdrLdzV.js">
|
|
15
15
|
<link rel="modulepreload" href="./_app/immutable/chunks/Cf7Xaqef.js">
|
|
16
16
|
<link rel="modulepreload" href="./_app/immutable/chunks/CC-fhLYv.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_ff71sj = {
|
|
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.odGQGxrg.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.24uSP5jR.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.odGQGxrg.js">
|
|
9
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/DJd_9GSN.js">
|
|
10
10
|
<link rel="modulepreload" href="/_app/immutable/chunks/Ciq9INsC.js">
|
|
11
11
|
<link rel="modulepreload" href="/_app/immutable/chunks/CARmnL8B.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/B48xiOwQ.js">
|
|
13
|
+
<link rel="modulepreload" href="/_app/immutable/entry/app.24uSP5jR.js">
|
|
14
14
|
<link rel="modulepreload" href="/_app/immutable/chunks/DqdrLdzV.js">
|
|
15
15
|
<link rel="modulepreload" href="/_app/immutable/chunks/Cf7Xaqef.js">
|
|
16
16
|
<link rel="modulepreload" href="/_app/immutable/chunks/CC-fhLYv.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_ff71sj = {
|
|
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.odGQGxrg.js"),
|
|
30
|
+
import("/_app/immutable/entry/app.24uSP5jR.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.odGQGxrg.js">
|
|
9
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/DJd_9GSN.js">
|
|
10
10
|
<link rel="modulepreload" href="./_app/immutable/chunks/Ciq9INsC.js">
|
|
11
11
|
<link rel="modulepreload" href="./_app/immutable/chunks/CARmnL8B.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/B48xiOwQ.js">
|
|
13
|
+
<link rel="modulepreload" href="./_app/immutable/entry/app.24uSP5jR.js">
|
|
14
14
|
<link rel="modulepreload" href="./_app/immutable/chunks/DqdrLdzV.js">
|
|
15
15
|
<link rel="modulepreload" href="./_app/immutable/chunks/Cf7Xaqef.js">
|
|
16
16
|
<link rel="modulepreload" href="./_app/immutable/chunks/CC-fhLYv.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_ff71sj = {
|
|
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.odGQGxrg.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.24uSP5jR.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/build/metadata.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.odGQGxrg.js">
|
|
9
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/DJd_9GSN.js">
|
|
10
10
|
<link rel="modulepreload" href="./_app/immutable/chunks/Ciq9INsC.js">
|
|
11
11
|
<link rel="modulepreload" href="./_app/immutable/chunks/CARmnL8B.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/B48xiOwQ.js">
|
|
13
|
+
<link rel="modulepreload" href="./_app/immutable/entry/app.24uSP5jR.js">
|
|
14
14
|
<link rel="modulepreload" href="./_app/immutable/chunks/DqdrLdzV.js">
|
|
15
15
|
<link rel="modulepreload" href="./_app/immutable/chunks/Cf7Xaqef.js">
|
|
16
16
|
<link rel="modulepreload" href="./_app/immutable/chunks/CC-fhLYv.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_ff71sj = {
|
|
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.odGQGxrg.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.24uSP5jR.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/build/xmpp.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.odGQGxrg.js">
|
|
9
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/DJd_9GSN.js">
|
|
10
10
|
<link rel="modulepreload" href="./_app/immutable/chunks/Ciq9INsC.js">
|
|
11
11
|
<link rel="modulepreload" href="./_app/immutable/chunks/CARmnL8B.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/B48xiOwQ.js">
|
|
13
|
+
<link rel="modulepreload" href="./_app/immutable/entry/app.24uSP5jR.js">
|
|
14
14
|
<link rel="modulepreload" href="./_app/immutable/chunks/DqdrLdzV.js">
|
|
15
15
|
<link rel="modulepreload" href="./_app/immutable/chunks/Cf7Xaqef.js">
|
|
16
16
|
<link rel="modulepreload" href="./_app/immutable/chunks/CC-fhLYv.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_ff71sj = {
|
|
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.odGQGxrg.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.24uSP5jR.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sockethub/examples",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"build"
|
|
@@ -32,15 +32,17 @@
|
|
|
32
32
|
"dev": "bunx --bun vite dev",
|
|
33
33
|
"build": "bunx --bun vite build",
|
|
34
34
|
"test": "bun run test:unit",
|
|
35
|
-
"test:integration": "bunx --bun playwright test",
|
|
35
|
+
"test:integration": "sh -c 'if [ -z \"$RUN_PLAYWRIGHT\" ]; then echo \"Skipping Playwright integration tests (set RUN_PLAYWRIGHT=1 to run).\"; else bunx --bun playwright test; fi'",
|
|
36
36
|
"test:unit": "bunx --bun vitest run",
|
|
37
37
|
"preview": "bunx --bun vite preview",
|
|
38
|
+
"clean": "rm -rf build",
|
|
39
|
+
"clean:deps": "rm -rf node_modules",
|
|
38
40
|
"check": "bunx --bun svelte-kit sync && bunx --bun svelte-check --tsconfig ./tsconfig.json",
|
|
39
41
|
"check:watch": "bunx --bun svelte-kit sync && bunx --bun svelte-check --tsconfig ./tsconfig.json --watch"
|
|
40
42
|
},
|
|
41
43
|
"devDependencies": {
|
|
42
44
|
"@playwright/test": "^1.57.0",
|
|
43
|
-
"@sockethub/client": "^5.0.0-alpha.
|
|
45
|
+
"@sockethub/client": "^5.0.0-alpha.11",
|
|
44
46
|
"@sveltejs/adapter-static": "^3.0.10",
|
|
45
47
|
"@sveltejs/kit": "^2.50.0",
|
|
46
48
|
"@sveltejs/vite-plugin-svelte": "^5.1.1",
|
|
@@ -59,5 +61,5 @@
|
|
|
59
61
|
"vite": "^6.4.1",
|
|
60
62
|
"vitest": "^3.2.4"
|
|
61
63
|
},
|
|
62
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "c243fa9e76c688ce5ffcf524400b1dd27dcce615"
|
|
63
65
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var s;const e=((s=globalThis.__sveltekit_s9fgxq)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_s9fgxq)==null?void 0:a.assets)??e??"";export{t as a,e as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/BqKPKu0n.js";export{o as load_css,r as start};
|