diff --git a/src/doc.ts b/src/doc.ts index e1a2f8c..1a6fdb4 100644 --- a/src/doc.ts +++ b/src/doc.ts @@ -80,5 +80,6 @@ export type Done = { export function getData(userY: UserY) { const ydoing: Y.Array = userY.ydoc.getArray("doing"); const ydone: Y.Array = userY.ydoc.getArray("done"); - return { ydoing, ydone }; + const yname: Y.Text = userY.ydoc.getText("name"); + return { ydoing, ydone, yname }; } diff --git a/src/lib/Amigxs.svelte b/src/lib/Amigxs.svelte index 3986cdc..da6a5e3 100644 --- a/src/lib/Amigxs.svelte +++ b/src/lib/Amigxs.svelte @@ -1,6 +1,11 @@ + changeName(e.currentTarget.value)} + placeholder="tu nombre" +/>
@@ -27,7 +50,11 @@
diff --git a/src/lib/Others.svelte b/src/lib/Others.svelte index 532a62c..bf960cd 100644 --- a/src/lib/Others.svelte +++ b/src/lib/Others.svelte @@ -1,37 +1,26 @@ -{#if allDoing} +{#if allData}