Deploying to pages from @ profectus/Profectus@660528ea00 🚀

This commit is contained in:
thepaperpilot 2024-03-07 13:14:31 +00:00
parent 90ad4ddec1
commit d36953ba5d
9 changed files with 26 additions and 24 deletions

View file

@ -1 +0,0 @@
import{_ as d,s as u,p as e,a as f,l as T,D as a,b as m,g as p}from"./index.334b42a4.js";import"./vue.359c6955.js";import{b2 as c}from"./@vue.6f8187b0.js";/* empty css */import"./lz-string.bfbf8ec3.js";import"./nanoevents.1080beb7.js";import"./vue-next-select.68e0c605.js";import"./vuedraggable.055200e5.js";import"./sortablejs.20039f18.js";import"./vue-textarea-autosize.35804eaf.js";import"./vue-toastification.45d39007.js";let n=null,l=null;function o(){const t=Date.now();let i=(t-e.time)/1e3;e.time=t;const r=i;if(f.lastTenTicks.push(r),f.lastTenTicks.length>10&&(f.lastTenTicks=f.lastTenTicks.slice(1)),!((l==null?void 0:l.value)&&!e.keepGoing)&&!f.hasNaN&&(i=Math.max(i,0),e.devSpeed!==0)){if(T.value=!1,e.offlineTime!=null){if(a.gt(e.offlineTime,m.offlineLimit*3600)&&(e.offlineTime=m.offlineLimit*3600),a.gt(e.offlineTime,0)&&e.devSpeed!==0){const s=Math.max(e.offlineTime/10,i);e.offlineTime=e.offlineTime-s,i+=s}else e.devSpeed===0&&(e.offlineTime+=i);(!e.offlineProd||a.lt(e.offlineTime,0))&&(e.offlineTime=null)}i=Math.min(i,m.maxTickLength),e.devSpeed!=null&&(i*=e.devSpeed),Number.isFinite(i)||(i=1e308),!a.eq(i,0)&&(e.timePlayed+=i,Number.isFinite(e.timePlayed)||(e.timePlayed=1e308),p.emit("update",i,r),u.unthrottled?(requestAnimationFrame(o),n!=null&&(clearInterval(n),n=null)):n==null&&(n=setInterval(o,50)))}}async function L(){l=(await d(()=>import("./index.334b42a4.js").then(function(t){return t.c}),["assets/index.334b42a4.js","assets/index.b9680201.css","assets/@fontsource.f66d05e7.css","assets/vue.359c6955.js","assets/lz-string.bfbf8ec3.js","assets/@vue.6f8187b0.js","assets/nanoevents.1080beb7.js","assets/vue-next-select.68e0c605.js","assets/vue-next-select.9e6f4164.css","assets/vuedraggable.055200e5.js","assets/sortablejs.20039f18.js","assets/vue-textarea-autosize.35804eaf.js","assets/vue-toastification.45d39007.js","assets/vue-toastification.4b5f8ac8.css"])).hasWon,c(l,t=>{t&&p.emit("gameWon")}),u.unthrottled?requestAnimationFrame(o):n=setInterval(o,50)}export{L as startGameLoop};

View file

@ -0,0 +1 @@
import{_ as d,s as u,p as e,a as f,l as T,D as o,b as m,g as p}from"./index.0c166c16.js";import"./vue.359c6955.js";import{b2 as c}from"./@vue.6f8187b0.js";/* empty css */import"./lz-string.bfbf8ec3.js";import"./nanoevents.1080beb7.js";import"./unofficial-galaxy-sdk.21372393.js";import"./vue-textarea-autosize.35804eaf.js";import"./vue-next-select.68e0c605.js";import"./vuedraggable.055200e5.js";import"./sortablejs.20039f18.js";import"./vue-toastification.45d39007.js";let n=null,l=null;function a(){const t=Date.now();let i=(t-e.time)/1e3;e.time=t;const r=i;if(f.lastTenTicks.push(r),f.lastTenTicks.length>10&&(f.lastTenTicks=f.lastTenTicks.slice(1)),!((l==null?void 0:l.value)&&!e.keepGoing)&&!f.hasNaN&&(i=Math.max(i,0),e.devSpeed!==0)){if(T.value=!1,e.offlineTime!=null){if(o.gt(e.offlineTime,m.offlineLimit*3600)&&(e.offlineTime=m.offlineLimit*3600),o.gt(e.offlineTime,0)&&e.devSpeed!==0){const s=Math.max(e.offlineTime/10,i);e.offlineTime=e.offlineTime-s,i+=s}else e.devSpeed===0&&(e.offlineTime+=i);(!e.offlineProd||o.lt(e.offlineTime,0))&&(e.offlineTime=null)}i=Math.min(i,m.maxTickLength),e.devSpeed!=null&&(i*=e.devSpeed),Number.isFinite(i)||(i=1e308),!o.eq(i,0)&&(e.timePlayed+=i,Number.isFinite(e.timePlayed)||(e.timePlayed=1e308),p.emit("update",i,r),u.unthrottled?(requestAnimationFrame(a),n!=null&&(clearInterval(n),n=null)):n==null&&(n=setInterval(a,50)))}}async function w(){l=(await d(()=>import("./index.0c166c16.js").then(function(t){return t.c}),["assets/index.0c166c16.js","assets/index.44f65c69.css","assets/@fontsource.f66d05e7.css","assets/vue.359c6955.js","assets/lz-string.bfbf8ec3.js","assets/@vue.6f8187b0.js","assets/nanoevents.1080beb7.js","assets/unofficial-galaxy-sdk.21372393.js","assets/vue-textarea-autosize.35804eaf.js","assets/vue-next-select.68e0c605.js","assets/vue-next-select.9e6f4164.css","assets/vuedraggable.055200e5.js","assets/sortablejs.20039f18.js","assets/vue-toastification.45d39007.js","assets/vue-toastification.4b5f8ac8.css"])).hasWon,c(l,t=>{t&&p.emit("gameWon")}),u.unthrottled?requestAnimationFrame(a):n=setInterval(a,50)}export{w as startGameLoop};

18
assets/index.0c166c16.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
function x({acceptedOrigins:i,supportsSaving:$,supportsSaveManager:y,ignoreApiVersion:b,onLoggedInChanged:k}){return new Promise((j,v)=>{var w;if(i=(w=i==null?void 0:i.map(t=>t.replace(/\/?$/,"/")))!=null?w:["https://galaxy.click/"],i.includes(document.referrer.replace(/\/?$/,"/"))){let t,d;const c={},g={},s={acceptedOrigins:i,supportsSaving:$,supportsSaveManager:y,ignoreApiVersion:b,onLoggedInChanged:k,origin:document.referrer.replace(/\/?$/,"/"),apiVersion:0,loggedIn:!1,postMessage:function(e){var n;(n=window.top)==null||n.postMessage(e,s.origin)},getSaveList:function(){return t!=null||d!=null?Promise.reject("save_list action already in progress."):(s.postMessage({action:"save_list"}),new Promise((e,n)=>{t=e,d=n}))},save:function(e,n,l){return e in c?Promise.reject(`save action for slot ${e} already in progress.`):(s.postMessage({action:"save",slot:e,data:n,label:l}),new Promise((u,p)=>{c[e]={accept:u,reject:p}}))},load:function(e){return e in g?Promise.reject(`load action for slot ${e} already in progress.`):(s.postMessage({action:"load",slot:e}),new Promise((n,l)=>{g[e]={accept:n,reject:l}}))}};window.addEventListener("message",e=>{var n,l,u,p,P;if(e.origin.replace(/\/?$/,"/")===s.origin.replace(/\/?$/,"/")){console.log("Received message from Galaxy",e.data);const f=e.data;switch(f.type){case"info":{const{galaxy:r,api_version:a,logged_in:o}=f;if(a!==1&&s.ignoreApiVersion!==!0)v(`API version not recognized: ${a}`);else{const m=s.apiVersion===0;s.apiVersion=a,s.loggedIn=o,s.origin=e.origin,m?j(s):(n=s.onLoggedInChanged)==null||n.call(s,s)}break}case"save_list":{const{list:r,error:a,message:o}=f;a===!0?d(o):t(r),t=d=null;break}case"save_content":{const{content:r,label:a,slot:o,error:m,message:_}=f;m===!0?(l=g[o])==null||l.reject(_):(u=g[o])==null||u.accept({slot:o,content:r,label:a}),delete g[o];break}case"saved":{const{slot:r,error:a,message:o}=f;a===!0?(p=c[r])==null||p.reject(o):(P=c[r])==null||P.accept(r),delete c[r];break}}}})}else v(`Project is not running on an accepted origin: ${window.origin}`)})}export{x as i};

View file

@ -13,19 +13,20 @@
<title>Profectus</title> <title>Profectus</title>
<meta name="description" content="A project made in Profectus"/> <meta name="description" content="A project made in Profectus"/>
<script type="module" crossorigin src="./assets/index.334b42a4.js"></script> <script type="module" crossorigin src="./assets/index.0c166c16.js"></script>
<link rel="modulepreload" href="./assets/lz-string.bfbf8ec3.js"> <link rel="modulepreload" href="./assets/lz-string.bfbf8ec3.js">
<link rel="modulepreload" href="./assets/@vue.6f8187b0.js"> <link rel="modulepreload" href="./assets/@vue.6f8187b0.js">
<link rel="modulepreload" href="./assets/vue.359c6955.js"> <link rel="modulepreload" href="./assets/vue.359c6955.js">
<link rel="modulepreload" href="./assets/nanoevents.1080beb7.js"> <link rel="modulepreload" href="./assets/nanoevents.1080beb7.js">
<link rel="modulepreload" href="./assets/unofficial-galaxy-sdk.21372393.js">
<link rel="modulepreload" href="./assets/vue-textarea-autosize.35804eaf.js">
<link rel="modulepreload" href="./assets/vue-next-select.68e0c605.js"> <link rel="modulepreload" href="./assets/vue-next-select.68e0c605.js">
<link rel="modulepreload" href="./assets/sortablejs.20039f18.js"> <link rel="modulepreload" href="./assets/sortablejs.20039f18.js">
<link rel="modulepreload" href="./assets/vuedraggable.055200e5.js"> <link rel="modulepreload" href="./assets/vuedraggable.055200e5.js">
<link rel="modulepreload" href="./assets/vue-textarea-autosize.35804eaf.js">
<link rel="modulepreload" href="./assets/vue-toastification.45d39007.js"> <link rel="modulepreload" href="./assets/vue-toastification.45d39007.js">
<link rel="stylesheet" href="./assets/vue-next-select.9e6f4164.css"> <link rel="stylesheet" href="./assets/vue-next-select.9e6f4164.css">
<link rel="stylesheet" href="./assets/vue-toastification.4b5f8ac8.css"> <link rel="stylesheet" href="./assets/vue-toastification.4b5f8ac8.css">
<link rel="stylesheet" href="./assets/index.b9680201.css"> <link rel="stylesheet" href="./assets/index.44f65c69.css">
<link rel="stylesheet" href="./assets/@fontsource.f66d05e7.css"> <link rel="stylesheet" href="./assets/@fontsource.f66d05e7.css">
<link rel="manifest" href="./manifest.webmanifest"></head> <link rel="manifest" href="./manifest.webmanifest"></head>
<body> <body>

2
sw.js
View file

@ -1 +1 @@
if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didnt register its module`);return e})));self.define=(n,r)=>{const l=e||("document"in self?document.currentScript.src:"")||location.href;if(s[l])return;let o={};const u=e=>i(e,l),a={module:{uri:l},exports:o,require:u};s[l]=Promise.all(n.map((e=>a[e]||u(e)))).then((e=>(r(...e),o)))}}define(["./workbox-7369c0e1"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"assets/@fontsource.f66d05e7.css",revision:null},{url:"assets/@vue.6f8187b0.js",revision:null},{url:"assets/gameLoop.3733d3cc.js",revision:null},{url:"assets/index.334b42a4.js",revision:null},{url:"assets/index.b9680201.css",revision:null},{url:"assets/lz-string.bfbf8ec3.js",revision:null},{url:"assets/nanoevents.1080beb7.js",revision:null},{url:"assets/sortablejs.20039f18.js",revision:null},{url:"assets/vue-next-select.68e0c605.js",revision:null},{url:"assets/vue-next-select.9e6f4164.css",revision:null},{url:"assets/vue-textarea-autosize.35804eaf.js",revision:null},{url:"assets/vue-toastification.45d39007.js",revision:null},{url:"assets/vue-toastification.4b5f8ac8.css",revision:null},{url:"assets/vue.359c6955.js",revision:null},{url:"assets/vuedraggable.055200e5.js",revision:null},{url:"assets/workbox-window.4a8794bb.js",revision:null},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"favicon.svg",revision:"c8dd2748f1fedd25449164d7dda6aecb"},{url:"index.html",revision:"9851cbf18476846cdc81d29a71e31181"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"robots.txt",revision:"5e0bd1c281a62a380d7a948085bfe2d1"},{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"manifest.webmanifest",revision:"49b9cd04ee2139bfe785f8100ba3f74f"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didnt register its module`);return e})));self.define=(n,l)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(s[r])return;let o={};const u=e=>i(e,r),a={module:{uri:r},exports:o,require:u};s[r]=Promise.all(n.map((e=>a[e]||u(e)))).then((e=>(l(...e),o)))}}define(["./workbox-7369c0e1"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"assets/@fontsource.f66d05e7.css",revision:null},{url:"assets/@vue.6f8187b0.js",revision:null},{url:"assets/gameLoop.f446598b.js",revision:null},{url:"assets/index.0c166c16.js",revision:null},{url:"assets/index.44f65c69.css",revision:null},{url:"assets/lz-string.bfbf8ec3.js",revision:null},{url:"assets/nanoevents.1080beb7.js",revision:null},{url:"assets/sortablejs.20039f18.js",revision:null},{url:"assets/unofficial-galaxy-sdk.21372393.js",revision:null},{url:"assets/vue-next-select.68e0c605.js",revision:null},{url:"assets/vue-next-select.9e6f4164.css",revision:null},{url:"assets/vue-textarea-autosize.35804eaf.js",revision:null},{url:"assets/vue-toastification.45d39007.js",revision:null},{url:"assets/vue-toastification.4b5f8ac8.css",revision:null},{url:"assets/vue.359c6955.js",revision:null},{url:"assets/vuedraggable.055200e5.js",revision:null},{url:"assets/workbox-window.4a8794bb.js",revision:null},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"favicon.svg",revision:"c8dd2748f1fedd25449164d7dda6aecb"},{url:"index.html",revision:"0a612ef20c9c88e30771f36ed9025568"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"robots.txt",revision:"5e0bd1c281a62a380d7a948085bfe2d1"},{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"manifest.webmanifest",revision:"49b9cd04ee2139bfe785f8100ba3f74f"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));