diff options
| author | Pitu <[email protected]> | 2020-12-24 23:45:16 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2020-12-24 23:45:16 +0900 |
| commit | fb2c27086f570fec60f4d52dcc9ca80e53186293 (patch) | |
| tree | 4c4fd056c293b8e0de632023ef19fdea95c009fa /src/site/components/image-modal/ImageInfo.vue | |
| parent | Merge pull request #228 from Zephyrrus/begone_trailing_commas (diff) | |
| download | host.fuwn.me-fb2c27086f570fec60f4d52dcc9ca80e53186293.tar.xz host.fuwn.me-fb2c27086f570fec60f4d52dcc9ca80e53186293.zip | |
Fix ESLint rules once and for all
Diffstat (limited to 'src/site/components/image-modal/ImageInfo.vue')
| -rw-r--r-- | src/site/components/image-modal/ImageInfo.vue | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/site/components/image-modal/ImageInfo.vue b/src/site/components/image-modal/ImageInfo.vue index 73b6339..07c87b5 100644 --- a/src/site/components/image-modal/ImageInfo.vue +++ b/src/site/components/image-modal/ImageInfo.vue @@ -97,12 +97,12 @@ <div class="divider is-lolisafe has-text-light"> Tags </div> - <Taginfo :imageId="file.id" :imageTags="tags" /> + <Taginfo :image-id="file.id" :image-tags="tags" /> <div class="divider is-lolisafe has-text-light"> Albums </div> - <Albuminfo :imageId="file.id" :imageAlbums="albums" :albums="tinyDetails" /> + <Albuminfo :image-id="file.id" :image-albums="albums" :albums="tinyDetails" /> </div> </div> </div> @@ -122,21 +122,21 @@ export default { }, props: { file: { - type: Object, - default: () => ({}) + 'type': Object, + 'default': () => ({}) }, albums: { - type: Array, - default: () => ([]) + 'type': Array, + 'default': () => ([]) }, tags: { - type: Array, - default: () => ([]) + 'type': Array, + 'default': () => ([]) } }, computed: mapState({ - images: (state) => state.images, - tinyDetails: (state) => state.albums.tinyDetails + images: state => state.images, + tinyDetails: state => state.albums.tinyDetails }), methods: { formatBytes(bytes, decimals = 2) { @@ -148,6 +148,7 @@ export default { const i = Math.floor(Math.log(bytes) / Math.log(k)); + // eslint-disable-next-line no-mixed-operators return `${parseFloat((bytes / k ** i).toFixed(dm))} ${sizes[i]}`; }, isVideo(type) { |