2023-01-15 20:48:50 +01:00

2 lines
2.7 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{36:function(t,n,i){"use strict";i.r(n),n.default={data:function(){return console.log(this.$route.context),this.$route.context},methods:{addGame:function(t){var n=t.target.dataset;this.$app.methods.game.addFromAPI("https://www.googleapis.com/drive/v3/files/".concat(n.id),n.name,n.system).then((function(t){eclipseemu.views.main.router.navigate("/",{reloadAll:!0,ignoreCache:!0})}))}},id:"976e9d9c29",render:function(){var t=this;return'\n\t<div class="popup">\n\t\t<div class="view">\n\t\t\t<div class="page">\n\t\t\t\t<div class="navbar">\n\t\t\t\t\t<div class="navbar-inner">\n\t\t\t\t\t\t<div class="left">\n\t\t\t\t\t\t\t<a class="link popup-close">\n\t\t\t\t\t\t\t\t<i class="icon f7-icons ios-only">close</i>\n\t\t\t\t\t\t\t\t<i class="icon material-icons md-only">close</i>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="title">Files</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="page-content">\n\t\t\t\t\t<div class="list">\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t'.concat(this.files.filter((function(n){return"Unsupported System"!==t.$app.methods.game.getSystemFromURL(n.name)})).map((function(n){return'<li>\n\t\t\t\t\t <div class="item-content">\n\t\t\t\t\t \t<div class="item-media">\n \t\t\t\t\t\t\t<div class="icon bg-color-blue dark">\n\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon f7-icons if-not-md">document_fill</i>\n\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon material-icons md-only">insert_drive_file</i>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t \t</div>\n\t\t\t\t\t \t<div class="item-inner">\n\t\t\t\t\t\t <div class="item-title">\n\t\t\t\t\t\t \t'.concat(n.name,'\n\t\t\t\t\t\t \t<div class="item-footer">').concat(t.$app.methods.game.expandSystem(t.$app.methods.game.getSystemFromURL(n.name)),'</div>\n\t\t\t\t\t\t </div>\n\t\t\t\t\t \t<div class="item-after"> \n \t\t \t<button data-name="').concat(n.name,'" data-system="').concat(t.$app.methods.game.getSystemFromURL(n.name),'" data-id="').concat(n.id,'" @click="addGame" class="col button button-fill button-round">ADD</button>\n\t\t\t\t\t \t</div>\n\t\t\t\t\t \t</div>\n\t\t\t\t\t </div>\n\t\t\t\t\t </li>')})).join(""),'\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="block-footer">Games for unsupported systems will not show up here. Zipped files (or other archive formats) have to be extracted to show up.</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n')},styleScoped:!1}}}]);
//# sourceMappingURL=9.app.js.map