mirror of https://github.com/apache/cloudstack.git
only import used fa icons
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
b954a8171b
commit
2ed0b2dcae
|
|
@ -339,7 +339,7 @@ export default {
|
|||
} else if (osname.includes('oracle')) {
|
||||
this.osLogo = 'java'
|
||||
} else {
|
||||
this.osLogo = 'cloud'
|
||||
this.osLogo = 'linux'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
import Vue from 'vue'
|
||||
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
||||
|
||||
// import { fab } from '@fortawesome/free-brands-svg-icons'
|
||||
// import { fas } from '@fortawesome/free-solid-svg-icons'
|
||||
// import { far } from '@fortawesome/free-regular-svg-icons'
|
||||
|
||||
import { faCentos, faUbuntu, faSuse, faRedhat, faFedora, faLinux, faFreebsd, faApple, faWindows, faJava } from '@fortawesome/free-brands-svg-icons'
|
||||
import { faMicrochip, faMemory, faDatabase, faEthernet, faCompactDisc } from '@fortawesome/free-solid-svg-icons'
|
||||
|
||||
library.add(faCentos, faUbuntu, faSuse, faRedhat, faFedora, faLinux, faFreebsd, faApple, faWindows, faJava)
|
||||
library.add(faMicrochip, faMemory, faDatabase, faEthernet, faCompactDisc)
|
||||
|
||||
Vue.component('font-awesome-icon', FontAwesomeIcon)
|
||||
|
|
@ -7,18 +7,10 @@ import { VueAxios } from './utils/request'
|
|||
|
||||
import bootstrap from './core/bootstrap'
|
||||
import './core/use'
|
||||
import './core/ext'
|
||||
import './permission' // permission control
|
||||
import './utils/filter' // global filter
|
||||
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import { fab } from '@fortawesome/free-brands-svg-icons'
|
||||
import { fas } from '@fortawesome/free-solid-svg-icons'
|
||||
import { far } from '@fortawesome/free-regular-svg-icons'
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
||||
|
||||
library.add(fab, far, fas)
|
||||
Vue.component('font-awesome-icon', FontAwesomeIcon)
|
||||
|
||||
Vue.config.productionTip = false
|
||||
Vue.use(VueAxios, router)
|
||||
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ module.exports = {
|
|||
proxy: {
|
||||
'/client/api': {
|
||||
target: process.env.API_URL || 'http://localhost:8080/client/api',
|
||||
secure: false,
|
||||
ws: false,
|
||||
changeOrigin: true
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue