From 33077a1148a158432eeb629abb9de620a1071aba Mon Sep 17 00:00:00 2001 From: Borja Robert Date: Mon, 26 Sep 2022 14:05:45 +0200 Subject: [PATCH] =?UTF-8?q?ya=20carga=20im=C3=A1genes,=20les=20pone=20capt?= =?UTF-8?q?ion=20y=20las=20pasa=20al=20preview=20correctamente,=20al=20men?= =?UTF-8?q?os=20para=20colabora?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/Counter.svelte | 107 --------------------------------- src/lib/form/Form.svelte | 29 ++++++++- src/lib/form/Organized.svelte | 104 ++++++++++++++++++++++++++++++++ src/lib/preview/Preview.svelte | 50 ++++++++++++++- src/lib/stores/store.js | 2 + 5 files changed, 182 insertions(+), 110 deletions(-) delete mode 100644 src/lib/Counter.svelte create mode 100644 src/lib/form/Organized.svelte diff --git a/src/lib/Counter.svelte b/src/lib/Counter.svelte deleted file mode 100644 index dd7aa09..0000000 --- a/src/lib/Counter.svelte +++ /dev/null @@ -1,107 +0,0 @@ - - -
- - -
-
- - {Math.floor($displayed_count)} -
-
- - -
- - diff --git a/src/lib/form/Form.svelte b/src/lib/form/Form.svelte index c87d111..e2d32ee 100644 --- a/src/lib/form/Form.svelte +++ b/src/lib/form/Form.svelte @@ -1,9 +1,21 @@ @@ -80,6 +92,10 @@ +
+ + +
@@ -118,4 +134,13 @@ font-size: 1.1rem; cursor: pointer; } + + .upload { + max-width: 48px; + cursor: pointer; + } + + .chan { + cursor: pointer; + } diff --git a/src/lib/form/Organized.svelte b/src/lib/form/Organized.svelte new file mode 100644 index 0000000..b55c8e5 --- /dev/null +++ b/src/lib/form/Organized.svelte @@ -0,0 +1,104 @@ + + +
+ {#if $organizedBy[0]} + {#each $organizedBy as organization, i} +
+
{ + removeOrganizer(i); + }} + > + X +
+ + +
+ {/each} + {/if} +
+ + + onFileSelected(e)} + bind:this={fileinput} +/> + + diff --git a/src/lib/preview/Preview.svelte b/src/lib/preview/Preview.svelte index 99072a3..70db292 100644 --- a/src/lib/preview/Preview.svelte +++ b/src/lib/preview/Preview.svelte @@ -1,6 +1,15 @@