66
77![ Laravel File Manager] ( https://raw.github.com/alexusmai/vue-laravel-file-manager/master/src/assets/laravel-file-manager.gif?raw=true )
88
9+ # v 2.0.0
10+
11+ * Audio player (mp3, ogg, wav, aac), Video player (webm, mp4) - ([ Plyr] ( https://github.com/sampotts/plyr ) )
12+ * Code editor - ([ Code Mirror] ( https://github.com/codemirror/codemirror ) )
13+ * Image cropper - ([ Cropper.js] ( https://github.com/fengyuanchen/cropperjs ) )
14+ * Zip / Unzip - only for local disks
15+
16+
917## Installation
1018
1119### NPM
@@ -41,6 +49,30 @@ Vue.use(FileManager, {store});
4149
4250` The application store module will be registered under the name 'fm' `
4351
52+ You can overwrite some default settings
53+
54+ ```
55+ Vue.use(FileManager, {
56+ store, // required
57+
58+ // not required params
59+ headers: {'Authorization': 'Bearer ...'}, // add header
60+ // OR
61+ headers: {'X-CSRF-TOKEN': 'token'}, // overwrite default header Axios
62+ baseUrl: 'http://my_url:80/file-manager/', // overwrite base url Axios
63+ windowsConfig: 2,
64+ lang: 'de', // set language
65+ translation: { // add new translation
66+ name: de,
67+ content: {
68+ about: 'Über',
69+ back: 'Zurück',
70+ ... see lang file structure
71+ },
72+ },
73+ }
74+ ```
75+
4476Now vue component is registered and you can use it in your app
4577```
4678<file-manager></file-manager>
@@ -55,4 +87,4 @@ Don't forget add a csrf token to head block in your Laravel view and add bootstr
5587<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
5688```
5789
58- Warning! Package use axios (Promise) - use babel-polyfill for ie11
90+ Warning! Package use axios (Promise) - use babel-polyfill for ie11
0 commit comments