townsquare/src/main.js

68 lines
1.2 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",
"BookDead",
2020-05-19 13:19:19 +00:00
"BroadcastTower",
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",
2021-02-07 21:14:27 +00:00
"ExclamationTriangle",
"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",
v2.13.0 (#168) * add support for custom fabled (closes #110) * 2.13.0 * show custom fabled first * add recordVoteHistory & clearVoteHistory to session menu * Update CHANGELOG.md * socket part of toggle recordVoteHistory analogous to isNight * remove accidental * Add files via upload * add custom fabled * Add option to reduce night animations to save power. * add fallback icon for fabled * changelog * disable all animations now * linter * add 'on the block' indicator - after vote, ST chooses to put onto block / empty block / no change to block - player menu has add / remove from block - players are automatically removed from the block when (i) they die (ii) another player is put onto block - fixed crash on add/remove/etc player mid vote * hide rounded corners on maximized modals (barely visible anyway) * ST always sees vote history i.e. toggle affects only players * empty block at night * avoid clashing with seat icon * nlc: toggle within session.js * lint * minor * Use proper "Exile" terminology for exile * Add info about "Banishment"->"Exile" to CHANGELOG * requested changes * remove direct ST control of block * player menu order * move block/night logic from socket to menu * minor fix to previous * on block -> marked * requested changes * requested change Co-authored-by: Steffen <steffen@baumgart.biz> * fix players being moved or removed during a nomination (closes #164) add vue linter * let's try adding a lint error * linter adjusted * it's working! * requested change record marked player id in session * feedback implemented npm audit * prepare develop branch * adjust linter config * revert version bump * fixes & visuals * Update CHANGELOG.md * restore old lint command (fixes #170) * minor fix default * show jinxed interactions on character reference modal * 2.13.0 * changelog Co-authored-by: nicfreeman1209 <nicfreeman1209@gmail.com> Co-authored-by: nicfreeman1209 <14160941+nicfreeman1209@users.noreply.github.com> Co-authored-by: Adrian Irving-Beer <wisq@wisq.net> Co-authored-by: Andrew Conant <emptierset@gmail.com>
2021-05-15 18:07:54 +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",
"VenusMars",
"VolumeUp",
"VolumeMute",
"VoteYea",
2021-02-12 18:00:59 +00:00
"WindowMaximize",
"WindowMinimize"
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");