1 line
7.5 KiB
Plaintext
1 line
7.5 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/peek/gameSettings/index.vue?cdf2","webpack:///./src/peek/gameSettings/index.vue?9c6d","webpack:///src/peek/gameSettings/index.vue","webpack:///./src/peek/gameSettings/index.vue?7a0b","webpack:///./src/peek/gameSettings/index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","game","title","path","on","$event","setGameDir","verifySteam","staticRenderFns","data","gamePath","computed","mapGetters","user","gameTag","find","length","trimLength","mounted","refreshGamePath","methods","$store","dispatch","then","launcherGetGameFolder","component"],"mappings":"kHAAA,W,2CCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACN,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,KAAKC,OAAO,OAAOV,EAAIO,GAAG,qBAAqBH,EAAG,MAAM,CAACE,YAAY,UAAU,CAACN,EAAIO,GAAG,iBAAiBH,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACN,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIW,MAAM,OAAOP,EAAG,MAAM,CAACE,YAAY,mBAAmBM,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAIc,gBAAgB,CAACd,EAAIO,GAAG,oBAAoBH,EAAG,MAAM,CAACE,YAAY,UAAU,CAACN,EAAIO,GAAG,aAAaH,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,mBAAmBM,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAIe,iBAAiB,CAACf,EAAIO,GAAG,+BACzuBS,EAAkB,G,0DCwCP,GACbC,KADF,WAEI,MAAO,CACLC,SAAUA,OAGdC,SAAUA,iCACZC,gBACIC,KAAJA,sBACIC,QAAJA,iBAHA,IAKIb,KALJ,WAMM,OAAO,OAAKc,KAAKtB,KAAKqB,UAExBX,KARJ,WASM,IAAN,KACA,gBACM,GAAIA,GAAQA,EAAKa,OAASC,EAAY,CACpC,IAAR,aACA,wBACQ,MAAO,MAAQ,EAAvB,UACA,YAGEC,QAxBF,WAyBIzB,KAAK0B,mBAEPC,QAASA,CACPd,WADJ,WACA,WACMb,KAAK4B,OAAOC,SAAS,2BAA4B7B,KAAKqB,SAASS,MAAK,SAA1E,GACQ,EAAR,2BAGIJ,gBANJ,WAQM1B,KAAKiB,SAAWc,sBAAsB/B,KAAKqB,UAE7CP,YAVJ,WAWMd,KAAK4B,OAAOC,SAAS,iCAAkC7B,KAAKqB,YC/E4R,I,wBCQ1VW,EAAY,eACd,EACAlC,EACAiB,GACA,EACA,KACA,WACA,MAIa,aAAAiB,E","file":"js/chunk-11e7bc78.2d0f245a.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!./index.vue?vue&type=style&index=0&id=e0882984&lang=stylus&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"header\"},[_c('div',{staticClass:\"title\"},[_vm._v(\" \"+_vm._s(_vm.game.title)+\" \")]),_vm._v(\" Game Settings \")]),_c('div',{staticClass:\"header\"},[_vm._v(\" Game Path \")]),_c('div',{staticClass:\"filePath\"},[_c('div',{staticClass:\"text\"},[_vm._v(\" \"+_vm._s(_vm.path)+\" \")]),_c('div',{staticClass:\"button clickable\",on:{\"click\":function($event){return _vm.setGameDir()}}},[_vm._v(\" Select Dir \")])]),_c('div',{staticClass:\"header\"},[_vm._v(\" Steam \")]),_c('div',{staticClass:\"verify\"},[_c('div',{staticClass:\"button clickable\",on:{\"click\":function($event){return _vm.verifySteam()}}},[_vm._v(\" Verify Ownership \")])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div>\n <div class=\"content\">\n <div class=\"header\">\n <div class=\"title\">\n {{ game.title }}\n </div>\n Game Settings\n </div>\n <div class=\"header\">\n Game Path\n </div>\n <div class=\"filePath\">\n <div class=\"text\">\n {{ path }}\n </div>\n <div\n class=\"button clickable\"\n @click=\"setGameDir()\"\n >\n Select Dir\n </div>\n </div>\n <div class=\"header\">\n Steam\n </div>\n <div class=\"verify\">\n <div\n class=\"button clickable\"\n @click=\"verifySteam()\"\n >\n Verify Ownership\n </div>\n </div>\n </div>\n </div>\n</template>\n<script>\nimport { mapGetters } from 'vuex'\n// eslint-disable-next-line no-unused-vars\nimport Game from 'store/models/game'\nexport default {\n data () {\n return {\n gamePath: null\n }\n },\n computed: {\n ...mapGetters({\n user: 'authentication/user',\n gameTag: 'ui/peekInfo'\n }),\n game () {\n return Game.find(this.gameTag)\n },\n path () {\n const trimLength = 38\n const path = this.gamePath\n if (path && path.length > trimLength) {\n const overgrowth = path.length - trimLength\n const clipStart = path ? Math.floor(overgrowth * 0.45) : 0\n return '...' + (path.substr(clipStart))\n } else return path\n }\n },\n mounted () {\n this.refreshGamePath()\n },\n methods: {\n setGameDir () {\n this.$store.dispatch('entities/games/selectDir', this.gameTag).then(path => {\n this.gamePath = path || this.gamePath\n })\n },\n refreshGamePath () {\n // eslint-disable-next-line no-undef\n this.gamePath = launcherGetGameFolder(this.gameTag)\n },\n verifySteam () {\n this.$store.dispatch('entities/games/verifyOwnership', this.gameTag)\n }\n }\n}\n</script>\n<style lang=\"stylus\" scoped>\n.filePath {\n background-color: tint(black, 15%);\n padding-top: 13px;\n padding-left: 12px;\n height: 39px;\n position: relative;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n\n .text {\n max-width: calc(100% - 1000px);\n }\n\n .button {\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: 100px;\n background-color: tint(black, 30%);\n text-align: center;\n padding-top: 13px;\n }\n}\n\n.verify {\n position: relative;\n white-space: nowrap;\n\n .button {\n width: 150px;\n height: 39px;\n background-color: tint(black, 30%);\n padding-top: 13px;\n text-align: center;\n }\n}\n\n.header {\n font-family: politica, sans-serif;\n font-weight: 700;\n margin-bottom: 8px;\n\n &:nth-child(n+2) {\n margin-top: 16px;\n }\n}\n\n.content {\n padding: 16px;\n}\n\n.footer {\n position: fixed;\n bottom: 0;\n right: 0;\n padding: 16px;\n}\n</style>\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=e0882984&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=e0882984&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 \"e0882984\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} |