generated from devspacemx/template-proyectos
-
Notifications
You must be signed in to change notification settings - Fork 20
/
main.js
61 lines (58 loc) · 1.33 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { config, library } from "@fortawesome/fontawesome-svg-core";
import "@fortawesome/fontawesome-svg-core/styles.css";
import {
faDiscord,
faFacebook,
faGithub,
faInstagram,
faLinkedin,
faMeetup,
faSlack,
faTelegram,
faTwitch,
faTwitter,
faYoutube,
} from "@fortawesome/free-brands-svg-icons";
import {
faEdit,
faLink,
faMapMarkerAlt,
faSearch,
} from "@fortawesome/free-solid-svg-icons";
// Adding FontAwesome
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import Vue from "vue";
import InstantSearch from "vue-instantsearch";
import "./assets/styles/scss/theme.scss";
import DefaultLayout from "./layouts/Default.vue";
import checkIfMobile from "./mixins/checkIfMobile";
config.autoAddCss = true;
library.add(
faMapMarkerAlt,
faLink,
faTwitter,
faFacebook,
faGithub,
faTelegram,
faDiscord,
faInstagram,
faSearch,
faYoutube,
faSlack,
faMeetup,
faLinkedin,
faEdit,
faTwitch
);
// Import FontAwesome
Vue.component("font-awesome-icon", FontAwesomeIcon);
config.autoAddCss = true;
export default function(Vue, { router, head, isClient }) {
// Set default layout as a global component
Vue.component("Layout", DefaultLayout);
Vue.mixin(checkIfMobile);
// Import FontAwesome
Vue.component("font-awesome", FontAwesomeIcon);
// Add Instant Search
Vue.use(InstantSearch);
}