mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 16:32:31 +01:00
fix (linter): js lint and check
This commit is contained in:
parent
d930263401
commit
efa62c092b
3 changed files with 2 additions and 3 deletions
|
|
@ -37,7 +37,7 @@ class ModalComponent extends HTMLElement {
|
||||||
await loadCSS(import.meta.url, "./modal.css");
|
await loadCSS(import.meta.url, "./modal.css");
|
||||||
}
|
}
|
||||||
|
|
||||||
trigger($node, { withButtonsLeft = null, withButtonsRight = null, targetHeight = 0, onQuit = (_a, _b) => Promise.resolve() }) {
|
trigger($node, { withButtonsLeft = null, withButtonsRight = null, onQuit = (_a, _b) => Promise.resolve() }) {
|
||||||
const close$ = new rxjs.Subject();
|
const close$ = new rxjs.Subject();
|
||||||
|
|
||||||
// feature: build the dom
|
// feature: build the dom
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,6 @@ function componentLeft(render, { $scroll, getSelectionLength$ }) {
|
||||||
componentShare(createModal({
|
componentShare(createModal({
|
||||||
withButtonsRight: null,
|
withButtonsRight: null,
|
||||||
withButtonsLeft: null,
|
withButtonsLeft: null,
|
||||||
targetHeight: 315,
|
|
||||||
}), { path: expandSelection()[0].path });
|
}), { path: expandSelection()[0].path });
|
||||||
})),
|
})),
|
||||||
onClick(qs($page, `[data-action="tag"]`)).pipe(rxjs.tap(() => {
|
onClick(qs($page, `[data-action="tag"]`)).pipe(rxjs.tap(() => {
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ export default async function(render, { mime, getDownloadUrl = nop, getFilename
|
||||||
if (!loader) throw new TypeError(`unsupported mimetype "${mime}"`);
|
if (!loader) throw new TypeError(`unsupported mimetype "${mime}"`);
|
||||||
const [, url] = loader;
|
const [, url] = loader;
|
||||||
const module = await import(url);
|
const module = await import(url);
|
||||||
let table = new (await module.default(ITable))(response, { $menubar });
|
let table = new (await module.default(ITable))(response, { $menubar });
|
||||||
if (typeof table.then === "function") table = await table;
|
if (typeof table.then === "function") table = await table;
|
||||||
STATE.header = table.getHeader();
|
STATE.header = table.getHeader();
|
||||||
STATE.body = table.getBody();
|
STATE.body = table.getBody();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue