diff options
Diffstat (limited to 'src/site/components/grid')
| -rw-r--r-- | src/site/components/grid/Grid.vue | 36 | ||||
| -rw-r--r-- | src/site/components/grid/waterfall/Waterfall.vue | 26 | ||||
| -rw-r--r-- | src/site/components/grid/waterfall/WaterfallItem.vue | 2 |
3 files changed, 32 insertions, 32 deletions
diff --git a/src/site/components/grid/Grid.vue b/src/site/components/grid/Grid.vue index 1fa3167..3a15335 100644 --- a/src/site/components/grid/Grid.vue +++ b/src/site/components/grid/Grid.vue @@ -162,37 +162,37 @@ import ImageInfo from '~/components/image-modal/ImageInfo.vue'; export default { components: { Waterfall, - ImageInfo, + ImageInfo }, props: { files: { type: Array, - default: () => [], + default: () => [] }, total: { type: Number, - default: 0, + default: 0 }, fixed: { type: Boolean, - default: false, + default: false }, isPublic: { type: Boolean, - default: false, + default: false }, width: { type: Number, - default: 150, + default: 150 }, enableSearch: { type: Boolean, - default: true, + default: true }, enableToolbar: { type: Boolean, - default: true, - }, + default: true + } }, data() { return { @@ -208,15 +208,15 @@ export default { modalData: { file: null, tags: null, - albums: null, - }, + albums: null + } }; }, computed: { ...mapState({ user: (state) => state.auth.user, albums: (state) => state.albums.tinyDetails, - images: (state) => state.images, + images: (state) => state.images }), blank() { // eslint-disable-next-line global-require, import/no-unresolved @@ -224,7 +224,7 @@ export default { }, gridFiles() { return (this.files || []).filter((v) => !v.hideFromList); - }, + } }, created() { // TODO: Create a middleware for this @@ -251,7 +251,7 @@ export default { } catch (e) { this.$store.dispatch('alert/set', { text: e.message, error: true }, { root: true }); } - }, + } }); }, isAlbumSelected(id) { @@ -279,12 +279,12 @@ export default { if (add) { response = await this.$store.dispatch('images/addToAlbum', { albumId: id, - fileId: this.showingModalForFile.id, + fileId: this.showingModalForFile.id }); } else { response = await this.$store.dispatch('images/removeFromAlbum', { albumId: id, - fileId: this.showingModalForFile.id, + fileId: this.showingModalForFile.id }); } @@ -332,8 +332,8 @@ export default { }, isHovered(id) { return this.hoveredItems.includes(id); - }, - }, + } + } }; </script> diff --git a/src/site/components/grid/waterfall/Waterfall.vue b/src/site/components/grid/waterfall/Waterfall.vue index 762cbbd..af2af3f 100644 --- a/src/site/components/grid/waterfall/Waterfall.vue +++ b/src/site/components/grid/waterfall/Waterfall.vue @@ -20,29 +20,29 @@ const imagesloaded = isBrowser ? require('imagesloaded') : null; export default { name: 'Waterfall', components: { - WaterfallItem, + WaterfallItem }, props: { options: { type: Object, - default: () => {}, + default: () => {} }, items: { type: Array, - default: () => [], + default: () => [] }, itemWidth: { type: Number, - default: 150, + default: 150 }, gutterWidth: { type: Number, - default: 10, + default: 10 }, gutterHeight: { type: Number, - default: 4, - }, + default: 4 + } }, mounted() { this.initializeMasonry(); @@ -62,7 +62,7 @@ export default { node, () => { this.masonry.layout(); - }, + } ); }, performLayout() { @@ -101,7 +101,7 @@ export default { removed, appended, prepended, - moved, + moved }; }, initializeMasonry() { @@ -111,8 +111,8 @@ export default { { columnWidth: this.itemWidth, gutter: this.gutterWidth, - ...this.options, - }, + ...this.options + } ); this.domChildren = this.getNewDomChildren(); } @@ -122,8 +122,8 @@ export default { const children = this.options && this.options.itemSelector ? node.querySelectorAll(this.options.itemSelector) : node.children; return Array.prototype.slice.call(children); - }, - }, + } + } }; </script> diff --git a/src/site/components/grid/waterfall/WaterfallItem.vue b/src/site/components/grid/waterfall/WaterfallItem.vue index c5cade1..2a18606 100644 --- a/src/site/components/grid/waterfall/WaterfallItem.vue +++ b/src/site/components/grid/waterfall/WaterfallItem.vue @@ -5,6 +5,6 @@ </template> <script> export default { - name: 'WaterfallItem', + name: 'WaterfallItem' }; </script> |