Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
library.add(faPlus);
library.add(faPencilAlt);
library.add(faBars);
library.add(faHome);
library.add(faThList);
library.add(faUserPlus);
library.add(faRoad);
library.add(faTachometerAlt);
library.add(faHeart);
library.add(faList);
library.add(faBell);
library.add(faTasks);
library.add(faBook);
library.add(faHdd);
library.add(faFlag);
library.add(faWrench);
library.add(faClock);
library.add(faCloud);
library.add(faSignOutAlt);
library.add(faSignInAlt);
library.add(faCalendarAlt);
library.add(faSearch);
library.add(faTrashAlt);
library.add(faAsterisk);
library.add(faCheck);
library.add(faCheckDouble);
// jhipster-needle-add-element-to-vendor - JHipster will add new menu items here
} from '@fortawesome/free-regular-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
// general
library.add(faBook);
library.add(faSpinner);
library.add(faTimes);
library.add(faAngleRight);
library.add(faAngleLeft);
library.add(faAngleDown);
// nav bar
library.add(faCircle);
library.add(faEnvelope);
library.add(faSignOutAlt);
// side bar
library.add(faTachometerAlt);
library.add(faCube);
library.add(faUser);
library.add(faClone);
library.add(faTag);
library.add(faComments);
library.add(faWrench);
// dashboard
library.add(faUsers);
library.add(faEye);
// login
library.add(faLock);
Vue.component(
'crud-show-near-items',
require('./../components/Crud/CrudShowNearItems').default
);
Vue.component('vue-ctk-date-time-picker', VueCtkDateTimePicker);
Vue.component('role-permissions', RolePermissions);
Vue.component('user-roles', UserRoles);
Vue.component(
'dashboard',
require('./../components/Pages/Dashboard').default
);
// FontAwesome
library.add(far);
library.add(fas);
library.add(fab);
Vue.component('fa-icon', FontAwesomeIcon);
// Modules
Vue.use(Vuex);
Vue.use(BootstrapVue);
Vue.use(Notifications);
Vue.use(VModal);
Vue.use(ClientTable);
Vue.use(CKEditor);
Vue.use(BootstrapVue);
Vue.use(VueI18n);
// you can set default global options and events when use
// https://www.npmjs.com/package/vue-codemirror
Vue.use(
VueCodemirror /* {
import { library, icon, Icon } from '@fortawesome/fontawesome-svg-core'
import {
faDatabase, faChartBar,
faLongArrowAltUp, faLongArrowAltDown,
faSortAmountUp, faSortAmountDown,
faAngleDown,
} from '@fortawesome/free-solid-svg-icons'
// https://fontawesome.com/how-to-use/with-the-api/setup/library
library.add(faDatabase)
library.add(faChartBar)
library.add(faLongArrowAltUp)
library.add(faLongArrowAltDown)
library.add(faSortAmountUp)
library.add(faSortAmountDown)
library.add(faAngleDown)
const iDatabase = icon({ prefix: 'fas', iconName: 'database' })
const iChartBar = icon({ prefix: 'fas', iconName: 'chart-bar' })
const iLongArrowAltUp = icon({ prefix: 'fas', iconName: 'long-arrow-alt-up' })
const iLongArrowAltDown = icon({ prefix: 'fas', iconName: 'long-arrow-alt-down' })
const iSortAmountUp = icon({ prefix: 'fas', iconName: 'sort-amount-up' })
const iSortAmountDown = icon({ prefix: 'fas', iconName: 'sort-amount-down' })
const iAngleDown = icon({ prefix: 'fas', iconName: 'angle-down' })
function convert(icon: Icon) {
library.add(faSync);
library.add(faEye);
library.add(faBan);
library.add(faTimes);
library.add(faArrowLeft);
library.add(faSave);
library.add(faPlus);
library.add(faPencilAlt);
library.add(faBars);
library.add(faHome);
library.add(faThList);
library.add(faUserPlus);
library.add(faRoad);
library.add(faTachometerAlt);
library.add(faHeart);
library.add(faList);
library.add(faBell);
library.add(faTasks);
library.add(faBook);
library.add(faHdd);
library.add(faFlag);
library.add(faWrench);
library.add(faClock);
library.add(faCloud);
library.add(faSignOutAlt);
library.add(faSignInAlt);
library.add(faCalendarAlt);
library.add(faSearch);
library.add(faTrashAlt);
library.add(faAsterisk);
// jhipster-needle-add-element-to-vendor - JHipster will add new menu items here
import Dialog from '@/components/dialog/Dialog'
import Menu from '@/components/menu/Menu'
import ImageViewer from '@/components/image-viewer/ImageViewer'
import Scrollbar from '@/components/scrollbar/Scrollbar'
import Toast from '@/components/toast/Toast'
import { library } from '@fortawesome/fontawesome-svg-core'
import blaze from '@/blaze/blaze'
import i18n from '@/utils/i18n'
import moment from 'moment'
import { faArrowLeft, faArrowRight, faChevronDown, faSearch } from '@fortawesome/free-solid-svg-icons'
import { faPaperPlane } from '@fortawesome/free-regular-svg-icons'
import { API_URL } from '@/utils/constants'
import './assets'
const fontawesome = require('@fortawesome/vue-fontawesome')
library.add(faArrowLeft, faArrowRight, faChevronDown, faSearch, faPaperPlane)
Vue.use(VueAxios, axios)
Vue.use(Dialog)
Vue.use(Menu)
Vue.use(Toast)
Vue.use(ImageViewer)
Vue.use(Scrollbar)
Vue.axios.defaults.baseURL = API_URL.HTTP
Vue.axios.defaults.headers.post['Content-Type'] = 'application/json'
Vue.component('font-awesome-icon', fontawesome.FontAwesomeIcon)
Vue.config.productionTip = false
Vue.prototype.$blaze = blaze
moment.locale(navigator.language)
Vue.prototype.$moment = moment
Vue.prototype.$electron = electron
library.add(faTasks);
library.add(faBook);
library.add(faHdd);
library.add(faFlag);
library.add(faWrench);
library.add(faClock);
library.add(faCloud);
library.add(faSignOutAlt);
library.add(faSignInAlt);
library.add(faCalendarAlt);
library.add(faSearch);
library.add(faTrashAlt);
library.add(faAsterisk);
library.add(faGithub);
library.add(faTwitter);
library.add(faComments);
library.add(faBug);
library.add(faUndo);
library.add(faExclamationTriangle);
library.add(faCloudUploadAlt);
library.add(faRocket);
library.add(faObjectGroup);
library.add(faGitlab);
library.add(faCopy);
library.add(faTrash);
library.add(faInfoCircle);
library.add(faCheck);
library.add(faBolt);
library.add(faTimesCircle);
library.add(faChartLine);
library.add(faLink);
library.add(faLightbulb);
library.add(faSnapchat);
library.add(faSoundcloud);
library.add(faSpotify);
library.add(faSquarespace);
library.add(faStackOverflow);
library.add(faStackExchange);
library.add(faSteam);
library.add(faStrava);
library.add(faTripadvisor);
library.add(faTumblr);
library.add(faTwitch);
library.add(faTwitter);
library.add(faVimeo);
library.add(faWeibo);
library.add(faWikipediaW);
library.add(faWordpress);
library.add(faWordpressSimple);
library.add(faXbox);
library.add(faXing);
library.add(faYahoo);
library.add(faYelp);
library.add(faYoutube);
dom.i2svg();
}
library.add(faSkype);
library.add(faHackerNewsSquare);
library.add(faMastodon);
library.add(faGetPocket);
library.add(faFlipboard);
library.add(faEvernote);
library.add(faTrello);
library.add(faBuffer);
library.add(faTumblrSquare);
library.add(faXingSquare);
library.add(faLinkedin);
library.add(fa500px);
library.add(faAdobe);
library.add(faAws);
library.add(faAmazon);
library.add(faAngellist);
library.add(faAppStore);
library.add(faApple);
library.add(faArtstation);
library.add(faAtlassian);
library.add(faBandcamp);
library.add(faBehance);
library.add(faBitbucket);
library.add(faBitcoin);
library.add(faBlogger);
library.add(faChrome);
library.add(faCodepen);
library.add(faDev);
library.add(faDeviantart);
library.add(faDigitalOcean);
library.add(faDiscord);
import {FontAwesomeModule} from "@fortawesome/angular-fontawesome";
import {RouterTestingModule} from "@angular/router/testing";
import {
emptyAppState4Test,
getOneRandomMenu
} from "@tests/helpers";
import {Store, StoreModule} from "@ngrx/store";
import {appReducer, AppState, storeConfig} from "@ofStore/index";
import {of} from "rxjs";
import {configInitialState} from "@ofStates/config.state";
import {map} from "rxjs/operators";
import {By} from "@angular/platform-browser";
import {library} from "@fortawesome/fontawesome-svg-core";
import {faExternalLinkAlt} from "@fortawesome/free-solid-svg-icons";
library.add(faExternalLinkAlt);
describe('MenuLinkComponent', () => {
let component: MenuLinkComponent;
let fixture: ComponentFixture;
let store: Store;
let emptyAppState: AppState = emptyAppState4Test;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
FontAwesomeModule,
StoreModule.forRoot(appReducer, storeConfig)
],
declarations: [ MenuLinkComponent ]
})