From 6ac9a52a1f13a145160efae8e8ad530378843dc7 Mon Sep 17 00:00:00 2001 From: Muah Date: Mon, 5 Mar 2018 06:10:14 +0200 Subject: [PATCH] v2.5.9 - update modal wiki - update readme - update config - add support for files with mime type=application - some fixes for view files - fix cropper js error --- README.md | 2 +- src/config/mediaManager.php | 2 +- .../js/components/imageEditor/cropper.vue | 2 ++ src/resources/assets/js/manager.js | 2 -- src/resources/assets/js/modules/icons.js | 1 + .../assets/js/packages/download.min.js | 0 src/resources/assets/sass/media.scss | 4 +++ src/resources/views/_manager.blade.php | 31 ++++++++++++------- src/resources/views/media.blade.php | 6 ++-- 9 files changed, 33 insertions(+), 17 deletions(-) mode change 100755 => 100644 src/resources/assets/js/packages/download.min.js mode change 100755 => 100644 src/resources/views/media.blade.php diff --git a/README.md b/README.md index 29634f6..00a0916 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ npm install vue vue-ls vue-tippy@v1 vue2-filters vue-bounty vue-notif vue-clipbo - if you are having issues [Check](https://ctf0.wordpress.com/2017/09/12/laravel-mix-es6/) ```js -require('./../vendor/MediaManager/js/manager') +require('../vendor/MediaManager/js/manager') new Vue({ el: '#app' diff --git a/src/config/mediaManager.php b/src/config/mediaManager.php index 88a40c2..f93d148 100644 --- a/src/config/mediaManager.php +++ b/src/config/mediaManager.php @@ -63,5 +63,5 @@ /* * load image preview when item is clicked */ - 'lazy_load_image_on_click' => true, + 'lazy_load_image_on_click' => false, ]; diff --git a/src/resources/assets/js/components/imageEditor/cropper.vue b/src/resources/assets/js/components/imageEditor/cropper.vue index 5b74222..885ea9e 100644 --- a/src/resources/assets/js/components/imageEditor/cropper.vue +++ b/src/resources/assets/js/components/imageEditor/cropper.vue @@ -185,6 +185,8 @@ - - +@push('scripts') + + + +@endpush + diff --git a/src/resources/views/media.blade.php b/src/resources/views/media.blade.php old mode 100755 new mode 100644 index f58a020..2b3e71b --- a/src/resources/views/media.blade.php +++ b/src/resources/views/media.blade.php @@ -17,7 +17,7 @@ -
+
{{-- media manager --}}
@@ -28,6 +28,8 @@ {{-- footer --}} - + @stack('styles') + @stack('scripts') +