mirror of
https://gitlab.com/octospacc/Web-Archives-Misc
synced 2025-01-15 09:15:49 +01:00
2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{12:function(t,e,n){(function(n){var o,i;void 0===(i="function"==typeof(o=function(){"use strict";function e(t,e,n){var o=new XMLHttpRequest;o.open("GET",t),o.responseType="blob",o.onload=function(){a(o.response,e,n)},o.onerror=function(){console.error("could not download file")},o.send()}function o(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&e.status<=299}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype?function(t,n,a){var c=s.URL||s.webkitURL,l=document.createElement("a");n=n||t.name||"download",l.download=n,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?i(l):o(l.href)?e(t,n,a):i(l,l.target="_blank")):(l.href=c.createObjectURL(t),setTimeout((function(){c.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,s){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,s),n);else if(o(t))e(t,n,s);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout((function(){i(a)}))}}:function(t,n,o,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,o);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&c)&&"object"==typeof FileReader){var r=new FileReader;r.onloadend=function(){var t=r.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},r.readAsDataURL(t)}else{var d=s.URL||s.webkitURL,u=d.createObjectURL(t);i?i.location=u:location.href=u,i=null,setTimeout((function(){d.revokeObjectURL(u)}),4e4)}});s.saveAs=a.saveAs=a,t.exports=a})?o.apply(e,[]):o)||(t.exports=i)}).call(this,n(5))},35:function(t,e,n){"use strict";n.r(e);var o=n(12);e.default={data:function(){},methods:{signIn:function(){var t=new URL(location.href);console.log(t),"localhost"!=t.hostname&&"https:"!=t.protocol?eclipseemu.dialog.create({title:"Connection Not Secure",text:"You can only use Google Drive on secure connections (HTTPS). Please use Eclipse on https://eclipseemu.me/play/ (note the HTTPS) or reinstall Eclipse if you want to use this feature. <br>Note: You will need to export and import your Eclipse backup to keep your data if you do the latter.",buttons:[{text:"Dismiss"},{text:"Export Backup",onClick:function(){var t='{"notice":"Please copy the entirety of this page and create a new file with the extension \'.eclipse\'. Open the new file, and paste the copied text inside. You will only see this page once, the next launch of Eclipse will not show this.","backup_v2":true,"eclipse":'+JSON.stringify(localStorage)+"}",e=new Blob([t],{type:"text/plain;charset=utf-8"});Object(o.saveAs)(e,"eclipse_backup_"+(new Date).getTime()+".eclipse")}}]}).open():gapi.auth2.getAuthInstance().signIn().then((function(t){1==gapi.auth2.getAuthInstance().isSignedIn.get()&&eclipseemu.toast.create({text:"Signed into Google Drive. You can now add games from Google Drive.",closeTimeout:3e3}).open()}))},signOut:function(){this.$f7.methods.cloud.googleDrive.signout()}},id:"2254b1c8a2",render:function(){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">Google Drive</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="block" style="text-align: center;">\n\t\t\t\t\t\t<img src="https://www.google.com/drive/static/images/drive/logo-drive.png"\n\t\t\t\t\t\t\tstyle="border-radius: 5px; width: 128px;">\n\t\t\t\t\t\t<h1>Google Drive</h1>\n\t\t\t\t\t\t<p>Eclipse uses Google Drive to allow you to add games into your Library.</p>\n\t\t\t\t\t</div>\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(0==this.$app.methods.cloud.googleDrive.getSigninStatus()?'\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a @click="signIn" class="item-link item-content popup-close">\n\t\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t\t<div class="item-title">\n\t\t\t\t\t\t\t\t\t\t\t<span>Sign In</span>\n\t\t\t\t\t\t\t\t\t\t\t<div class="item-footer">To view your games.</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t':'\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a @click="signOut" class="item-link item-content popup-close">\n\t\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t\t<div class="item-title">\n\t\t\t\t\t\t\t\t\t\t\t<span>Sign Out</span>\n\t\t\t\t\t\t\t\t\t\t\t<div class="item-footer">Sign out of Google Drive.</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t',"\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n")},styleScoped:!1}}}]);
|
|
//# sourceMappingURL=8.app.js.map
|