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

@ -11,9 +11,9 @@
canvas
} 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 reader = new FileReader();
reader.readAsDataURL(image);
@ -22,7 +22,7 @@
};
};
const removeOrganizer = (index) => {
const removeOrganizer = (/** @type {number} */ index) => {
if (index > -1) {
$organizedBy.splice(index, 1);
$organizedBy = $organizedBy;
@ -89,10 +89,13 @@
.remove {
position: absolute;
top: 0px;
right: 0.25rem;
top: -4px;
right: -0.25rem;
color: red;
cursor: pointer;
background-color: white;
padding: 0 0.25rem;
/* box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.5); */
}
input {
display: block;

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

Loading…
Cancel
Save