mirror of https://github.com/bra1n/townsquare.git
2 lines
16 KiB
JavaScript
2 lines
16 KiB
JavaScript
|
(function(e){function t(t){for(var a,o,n=t[0],l=t[1],d=t[2],c=0,m=[];c<n.length;c++)o=n[c],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&m.push(i[o][0]),i[o]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a]);u&&u(t);while(m.length)m.shift()();return r.push.apply(r,d||[]),s()}function s(){for(var e,t=0;t<r.length;t++){for(var s=r[t],a=!0,n=1;n<s.length;n++){var l=s[n];0!==i[l]&&(a=!1)}a&&(r.splice(t--,1),e=o(o.s=s[0]))}return e}var a={},i={app:0},r=[];function o(t){if(a[t])return a[t].exports;var s=a[t]={i:t,l:!1,exports:{}};return e[t].call(s.exports,s,s.exports,o),s.l=!0,s.exports}o.m=e,o.c=a,o.d=function(e,t,s){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(o.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(s,a,function(t){return e[t]}.bind(null,a));return s},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/townsquare/";var n=window["webpackJsonp"]=window["webpackJsonp"]||[],l=n.push.bind(n);n.push=t,n=n.slice();for(var d=0;d<n.length;d++)t(n[d]);var u=l;r.push(["56d7","chunk-vendors"]),s()})({"0025":function(e,t,s){},"30db":function(e,t,s){"use strict";var a=s("0025"),i=s.n(a);i.a},3636:function(e,t,s){"use strict";var a=s("d4b2"),i=s.n(a);i.a},"56d7":function(e,t,s){"use strict";s.r(t);var a=s("2b0e"),i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{attrs:{id:"app"}},[s("TownInfo",{attrs:{players:e.players}}),s("TownSquare",{attrs:{"is-public":e.isPublic,players:e.players,roles:e.roles}}),s("div",{staticClass:"controls"},[s("font-awesome-icon",{attrs:{icon:"cogs"},on:{click:function(t){e.isControlOpen=!e.isControlOpen}}}),e.isControlOpen?s("ul",[s("li",{on:{click:e.togglePublic}},[e._v(" Toggle Grimoire ")]),e.players.length<20?s("li",{on:{click:e.addPlayer}},[e._v(" Add Player ")]):e._e(),e.players.length>4?s("li",{on:{click:e.togglePublic}},[e._v(" Select Roles ")]):e._e(),e.players.length>2?s("li",{on:{click:e.randomizeSeatings}},[e._v(" Randomize Seatings ")]):e._e()]):e._e()],1)],1)},r=[],o=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"square",class:{public:e.isPublic},attrs:{id:"townsquare"}},[s("ul",{staticClass:"circle",class:["size-"+e.players.length]},e._l(e.players,(function(t,a){return s("Player",{key:a,attrs:{player:t,roles:e.roles,"is-public":e.isPublic},on:{"add-reminder":e.openReminderModal,"set-role":e.openRoleModal,"remove-player":e.removePlayer}})})),1),s("Modal",{directives:[{name:"show",rawName:"v-show",value:e.availableReminders.length,expression:"availableReminders.length"}],on:{close:e.closeModal}},[s("h2",[e._v("Choose a reminder token:")]),s("ul",{staticClass:"reminders"},e._l(e.availableReminders,(function(t){return s("li",{key:t.role+" "+t.name,staticClass:"reminder",class:[t.role],on:{click:function(s){return e.addReminder(t)}}},[e._v(" "+e._s(t.name)+" ")])})),0)]),s("Modal",{directives:[{name:"show",rawName:"v-show",value:e.availableRoles.length,expression:"availableRoles.length"}],on:{close:e.closeModal}},[s("h2",[e._v("Choose a new role:")]),s("ul",{staticClass:"tokens"},e._l(e.availableRoles,(function(t){return s("li",{key:t.id,staticClass:"token",class:[t.id,t.team],on:{click:function(s){return e.setRole(t)}}},[e._v(" "+e._s(t.name)+" ")])})),0)])],1)},n=[],l=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("li",[s("div",{staticClass:"player",class:{dead:e.player.hasDied,"no-vote":e.player.hasVoted,traveller:"traveller"===e.player.role.team}},[s("div",{staticClass:"shroud",on:{click:function(t){return e.toggleStatus()}}}),s("div",{staticClass:"token",class:[e.player.role.i
|
||
|
//# sourceMappingURL=app.f5edb09b.js.map
|