resuelve cosillas de jsdoc

pull/3/head
Borja Robert 2 years ago
parent 4ffcdb3a23
commit fc8a047f2f

@ -26,7 +26,9 @@
console.log('no hay editor'); console.log('no hay editor');
return; return;
} }
if (editor && editor.firstChild !== null) {
$content = editor.firstChild.innerHTML; $content = editor.firstChild.innerHTML;
}
}; };
const downloadCanvas = async () => { const downloadCanvas = async () => {
@ -134,13 +136,4 @@
font-size: 1.1rem; font-size: 1.1rem;
cursor: pointer; cursor: pointer;
} }
.upload {
max-width: 48px;
cursor: pointer;
}
.chan {
cursor: pointer;
}
</style> </style>

@ -11,9 +11,9 @@
canvas canvas
} from '$lib/stores/store'; } from '$lib/stores/store';
let fileinput, avatar; /** @type {HTMLInputElement} */ let fileinput;
const onFileSelected = (e) => { const onFileSelected = (/** @type {Event} */ e) => {
let image = e.target.files[0]; let image = e.target.files[0];
let reader = new FileReader(); let reader = new FileReader();
reader.readAsDataURL(image); reader.readAsDataURL(image);
@ -22,7 +22,7 @@
}; };
}; };
const removeOrganizer = (index) => { const removeOrganizer = (/** @type {number} */ index) => {
if (index > -1) { if (index > -1) {
$organizedBy.splice(index, 1); $organizedBy.splice(index, 1);
$organizedBy = $organizedBy; $organizedBy = $organizedBy;
@ -89,10 +89,13 @@
.remove { .remove {
position: absolute; position: absolute;
top: 0px; top: -4px;
right: 0.25rem; right: -0.25rem;
color: red; color: red;
cursor: pointer; cursor: pointer;
background-color: white;
padding: 0 0.25rem;
/* box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.5); */
} }
input { input {
display: block; display: block;

@ -11,9 +11,9 @@
canvas canvas
} from '$lib/stores/store'; } from '$lib/stores/store';
let newdate = ''; /** @type {Object<string,string>} */ let newdate = {};
const convertDateTime = (datetime) => { const convertDateTime = (/** @type {string | undefined} */ datetime) => {
if (datetime == undefined) { if (datetime == undefined) {
return { return {
date: '', date: '',
@ -41,15 +41,15 @@
<div class="title">{$title}</div> <div class="title">{$title}</div>
<div class="subtitle">{$subtitle}</div> <div class="subtitle">{$subtitle}</div>
<div class="content">{@html $content}</div> <div class="content">{@html $content}</div>
{#if newdate}<div class="date">{newdate.date}</div>{/if} {#if newdate.date}<div class="date">{newdate.date}</div>{/if}
{#if newdate}<div class="time">{newdate.time}</div>{/if} {#if newdate.time}<div class="time">{newdate.time}</div>{/if}
<div class="address">{$address}</div> <div class="address">{$address}</div>
{#if $organizedBy[0]} {#if $organizedBy[0]}
<div class="imagetitle">Organiza:</div> <div class="imagetitle">Organiza:</div>
<div class="organized-by"> <div class="organized-by">
{#each $organizedBy as organization, i} {#each $organizedBy as organization, i}
<div class="organization"> <div class="organization">
<img src={organization.image} /> <img src={organization.image} alt={organization.text} />
<div class="caption">{organization.text}</div> <div class="caption">{organization.text}</div>
</div> </div>
{/each} {/each}

Loading…
Cancel
Save