import Vue from 'vue' ; import App from './App.vue' ; import router from './router' ; import store from './store' ; import Element from 'element-ui' ; import 'element-ui/lib/theme-chalk/index.css' ; import { library } from '@fortawesome/fontawesome-svg-core' ; import './assets/icon/iconfont.css' ; import './assets/icon/iconfont.js' ; import './assets/index.css' ; import VueFormGenerator from 'vue-form-generator' ; import 'vue-form-generator/dist/vfg.css' ; import ArrayContainer from './components/setting/ArrayContainer.vue' ; import sourcecode from './components/field-sourcecode.vue' ; import ModuleLibrary from 'vfg-field-array' ; import ModuleLibraryObject from 'vfg-field-object' ; import { faCode , faEye , faFileExport , faTrashRestoreAlt , faFile , faTree , faFileArchive } from '@fortawesome/free-solid-svg-icons' ; import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' ; import codeMirrorInstall from './codemirror' ; codeMirrorInstall ( Vue ) ; library . add ( faCode ) ; library . add ( faEye ) ; library . add ( faFileExport ) ; library . add ( faTrashRestoreAlt ) ; library . add ( faFile ) ; library . add ( faTree ) ; library . add ( faFileArchive ) ; Vue . use ( VueFormGenerator ) ; Vue . use ( ModuleLibrary ) ; Vue . use ( ModuleLibraryObject ) ; Vue . component ( "field-sourcecode" , sourcecode ) ; Vue . component ( 'font-awesome-icon' , FontAwesomeIcon ) ; Vue . component ( "ArrayContainer" , ArrayContainer ) ; Vue . config . productionTip = false ; Vue . use ( Element ) ; Vue . prototype . $EventBus = new Vue ( ) ; new Vue ( { router , store , render : h => h ( App ) } ) . $mount ( '#app' ) ;