![Shaun Wu](/assets/img/avatar_default.png)
Had to make various other changes due to incompatibilities. - Use the new `lit` package instead of `lit-html` or `lit-element` - Drop `haunted` since it breaks the rules by specifying `type: module` but then doesn't import with file extensions - Use Sass Dart instead of node-sass (fixes #2445) - Upgrade Karma
18 lines
592 B
JavaScript
18 lines
592 B
JavaScript
import { __ } from '../i18n';
|
|
import { html } from "lit";
|
|
import { renderAvatar } from './../templates/directives/avatar';
|
|
|
|
|
|
export default (o) => {
|
|
const i18n_uploading = __('Uploading file:')
|
|
return html`
|
|
<div class="message chat-msg" data-isodate="${o.time}" data-msgid="${o.msgid}">
|
|
${ renderAvatar(this) }
|
|
<div class="chat-msg__content">
|
|
<span class="chat-msg__text">${i18n_uploading} <strong>${o.filename}</strong>, ${o.filesize}</span>
|
|
<progress value="${o.progress}"/>
|
|
</div>
|
|
</div>
|
|
`;
|
|
}
|