aboutsummaryrefslogtreecommitdiff
path: root/src/site/components/image-modal
diff options
context:
space:
mode:
authorZephyrrus <[email protected]>2020-12-24 10:40:50 +0200
committerZephyrrus <[email protected]>2020-12-24 10:40:50 +0200
commit90001c2df56d58e69fd199a518ae7f3e4ed327fc (patch)
treeac601537b5f464a1b03b084e5139e460f42e3473 /src/site/components/image-modal
parentchore: update lock files (diff)
downloadhost.fuwn.me-90001c2df56d58e69fd199a518ae7f3e4ed327fc.tar.xz
host.fuwn.me-90001c2df56d58e69fd199a518ae7f3e4ed327fc.zip
chore: remove trailing commas
Diffstat (limited to 'src/site/components/image-modal')
-rw-r--r--src/site/components/image-modal/AlbumInfo.vue20
-rw-r--r--src/site/components/image-modal/ImageInfo.vue16
-rw-r--r--src/site/components/image-modal/TagInfo.vue16
3 files changed, 26 insertions, 26 deletions
diff --git a/src/site/components/image-modal/AlbumInfo.vue b/src/site/components/image-modal/AlbumInfo.vue
index 8974a11..17c375a 100644
--- a/src/site/components/image-modal/AlbumInfo.vue
+++ b/src/site/components/image-modal/AlbumInfo.vue
@@ -31,21 +31,21 @@ export default {
props: {
imageId: {
type: Number,
- default: 0,
+ default: 0
},
imageAlbums: {
type: Array,
- default: () => [],
+ default: () => []
},
albums: {
type: Array,
- default: () => [],
- },
+ default: () => []
+ }
},
data() {
return {
selectedOptions: [],
- orderedAlbums: [],
+ orderedAlbums: []
};
},
created() {
@@ -65,7 +65,7 @@ export default {
return selectedA ? -1 : 1;
}
return a.name.localeCompare(b.name);
- },
+ }
);
},
isAlbumSelected(id) {
@@ -78,15 +78,15 @@ export default {
if (this.selectedOptions.indexOf(id) > -1) {
this.$handler.executeAction('images/addToAlbum', {
albumId: id,
- fileId: this.imageId,
+ fileId: this.imageId
});
} else {
this.$handler.executeAction('images/removeFromAlbum', {
albumId: id,
- fileId: this.imageId,
+ fileId: this.imageId
});
}
- },
- },
+ }
+ }
};
</script>
diff --git a/src/site/components/image-modal/ImageInfo.vue b/src/site/components/image-modal/ImageInfo.vue
index 0562e1f..73b6339 100644
--- a/src/site/components/image-modal/ImageInfo.vue
+++ b/src/site/components/image-modal/ImageInfo.vue
@@ -118,25 +118,25 @@ import Taginfo from './TagInfo.vue';
export default {
components: {
Taginfo,
- Albuminfo,
+ Albuminfo
},
props: {
file: {
type: Object,
- default: () => ({}),
+ default: () => ({})
},
albums: {
type: Array,
- default: () => ([]),
+ default: () => ([])
},
tags: {
type: Array,
- default: () => ([]),
- },
+ default: () => ([])
+ }
},
computed: mapState({
images: (state) => state.images,
- tinyDetails: (state) => state.albums.tinyDetails,
+ tinyDetails: (state) => state.albums.tinyDetails
}),
methods: {
formatBytes(bytes, decimals = 2) {
@@ -152,8 +152,8 @@ export default {
},
isVideo(type) {
return type.startsWith('video');
- },
- },
+ }
+ }
};
</script>
diff --git a/src/site/components/image-modal/TagInfo.vue b/src/site/components/image-modal/TagInfo.vue
index a337148..59d01f5 100644
--- a/src/site/components/image-modal/TagInfo.vue
+++ b/src/site/components/image-modal/TagInfo.vue
@@ -23,24 +23,24 @@ export default {
props: {
imageId: {
type: Number,
- default: 0,
+ default: 0
},
imageTags: {
type: Array,
- default: () => [],
- },
+ default: () => []
+ }
},
data() {
return {
- filteredTags: [],
+ filteredTags: []
};
},
computed: {
...mapState({
- tags: (state) => state.tags.tagsList,
+ tags: (state) => state.tags.tagsList
}),
selectedTags() { return this.imageTags.map((e) => e.name); },
- lowercaseTags() { return this.imageTags.map((e) => e.name.toLowerCase()); },
+ lowercaseTags() { return this.imageTags.map((e) => e.name.toLowerCase()); }
},
methods: {
getFilteredTags(str) {
@@ -78,8 +78,8 @@ export default {
},
tagRemoved(tag) {
this.$handler.executeAction('images/removeTag', { fileId: this.imageId, tagName: tag });
- },
- },
+ }
+ }
};
</script>