From 0c48a20cd834e4c6c4a93f4491bd9461e1c24e15 Mon Sep 17 00:00:00 2001 From: Muah Date: Mon, 4 Dec 2017 18:50:51 +0200 Subject: [PATCH] v2.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # we are now jQuery free :scream::metal::boom::muscle::dancers: ## image - animate navigation - clicking the preview will open the image in a new tab - preview is now a card with basic info and main functionality “mostly for mobile users” ## new options - added hide folder option - add random names option for uploaded files “will also be saved in local-storage” - save visited folder to local-storage so you can continue from where you left. - auto select folder after creation - set “max-height” to the manager if opened inside a modal ## fixs - fix hide ext - disallow folder creation with single character name - disallow folder rename to single character - fix list update after remove items with same name but diff type - fix preview modal image align ## styling - better responsive - some styling & animation - added some patterns for upload panel bg so image change on each toggle - change lock/unlock notification msg - add notification for single file download - update assets - update readme - update wiki --- README.md | 7 +- logs/v2.2.1.txt | 14 - logs/v2.3.0.txt | 31 + src/MediaManagerServiceProvider.php | 2 +- src/resources/assets/js/components/media.vue | 274 ++++----- .../assets/js/components/mixins/form.js | 2 +- .../assets/js/components/mixins/selected.js | 4 + .../assets/js/components/mixins/utils.js | 17 +- .../assets/js/components/mixins/watch.js | 7 +- src/resources/assets/js/manager.js | 3 + src/resources/assets/sass/manager.scss | 96 ++- src/resources/assets/sass/media.scss | 80 +-- src/resources/lang/en/messages.php | 4 +- src/resources/lang/fr/messages.php | 4 +- src/resources/views/_manager.blade.php | 576 +++++++++--------- src/resources/views/cards/vertical.blade.php | 78 +++ src/resources/views/media.blade.php | 1 - 17 files changed, 710 insertions(+), 490 deletions(-) delete mode 100644 logs/v2.2.1.txt create mode 100644 logs/v2.3.0.txt create mode 100644 src/resources/views/cards/vertical.blade.php diff --git a/README.md b/README.md index e1e8e60..9fc7a72 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@

- + +

# Media Manager @@ -176,9 +177,9 @@ return [ - install dependencies ```bash -yarn add vue axios dropzone keycode vue-ls vue-tippy vue2-filters vuemit vue-notif vue-clipboard2 vue-touch@next babel-preset-es2015-node6 babel-preset-stage-2 +yarn add vue axios dropzone keycode vue-ls vue-multi-ref vue-tippy vue2-filters vuemit vue-notif vue-clipboard2 vue-touch@next babel-preset-es2015-node6 babel-preset-stage-2 # or -npm install vue axios dropzone keycode vue-ls vue-tippy vue2-filters vuemit vue-notif vue-clipboard2 vue-touch@next babel-preset-es2015-node6 babel-preset-stage-2 --save +npm install vue axios dropzone keycode vue-ls vue-multi-ref vue-tippy vue2-filters vuemit vue-notif vue-clipboard2 vue-touch@next babel-preset-es2015-node6 babel-preset-stage-2 --save ``` - for styling we use ***bulma*** diff --git a/logs/v2.2.1.txt b/logs/v2.2.1.txt deleted file mode 100644 index 7085c1e..0000000 --- a/logs/v2.2.1.txt +++ /dev/null @@ -1,14 +0,0 @@ -- change config `hide_ext` to `hide_files_ext` -- fix the damn move btn disable/enable for good -- fixed enabling directory even if its inside the locked list -- fixed going to prev folder in restricted path -- fixed refresh issue in restricted path -- use plain html for form instead of laravel-collection -- use axios instead of jquery ajax -- jquery is now only handling “keydown & player events” (if anyone can convert those to plain js i would deeply appreciate it) -- optimize fileSelected event to fire only when using the manager from a modal. -- updated https://github.com/ctf0/Laravel-Media-Manager/wiki/Folder-Restriction -- updated https://github.com/ctf0/Laravel-Media-Manager/wiki/Lock-Files-&-Folder -- update assets -- update view -- update readme \ No newline at end of file diff --git a/logs/v2.3.0.txt b/logs/v2.3.0.txt new file mode 100644 index 0000000..604db5d --- /dev/null +++ b/logs/v2.3.0.txt @@ -0,0 +1,31 @@ +# we are now jQuery free :scream::metal::boom::muscle::dancers: + +## image +- animate navigation +- clicking the preview will open the image in a new tab +- preview is now a card with basic info and main functionality “mostly for mobile users” + +## new options +- added hide folder option +- add random names option for uploaded files “will also be saved in local-storage” +- save visited folder to local-storage so you can continue from where you left. +- auto select folder after creation +- set “max-height” to the manager if opened inside a modal + +## fixs +- fix hide ext +- disallow folder creation with single character name +- disallow folder rename to single character +- fix list update after remove items with same name but diff type +- fix preview modal image align + +## styling +- better responsive +- some styling & animation +- added some patterns for upload panel bg so image change on each toggle +- change lock/unlock notification msg +- add notification for single file download + +- update assets “make sure to republish the assets” +- update readme +- update wiki \ No newline at end of file diff --git a/src/MediaManagerServiceProvider.php b/src/MediaManagerServiceProvider.php index a71422e..0279984 100644 --- a/src/MediaManagerServiceProvider.php +++ b/src/MediaManagerServiceProvider.php @@ -75,7 +75,7 @@ protected function viewComp() ->url('/'); $patterns = collect( - app('files')->allFiles(public_path('assets/vendor/MediaManager/patterns')) + app('files')->allFiles(public_path('assets/vendor/MediaManager/patterns')) )->map(function ($item) { return "/assets/vendor/MediaManager/patterns/{$item->getFileName()}"; }); diff --git a/src/resources/assets/js/components/media.vue b/src/resources/assets/js/components/media.vue index 69e343a..254867a 100644 --- a/src/resources/assets/js/components/media.vue +++ b/src/resources/assets/js/components/media.vue @@ -1,24 +1,3 @@ - -