mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-30 17:46:41 +08:00
fix (linter): js lint and check
This commit is contained in:
@ -37,7 +37,7 @@ class ModalComponent extends HTMLElement {
|
||||
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();
|
||||
|
||||
// feature: build the dom
|
||||
|
||||
@ -134,7 +134,6 @@ function componentLeft(render, { $scroll, getSelectionLength$ }) {
|
||||
componentShare(createModal({
|
||||
withButtonsRight: null,
|
||||
withButtonsLeft: null,
|
||||
targetHeight: 315,
|
||||
}), { path: expandSelection()[0].path });
|
||||
})),
|
||||
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}"`);
|
||||
const [, url] = loader;
|
||||
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;
|
||||
STATE.header = table.getHeader();
|
||||
STATE.body = table.getBody();
|
||||
|
||||
Reference in New Issue
Block a user