plutonium/launcher/assets/js/games.2559cd9a.js.map
2023-12-10 08:25:41 -05:00

1 line
14 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/views/game/game-action-button.vue?5e87","webpack:///./src/views/game/index.vue?a8ec","webpack:///./src/views/game/index.vue?874e","webpack:///./src/views/game/game-action-button.vue?d5d2","webpack:///src/views/game/game-action-button.vue","webpack:///./src/views/game/game-action-button.vue?5ca6","webpack:///./src/views/game/game-action-button.vue","webpack:///src/views/game/index.vue","webpack:///./src/views/game/index.vue?7dbb","webpack:///./src/views/game/index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","game","attrs","logo","_v","_s","gameTag","gamePath","on","gameActionButton","openGameSettings","_e","staticRenderFns","staticStyle","class","installed","lanMode","e","loading","$emit","actionLabel","key","toggleLan","upArrow","dwnArrow","name","props","type","required","data","computed","mapGetters","methods","component","components","find","watch","val","refreshGamePath","mounted","$store","dispatch","params","setGameDir","tag","then","launcherGetGameFolder"],"mappings":"uGAAA,W,oCCAA,W,kECAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAAEJ,EAAIO,KAAS,KAAEH,EAAG,MAAM,CAACI,MAAM,CAAC,IAAMR,EAAIO,KAAKE,KAAK,MAAQ,WAAWL,EAAG,MAAM,CAACE,YAAY,aAAa,CAACN,EAAIU,GAAG,IAAIV,EAAIW,GAAGX,EAAIY,SAAS,WAAWR,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,qBAAqB,CAACI,MAAM,CAAC,KAAOR,EAAIO,KAAK,YAAcP,EAAIa,UAAUC,GAAG,CAAC,MAAQd,EAAIe,oBAAoBX,EAAG,MAAM,CAAEJ,EAAY,S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ACLb,SAASA,IAGbc,SAAUA,iCACZC,gBACIb,QAAJA,yBAFA,IAIIE,YAJJ,WAKM,OAAIzB,KAAKoB,UACHpB,KAAKqB,QAAgB,mBAClB,OAEF,WAGXgB,QAASA,CACPV,UADJ,WAEM3B,KAAKqB,SAAWrB,KAAKqB,WC1DgV,I,wBCQvWiB,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,MAIa,EAAAA,E,QCsBA,GACbC,WAAYA,CAAdzB,oBACEiB,MAAOA,CACLpB,QAASA,CACPqB,KAAMA,OACNC,UAAUA,IAGdC,KARF,WASI,MAAO,CACLtB,SAAUA,OAGduB,SAAUA,CACR7B,KADJ,WAEM,OAAO,OAAKkC,KAAKxC,KAAKW,WAG1B8B,MAAOA,CACL9B,QADJ,SACA+B,GACM1C,KAAK2C,oBAGTC,QAvBF,WAwBI5C,KAAK2C,mBAEPN,QAASA,CACPvB,iBADJ,SACAoB,GACUlC,KAAKY,SACPZ,KAAK6C,OAAOC,SAAS,sBAAuB,CAC1CnC,QAASA,KAAKA,KAAKA,IACnBoC,OAAQA,EAAKA,QAAUA,OAASA,KAE1C,mBAEIC,WATJ,WASA,WACMhD,KAAK6C,OAAOC,SAAS,2BAA4B9C,KAAKM,KAAK2C,KAAKC,MAAK,SAA3E,GACQ,EAAR,2BAGIP,gBAdJ,WAeM3C,KAAKY,SAAWuC,sBAAsBnD,KAAKW,UAE7CI,iBAjBJ,WAkBMf,KAAK6C,OAAOC,SAAS,aAAc,QAAzC,0BCrF8V,ICQ1V,G,UAAY,eACd,EACAhD,EACAmB,GACA,EACA,KACA,WACA,OAIa,e","file":"js/games.2559cd9a.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--12-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--12-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--12-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--12-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./game-action-button.vue?vue&type=style&index=0&id=9e56bc9e&lang=stylus&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--12-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--12-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--12-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--12-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=d152bae2&lang=stylus&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"gamePage\"},[_c('div',{staticClass:\"vertical-grid\"},[_c('div',{staticClass:\"grid\"},[_c('div',[(_vm.game.logo)?_c('img',{attrs:{\"src\":_vm.game.logo,\"width\":\"350px\"}}):_c('div',{staticClass:\"gameTitle\"},[_vm._v(\" \"+_vm._s(_vm.gameTag)+\" \")])])]),_c('div',{staticClass:\"grid\"},[_c('game-action-button',{attrs:{\"game\":_vm.game,\"installed\":!!_vm.gamePath},on:{\"click\":_vm.gameActionButton}}),_c('div',[(_vm.gamePath)?_c('div',{staticClass:\"settings clickable no-backdrop-highlight\",on:{\"click\":_vm.openGameSettings}},[_c('i',{staticClass:\"fas fa-cog\"}),_vm._v(\" Game Settings\"),_c('br')]):_vm._e()])],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"display\":\"inline-flex\"}},[_c('div',{staticClass:\"button clickable\",class:{installed: _vm.installed, lanMode: _vm.lanMode},on:{\"click\":function (e) { return !_vm.loading ? _vm.$emit('click', {lanMode: _vm.lanMode}) : null; }}},[(_vm.actionLabel)?_c('div',{staticClass:\"text\"},[_vm._v(\" \"+_vm._s(_vm.actionLabel)+\" \")]):_vm._e(),(_vm.lanMode)?_c('div',{staticClass:\"caption\"},[_vm._v(\" Anticheat disabled \")]):_vm._e()]),(_vm.installed)?_c('div',{key:(_vm.lanMode ? 'up' : 'down') + 'arrow',staticClass:\"options clickable\",class:{lanMode: _vm.lanMode},on:{\"click\":_vm.toggleLan}},[(_vm.lanMode)?_c('i',{key:_vm.upArrow,staticClass:\"fas fa-chevron-up\"}):_c('i',{key:_vm.dwnArrow,staticClass:\"fas fa-chevron-down\"})]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div style=\"display: inline-flex;\">\r\n <div\r\n class=\"button clickable\"\r\n :class=\"{installed, lanMode}\"\r\n @click=\"e => !loading ? $emit('click', {lanMode}) : null\"\r\n >\r\n <div v-if=\"actionLabel\" class=\"text\">\r\n {{ actionLabel }}\r\n </div>\r\n <div v-if=\"lanMode\" class=\"caption\">\r\n Anticheat disabled\r\n </div>\r\n </div>\r\n <div\r\n v-if=\"installed\"\r\n :key=\"(lanMode ? 'up' : 'down') + 'arrow'\"\r\n class=\"options clickable\"\r\n :class=\"{lanMode}\"\r\n @click=\"toggleLan\"\r\n >\r\n <i v-if=\"lanMode\" :key=\"upArrow\" class=\"fas fa-chevron-up\" />\r\n <i v-else :key=\"dwnArrow\" class=\"fas fa-chevron-down\" />\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport { mapGetters } from 'vuex'\r\nexport default {\r\n name: 'MainButton',\r\n props: {\r\n game: {\r\n type: Object,\r\n required: true\r\n },\r\n installed: {\r\n type: Boolean\r\n }\r\n },\r\n data () {\r\n return {\r\n lanMode: false\r\n }\r\n },\r\n computed: {\r\n ...mapGetters({\r\n loading: 'ui/showLoadingModal'\r\n }),\r\n actionLabel () {\r\n if (this.installed) {\r\n if (this.lanMode) return 'Play in LAN Mode'\r\n return 'Play'\r\n }\r\n return 'Setup'\r\n }\r\n },\r\n methods: {\r\n toggleLan () {\r\n this.lanMode = !this.lanMode\r\n }\r\n }\r\n}\r\n</script>\r\n<style lang=\"stylus\" scoped>\r\n.button {\r\n font-family: nimbus-sans, sans-serif;\r\n font-size: 44px;\r\n text-transform: uppercase;\r\n display: inline-block;\r\n background-color: $info;\r\n color: white;\r\n padding: 8px;\r\n height: 60px;\r\n width: 300px;\r\n text-align: center;\r\n cursor: pointer;\r\n\r\n &.installed {\r\n background-color: $positive;\r\n }\r\n\r\n .caption {\r\n font-size 12px;\r\n }\r\n\r\n &.lanMode {\r\n font-size: 28px;\r\n padding: 6px;\r\n border: 2px solid alpha(white, 0.65);\r\n background-color: $warning;\r\n .text {\r\n margin-top: 12px;\r\n }\r\n }\r\n}\r\n\r\n.options {\r\n font-family: nimbus-sans, sans-serif;\r\n font-size: 32px;\r\n text-transform: uppercase;\r\n display: inline-block;\r\n background-color: $positive;\r\n color: white;\r\n padding: 8px;\r\n padding-top: 19px;\r\n padding-bottom: 0;\r\n margin-left: 2px;\r\n height: 57px;\r\n width: 34px;\r\n text-align: center;\r\n cursor: pointer;\r\n\r\n &.lanMode {\r\n font-size: 28px;\r\n padding: 6px;\r\n padding-top: 17px;\r\n padding-bottom: 0;\r\n border: 2px solid alpha(white, 0.65);\r\n height: 55px;\r\n background-color: $warning;\r\n .text {\r\n margin-top: 12px;\r\n }\r\n }\r\n}\r\n\r\n.text {\r\n margin-top: 3px;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./game-action-button.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./game-action-button.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./game-action-button.vue?vue&type=template&id=9e56bc9e&scoped=true&\"\nimport script from \"./game-action-button.vue?vue&type=script&lang=js&\"\nexport * from \"./game-action-button.vue?vue&type=script&lang=js&\"\nimport style0 from \"./game-action-button.vue?vue&type=style&index=0&id=9e56bc9e&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"9e56bc9e\",\n null\n \n)\n\nexport default component.exports","<template>\r\n <div class=\"gamePage\">\r\n <div class=\"vertical-grid\">\r\n <div class=\"grid\">\r\n <div>\r\n <img\r\n v-if=\"game.logo\"\r\n :src=\"game.logo\"\r\n width=\"350px\"\r\n >\r\n <div\r\n v-else\r\n class=\"gameTitle\"\r\n >\r\n {{ gameTag }}\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"grid\">\r\n <game-action-button\r\n :game=\"game\"\r\n :installed=\"!!gamePath\"\r\n @click=\"gameActionButton\"\r\n />\r\n <div>\r\n <div\r\n v-if=\"gamePath\"\r\n class=\"settings clickable no-backdrop-highlight\"\r\n @click=\"openGameSettings\"\r\n >\r\n <i class=\"fas fa-cog\" /> Game Settings<br>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\n/* eslint-disable no-undef */\r\nimport Game from 'store/models/game'\r\nimport gameActionButton from './game-action-button'\r\nexport default {\r\n components: { gameActionButton },\r\n props: {\r\n gameTag: {\r\n type: String,\r\n required: true\r\n }\r\n },\r\n data () {\r\n return {\r\n gamePath: null\r\n }\r\n },\r\n computed: {\r\n game () {\r\n return Game.find(this.gameTag)\r\n }\r\n },\r\n watch: {\r\n gameTag (val) {\r\n this.refreshGamePath()\r\n }\r\n },\r\n mounted () {\r\n this.refreshGamePath()\r\n },\r\n methods: {\r\n gameActionButton (data) {\r\n if (this.gamePath) {\r\n this.$store.dispatch('entities/games/play', {\r\n gameTag: this.game.tag,\r\n params: data.lanMode ? '-lan' : ''\r\n })\r\n } else this.setGameDir()\r\n },\r\n setGameDir () {\r\n this.$store.dispatch('entities/games/selectDir', this.game.tag).then(path => {\r\n this.gamePath = path || this.gamePath\r\n })\r\n },\r\n refreshGamePath () {\r\n this.gamePath = launcherGetGameFolder(this.gameTag)\r\n },\r\n openGameSettings () {\r\n this.$store.dispatch('ui/setPeek', `game/${this.game.tag}`)\r\n }\r\n }\r\n}\r\n</script>\r\n<style lang=\"stylus\" scoped>\r\n* {\r\n overflow: hidden;\r\n}\r\n\r\n.gamePage {\r\n word-wrap: break-word;\r\n}\r\n\r\n.vertical-grid {\r\n display: grid;\r\n grid-template-columns: auto;\r\n grid-template-rows: auto 100px;\r\n height: calc(100vh - 116px);\r\n}\r\n\r\n.grid {\r\n display: grid;\r\n grid-template-columns: min-content auto;\r\n grid-column-gap: 16px;\r\n}\r\n\r\n.gameButton {\r\n margin: auto auto;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=d152bae2&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=d152bae2&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"d152bae2\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}