Initial commit
This commit is contained in:
18
src/presentation/Bootstrapping/Modules/IconBootstrapper.ts
Normal file
18
src/presentation/Bootstrapping/Modules/IconBootstrapper.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { IVueBootstrapper, VueConstructor } from './../IVueBootstrapper';
|
||||
import { library } from '@fortawesome/fontawesome-svg-core';
|
||||
import { faGithub } from '@fortawesome/free-brands-svg-icons';
|
||||
/** BRAND ICONS (PREFIX: fab) */
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
/** REGULAR ICONS (PREFIX: far) */
|
||||
import { faFolderOpen, faFolder } from '@fortawesome/free-regular-svg-icons';
|
||||
/** SOLID ICONS (PREFIX: fas (default)) */
|
||||
import { faTimes, faFileDownload, faCopy, faSearch, faInfoCircle } from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
|
||||
export class IconBootstrapper implements IVueBootstrapper {
|
||||
public bootstrap(vue: VueConstructor): void {
|
||||
library.add(faGithub, faFolderOpen, faFolder,
|
||||
faTimes, faFileDownload, faCopy, faSearch, faInfoCircle);
|
||||
vue.component('font-awesome-icon', FontAwesomeIcon);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user