5
5
![ Browser Status] ( https://badges.herokuapp.com/browsers?firefox=61µsoftedge=17&googlechrome=51&safari=!?&iexplore=!? )
6
6
7
7
<p align =" center " >
8
- <img src="https://user-images.githubusercontent.com/7388088/45594529-90318000-b99c-11e8-9fce-07e3576ae0df.png">
9
- <img src="https://user-images.githubusercontent.com/7388088/45594564-6dec3200-b99d-11e8-8827-d9ba5337d46a.png">
8
+ <img alt="main" src="https://user-images.githubusercontent.com/7388088/46004312-dda3a080-c0b2-11e8-92b4-294757b88653.jpg"/>
9
+ <img alt="card" src="https://user-images.githubusercontent.com/7388088/46004310-dd0b0a00-c0b2-11e8-8f7a-12352e15f01b.jpg"/>
10
+ <img alt="filter" src="https://user-images.githubusercontent.com/7388088/46004313-dda3a080-c0b2-11e8-814a-af5b3953846f.jpg"/>
11
+ <img alt="diff" src="https://user-images.githubusercontent.com/7388088/46004311-dd0b0a00-c0b2-11e8-82f1-d6c75235690f.jpg"/>
10
12
</p >
11
13
12
14
- to optimize uploaded files on the fly try [ spatie] ( https://github.com/spatie/laravel-image-optimizer )
36
38
- [ install dependencies] ( https://github.com/ctf0/Laravel-Media-Manager/wiki/Packages-In-Use )
37
39
38
40
``` bash
39
- yarn add vue vue-ls vue-async-computed vue-tippy@v1 vue2-filters vue-input-autowidth vue-notif vue-clipboard2 vue-awesome@v2 vue-touch@next idb-keyval axios dropzone cropperjs keycode date-fns lottie-web plyr fuse.js
41
+ yarn add vue vue-ls vue-async-computed vue-list-rendered vue-image-compare2 vue- tippy@v1 vue2-filters vue-input-autowidth vue-notif vue-clipboard2 vue-awesome@v2 vue-touch@next idb-keyval axios dropzone cropperjs keycode date-fns lottie-web plyr fuse.js
40
42
# or
41
- npm install vue vue-ls vue-async-computed vue-tippy@v1 vue2-filters vue-input-autowidth vue-notif vue-clipboard2 vue-awesome@v2 vue-touch@next idb-keyval axios dropzone cropperjs keycode date-fns lottie-web plyr fuse.js --save
43
+ npm install vue vue-ls vue-async-computed vue-list-rendered vue-image-compare2 vue- tippy@v1 vue2-filters vue-input-autowidth vue-notif vue-clipboard2 vue-awesome@v2 vue-touch@next idb-keyval axios dropzone cropperjs keycode date-fns lottie-web plyr fuse.js --save
42
44
```
43
45
44
46
- add this one liner to your main js file and run ` npm run watch ` to compile your ` js/css ` files.
115
117
116
118
> - the info sidebar is only available on big screens ** "> 1087px"** .
117
119
> - if no more ** rows** available, pressing ` down ` will go to the last item in the list ** "same as native finder"** .
118
- > - dbl click/tap any ` audio/video ` file on small screen, will open it in the preview card same as images ** "because sidebar will be disabled"** .
120
+ > - dbl click/tap
121
+ > + any file type ` audio/video ` when sidebar is hidden, will open it in the preview card same as images.
122
+ > + any file type ` application/archive ` will download it.
119
123
> - to stop interfering with other ` keydown ` events you can toggle the manager listener through ` EventHub.fire('disable-global-keys', true/false) ` .
120
- > - when using [ ` __stack-files-reverse ` ] ( https://github.com/ctf0/Laravel-Media-Manager/wiki/Customization-&--Optimization#customization ) , the ** left/right** gestures are also reversed.
121
- > - when previewing an item, you can use any of the navigation keys ` left/up/right/down/home/end `
124
+ > - all the ** left/right** gestures have their counterparts available as well.
125
+ > - while previewing an item, you can use any of the navigation keys ` left/up/right/down/home/end ` & ` swipe left/right/up/down ` .
126
+ > - pressing ` esc ` while using the *** image editor*** wont close the modal but you can dbl click/tap the ` modal background ` to do so. ** "to avoid accidentally canceling your changes"** .
122
127
123
128
<br >
124
129
125
- | navigation | button | keyboard | click / tap | touch |
126
- | ----------------------- | ---------------------------------------------| ------------------| ---------------------------| ---------------------------------|
127
- | | toggle upload panel * (toolbar)* | u | * | |
128
- | | refresh * (toolbar)* | r | * / hold * (clear cache)* | pinch in * (items container)* |
129
- | | move * (toolbar)* | m | * | |
130
- | | image editor * (toolbar)* | e | * | |
131
- | | delete * (toolbar)* | d / del | * | |
132
- | | lock/unlock * (toolbar)* | l | * / hold * (folders only )* | |
133
- | | change visibility * (toolbar)* | v | * | |
134
- | | toggle bulk selection * (toolbar)* | b | * | |
135
- | | (reset) bulk select all * (toolbar)* | a | * | |
136
- | | toggle sidebar * (path bar)* | t | * | swipe left/right * (sidebar)* |
137
- | | confirm * (modal)* | enter | * | |
138
- | | toggle preview image/pdf/text * (item)* | space | ** | |
139
- | | play/pause media * (item)* | space | ** | |
140
- | | hide (modal / upload-panel / global-search) | esc | | |
141
- | | reset (search / bulk selection / filter) | esc | | |
142
- | |   ; | | | |
143
- | | move * (item)* | | | swipe up |
144
- | | delete * (item)* | | | swipe down |
145
- | | rename * (item)* | | | swipe left |
146
- | | image editor * (item)* | | | hold |
147
- | | limit bulk select * (item)* | shift + click | | |
148
- | | current + next bulk select * (item)* | alt/meta + click | | |
149
- | | create new folder | | ** * (items container)* | |
150
- | |   ; | | | |
151
- | select next * (item)* | | right | * | swipe left * (preview)* |
152
- | select prev * (item)* | | left | * | swipe right * (preview)* |
153
- | select first * (item)* | | home | | |
154
- | select last * (item)* | | end | | |
155
- | select next * (row)* | | down | | |
156
- | select prev * (row)* | | up | | |
157
- | open folder | | enter | ** | |
158
- | go to prev dir | folderName * (path bar)* | backspace | * | swipe right * (items container)* |
130
+ | navigation | button | keyboard | click / tap | touch |
131
+ | ----------------------| ---------------------------------------------| ------------------| --- ---------------------------| ---------------------------------|
132
+ | | toggle upload panel * (toolbar)* | u | | |
133
+ | | refresh * (toolbar)* | r | hold * (clear cache)* | pinch in * (items container)* |
134
+ | | move * (toolbar)* | m | | |
135
+ | | image editor * (toolbar)* | e | | |
136
+ | | delete * (toolbar)* | d / del | | |
137
+ | | lock/unlock * (toolbar)* | l | hold * (anything but images )* | |
138
+ | | change visibility * (toolbar)* | v | | |
139
+ | | toggle bulk selection * (toolbar)* | b | | |
140
+ | | (reset) bulk select all * (toolbar)* | a | | |
141
+ | | toggle sidebar * (path bar)* | t | * | swipe left/right * (sidebar)* |
142
+ | | confirm * (modal)* | enter | | |
143
+ | | toggle preview image/pdf/text * (item)* | space | ** | |
144
+ | | play/pause media * (item)* | space | ** | |
145
+ | | hide (modal / upload-panel / global-search) | esc | | |
146
+ | | reset (search / bulk selection / filter) | esc | | |
147
+ | |   ; | | | |
148
+ | | move * (item)* | | | swipe up |
149
+ | | delete * (item)* | | | swipe down |
150
+ | | rename * (item)* | | | swipe left |
151
+ | | image editor * (item)* | | hold | |
152
+ | | limit bulk select * (item)* | shift + click | | |
153
+ | | current + next bulk select * (item)* | alt/meta + click | | |
154
+ | | create new folder | | ** * (items container)* | |
155
+ | |   ; | | | |
156
+ | go to next * (item)* | | right | * | swipe left * (preview)* |
157
+ | go to prev * (item)* | | left | * | swipe right * (preview)* |
158
+ | go to first * (item)* | | home | | |
159
+ | go to last * (item)* | | end | | |
160
+ | go to next * (row)* | | down | | swipe up * (preview) * |
161
+ | go to prev * (row)* | | up | | swipe down * (preview) * |
162
+ | open folder | | enter | ** | |
163
+ | go to prev * ( dir) * | folderName * (path bar)* | backspace | * | swipe right * (items container)* |
159
164
160
165
- events
161
166
@@ -203,9 +208,9 @@ return [
203
208
'controller' => '\ctf0\MediaManager\Controllers\MediaController',
204
209
205
210
/*
206
- * remove any file special chars except (. _ -)
211
+ * remove any file special chars except
207
212
*/
208
- 'allowed_fileNames_chars' => '.\_\-',
213
+ 'allowed_fileNames_chars' => '.\_\-\'\s\(\)\, ',
209
214
210
215
/*
211
216
* remove any folder special chars except (_ -)
@@ -214,7 +219,7 @@ return [
214
219
215
220
/*
216
221
* disallow uploading files with the following mimetypes
217
- * https://www.iana.org/assignments/media-types/media-types.xhtml#text
222
+ * https://www.iana.org/assignments/media-types/media-types.xhtml
218
223
*/
219
224
'unallowed_mimes' => ['php', 'java'],
220
225
0 commit comments