townsquare/src/main.js

55 lines
1.0 KiB
JavaScript
Raw Normal View History

2020-04-05 17:50:33 +00:00
import Vue from "vue";
import App from "./App";
2020-05-02 19:11:20 +00:00
import store from "./store";
2020-04-05 19:50:06 +00:00
import { library } from "@fortawesome/fontawesome-svg-core";
2020-05-19 13:19:19 +00:00
import { fas } from "@fortawesome/free-solid-svg-icons";
import { fab } from "@fortawesome/free-brands-svg-icons";
2020-04-05 19:50:06 +00:00
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
2020-05-19 13:19:19 +00:00
const faIcons = [
"BookOpen",
"BroadcastTower",
"Camera",
2020-06-04 16:23:33 +00:00
"Chair",
2020-05-19 13:19:19 +00:00
"CheckSquare",
"Cog",
"Copy",
2020-06-04 19:56:07 +00:00
"Dice",
2020-05-19 13:19:19 +00:00
"ExchangeAlt",
"FileUpload",
"HandPointRight",
"Heartbeat",
2020-06-04 19:56:07 +00:00
"Image",
2020-05-19 13:19:19 +00:00
"Link",
"PeopleArrows",
"Question",
2020-05-19 13:19:19 +00:00
"Random",
"RedoAlt",
"SearchMinus",
"SearchPlus",
2020-06-04 16:23:33 +00:00
"Skull",
2020-05-19 13:19:19 +00:00
"Square",
"TheaterMasks",
2020-06-04 16:23:33 +00:00
"Times",
2020-05-19 13:19:19 +00:00
"TimesCircle",
2020-06-04 19:56:07 +00:00
"TrashAlt",
2020-05-19 13:19:19 +00:00
"Undo",
"User",
"UserEdit",
"UserFriends",
"Users",
2020-06-04 16:23:33 +00:00
"VoteYea"
2020-05-19 13:19:19 +00:00
];
const fabIcons = ["Github", "Discord"];
library.add(
...faIcons.map(i => fas["fa" + i]),
...fabIcons.map(i => fab["fa" + i])
);
2020-04-05 19:50:06 +00:00
Vue.component("font-awesome-icon", FontAwesomeIcon);
2020-04-04 12:41:21 +00:00
Vue.config.productionTip = false;
new Vue({
2020-05-02 19:11:20 +00:00
render: h => h(App),
store
2020-04-05 17:50:33 +00:00
}).$mount("#app");