From 3b164302cdac473ee720410ed694a053d74b0527 Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Mon, 26 Feb 2018 20:07:29 +0100
Subject: [PATCH] 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 042e332d0e..d6bdb8c56c 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 2e351310a1..caf9241880 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
 
-- 
GitLab