fix: fix lint warnings (#2976)

This commit is contained in:
ねらひかだ 2024-02-09 19:05:35 +09:00 committed by GitHub
parent dfad87386f
commit fe5ca74aa1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 9 deletions

View File

@ -191,7 +191,12 @@ export default {
action(overwrite, rename); action(overwrite, rename);
}, },
itemClick: function (event) { itemClick: function (event) {
if (!(event.ctrlKey || event.metaKey) && this.singleClick && !this.$store.state.multiple) this.open(); if (
!(event.ctrlKey || event.metaKey) &&
this.singleClick &&
!this.$store.state.multiple
)
this.open();
else this.click(event); else this.click(event);
}, },
click: function (event) { click: function (event) {

View File

@ -12,7 +12,7 @@
<div <div
class="card-action" class="card-action"
style="display: flex; align-items: center; justify-content: space-between;" style="display: flex; align-items: center; justify-content: space-between"
> >
<template v-if="user.perm.create"> <template v-if="user.perm.create">
<button <button
@ -20,7 +20,7 @@
@click="$refs.fileList.createDir()" @click="$refs.fileList.createDir()"
:aria-label="$t('sidebar.newFolder')" :aria-label="$t('sidebar.newFolder')"
:title="$t('sidebar.newFolder')" :title="$t('sidebar.newFolder')"
style="justify-self: left;" style="justify-self: left"
> >
<span>{{ $t("sidebar.newFolder") }}</span> <span>{{ $t("sidebar.newFolder") }}</span>
</button> </button>

View File

@ -133,14 +133,13 @@ export default {
: this.req.items[this.selected[0]].isDir) : this.req.items[this.selected[0]].isDir)
); );
}, },
resolution: function() { resolution: function () {
if (this.selectedCount === 1) { if (this.selectedCount === 1) {
const selectedItem = this.req.items[this.selected[0]]; const selectedItem = this.req.items[this.selected[0]];
if (selectedItem && selectedItem.type === 'image') { if (selectedItem && selectedItem.type === "image") {
return selectedItem.resolution; return selectedItem.resolution;
} }
} } else if (this.req && this.req.type === "image") {
else if (this.req && this.req.type === 'image') {
return this.req.resolution; return this.req.resolution;
} }
return null; return null;

View File

@ -11,7 +11,7 @@
<div <div
class="card-action" class="card-action"
style="display: flex; align-items: center; justify-content: space-between;" style="display: flex; align-items: center; justify-content: space-between"
> >
<template v-if="user.perm.create"> <template v-if="user.perm.create">
<button <button
@ -19,7 +19,7 @@
@click="$refs.fileList.createDir()" @click="$refs.fileList.createDir()"
:aria-label="$t('sidebar.newFolder')" :aria-label="$t('sidebar.newFolder')"
:title="$t('sidebar.newFolder')" :title="$t('sidebar.newFolder')"
style="justify-self: left;" style="justify-self: left"
> >
<span>{{ $t("sidebar.newFolder") }}</span> <span>{{ $t("sidebar.newFolder") }}</span>
</button> </button>