workspace: add eslint-config package (#510)

This commit is contained in:
undefined authored and GitHub committed 2023-02-09 23:06:03 +08:00
1 parent e7945a104f
commit 65311529bd
28 files changed
+230 -267

No files matched your search

@@ -120,7 +120,7 @@ export async function previewFile(ev?, type = '') {
if (ev) {
const link = $(ev.currentTarget).find('a').attr('href');
if (!link) return null;
if (!type) type = ev.currentTarget.getAttribute('data-preview');
type ||= ev.currentTarget.getAttribute('data-preview');
const ext = filename.split('.').pop();
if (['zip', 'rar', '7z'].includes(ext) || filesize > 8 * 1024 * 1024) {
const action = await new ActionDialog({