fixed bugs
This commit is contained in:
File diff suppressed because one or more lines are too long
1
frontend/build/_app/immutable/chunks/D_WAtfM3.js
Normal file
1
frontend/build/_app/immutable/chunks/D_WAtfM3.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
1
frontend/build/_app/immutable/entry/start.BWyMcWXp.js
Normal file
1
frontend/build/_app/immutable/entry/start.BWyMcWXp.js
Normal file
@@ -0,0 +1 @@
|
||||
import{l as o,a as r}from"../chunks/D_WAtfM3.js";export{o as load_css,r as start};
|
||||
@@ -1 +0,0 @@
|
||||
import{l as o,a as r}from"../chunks/BEXiALSO.js";export{o as load_css,r as start};
|
||||
@@ -1 +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/BEXiALSO.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};
|
||||
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/D_WAtfM3.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};
|
||||
@@ -1 +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/BEXiALSO.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};
|
||||
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/D_WAtfM3.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
1
frontend/build/_app/immutable/nodes/3.DbVoHo_J.js
Normal file
1
frontend/build/_app/immutable/nodes/3.DbVoHo_J.js
Normal file
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":"1771856210381"}
|
||||
{"version":"1771871349245"}
|
||||
@@ -5,11 +5,11 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
|
||||
<link rel="modulepreload" href="./_app/immutable/entry/start.DL8ghe8B.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/BEXiALSO.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/entry/start.BWyMcWXp.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/D_WAtfM3.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/DxMC-E2z.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/CgHyU30y.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/entry/app.fM2IB28Y.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/entry/app.DShWGRS5.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/V6M2jInR.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/K5GTgIDA.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/BJWcdj5l.js">
|
||||
@@ -20,15 +20,15 @@
|
||||
<div style="display: contents">
|
||||
<script>
|
||||
{
|
||||
__sveltekit_dfa247 = {
|
||||
__sveltekit_1wppsc6 = {
|
||||
base: new URL(".", location).pathname.slice(0, -1)
|
||||
};
|
||||
|
||||
const element = document.currentScript.parentElement;
|
||||
|
||||
Promise.all([
|
||||
import("./_app/immutable/entry/start.DL8ghe8B.js"),
|
||||
import("./_app/immutable/entry/app.fM2IB28Y.js")
|
||||
import("./_app/immutable/entry/start.BWyMcWXp.js"),
|
||||
import("./_app/immutable/entry/app.DShWGRS5.js")
|
||||
]).then(([kit, app]) => {
|
||||
kit.start(app, element);
|
||||
});
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
|
||||
<link rel="modulepreload" href="./_app/immutable/entry/start.DL8ghe8B.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/BEXiALSO.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/entry/start.BWyMcWXp.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/D_WAtfM3.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/DxMC-E2z.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/CgHyU30y.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/entry/app.fM2IB28Y.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/entry/app.DShWGRS5.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/V6M2jInR.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/K5GTgIDA.js">
|
||||
<link rel="modulepreload" href="./_app/immutable/chunks/BJWcdj5l.js">
|
||||
@@ -20,15 +20,15 @@
|
||||
<div style="display: contents">
|
||||
<script>
|
||||
{
|
||||
__sveltekit_dfa247 = {
|
||||
__sveltekit_1wppsc6 = {
|
||||
base: new URL(".", location).pathname.slice(0, -1)
|
||||
};
|
||||
|
||||
const element = document.currentScript.parentElement;
|
||||
|
||||
Promise.all([
|
||||
import("./_app/immutable/entry/start.DL8ghe8B.js"),
|
||||
import("./_app/immutable/entry/app.fM2IB28Y.js")
|
||||
import("./_app/immutable/entry/start.BWyMcWXp.js"),
|
||||
import("./_app/immutable/entry/app.DShWGRS5.js")
|
||||
]).then(([kit, app]) => {
|
||||
kit.start(app, element);
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
characterData.Inventory ??= [];
|
||||
characterData.Notes ??= {};
|
||||
characterData.KnowledgeSkills ??= [];
|
||||
characterData.Proficiencies ??= [];
|
||||
characterData.Specializations ??= [];
|
||||
let selectedDate : any = null // YYYY-MM-DD format
|
||||
|
||||
const characterInfoTypes = {
|
||||
@@ -211,8 +211,8 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<button on:click={() => add("Skills")}>+</button>
|
||||
|
||||
<h2>Proficiencies</h2>
|
||||
|
||||
<h2>Specialization</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -224,17 +224,17 @@
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{#each characterData.Proficiencies as proficiency, i}
|
||||
{#each characterData.Specializations as proficiency, i}
|
||||
<tr>
|
||||
<td><textarea use:autoGrow class="input-height" rows="1" bind:value={characterData.Proficiencies[i].Name}></textarea></td>
|
||||
<td><input type="number" min=1 max=354 bind:value={characterData.Proficiencies[i].Page} /></td>
|
||||
<td><button on:click={() => viewPage(characterData.Proficiencies[i].Page)}>View</button></td>
|
||||
<td><button class="red-button" on:click={() => remove("Proficiencies", i)}>X</button></td>
|
||||
<td><textarea use:autoGrow class="input-height" rows="1" bind:value={characterData.Specializations[i].Name}></textarea></td>
|
||||
<td><input type="number" min=1 max=354 bind:value={characterData.Specializations[i].Page} /></td>
|
||||
<td><button on:click={() => viewPage(characterData.Specializations[i].Page)}>View</button></td>
|
||||
<td><button class="red-button" on:click={() => remove("Specializations", i)}>X</button></td>
|
||||
</tr>
|
||||
{/each}
|
||||
</tbody>
|
||||
</table>
|
||||
<button on:click={() => add("Proficiencies")}>+</button>
|
||||
<button on:click={() => add("Specializations")}>+</button>
|
||||
|
||||
|
||||
<h2>Knowledge Skills</h2>
|
||||
@@ -322,8 +322,8 @@
|
||||
<td><input type="number" min=0 max=100 bind:value={characterData.RangedWeapons[i].RC} /></td>
|
||||
<td><input type="number" min=0 max=9999 bind:value={characterData.RangedWeapons[i].Ammo} /></td>
|
||||
<td><textarea use:autoGrow class="input-height" style="width: 3em;" rows="1" bind:value={characterData.RangedWeapons[i].Availabiliy}></textarea></td>
|
||||
<td><input type="number" min=1 max=354 bind:value={characterData.Connections[i].Page} /></td>
|
||||
<td><button on:click={() => viewPage(characterData.Connections[i].Page)}>View</button></td>
|
||||
<td><input type="number" min=1 max=354 bind:value={characterData.RangedWeapons[i].Page} /></td>
|
||||
<td><button on:click={() => viewPage(characterData.RangedWeapons[i].Page)}>View</button></td>
|
||||
<td><button class="red-button" on:click={() => remove("RangedWeapons", i)}>X</button></td>
|
||||
</tr>
|
||||
{/each}
|
||||
@@ -357,8 +357,8 @@
|
||||
<td><input type="number" min=0 max=999 bind:value={characterData.MeleeWeapons[i]["Strength Multiplier"]} /></td>
|
||||
<td><span> {(weapon["Strength Multiplier"] * characterData.Attributes.Strength) + weapon.Damage }</span></td>
|
||||
<td><input type="number" min=0 max=100 bind:value={characterData.MeleeWeapons[i].AP} /></td>
|
||||
<td><input type="number" min=1 max=354 bind:value={characterData.Connections[i].Page} /></td>
|
||||
<td><button on:click={() => viewPage(characterData.Connections[i].Page)}>View</button></td>
|
||||
<td><input type="number" min=1 max=354 bind:value={characterData.MeleeWeapons[i].Page} /></td>
|
||||
<td><button on:click={() => viewPage(characterData.MeleeWeapons[i].Page)}>View</button></td>
|
||||
<td><button class="red-button" on:click={() => remove("MeleeWeapons", i)}>X</button></td>
|
||||
</tr>
|
||||
{/each}
|
||||
@@ -415,8 +415,8 @@
|
||||
<td><input type="number" min=0 max=100 bind:value={characterData.Cyberware[i].Capacity} /></td>
|
||||
<td><input type="number" min=0 max=100 bind:value={characterData.Cyberware[i].Essence} /></td>
|
||||
<td><input placeholder="Notes" bind:value={characterData.Cyberware[i].Notes} /></td>
|
||||
<td><input type="number" min=1 max=354 bind:value={characterData.Connections[i].Page} /></td>
|
||||
<td><button on:click={() => viewPage(characterData.Connections[i].Page)}>View</button></td>
|
||||
<td><input type="number" min=1 max=354 bind:value={characterData.Cyberware[i].Page} /></td>
|
||||
<td><button on:click={() => viewPage(characterData.Cyberware[i].Page)}>View</button></td>
|
||||
<td><button class="red-button" on:click={() => remove("Cyberware", i)}>X</button></td>
|
||||
</tr>
|
||||
{/each}
|
||||
@@ -446,8 +446,8 @@
|
||||
<td><input type="number" min=0 max=100 bind:value={characterData.Bioware[i].Capacity} /></td>
|
||||
<td><input type="number" min=0 max=100 bind:value={characterData.Bioware[i].Essence} /></td>
|
||||
<td><input placeholder="Notes" bind:value={characterData.Bioware[i].Notes} /></td>
|
||||
<td><input type="number" min=1 max=354 bind:value={characterData.Connections[i].Page} /></td>
|
||||
<td><button on:click={() => viewPage(characterData.Connections[i].Page)}>View</button></td>
|
||||
<td><input type="number" min=1 max=354 bind:value={characterData.Bioware[i].Page} /></td>
|
||||
<td><button on:click={() => viewPage(characterData.Bioware[i].Page)}>View</button></td>
|
||||
<td><button class="red-button" on:click={() => remove("Bioware", i)}>X</button></td>
|
||||
</tr>
|
||||
{/each}
|
||||
|
||||
@@ -34,7 +34,7 @@ const Skill = {
|
||||
Page: 1,
|
||||
}
|
||||
|
||||
const Proficiency = {
|
||||
const Specialization = {
|
||||
Name: "",
|
||||
Page: 1,
|
||||
}
|
||||
@@ -104,7 +104,7 @@ export const Defaults = {
|
||||
Info: Info,
|
||||
Attributes: Attributes,
|
||||
Skills: Skill,
|
||||
Proficiencies: Proficiency,
|
||||
Specializations: Specialization,
|
||||
KnowledgeSkills: Skill,
|
||||
Connections: Connection,
|
||||
RangedWeapons : RangedWeapon,
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace shadowrun {
|
||||
Notes = 11,
|
||||
Inventory = 12,
|
||||
KnowledgeSkills = 13,
|
||||
Proficiencies = 14,
|
||||
Specializations = 14,
|
||||
};
|
||||
|
||||
struct ShadowrunCharacter {
|
||||
|
||||
Reference in New Issue
Block a user