Skip to content

Commit

Permalink
Minor changes & folder adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Mar 26, 2024
1 parent dc136e9 commit 294836a
Show file tree
Hide file tree
Showing 11 changed files with 4,175 additions and 2,363 deletions.
5,999 changes: 3,884 additions & 2,115 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 16 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
{
"name": "essential-svelte-esm",
"version": "0.0.5",
"description": "Provides essential TRL demos for reactivity and beyond.",
"name": "item_piles_bankers",
"version": "1.0.0",
"description": "A foundry module.",
"license": "MIT",
"private": true,
"type": "module",
"author": "Michael Leahy <[email protected]> (https://github.com/typhonrt)",
"author": "Fantasy Computerworks (https://github.com/fantasycalendar)",
"contributors": [
"Michael Leahy <[email protected]> (https://github.com/typhonrt)"
"Wasp <[email protected]> (https://github.com/haxxer)"
],
"imports": {
"#runtime/*": "@typhonjs-fvtt/runtime/*",
"#standard/*": "@typhonjs-fvtt/svelte-standard/*"
},
"dependencies": {
"@typhonjs-fvtt/runtime": "^0.0.22",
"@typhonjs-fvtt/svelte-standard": "^0.0.23",
"svelte": "^3.57.0"
"@typhonjs-fvtt/runtime": "^0.1.2",
"@typhonjs-fvtt/svelte-standard": "^0.1.0",
"svelte": "^4.1.2"
},
"devDependencies": {
"@league-of-foundry-developers/foundry-vtt-types": "^9.238.1",
"@typhonjs-config/eslint-config": "^0.3.0",
"@typhonjs-config/eslint-config": "^0.6.0",
"@typhonjs-fvtt/eslint-config-foundry.js": "^0.8.0",
"eslint": "^8",
"eslint": "^8.46.0",
"svelte-dnd-action": "^0.9.18",
"svelte-preprocess": "^5",
"vite": "^4"
"svelte-preprocess": "^5.0.4",
"vite": "^4.4.8"
},
"browserslist": [
">5%",
Expand Down
8 changes: 4 additions & 4 deletions src/applications/bank-management/bank-management-app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SvelteApplication } from '@typhonjs-fvtt/runtime/svelte/application';
import { SvelteApplication } from '#runtime/svelte/application';
import BankManagementShell from "./bank-management-shell.svelte";
import * as lib from "../../lib.js";

Expand All @@ -21,10 +21,10 @@ export default class BankManagementApp extends SvelteApplication {
},
classes: ["app window-app sheet item-piles-bankers"],
zIndex: 100,
width: 800,
height: "auto",
width: 900,
height: 500,
closeOnSubmit: false,
resizable: false
resizable: true
});
}

Expand Down
39 changes: 30 additions & 9 deletions src/applications/bank-management/bank-management-shell.svelte
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<script>
import { ApplicationShell } from '@typhonjs-fvtt/runtime/svelte/component/core';
import { TJSDocument } from '@typhonjs-fvtt/runtime/svelte/store';
import { ApplicationShell } from '#runtime/svelte/component/core';
import { TJSDocument } from "#runtime/svelte/store/fvtt/document";
import { getContext, onDestroy, onMount } from 'svelte';
import * as lib from "../../lib.js";
import { get, writable } from "svelte/store";
import DropZone from "../components/DropZone.svelte";
import { localize } from "@typhonjs-fvtt/runtime/svelte/helper";
import { localize } from "#runtime/svelte/helper";
import CONSTANTS from "../../constants.js";
import ProgressBar from "../components/ProgressBar.svelte";
import { TJSProseMirror } from "@typhonjs-fvtt/svelte-standard/component/dev";
import { TJSProseMirror } from "#standard/component";
const { application } = getContext('#external');
Expand Down Expand Up @@ -288,7 +288,7 @@
<ApplicationShell bind:elementRoot>
<DropZone callback={onDropData}>
<DropZone callback={onDropData} style="max-height: 100%; display: flex; flex-direction: column; overflow: hidden;">
{#if vaultDescription}
<div class="item-piles-bottom-divider" style="padding-bottom:0;">
Expand All @@ -304,10 +304,10 @@
</div>
{/if}
<div class="item-piles-flexrow">
<div class="item-piles-flexrow item-piles-bankers-main-body">
<div class="item-piles-flexcol"
style="flex: 0 1 40%; border-right: 1px solid rgba(0,0,0,0.25); margin-right: 0.25rem; padding-right: 0.25rem;">
style="flex: 0 1 350px; border-right: 1px solid rgba(0,0,0,0.25); margin-right: 0.25rem; padding-right: 0.25rem; height: 100%;">
<input type="text" bind:value={$vaultSearch} placeholder="Search..." style="flex: 0 1 auto; margin-bottom: 0.25rem;">
Expand All @@ -321,7 +321,7 @@
</select>
</div>
<div style="max-height: 288px; overflow-y: scroll; padding-right: 0.25rem;">
<div style="height: 100%; overflow-y: scroll; padding-right: 0.25rem;">
{#each visibleVaults as userCollection, index (userCollection.userId)}
Expand Down Expand Up @@ -358,7 +358,7 @@
</div>
<div class="item-piles-flexcol" style="max-height: 319px;">
<div class="item-piles-flexcol" style="height: 100%; display: flex;">
<div class="item-piles-bankers-item-container-list item-piles-bottom-divider" class:item-piles-bankers-centered-flex={!$itemsToAdd.length}>
Expand Down Expand Up @@ -485,3 +485,24 @@
</DropZone>
</ApplicationShell>
<style lang="scss">
.item-piles-bankers-main-body {
flex: 1;
overflow: hidden;
}
.item-piles-bankers-item-container-list {
display: flex;
flex-direction: column;
flex: 1;
overflow: hidden;
> * {
flex: 1;
}
}
</style>
2 changes: 1 addition & 1 deletion src/applications/bank-teller/bank-teller-app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SvelteApplication } from '@typhonjs-fvtt/runtime/svelte/application';
import { SvelteApplication } from '#runtime/svelte/application';
import BankTellerShell from "./bank-teller-shell.svelte";
import * as lib from "../../lib.js";

Expand Down
4 changes: 2 additions & 2 deletions src/applications/bank-teller/bank-teller-shell.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
import { ApplicationShell } from '@typhonjs-fvtt/runtime/svelte/component/core';
import { TJSDialog } from "@typhonjs-fvtt/runtime/svelte/application";
import { ApplicationShell } from '#runtime/svelte/component/core';
import { TJSDialog } from "#runtime/svelte/application";
import { getContext } from 'svelte';
import * as lib from "../../lib.js";
import CreateNewVaultDialog from "../components/CreateNewVaultDialog.svelte";
Expand Down
2 changes: 1 addition & 1 deletion src/applications/components/CreateNewVaultDialog.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import { getContext } from 'svelte';
import { localize } from '@typhonjs-fvtt/runtime/svelte/helper';
import { localize } from '#runtime/svelte/helper';
import { writable } from "svelte/store";
import * as lib from "../../lib.js";
Expand Down
Loading

0 comments on commit 294836a

Please sign in to comment.