Fixed so the frontend dont store origin address

This commit is contained in:
2026-02-22 20:52:26 +01:00
parent ea90f8bc7f
commit d203fab334
43 changed files with 70 additions and 81 deletions

View File

@@ -0,0 +1 @@
import{c as m,a as i,f as u}from"../chunks/K5GTgIDA.js";import{b as d,E as g,o as v,af as _,h as n,a9 as y,ag as h,ah as o,f,e as c,w,a8 as E,K as b}from"../chunks/DxMC-E2z.js";import{B as T}from"../chunks/DrX-8T7E.js";import{s as x}from"../chunks/HgGInnYf.js";function M(l,s,...a){var r=new T(l);d(()=>{const t=s()??null;r.ensure(t,t&&(e=>t(e,...a)))},g)}function A(l,s){let a=null,r=n;var t;if(n){a=w;for(var e=y(document.head);e!==null&&(e.nodeType!==h||e.data!==l);)e=o(e);if(e===null)f(!1);else{var p=o(e);e.remove(),c(p)}}n||(t=document.head.appendChild(v()));try{d(()=>s(t),_)}finally{r&&(f(!0),c(a))}}const C=!1,F=!0,j=Object.freeze(Object.defineProperty({__proto__:null,prerender:F,ssr:C},Symbol.toStringTag,{value:"Module"})),N="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='107'%20height='128'%20viewBox='0%200%20107%20128'%3e%3ctitle%3esvelte-logo%3c/title%3e%3cpath%20d='M94.157%2022.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282%2029.608A29.92%2029.92%200%200%200%208.764%2049.65a31.5%2031.5%200%200%200%203.108%2020.231%2030%2030%200%200%200-4.477%2011.183%2031.9%2031.9%200%200%200%205.448%2024.116c10.402%2014.887%2030.942%2019.297%2045.791%209.835l26.083-16.624A29.92%2029.92%200%200%200%2098.235%2078.35a31.53%2031.53%200%200%200-3.105-20.232%2030%2030%200%200%200%204.474-11.182%2031.88%2031.88%200%200%200-5.447-24.116'%20style='fill:%23ff3e00'/%3e%3cpath%20d='M45.817%20106.582a20.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.503%2018%2018%200%200%201%20.624-2.435l.49-1.498%201.337.981a33.6%2033.6%200%200%200%2010.203%205.098l.97.294-.09.968a5.85%205.85%200%200%200%201.052%203.878%206.24%206.24%200%200%200%206.695%202.485%205.8%205.8%200%200%200%201.603-.704L69.27%2076.28a5.43%205.43%200%200%200%202.45-3.631%205.8%205.8%200%200%200-.987-4.371%206.24%206.24%200%200%200-6.698-2.487%205.7%205.7%200%200%200-1.6.704l-9.953%206.345a19%2019%200%200%201-5.296%202.326%2020.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.502%2017.99%2017.99%200%200%201%208.13-12.052l26.081-16.623a19%2019%200%200%201%205.3-2.329%2020.72%2020.72%200%200%201%2022.237%208.243%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-.624%202.435l-.49%201.498-1.337-.98a33.6%2033.6%200%200%200-10.203-5.1l-.97-.294.09-.968a5.86%205.86%200%200%200-1.052-3.878%206.24%206.24%200%200%200-6.696-2.485%205.8%205.8%200%200%200-1.602.704L37.73%2051.72a5.42%205.42%200%200%200-2.449%203.63%205.79%205.79%200%200%200%20.986%204.372%206.24%206.24%200%200%200%206.698%202.486%205.8%205.8%200%200%200%201.602-.704l9.952-6.342a19%2019%200%200%201%205.295-2.328%2020.72%2020.72%200%200%201%2022.237%208.242%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-8.13%2012.053l-26.081%2016.622a19%2019%200%200%201-5.3%202.328'%20style='fill:%23fff'/%3e%3c/svg%3e";var O=u('<link rel="icon"/>');function D(l,s){var a=m();A("12qhfyh",t=>{var e=O();b(()=>x(e,"href",N)),i(t,e)});var r=E(a);M(r,()=>s.children),i(l,a)}export{D as component,j as universal};

View File

@@ -1 +0,0 @@
import{c as m,a as i,f as u}from"../chunks/wrmqo5Xl.js";import{b as d,E as v,l as _,ah as g,h as r,ab as y,ai as h,aj as o,d as f,c,n as b,aa as w,G as E}from"../chunks/a9_IrBSG.js";import{B as T}from"../chunks/DPjh4P1x.js";import{s as x}from"../chunks/LnFm25i4.js";function M(l,s,...a){var n=new T(l);d(()=>{const t=s()??null;n.ensure(t,t&&(e=>t(e,...a)))},v)}function A(l,s){let a=null,n=r;var t;if(r){a=b;for(var e=y(document.head);e!==null&&(e.nodeType!==h||e.data!==l);)e=o(e);if(e===null)f(!1);else{var p=o(e);e.remove(),c(p)}}r||(t=document.head.appendChild(_()));try{d(()=>s(t),g)}finally{n&&(f(!0),c(a))}}const C=!1,F=!0,S=Object.freeze(Object.defineProperty({__proto__:null,prerender:F,ssr:C},Symbol.toStringTag,{value:"Module"})),N="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='107'%20height='128'%20viewBox='0%200%20107%20128'%3e%3ctitle%3esvelte-logo%3c/title%3e%3cpath%20d='M94.157%2022.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282%2029.608A29.92%2029.92%200%200%200%208.764%2049.65a31.5%2031.5%200%200%200%203.108%2020.231%2030%2030%200%200%200-4.477%2011.183%2031.9%2031.9%200%200%200%205.448%2024.116c10.402%2014.887%2030.942%2019.297%2045.791%209.835l26.083-16.624A29.92%2029.92%200%200%200%2098.235%2078.35a31.53%2031.53%200%200%200-3.105-20.232%2030%2030%200%200%200%204.474-11.182%2031.88%2031.88%200%200%200-5.447-24.116'%20style='fill:%23ff3e00'/%3e%3cpath%20d='M45.817%20106.582a20.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.503%2018%2018%200%200%201%20.624-2.435l.49-1.498%201.337.981a33.6%2033.6%200%200%200%2010.203%205.098l.97.294-.09.968a5.85%205.85%200%200%200%201.052%203.878%206.24%206.24%200%200%200%206.695%202.485%205.8%205.8%200%200%200%201.603-.704L69.27%2076.28a5.43%205.43%200%200%200%202.45-3.631%205.8%205.8%200%200%200-.987-4.371%206.24%206.24%200%200%200-6.698-2.487%205.7%205.7%200%200%200-1.6.704l-9.953%206.345a19%2019%200%200%201-5.296%202.326%2020.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.502%2017.99%2017.99%200%200%201%208.13-12.052l26.081-16.623a19%2019%200%200%201%205.3-2.329%2020.72%2020.72%200%200%201%2022.237%208.243%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-.624%202.435l-.49%201.498-1.337-.98a33.6%2033.6%200%200%200-10.203-5.1l-.97-.294.09-.968a5.86%205.86%200%200%200-1.052-3.878%206.24%206.24%200%200%200-6.696-2.485%205.8%205.8%200%200%200-1.602.704L37.73%2051.72a5.42%205.42%200%200%200-2.449%203.63%205.79%205.79%200%200%200%20.986%204.372%206.24%206.24%200%200%200%206.698%202.486%205.8%205.8%200%200%200%201.602-.704l9.952-6.342a19%2019%200%200%201%205.295-2.328%2020.72%2020.72%200%200%201%2022.237%208.242%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-8.13%2012.053l-26.081%2016.622a19%2019%200%200%201-5.3%202.328'%20style='fill:%23fff'/%3e%3c/svg%3e";var O=u('<link rel="icon"/>');function D(l,s){var a=m();A("12qhfyh",t=>{var e=O();E(()=>x(e,"href",N)),i(t,e)});var n=w(a);M(n,()=>s.children),i(l,a)}export{D as component,S as universal};

View File

@@ -0,0 +1 @@
import{f as u,a as h}from"../chunks/K5GTgIDA.js";import{i as g}from"../chunks/DgU0EQmz.js";import{z as l,a8 as v,K as d,B as _,D as s,F as e,C as x}from"../chunks/DxMC-E2z.js";import{s as o}from"../chunks/V6M2jInR.js";import{s as $,p}from"../chunks/niSfElle.js";const k={get error(){return p.error},get status(){return p.status}};$.updated.check;const m=k;var b=u("<h1> </h1> <p> </p>",1);function F(i,f){l(f,!1),g();var t=b(),r=v(t),n=s(r,!0);e(r);var a=x(r,2),c=s(a,!0);e(a),d(()=>{o(n,m.status),o(c,m.error?.message)}),h(i,t),_()}export{F as component};

View File

@@ -1 +0,0 @@
import{f as u,a as h}from"../chunks/wrmqo5Xl.js";import{i as g}from"../chunks/FF6OmFSc.js";import{w as l,aa as v,G as d,y as _,A as s,B as e,z as x}from"../chunks/a9_IrBSG.js";import{s as o}from"../chunks/CMb69aT-.js";import{s as $,p}from"../chunks/B0dV4Hxy.js";const k={get error(){return p.error},get status(){return p.status}};$.updated.check;const m=k;var b=u("<h1> </h1> <p> </p>",1);function E(i,f){l(f,!1),g();var t=b(),r=v(t),n=s(r,!0);e(r);var a=x(r,2),c=s(a,!0);e(a),d(()=>{o(n,m.status),o(c,m.error?.message)}),h(i,t),_()}export{E as component};

View File

@@ -1 +0,0 @@
import{f as w,a as d}from"../chunks/wrmqo5Xl.js";import{i as P}from"../chunks/FF6OmFSc.js";import{w as S,x as t,y as q,z as r,A as o,B as i,C as v,D as g,F as b,G as B}from"../chunks/a9_IrBSG.js";import{e as O,s as T}from"../chunks/CMb69aT-.js";import{i as j}from"../chunks/DhE1ouZL.js";import{r as h}from"../chunks/LnFm25i4.js";import{b as _,A as z}from"../chunks/BePdLpFV.js";import{g as D}from"../chunks/B0dV4Hxy.js";var E=w('<p class="error svelte-1uha8ag"> </p>'),F=w('<form class="login svelte-1uha8ag"><h2>Login</h2> <label class="svelte-1uha8ag">User <input type="text" required/></label> <label class="svelte-1uha8ag">Password <input type="password" required/></label> <button>Login</button> <!></form>');function M(y,x){S(x,!1);let s=v(""),e=v({username:"",password:""});async function A(){try{const a=await fetch(`${z}/login`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t(e))});if(!a.ok){b(s,await a.text());return}D("/shadowrun")}catch(a){b(s,a.message)}}P();var n=F(),l=r(o(n),2),u=r(o(l));h(u),i(l);var p=r(l,2),f=r(o(p));h(f),i(p);var c=r(p,2),k=r(c,2);{var C=a=>{var m=E(),L=o(m,!0);i(m),B(()=>T(L,t(s))),d(a,m)};j(k,a=>{t(s)&&a(C)})}i(n),_(u,()=>t(e).username,a=>g(e,t(e).username=a)),_(f,()=>t(e).password,a=>g(e,t(e).password=a)),O("click",c,A),d(y,n),q()}export{M as component};

View File

@@ -0,0 +1 @@
import{f as w,a as d}from"../chunks/K5GTgIDA.js";import{i as J}from"../chunks/DgU0EQmz.js";import{z as O,A as t,B as P,C as r,D as o,F as i,G as v,I as g,J as b,K as S}from"../chunks/DxMC-E2z.js";import{e as T,s as j}from"../chunks/V6M2jInR.js";import{i as z}from"../chunks/BJWcdj5l.js";import{r as h}from"../chunks/HgGInnYf.js";import{b as _}from"../chunks/Cp1RMksV.js";import{g as A}from"../chunks/niSfElle.js";var B=w('<p class="error svelte-1uha8ag"> </p>'),D=w('<form class="login svelte-1uha8ag"><h2>Login</h2> <label class="svelte-1uha8ag">User <input type="text" required/></label> <label class="svelte-1uha8ag">Password <input type="password" required/></label> <button>Login</button> <!></form>');function M(y,x){O(x,!1);let s=v(""),e=v({username:"",password:""});async function k(){try{const a=await fetch("/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t(e))});if(!a.ok){b(s,await a.text());return}A("/shadowrun")}catch(a){b(s,a.message)}}J();var n=D(),l=r(o(n),2),u=r(o(l));h(u),i(l);var p=r(l,2),f=r(o(p));h(f),i(p);var c=r(p,2),C=r(c,2);{var L=a=>{var m=B(),q=o(m,!0);i(m),S(()=>j(q,t(s))),d(a,m)};z(C,a=>{t(s)&&a(L)})}i(n),_(u,()=>t(e).username,a=>g(e,t(e).username=a)),_(f,()=>t(e).password,a=>g(e,t(e).password=a)),T("click",c,k),d(y,n),P()}export{M as component};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long