From 3b164302cdac473ee720410ed694a053d74b0527 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Mon, 26 Feb 2018 20:07:29 +0100 Subject: [PATCH 1/7] Install masonry dependency --- front/package.json | 2 ++ front/src/main.js | 3 +++ 2 files changed, 5 insertions(+) diff --git a/front/package.json b/front/package.json index 042e332d0..d6bdb8c56 100644 --- a/front/package.json +++ b/front/package.json @@ -20,6 +20,7 @@ "js-logger": "^1.3.0", "jwt-decode": "^2.2.0", "lodash": "^4.17.4", + "masonry-layout": "^4.2.1", "moment": "^2.20.1", "moxios": "^0.4.0", "raven-js": "^3.22.3", @@ -27,6 +28,7 @@ "showdown": "^1.8.6", "vue": "^2.3.3", "vue-lazyload": "^1.1.4", + "vue-masonry": "^0.10.16", "vue-router": "^2.3.1", "vue-upload-component": "^2.7.4", "vuedraggable": "^2.14.1", diff --git a/front/src/main.js b/front/src/main.js index 2e351310a..caf924188 100644 --- a/front/src/main.js +++ b/front/src/main.js @@ -9,6 +9,7 @@ import Vue from 'vue' import App from './App' import router from './router' import axios from 'axios' +import {VueMasonryPlugin} from 'vue-masonry' import VueLazyload from 'vue-lazyload' import store from './store' import config from './config' @@ -24,7 +25,9 @@ window.$ = window.jQuery = require('jquery') // play really nice with webpack and I want to get rid of Google Fonts // require('./semantic/semantic.css') require('semantic-ui-css/semantic.js') +require('masonry-layout') +Vue.use(VueMasonryPlugin) Vue.use(VueLazyload) Vue.config.productionTip = false From ce1447064e89481a7b7d5610a3b4772b3d9dfe79 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Mon, 26 Feb 2018 20:08:23 +0100 Subject: [PATCH 2/7] Masonry on artist list --- front/src/components/audio/album/Card.vue | 2 +- front/src/components/audio/artist/Card.vue | 4 ++-- front/src/components/library/Artists.vue | 10 +++++++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/front/src/components/audio/album/Card.vue b/front/src/components/audio/album/Card.vue index 968b828a4..45e50f897 100644 --- a/front/src/components/audio/album/Card.vue +++ b/front/src/components/audio/album/Card.vue @@ -67,7 +67,7 @@ export default { data () { return { backend: backend, - initialTracks: 4, + initialTracks: 5, showAllTracks: false } }, diff --git a/front/src/components/audio/artist/Card.vue b/front/src/components/audio/artist/Card.vue index 9a82d6c8f..a51114345 100644 --- a/front/src/components/audio/artist/Card.vue +++ b/front/src/components/audio/artist/Card.vue @@ -54,8 +54,8 @@ export default { data () { return { backend: backend, - initialAlbums: 3, - showAllAlbums: false + initialAlbums: 30, + showAllAlbums: true } }, computed: { diff --git a/front/src/components/library/Artists.vue b/front/src/components/library/Artists.vue index c9bea5efc..3cf123447 100644 --- a/front/src/components/library/Artists.vue +++ b/front/src/components/library/Artists.vue @@ -34,8 +34,16 @@ -
+
Date: Mon, 26 Feb 2018 20:08:50 +0100 Subject: [PATCH 3/7] Fixed usernamed not displayed on import request --- front/src/components/requests/Card.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/front/src/components/requests/Card.vue b/front/src/components/requests/Card.vue index deb9c3fe0..17fecde52 100644 --- a/front/src/components/requests/Card.vue +++ b/front/src/components/requests/Card.vue @@ -5,10 +5,10 @@
-
+
@@ -24,7 +24,7 @@ @click="createImport" v-if="request.status === 'pending' && importAction && $store.state.auth.availablePermissions['import.launch']" class="ui mini basic green right floated button">Create import - +
From 86fb49a71c4711899504c8baf5257a594a5d0d34 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Mon, 26 Feb 2018 20:09:02 +0100 Subject: [PATCH 4/7] Masonry on request list --- front/src/components/requests/RequestsList.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/front/src/components/requests/RequestsList.vue b/front/src/components/requests/RequestsList.vue index cb3e9af00..33ba04f53 100644 --- a/front/src/components/requests/RequestsList.vue +++ b/front/src/components/requests/RequestsList.vue @@ -34,8 +34,16 @@
-
+
Date: Mon, 26 Feb 2018 20:09:16 +0100 Subject: [PATCH 5/7] Minor responsive tweak --- front/src/components/library/Artist.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/components/library/Artist.vue b/front/src/components/library/Artist.vue index c2834e1de..7724428ca 100644 --- a/front/src/components/library/Artist.vue +++ b/front/src/components/library/Artist.vue @@ -30,7 +30,7 @@

Albums by this artist

-
+
From 7b9792c2f408d5f3c2774f9c25b4877e64ebf96e Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Mon, 26 Feb 2018 20:10:35 +0100 Subject: [PATCH 6/7] Masonry on radios list --- front/src/components/library/Radios.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/front/src/components/library/Radios.vue b/front/src/components/library/Radios.vue index 1952908ff..303ce100e 100644 --- a/front/src/components/library/Radios.vue +++ b/front/src/components/library/Radios.vue @@ -36,8 +36,16 @@
-
+
Date: Mon, 26 Feb 2018 20:11:21 +0100 Subject: [PATCH 7/7] Fixed #68: changelog --- CHANGELOG | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 529d6fb7c..2a898eb06 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -6,7 +6,8 @@ Changelog - Fixed broken file import due to wrong url (#73) - More accurate mimetype detection -- Fixed really small size on small screens. +- Fixed really small size on small screens +- Added masonry layout for artists, requests and radios (#68) 0.5.1 (2018-02-24)