mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
- i18n localization support - Added SK, EN language files - Video/Audio preview in file preview panel (Thanks to Joshua Fouyon to participating on this feature) - Drop uploading (You can now drag files from desktop and drop it to VueFileManager) - Fixed bug when rename item in safari browser - Fixed bug when you drag folder from trash to favourites in sidebar panel - small functions and design improvements
88 lines
1.3 KiB
JavaScript
Vendored
88 lines
1.3 KiB
JavaScript
Vendored
require('./bootstrap');
|
|
import Vue from 'vue'
|
|
import VueI18n from 'vue-i18n'
|
|
import { languages } from './i18n/index.js'
|
|
import App from './App.vue'
|
|
import store from './store/index'
|
|
import Helpers from './helpers'
|
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
|
import {
|
|
faFileAudio,
|
|
faFileVideo,
|
|
faSyncAlt,
|
|
faShare,
|
|
faHome,
|
|
faEyeSlash,
|
|
faBars,
|
|
faSearch,
|
|
faEllipsisV,
|
|
faChevronLeft,
|
|
faChevronRight,
|
|
faUpload,
|
|
faFolderPlus,
|
|
faTh,
|
|
faThList,
|
|
faInfo,
|
|
faFolder,
|
|
faFile,
|
|
faFileImage,
|
|
faTimes,
|
|
faSort,
|
|
faTrashAlt,
|
|
faHdd,
|
|
faEllipsisH,
|
|
faPencilAlt,
|
|
} from '@fortawesome/free-solid-svg-icons'
|
|
|
|
library.add(
|
|
faFileAudio,
|
|
faFileVideo,
|
|
faHdd,
|
|
faSyncAlt,
|
|
faShare,
|
|
faHome,
|
|
faEyeSlash,
|
|
faBars,
|
|
faSearch,
|
|
faEllipsisV,
|
|
faChevronLeft,
|
|
faChevronRight,
|
|
faUpload,
|
|
faTrashAlt,
|
|
faFolderPlus,
|
|
faTh,
|
|
faThList,
|
|
faInfo,
|
|
faFolder,
|
|
faFile,
|
|
faFileImage,
|
|
faTimes,
|
|
faSort,
|
|
faEllipsisH,
|
|
faPencilAlt,
|
|
)
|
|
Vue.component('FontAwesomeIcon', FontAwesomeIcon)
|
|
|
|
Vue.use(Helpers)
|
|
Vue.use(VueI18n)
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
const messages = Object.assign(languages)
|
|
|
|
const i18n = new VueI18n({
|
|
locale: config.locale,
|
|
messages
|
|
})
|
|
|
|
var vueFileManager = new Vue({
|
|
i18n,
|
|
store,
|
|
data: {
|
|
config,
|
|
},
|
|
render: h => h(App)
|
|
}).$mount('#app')
|
|
|