townsquare/src/main.js

62 lines
1.1 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 = [
"AddressCard",
2020-05-19 13:19:19 +00:00
"BookOpen",
"BroadcastTower",
"Camera",
2020-06-04 16:23:33 +00:00
"Chair",
2020-05-19 13:19:19 +00:00
"CheckSquare",
"CloudMoon",
2020-05-19 13:19:19 +00:00
"Cog",
"Copy",
2020-06-04 19:56:07 +00:00
"Dice",
2020-08-09 19:28:38 +00:00
"Dragon",
2020-05-19 13:19:19 +00:00
"ExchangeAlt",
"FileCode",
2020-05-19 13:19:19 +00:00
"FileUpload",
"HandPaper",
2020-05-19 13:19:19 +00:00
"HandPointRight",
"Heartbeat",
2020-06-04 19:56:07 +00:00
"Image",
2020-05-19 13:19:19 +00:00
"Link",
"MinusCircle",
2020-05-19 13:19:19 +00:00
"PeopleArrows",
"PlusCircle",
"Question",
2020-05-19 13:19:19 +00:00
"Random",
"RedoAlt",
"SearchMinus",
"SearchPlus",
"Square",
2020-12-02 19:39:12 +00:00
"Sun",
2020-05-19 13:19:19 +00:00
"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");