From e12ed2594649c4eb579e648f13672a6cedddf596 Mon Sep 17 00:00:00 2001 From: guillemcordoba Date: Thu, 26 Sep 2024 12:54:38 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20darksoil?= =?UTF-8?q?-studio/notifications@d63a0eecbb29bcd47c4a9f5991a09105f8503e0f?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- ...elements_my-notifications-icon-button.md.CXAvVJo8.js} | 6 +++--- ...ents_my-notifications-icon-button.md.CXAvVJo8.lean.js | 9 +++++++++ ...ents_my-notifications-icon-button.md.DwaJGq2r.lean.js | 9 --------- .../elements_my-notifications-list.md.CYncYSv7.lean.js | 9 --------- ....js => elements_my-notifications-list.md.WjAlQWd-.js} | 6 +++--- .../elements_my-notifications-list.md.WjAlQWd-.lean.js | 9 +++++++++ assets/{setup.md.BbCfTfU7.js => setup.md.Bsla9_vR.js} | 2 +- ...tup.md.BbCfTfU7.lean.js => setup.md.Bsla9_vR.lean.js} | 0 backend/.rustc_info.json | 2 +- .../notifications-e5aac07f92719cb7/doc-lib-notifications | 2 +- .../doc-lib-notifications.json | 2 +- .../doc-lib-notifications_integrity | 2 +- .../doc-lib-notifications_integrity.json | 2 +- elements/my-notifications-icon-button.html | 6 +++--- elements/my-notifications-list.html | 6 +++--- hashmap.json | 2 +- index.html | 2 +- introduction.html | 2 +- notifications-store.html | 2 +- .../SourceSerif4-LICENSE-3bb119e13b1258b7.html | 2 +- setup.html | 6 +++--- 22 files changed, 45 insertions(+), 45 deletions(-) rename assets/{elements_my-notifications-icon-button.md.DwaJGq2r.js => elements_my-notifications-icon-button.md.CXAvVJo8.js} (61%) create mode 100644 assets/elements_my-notifications-icon-button.md.CXAvVJo8.lean.js delete mode 100644 assets/elements_my-notifications-icon-button.md.DwaJGq2r.lean.js delete mode 100644 assets/elements_my-notifications-list.md.CYncYSv7.lean.js rename assets/{elements_my-notifications-list.md.CYncYSv7.js => elements_my-notifications-list.md.WjAlQWd-.js} (66%) create mode 100644 assets/elements_my-notifications-list.md.WjAlQWd-.lean.js rename assets/{setup.md.BbCfTfU7.js => setup.md.Bsla9_vR.js} (97%) rename assets/{setup.md.BbCfTfU7.lean.js => setup.md.Bsla9_vR.lean.js} (100%) diff --git a/404.html b/404.html index 1d6c5913..2c1377b7 100644 --- a/404.html +++ b/404.html @@ -16,7 +16,7 @@
- + \ No newline at end of file diff --git a/assets/elements_my-notifications-icon-button.md.DwaJGq2r.js b/assets/elements_my-notifications-icon-button.md.CXAvVJo8.js similarity index 61% rename from assets/elements_my-notifications-icon-button.md.DwaJGq2r.js rename to assets/elements_my-notifications-icon-button.md.CXAvVJo8.js index cfa87d41..b1f2b7e5 100644 --- a/assets/elements_my-notifications-icon-button.md.DwaJGq2r.js +++ b/assets/elements_my-notifications-icon-button.md.CXAvVJo8.js @@ -1,14 +1,14 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/api-docs.6GVAIKQB.js","assets/chunks/api-viewer-tabs.bc9mZ4w5.js","assets/chunks/tslib.es6.kHcLnhpD.js","assets/chunks/api-demo.Bsqmng5d.js","assets/chunks/profiles-context.CTn4nlkH.js","assets/chunks/notifications-client.BPN4HXTv.js","assets/chunks/provide.C1Njoeja.js","assets/chunks/property.CxBSxXjq.js","assets/chunks/signal-watcher.Df3ivjzs.js","assets/chunks/notifications-context.r1IJ36Jx.js","assets/chunks/context.Dz-EYhNW.js","assets/chunks/my-notifications-icon-button.B3QYmla-.js","assets/chunks/my-notifications-list.CVjqVNTy.js"])))=>i.map(i=>d[i]); -import{y as c,X as i,o as p,c as h,a3 as r,j as d}from"./chunks/framework.D_KCp5cu.js";import{d as k,P as m,a as u,b,N as E,c as g,s as y,e as f,j as _,x as v}from"./chunks/notifications-client.BPN4HXTv.js";const w=r(`

<my-notifications-icon-button>

Usage

  1. If you haven't already, go through the setup for the module.

  2. Import the <my-notifications-icon-button> element somewhere in the javascript side of your web-app like this:

js
import '@holochain-open-dev/notifications/dist/elements/my-notifications-icon-button.js'
  1. Use it in the html side of your web-app like this:
html
<my-notifications-icon-button>
+import{y as c,X as t,o as p,c as h,a3 as r,j as d}from"./chunks/framework.D_KCp5cu.js";import{d as k,P as m,a as u,b as E,N as g,c as b,s as y,e as f,j as _,x as v}from"./chunks/notifications-client.BPN4HXTv.js";const A=r(`

<my-notifications-icon-button>

Usage

  1. If you haven't already, go through the setup for the module.

  2. Import the <my-notifications-icon-button> element somewhere in the javascript side of your web-app like this:

js
import '@holochain-open-dev/notifications/dist/elements/my-notifications-icon-button.js'
  1. Use it in the html side of your web-app like this:
html
<my-notifications-icon-button>
 </my-notifications-icon-button>
html
<my-notifications-icon-button>
 </my-notifications-icon-button>
html
<my-notifications-icon-button>
 </my-notifications-icon-button>
html
<my-notifications-icon-button>
 </my-notifications-icon-button>
html
<my-notifications-icon-button>
-</my-notifications-icon-button>

WARNING

Like all the elements in this module, <my-notifications-icon-button> needs to be placed inside an initialized <notifications-context>.

Demo

Here is an interactive demo of the element:

API Reference

<my-notifications-icon-button> is a custom element, which means that it can be used in any web app or website. Here is the reference for its API:

`,12),A=d("api-docs",{src:"custom-elements.json",only:"my-notifications-icon-button"},null,-1),x=[w,A],V=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"elements/my-notifications-icon-button.md","filePath":"elements/my-notifications-icon-button.md"}'),P={name:"elements/my-notifications-icon-button.md"},S=Object.assign(P,{setup(D){return c(async()=>{await i(()=>import("./chunks/api-docs.6GVAIKQB.js"),__vite__mapDeps([0,1,2])),await i(()=>import("./chunks/api-demo.Bsqmng5d.js"),__vite__mapDeps([3,1,2])),await i(()=>import("./chunks/profiles-context.CTn4nlkH.js"),__vite__mapDeps([4,2,5,6,7,8])),customElements.get("notifications-context")||await i(()=>import("./chunks/notifications-context.r1IJ36Jx.js"),__vite__mapDeps([9,6,7,5,10])),customElements.get("my-notifications-icon-button")||await i(()=>import("./chunks/my-notifications-icon-button.B3QYmla-.js"),__vite__mapDeps([11,12,5,8,7,10,2]));const t=await k(),s=new m(t,Array.from(t.keys())[0]),n=new u(new b(s,"notifications_test")),a=new E,e=new g(a,"notifications_test"),o=await y(e);await a.create_notification(o);const l=new f(e);_(v` +</my-notifications-icon-button>

WARNING

Like all the elements in this module, <my-notifications-icon-button> needs to be placed inside an initialized <notifications-context>.

Demo

Here is an interactive demo of the element:

API Reference

<my-notifications-icon-button> is a custom element, which means that it can be used in any web app or website. Here is the reference for its API:

`,12),x=d("api-docs",{src:"custom-elements.json",only:"my-notifications-icon-button"},null,-1),P=[A,x],I=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"elements/my-notifications-icon-button.md","filePath":"elements/my-notifications-icon-button.md"}'),w={name:"elements/my-notifications-icon-button.md"},j=Object.assign(w,{setup(D){return c(async()=>{await t(()=>import("./chunks/api-docs.6GVAIKQB.js"),__vite__mapDeps([0,1,2])),await t(()=>import("./chunks/api-demo.Bsqmng5d.js"),__vite__mapDeps([3,1,2])),await t(()=>import("./chunks/profiles-context.CTn4nlkH.js"),__vite__mapDeps([4,2,5,6,7,8])),customElements.get("notifications-context")||await t(()=>import("./chunks/notifications-context.r1IJ36Jx.js"),__vite__mapDeps([9,6,7,5,10])),customElements.get("my-notifications-icon-button")||await t(()=>import("./chunks/my-notifications-icon-button.B3QYmla-.js"),__vite__mapDeps([11,12,5,8,7,10,2]));const i=await k(),s=new m(i,Array.from(i.keys())[0]),n=new u(new E(s,"notifications_test")),a=new g,e=new b(a,"notifications_test"),o=await y(e);await a.create_notification(o);const l=new f(e);_(v` - `,document.querySelector("element-demo"))}),(t,s)=>(p(),h("div",null,x))}});export{V as __pageData,S as default}; + `,document.querySelector("element-demo"))}),(i,s)=>(p(),h("div",null,P))}});export{I as __pageData,j as default}; diff --git a/assets/elements_my-notifications-icon-button.md.CXAvVJo8.lean.js b/assets/elements_my-notifications-icon-button.md.CXAvVJo8.lean.js new file mode 100644 index 00000000..bfc6cd82 --- /dev/null +++ b/assets/elements_my-notifications-icon-button.md.CXAvVJo8.lean.js @@ -0,0 +1,9 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/api-docs.6GVAIKQB.js","assets/chunks/api-viewer-tabs.bc9mZ4w5.js","assets/chunks/tslib.es6.kHcLnhpD.js","assets/chunks/api-demo.Bsqmng5d.js","assets/chunks/profiles-context.CTn4nlkH.js","assets/chunks/notifications-client.BPN4HXTv.js","assets/chunks/provide.C1Njoeja.js","assets/chunks/property.CxBSxXjq.js","assets/chunks/signal-watcher.Df3ivjzs.js","assets/chunks/notifications-context.r1IJ36Jx.js","assets/chunks/context.Dz-EYhNW.js","assets/chunks/my-notifications-icon-button.B3QYmla-.js","assets/chunks/my-notifications-list.CVjqVNTy.js"])))=>i.map(i=>d[i]); +import{y as c,X as t,o as p,c as h,a3 as r,j as d}from"./chunks/framework.D_KCp5cu.js";import{d as k,P as m,a as u,b as E,N as g,c as b,s as y,e as f,j as _,x as v}from"./chunks/notifications-client.BPN4HXTv.js";const A=r("",12),x=d("api-docs",{src:"custom-elements.json",only:"my-notifications-icon-button"},null,-1),P=[A,x],I=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"elements/my-notifications-icon-button.md","filePath":"elements/my-notifications-icon-button.md"}'),w={name:"elements/my-notifications-icon-button.md"},j=Object.assign(w,{setup(D){return c(async()=>{await t(()=>import("./chunks/api-docs.6GVAIKQB.js"),__vite__mapDeps([0,1,2])),await t(()=>import("./chunks/api-demo.Bsqmng5d.js"),__vite__mapDeps([3,1,2])),await t(()=>import("./chunks/profiles-context.CTn4nlkH.js"),__vite__mapDeps([4,2,5,6,7,8])),customElements.get("notifications-context")||await t(()=>import("./chunks/notifications-context.r1IJ36Jx.js"),__vite__mapDeps([9,6,7,5,10])),customElements.get("my-notifications-icon-button")||await t(()=>import("./chunks/my-notifications-icon-button.B3QYmla-.js"),__vite__mapDeps([11,12,5,8,7,10,2]));const i=await k(),s=new m(i,Array.from(i.keys())[0]),n=new u(new E(s,"notifications_test")),a=new g,e=new b(a,"notifications_test"),o=await y(e);await a.create_notification(o);const l=new f(e);_(v` + + + + + + + `,document.querySelector("element-demo"))}),(i,s)=>(p(),h("div",null,P))}});export{I as __pageData,j as default}; diff --git a/assets/elements_my-notifications-icon-button.md.DwaJGq2r.lean.js b/assets/elements_my-notifications-icon-button.md.DwaJGq2r.lean.js deleted file mode 100644 index c0b5e51b..00000000 --- a/assets/elements_my-notifications-icon-button.md.DwaJGq2r.lean.js +++ /dev/null @@ -1,9 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/api-docs.6GVAIKQB.js","assets/chunks/api-viewer-tabs.bc9mZ4w5.js","assets/chunks/tslib.es6.kHcLnhpD.js","assets/chunks/api-demo.Bsqmng5d.js","assets/chunks/profiles-context.CTn4nlkH.js","assets/chunks/notifications-client.BPN4HXTv.js","assets/chunks/provide.C1Njoeja.js","assets/chunks/property.CxBSxXjq.js","assets/chunks/signal-watcher.Df3ivjzs.js","assets/chunks/notifications-context.r1IJ36Jx.js","assets/chunks/context.Dz-EYhNW.js","assets/chunks/my-notifications-icon-button.B3QYmla-.js","assets/chunks/my-notifications-list.CVjqVNTy.js"])))=>i.map(i=>d[i]); -import{y as c,X as i,o as p,c as h,a3 as r,j as d}from"./chunks/framework.D_KCp5cu.js";import{d as k,P as m,a as u,b,N as E,c as g,s as y,e as f,j as _,x as v}from"./chunks/notifications-client.BPN4HXTv.js";const w=r("",12),A=d("api-docs",{src:"custom-elements.json",only:"my-notifications-icon-button"},null,-1),x=[w,A],V=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"elements/my-notifications-icon-button.md","filePath":"elements/my-notifications-icon-button.md"}'),P={name:"elements/my-notifications-icon-button.md"},S=Object.assign(P,{setup(D){return c(async()=>{await i(()=>import("./chunks/api-docs.6GVAIKQB.js"),__vite__mapDeps([0,1,2])),await i(()=>import("./chunks/api-demo.Bsqmng5d.js"),__vite__mapDeps([3,1,2])),await i(()=>import("./chunks/profiles-context.CTn4nlkH.js"),__vite__mapDeps([4,2,5,6,7,8])),customElements.get("notifications-context")||await i(()=>import("./chunks/notifications-context.r1IJ36Jx.js"),__vite__mapDeps([9,6,7,5,10])),customElements.get("my-notifications-icon-button")||await i(()=>import("./chunks/my-notifications-icon-button.B3QYmla-.js"),__vite__mapDeps([11,12,5,8,7,10,2]));const t=await k(),s=new m(t,Array.from(t.keys())[0]),n=new u(new b(s,"notifications_test")),a=new E,e=new g(a,"notifications_test"),o=await y(e);await a.create_notification(o);const l=new f(e);_(v` - - - - - - - `,document.querySelector("element-demo"))}),(t,s)=>(p(),h("div",null,x))}});export{V as __pageData,S as default}; diff --git a/assets/elements_my-notifications-list.md.CYncYSv7.lean.js b/assets/elements_my-notifications-list.md.CYncYSv7.lean.js deleted file mode 100644 index a2fd612e..00000000 --- a/assets/elements_my-notifications-list.md.CYncYSv7.lean.js +++ /dev/null @@ -1,9 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/api-docs.6GVAIKQB.js","assets/chunks/api-viewer-tabs.bc9mZ4w5.js","assets/chunks/tslib.es6.kHcLnhpD.js","assets/chunks/api-demo.Bsqmng5d.js","assets/chunks/profiles-context.CTn4nlkH.js","assets/chunks/notifications-client.BPN4HXTv.js","assets/chunks/provide.C1Njoeja.js","assets/chunks/property.CxBSxXjq.js","assets/chunks/signal-watcher.Df3ivjzs.js","assets/chunks/notifications-context.r1IJ36Jx.js","assets/chunks/context.Dz-EYhNW.js","assets/chunks/my-notifications-list.CVjqVNTy.js"])))=>i.map(i=>d[i]); -import{y as h,X as i,o as c,c as d,a3 as r,j as k}from"./chunks/framework.D_KCp5cu.js";import{d as m,P as E,a as g,b as u,N as y,c as f,s as b,e as v,j as _,x as A}from"./chunks/notifications-client.BPN4HXTv.js";const w=r("",12),P=k("api-docs",{src:"custom-elements.json",only:"my-notifications-list"},null,-1),x=[w,P],R=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"elements/my-notifications-list.md","filePath":"elements/my-notifications-list.md"}'),C={name:"elements/my-notifications-list.md"},S=Object.assign(C,{setup(D){return h(async()=>{await i(()=>import("./chunks/api-docs.6GVAIKQB.js"),__vite__mapDeps([0,1,2])),await i(()=>import("./chunks/api-demo.Bsqmng5d.js"),__vite__mapDeps([3,1,2])),await i(()=>import("./chunks/profiles-context.CTn4nlkH.js"),__vite__mapDeps([4,2,5,6,7,8])),customElements.get("notifications-context")||await i(()=>import("./chunks/notifications-context.r1IJ36Jx.js"),__vite__mapDeps([9,6,7,5,10])),customElements.get("my-notifications-list")||await i(()=>import("./chunks/my-notifications-list.CVjqVNTy.js").then(p=>p.n),__vite__mapDeps([11,5,8,7,10]));const t=await m(),s=new E(t,Array.from(t.keys())[0]),n=new g(new u(s,"notifications_test")),a=new y,e=new f(a,"notifications_test"),l=await b(e);await a.create_notification(l);const o=new v(e);_(A` - - - - - - - `,document.querySelector("element-demo"))}),(t,s)=>(c(),d("div",null,x))}});export{R as __pageData,S as default}; diff --git a/assets/elements_my-notifications-list.md.CYncYSv7.js b/assets/elements_my-notifications-list.md.WjAlQWd-.js similarity index 66% rename from assets/elements_my-notifications-list.md.CYncYSv7.js rename to assets/elements_my-notifications-list.md.WjAlQWd-.js index aedd99f8..64933f8a 100644 --- a/assets/elements_my-notifications-list.md.CYncYSv7.js +++ b/assets/elements_my-notifications-list.md.WjAlQWd-.js @@ -1,14 +1,14 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/api-docs.6GVAIKQB.js","assets/chunks/api-viewer-tabs.bc9mZ4w5.js","assets/chunks/tslib.es6.kHcLnhpD.js","assets/chunks/api-demo.Bsqmng5d.js","assets/chunks/profiles-context.CTn4nlkH.js","assets/chunks/notifications-client.BPN4HXTv.js","assets/chunks/provide.C1Njoeja.js","assets/chunks/property.CxBSxXjq.js","assets/chunks/signal-watcher.Df3ivjzs.js","assets/chunks/notifications-context.r1IJ36Jx.js","assets/chunks/context.Dz-EYhNW.js","assets/chunks/my-notifications-list.CVjqVNTy.js"])))=>i.map(i=>d[i]); -import{y as h,X as i,o as c,c as d,a3 as r,j as k}from"./chunks/framework.D_KCp5cu.js";import{d as m,P as E,a as g,b as u,N as y,c as f,s as b,e as v,j as _,x as A}from"./chunks/notifications-client.BPN4HXTv.js";const w=r(`

<my-notifications-list>

Usage

  1. If you haven't already, go through the setup for the module.

  2. Import the <my-notifications-list> element somewhere in the javascript side of your web-app like this:

js
import '@holochain-open-dev/notifications/dist/elements/my-notifications-list.js'
  1. Use it in the html side of your web-app like this:
html
<my-notifications-list>
+import{y as h,X as i,o as c,c as d,a3 as r,j as k}from"./chunks/framework.D_KCp5cu.js";import{d as m,P as g,a as E,b as y,N as u,c as f,s as b,e as _,j as v,x}from"./chunks/notifications-client.BPN4HXTv.js";const A=r(`

<my-notifications-list>

Usage

  1. If you haven't already, go through the setup for the module.

  2. Import the <my-notifications-list> element somewhere in the javascript side of your web-app like this:

js
import '@holochain-open-dev/notifications/dist/elements/my-notifications-list.js'
  1. Use it in the html side of your web-app like this:
html
<my-notifications-list>
 </my-notifications-list>
html
<my-notifications-list>
 </my-notifications-list>
html
<my-notifications-list>
 </my-notifications-list>
html
<my-notifications-list>
 </my-notifications-list>
html
<my-notifications-list>
-</my-notifications-list>

WARNING

Like all the elements in this module, <my-notifications-list> needs to be placed inside an initialized <notifications-context>.

Demo

Here is an interactive demo of the element:

API Reference

<my-notifications-list> is a custom element, which means that it can be used in any web app or website. Here is the reference for its API:

`,12),P=k("api-docs",{src:"custom-elements.json",only:"my-notifications-list"},null,-1),x=[w,P],R=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"elements/my-notifications-list.md","filePath":"elements/my-notifications-list.md"}'),C={name:"elements/my-notifications-list.md"},S=Object.assign(C,{setup(D){return h(async()=>{await i(()=>import("./chunks/api-docs.6GVAIKQB.js"),__vite__mapDeps([0,1,2])),await i(()=>import("./chunks/api-demo.Bsqmng5d.js"),__vite__mapDeps([3,1,2])),await i(()=>import("./chunks/profiles-context.CTn4nlkH.js"),__vite__mapDeps([4,2,5,6,7,8])),customElements.get("notifications-context")||await i(()=>import("./chunks/notifications-context.r1IJ36Jx.js"),__vite__mapDeps([9,6,7,5,10])),customElements.get("my-notifications-list")||await i(()=>import("./chunks/my-notifications-list.CVjqVNTy.js").then(p=>p.n),__vite__mapDeps([11,5,8,7,10]));const t=await m(),s=new E(t,Array.from(t.keys())[0]),n=new g(new u(s,"notifications_test")),a=new y,e=new f(a,"notifications_test"),l=await b(e);await a.create_notification(l);const o=new v(e);_(A` +</my-notifications-list>

WARNING

Like all the elements in this module, <my-notifications-list> needs to be placed inside an initialized <notifications-context>.

Demo

Here is an interactive demo of the element:

API Reference

<my-notifications-list> is a custom element, which means that it can be used in any web app or website. Here is the reference for its API:

`,12),w=k("api-docs",{src:"custom-elements.json",only:"my-notifications-list"},null,-1),P=[A,w],j=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"elements/my-notifications-list.md","filePath":"elements/my-notifications-list.md"}'),D={name:"elements/my-notifications-list.md"},M=Object.assign(D,{setup(C){return h(async()=>{await i(()=>import("./chunks/api-docs.6GVAIKQB.js"),__vite__mapDeps([0,1,2])),await i(()=>import("./chunks/api-demo.Bsqmng5d.js"),__vite__mapDeps([3,1,2])),await i(()=>import("./chunks/profiles-context.CTn4nlkH.js"),__vite__mapDeps([4,2,5,6,7,8])),customElements.get("notifications-context")||await i(()=>import("./chunks/notifications-context.r1IJ36Jx.js"),__vite__mapDeps([9,6,7,5,10])),customElements.get("my-notifications-list")||await i(()=>import("./chunks/my-notifications-list.CVjqVNTy.js").then(p=>p.n),__vite__mapDeps([11,5,8,7,10]));const t=await m(),s=new g(t,Array.from(t.keys())[0]),n=new E(new y(s,"notifications_test")),a=new u,e=new f(a,"notifications_test"),l=await b(e);await a.create_notification(l);const o=new _(e);v(x` - `,document.querySelector("element-demo"))}),(t,s)=>(c(),d("div",null,x))}});export{R as __pageData,S as default}; + `,document.querySelector("element-demo"))}),(t,s)=>(c(),d("div",null,P))}});export{j as __pageData,M as default}; diff --git a/assets/elements_my-notifications-list.md.WjAlQWd-.lean.js b/assets/elements_my-notifications-list.md.WjAlQWd-.lean.js new file mode 100644 index 00000000..69d22161 --- /dev/null +++ b/assets/elements_my-notifications-list.md.WjAlQWd-.lean.js @@ -0,0 +1,9 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/api-docs.6GVAIKQB.js","assets/chunks/api-viewer-tabs.bc9mZ4w5.js","assets/chunks/tslib.es6.kHcLnhpD.js","assets/chunks/api-demo.Bsqmng5d.js","assets/chunks/profiles-context.CTn4nlkH.js","assets/chunks/notifications-client.BPN4HXTv.js","assets/chunks/provide.C1Njoeja.js","assets/chunks/property.CxBSxXjq.js","assets/chunks/signal-watcher.Df3ivjzs.js","assets/chunks/notifications-context.r1IJ36Jx.js","assets/chunks/context.Dz-EYhNW.js","assets/chunks/my-notifications-list.CVjqVNTy.js"])))=>i.map(i=>d[i]); +import{y as h,X as i,o as c,c as d,a3 as r,j as k}from"./chunks/framework.D_KCp5cu.js";import{d as m,P as g,a as E,b as y,N as u,c as f,s as b,e as _,j as v,x}from"./chunks/notifications-client.BPN4HXTv.js";const A=r("",12),w=k("api-docs",{src:"custom-elements.json",only:"my-notifications-list"},null,-1),P=[A,w],j=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"elements/my-notifications-list.md","filePath":"elements/my-notifications-list.md"}'),D={name:"elements/my-notifications-list.md"},M=Object.assign(D,{setup(C){return h(async()=>{await i(()=>import("./chunks/api-docs.6GVAIKQB.js"),__vite__mapDeps([0,1,2])),await i(()=>import("./chunks/api-demo.Bsqmng5d.js"),__vite__mapDeps([3,1,2])),await i(()=>import("./chunks/profiles-context.CTn4nlkH.js"),__vite__mapDeps([4,2,5,6,7,8])),customElements.get("notifications-context")||await i(()=>import("./chunks/notifications-context.r1IJ36Jx.js"),__vite__mapDeps([9,6,7,5,10])),customElements.get("my-notifications-list")||await i(()=>import("./chunks/my-notifications-list.CVjqVNTy.js").then(p=>p.n),__vite__mapDeps([11,5,8,7,10]));const t=await m(),s=new g(t,Array.from(t.keys())[0]),n=new E(new y(s,"notifications_test")),a=new u,e=new f(a,"notifications_test"),l=await b(e);await a.create_notification(l);const o=new _(e);v(x` + + + + + + + `,document.querySelector("element-demo"))}),(t,s)=>(c(),d("div",null,P))}});export{j as __pageData,M as default}; diff --git a/assets/setup.md.BbCfTfU7.js b/assets/setup.md.Bsla9_vR.js similarity index 97% rename from assets/setup.md.BbCfTfU7.js rename to assets/setup.md.Bsla9_vR.js index 1f64bf09..fed0173e 100644 --- a/assets/setup.md.BbCfTfU7.js +++ b/assets/setup.md.Bsla9_vR.js @@ -10,7 +10,7 @@ import{_ as s,o as i,c as t,a3 as a}from"./chunks/framework.D_KCp5cu.js";const E }
  1. Import the <notifications-context> element and add it to your html wrapping the whole section of your page in which you are going to be placing the other elements from @holochain-open-dev/notifications:
js
// This can be placed in the index.js, at the top level of your web-app.
 import "@darksoil-studio/notifications/elements/notifications-context.js";

And then add the <notifications-context> element in your html:

html
<notifications-context>
   <!-- Add here other elements from @darksoil-studio/notifications -->
-</notifications-context>
  1. Attach the notificationsStore to the <notifications-context> element:
  • Go to this page, select the framework you are using, and follow its example.

You need to set the store property of it to your already instantiated NotificationsStore object:

  • If you are using some JS framework:
html
<notifications-context store={ notificationsStore}><!-- ... --></notifications-context>
html
<notifications-context [store]="notificationsStore"><!-- ... --></notifications-context>
html
<notifications-context :store="notificationsStore"><!-- ... --></notifications-context>
html
<notifications-context store={ notificationsStore}><!-- ... --></notifications-context>
html
<notifications-context .store=\${ notificationsStore}><!-- ... --></notifications-context>

OR

  • If you are not using any framework:
js
const contextElement = document.querySelector("notifications-context");
+</notifications-context>
  1. Attach the notificationsStore to the <notifications-context> element:
  • Go to this page, select the framework you are using, and follow its example.

You need to set the store property of it to your already instantiated NotificationsStore object:

  • If you are using some JS framework:
html
<notifications-context store={ notificationsStore}><!-- ... --></notifications-context>
html
<notifications-context [store]="notificationsStore"><!-- ... --></notifications-context>
html
<notifications-context :store="notificationsStore"><!-- ... --></notifications-context>
html
<notifications-context store={ notificationsStore}><!-- ... --></notifications-context>
html
<notifications-context .store=\${ notificationsStore}><!-- ... --></notifications-context>

OR

  • If you are not using any framework:
js
const contextElement = document.querySelector("notifications-context");
 contextElement.store = store;

You can read more about the context pattern here.

  1. Choose which elements you need and import them like this:
js
import "@darksoil-studio/notifications/dist/elements/notifications-context.js";

And then they are ready be used inside the <notifications-context> just like any other HTML tag.

This will define all the elements from this module in the global CustomElementsRegistry. You can read more about Custom Elements here.

  1. Add your preferred shoelace theme in your <head> tag:
html
  <head>
     <link rel="stylesheet" href="path/to/shoelace/dist/themes/light.css" />
   </head>

You can read more about how to initialize the shoelace theme here.


That's it! You have now integrated both the backend and the frontend for the profiles module.

Example

You can see a full working example of the UI working in here.

`,33),l=[n];function h(p,o,k,d,r,c){return i(),t("div",null,l)}const u=s(e,[["render",h]]);export{E as __pageData,u as default}; diff --git a/assets/setup.md.BbCfTfU7.lean.js b/assets/setup.md.Bsla9_vR.lean.js similarity index 100% rename from assets/setup.md.BbCfTfU7.lean.js rename to assets/setup.md.Bsla9_vR.lean.js diff --git a/backend/.rustc_info.json b/backend/.rustc_info.json index 75a60da7..29d12322 100644 --- a/backend/.rustc_info.json +++ b/backend/.rustc_info.json @@ -1 +1 @@ -{"rustc_fingerprint":228827764526643180,"outputs":{"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.78.0 (9b00956e5 2024-04-29)\nbinary: rustc\ncommit-hash: 9b00956e56009bab2aa15d7bff10916599e3d6d6\ncommit-date: 2024-04-29\nhost: x86_64-unknown-linux-gnu\nrelease: 1.78.0\nLLVM version: 18.1.2\n","stderr":""},"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/nix/store/1y7dp01zc2v40i7nnlq3gvh9clhnn6gp-rust-minimal-1.78.0\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""}},"successes":{}} \ No newline at end of file +{"rustc_fingerprint":228827764526643180,"outputs":{"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/nix/store/1y7dp01zc2v40i7nnlq3gvh9clhnn6gp-rust-minimal-1.78.0\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""},"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.78.0 (9b00956e5 2024-04-29)\nbinary: rustc\ncommit-hash: 9b00956e56009bab2aa15d7bff10916599e3d6d6\ncommit-date: 2024-04-29\nhost: x86_64-unknown-linux-gnu\nrelease: 1.78.0\nLLVM version: 18.1.2\n","stderr":""}},"successes":{}} \ No newline at end of file diff --git a/backend/release/.fingerprint/notifications-e5aac07f92719cb7/doc-lib-notifications b/backend/release/.fingerprint/notifications-e5aac07f92719cb7/doc-lib-notifications index 0576fb11..99bdab17 100644 --- a/backend/release/.fingerprint/notifications-e5aac07f92719cb7/doc-lib-notifications +++ b/backend/release/.fingerprint/notifications-e5aac07f92719cb7/doc-lib-notifications @@ -1 +1 @@ -a67c44e94cb20ba7 \ No newline at end of file +cfff3ffb08bae3c6 \ No newline at end of file diff --git a/backend/release/.fingerprint/notifications-e5aac07f92719cb7/doc-lib-notifications.json b/backend/release/.fingerprint/notifications-e5aac07f92719cb7/doc-lib-notifications.json index faca7abc..855a6e44 100644 --- a/backend/release/.fingerprint/notifications-e5aac07f92719cb7/doc-lib-notifications.json +++ b/backend/release/.fingerprint/notifications-e5aac07f92719cb7/doc-lib-notifications.json @@ -1 +1 @@ -{"rustc":1059629350237521597,"features":"[]","declared_features":"","target":16207655395948491080,"profile":827317455619428155,"path":6679987448018542023,"deps":[[387111284499874099,"notifications_integrity",false,7662534738792278920],[2511671586729554969,"serde",false,5622977613003389118],[11943346012921468802,"hdk",false,12246093799601513812]],"local":[{"Precalculated":"1727354775.686890243s (Cargo.toml)"}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file +{"rustc":1059629350237521597,"features":"[]","declared_features":"","target":16207655395948491080,"profile":827317455619428155,"path":6679987448018542023,"deps":[[387111284499874099,"notifications_integrity",false,7662534738792278920],[2511671586729554969,"serde",false,5622977613003389118],[11943346012921468802,"hdk",false,12246093799601513812]],"local":[{"Precalculated":"1727355037.583382410s (src/notifications_settings.rs)"}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/backend/release/.fingerprint/notifications_integrity-1e5391584e130462/doc-lib-notifications_integrity b/backend/release/.fingerprint/notifications_integrity-1e5391584e130462/doc-lib-notifications_integrity index b50f1623..3818ae78 100644 --- a/backend/release/.fingerprint/notifications_integrity-1e5391584e130462/doc-lib-notifications_integrity +++ b/backend/release/.fingerprint/notifications_integrity-1e5391584e130462/doc-lib-notifications_integrity @@ -1 +1 @@ -2cb86b513481f34d \ No newline at end of file +7beefc48f806f6a5 \ No newline at end of file diff --git a/backend/release/.fingerprint/notifications_integrity-1e5391584e130462/doc-lib-notifications_integrity.json b/backend/release/.fingerprint/notifications_integrity-1e5391584e130462/doc-lib-notifications_integrity.json index 72f1f2c5..86f3c080 100644 --- a/backend/release/.fingerprint/notifications_integrity-1e5391584e130462/doc-lib-notifications_integrity.json +++ b/backend/release/.fingerprint/notifications_integrity-1e5391584e130462/doc-lib-notifications_integrity.json @@ -1 +1 @@ -{"rustc":1059629350237521597,"features":"[]","declared_features":"","target":4732362699803001753,"profile":827317455619428155,"path":18249082568433463056,"deps":[[2511671586729554969,"serde",false,5622977613003389118],[14976145528757325593,"hdi",false,16821227236148336234]],"local":[{"Precalculated":"1727354775.687890246s (src/notification.rs)"}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file +{"rustc":1059629350237521597,"features":"[]","declared_features":"","target":4732362699803001753,"profile":827317455619428155,"path":18249082568433463056,"deps":[[2511671586729554969,"serde",false,5622977613003389118],[14976145528757325593,"hdi",false,16821227236148336234]],"local":[{"Precalculated":"1727355037.584382411s (zome.nix)"}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/elements/my-notifications-icon-button.html b/elements/my-notifications-icon-button.html index e43dc3e6..9e0ecd9a 100644 --- a/elements/my-notifications-icon-button.html +++ b/elements/my-notifications-icon-button.html @@ -18,19 +18,19 @@ - + -
Skip to content

<my-notifications-icon-button>

Usage

  1. If you haven't already, go through the setup for the module.

  2. Import the <my-notifications-icon-button> element somewhere in the javascript side of your web-app like this:

js
import '@holochain-open-dev/notifications/dist/elements/my-notifications-icon-button.js'
  1. Use it in the html side of your web-app like this:
html
<my-notifications-icon-button>
+    
Skip to content

<my-notifications-icon-button>

Usage

  1. If you haven't already, go through the setup for the module.

  2. Import the <my-notifications-icon-button> element somewhere in the javascript side of your web-app like this:

js
import '@holochain-open-dev/notifications/dist/elements/my-notifications-icon-button.js'
  1. Use it in the html side of your web-app like this:
html
<my-notifications-icon-button>
 </my-notifications-icon-button>
html
<my-notifications-icon-button>
 </my-notifications-icon-button>
html
<my-notifications-icon-button>
 </my-notifications-icon-button>
html
<my-notifications-icon-button>
 </my-notifications-icon-button>
html
<my-notifications-icon-button>
 </my-notifications-icon-button>

WARNING

Like all the elements in this module, <my-notifications-icon-button> needs to be placed inside an initialized <notifications-context>.

Demo

Here is an interactive demo of the element:

API Reference

<my-notifications-icon-button> is a custom element, which means that it can be used in any web app or website. Here is the reference for its API:

- + \ No newline at end of file diff --git a/elements/my-notifications-list.html b/elements/my-notifications-list.html index f090b9b1..2e55ca7e 100644 --- a/elements/my-notifications-list.html +++ b/elements/my-notifications-list.html @@ -18,19 +18,19 @@ - + -
Skip to content

<my-notifications-list>

Usage

  1. If you haven't already, go through the setup for the module.

  2. Import the <my-notifications-list> element somewhere in the javascript side of your web-app like this:

js
import '@holochain-open-dev/notifications/dist/elements/my-notifications-list.js'
  1. Use it in the html side of your web-app like this:
html
<my-notifications-list>
+    
Skip to content

<my-notifications-list>

Usage

  1. If you haven't already, go through the setup for the module.

  2. Import the <my-notifications-list> element somewhere in the javascript side of your web-app like this:

js
import '@holochain-open-dev/notifications/dist/elements/my-notifications-list.js'
  1. Use it in the html side of your web-app like this:
html
<my-notifications-list>
 </my-notifications-list>
html
<my-notifications-list>
 </my-notifications-list>
html
<my-notifications-list>
 </my-notifications-list>
html
<my-notifications-list>
 </my-notifications-list>
html
<my-notifications-list>
 </my-notifications-list>

WARNING

Like all the elements in this module, <my-notifications-list> needs to be placed inside an initialized <notifications-context>.

Demo

Here is an interactive demo of the element:

API Reference

<my-notifications-list> is a custom element, which means that it can be used in any web app or website. Here is the reference for its API:

- + \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index 0f6bc022..4ac3cc07 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"elements_my-notifications-icon-button.md":"DwaJGq2r","public_backend_doc_static.files_sourceserif4-license-3bb119e13b1258b7.md":"D-lAWT1L","setup.md":"BbCfTfU7","notifications-store.md":"eKWiDb_Z","elements_my-notifications-list.md":"CYncYSv7","index.md":"DOAXyHzi","introduction.md":"DJmNO5DN"} +{"index.md":"DOAXyHzi","introduction.md":"DJmNO5DN","elements_my-notifications-icon-button.md":"CXAvVJo8","notifications-store.md":"eKWiDb_Z","public_backend_doc_static.files_sourceserif4-license-3bb119e13b1258b7.md":"D-lAWT1L","setup.md":"Bsla9_vR","elements_my-notifications-list.md":"WjAlQWd-"} diff --git a/index.html b/index.html index 6b7b5f5c..22b99b32 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@
Skip to content

@darksoil-studio/notifications

Notifications zome for holochain apps

Plug-and-play notifications management for your hApps

- + \ No newline at end of file diff --git a/introduction.html b/introduction.html index 6582e563..94a9c4d6 100644 --- a/introduction.html +++ b/introduction.html @@ -19,7 +19,7 @@
Skip to content

@darksoil-studio/notifications

This module follows the holochain-open-dev pattern of developing holochain modules. Read its documentation to understand more about its motivation and the big picture.

To integrate this module into your application:

- + \ No newline at end of file diff --git a/notifications-store.html b/notifications-store.html index 91a3e601..ddc62e93 100644 --- a/notifications-store.html +++ b/notifications-store.html @@ -25,7 +25,7 @@ }; const store = new NotificationsStore(new NotificationsClient(appClient, 'my-role-name'), config);

Learn how to setup the AppClient object here.

Learn more about the stores and how to integrate them in different frameworks here.

- + \ No newline at end of file diff --git a/public/backend/doc/static.files/SourceSerif4-LICENSE-3bb119e13b1258b7.html b/public/backend/doc/static.files/SourceSerif4-LICENSE-3bb119e13b1258b7.html index 7b20a15f..21c92115 100644 --- a/public/backend/doc/static.files/SourceSerif4-LICENSE-3bb119e13b1258b7.html +++ b/public/backend/doc/static.files/SourceSerif4-LICENSE-3bb119e13b1258b7.html @@ -19,7 +19,7 @@
Skip to content

Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. Copyright 2014 - 2023 Adobe (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.

This Font Software is licensed under the SIL Open Font License, Version 1.1.

This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL


SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007

PREAMBLE The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.

The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.

DEFINITIONS "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the copyright statement(s).

"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.

"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:

  1. Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.

  2. Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.

  3. No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.

  4. The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.

  5. The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.

TERMINATION This license becomes null and void if any of the above conditions are not met.

DISCLAIMER THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.

- + \ No newline at end of file diff --git a/setup.html b/setup.html index e1930660..7f7cdaf8 100644 --- a/setup.html +++ b/setup.html @@ -12,7 +12,7 @@ - + @@ -30,11 +30,11 @@ }
  1. Import the <notifications-context> element and add it to your html wrapping the whole section of your page in which you are going to be placing the other elements from @holochain-open-dev/notifications:
js
// This can be placed in the index.js, at the top level of your web-app.
 import "@darksoil-studio/notifications/elements/notifications-context.js";

And then add the <notifications-context> element in your html:

html
<notifications-context>
   <!-- Add here other elements from @darksoil-studio/notifications -->
-</notifications-context>
  1. Attach the notificationsStore to the <notifications-context> element:
  • Go to this page, select the framework you are using, and follow its example.

You need to set the store property of it to your already instantiated NotificationsStore object:

  • If you are using some JS framework:
html
<notifications-context store={ notificationsStore}><!-- ... --></notifications-context>
html
<notifications-context [store]="notificationsStore"><!-- ... --></notifications-context>
html
<notifications-context :store="notificationsStore"><!-- ... --></notifications-context>
html
<notifications-context store={ notificationsStore}><!-- ... --></notifications-context>
html
<notifications-context .store=${ notificationsStore}><!-- ... --></notifications-context>

OR

  • If you are not using any framework:
js
const contextElement = document.querySelector("notifications-context");
+</notifications-context>
  1. Attach the notificationsStore to the <notifications-context> element:
  • Go to this page, select the framework you are using, and follow its example.

You need to set the store property of it to your already instantiated NotificationsStore object:

  • If you are using some JS framework:
html
<notifications-context store={ notificationsStore}><!-- ... --></notifications-context>
html
<notifications-context [store]="notificationsStore"><!-- ... --></notifications-context>
html
<notifications-context :store="notificationsStore"><!-- ... --></notifications-context>
html
<notifications-context store={ notificationsStore}><!-- ... --></notifications-context>
html
<notifications-context .store=${ notificationsStore}><!-- ... --></notifications-context>

OR

  • If you are not using any framework:
js
const contextElement = document.querySelector("notifications-context");
 contextElement.store = store;

You can read more about the context pattern here.

  1. Choose which elements you need and import them like this:
js
import "@darksoil-studio/notifications/dist/elements/notifications-context.js";

And then they are ready be used inside the <notifications-context> just like any other HTML tag.

This will define all the elements from this module in the global CustomElementsRegistry. You can read more about Custom Elements here.

  1. Add your preferred shoelace theme in your <head> tag:
html
  <head>
     <link rel="stylesheet" href="path/to/shoelace/dist/themes/light.css" />
   </head>

You can read more about how to initialize the shoelace theme here.


That's it! You have now integrated both the backend and the frontend for the profiles module.

Example

You can see a full working example of the UI working in here.

- + \ No newline at end of file