diff --git a/src/API/chat-api.js b/src/API/chat-api.js index dc36778b..c687a663 100644 --- a/src/API/chat-api.js +++ b/src/API/chat-api.js @@ -5,7 +5,6 @@ import ItemPileSocket from "../socket.js"; import * as PileUtilities from "../helpers/pile-utilities.js"; import * as Utilities from "../helpers/utilities.js"; import TradeAPI from "./trade-api.js"; -import * as Util from "util"; export default class ChatAPI { diff --git a/src/applications/components/BasicItemDialog.svelte b/src/applications/components/BasicItemDialog.svelte index 2cfac2c3..f7eb8db0 100644 --- a/src/applications/components/BasicItemDialog.svelte +++ b/src/applications/components/BasicItemDialog.svelte @@ -9,11 +9,11 @@
- + Item - + diff --git a/src/applications/components/CurrencyListEntry.svelte b/src/applications/components/CurrencyListEntry.svelte index cc41c50a..c841562c 100644 --- a/src/applications/components/CurrencyListEntry.svelte +++ b/src/applications/components/CurrencyListEntry.svelte @@ -13,29 +13,31 @@ let text = ""; $: { let number = options.abbreviateNumbers ? Helpers.abbreviateNumbers($quantity) : $quantity; - if($abbreviation){ - if(options.abbreviations){ + if ($abbreviation) { + if (options.abbreviations) { text = $abbreviation.replace("{#}", number); - }else{ + } else { text = number; } - }else{ + } else { text = `${$name} (x${$quantity})`; } } -
+
-
- -
+
+ +
-
-
- {text} -
-
+
+
+ {text} +
+
diff --git a/src/applications/components/CustomDialog.svelte b/src/applications/components/CustomDialog.svelte index 04a3210e..94c76e66 100644 --- a/src/applications/components/CustomDialog.svelte +++ b/src/applications/components/CustomDialog.svelte @@ -9,19 +9,19 @@
- {#if icon} -

- {/if} - {#if header} -

{header}

- {/if} - {#if Array.isArray(content)} - {#each content as part} -

{@html part}

- {/each} - {:else} -

{@html content}

- {/if} + {#if icon} +

+ {/if} + {#if header} +

{header}

+ {/if} + {#if Array.isArray(content)} + {#each content as part} +

{@html part}

+ {/each} + {:else} +

{@html content}

+ {/if}
diff --git a/src/applications/components/DropZone.svelte b/src/applications/components/DropZone.svelte index 3d5f10ab..e1c2a9a0 100644 --- a/src/applications/components/DropZone.svelte +++ b/src/applications/components/DropZone.svelte @@ -45,12 +45,12 @@
- +
diff --git a/src/applications/components/FloatingElement/FloatingElementImpl.svelte b/src/applications/components/FloatingElement/FloatingElementImpl.svelte index 7c7943d4..73007eb3 100644 --- a/src/applications/components/FloatingElement/FloatingElementImpl.svelte +++ b/src/applications/components/FloatingElement/FloatingElementImpl.svelte @@ -22,7 +22,7 @@
- +
diff --git a/src/applications/components/Grid/Grid.svelte b/src/applications/components/Grid/Grid.svelte index be78ca3b..12f29b2e 100644 --- a/src/applications/components/Grid/Grid.svelte +++ b/src/applications/components/Grid/Grid.svelte @@ -84,51 +84,51 @@
-
- {#if dropGhost && dropGhost?.active} - {@const dropElem = calcPosition(dropGhost, options)} -
+ {#if dropGhost && dropGhost?.active} + {@const dropElem = calcPosition(dropGhost, options)} +
- {/if} - {#each items as item (item.id)} - - - - {/each} -
- - {#if options.backgroundGrid} - -
- {#each Array(options.rows) as _, rowIndex (rowIndex)} - {#each Array(options.cols) as _, colIndex (colIndex)} -
= options.enabledCols || rowIndex >= options.enabledRows} - style="width: {options.gridSize + (options.gap/2)}px; height: {options.gridSize + (options.gap/2)}">
- {/each} - {/each} -
- - {/if} + class={options.previewClass} + /> + {/if} + {#each items as item (item.id)} + + + + {/each} +
+ + {#if options.backgroundGrid} + +
+ {#each Array(options.rows) as _, rowIndex (rowIndex)} + {#each Array(options.cols) as _, colIndex (colIndex)} +
= options.enabledCols || rowIndex >= options.enabledRows} + style="width: {options.gridSize + (options.gap/2)}px; height: {options.gridSize + (options.gap/2)}">
+ {/each} + {/each} +
+ + {/if}
diff --git a/src/applications/components/MacroSelector.svelte b/src/applications/components/MacroSelector.svelte index 98281639..d038597a 100644 --- a/src/applications/components/MacroSelector.svelte +++ b/src/applications/components/MacroSelector.svelte @@ -80,13 +80,13 @@
- { filterMacros() }} on:change={() => { filterMacros() }} + on:keyup={() => { filterMacros() }} + placeholder={localize("ITEM-PILES.Applications.ItemPileConfig.Main.MacroPlaceholder")} + style="flex:1; margin-right:5px;" + type="text" /> {#each $macros as m (m.id)} @@ -94,9 +94,9 @@ {/each} openMacro()} + style="margin-top: 5px; font-size: 1rem; flex:0;" >
diff --git a/src/applications/components/PriceList.svelte b/src/applications/components/PriceList.svelte index 02e15258..504ca4de 100644 --- a/src/applications/components/PriceList.svelte +++ b/src/applications/components/PriceList.svelte @@ -5,9 +5,9 @@ import { dndzone, SOURCES, TRIGGERS } from 'svelte-dnd-action'; import DropZone from "./DropZone.svelte"; import * as Helpers from "../../helpers/helpers.js"; + import { getSetting } from "../../helpers/helpers.js"; import * as Utilities from "../../helpers/utilities.js"; import CONSTANTS from "../../constants/constants.js"; - import { getSetting } from "../../helpers/helpers.js"; import SETTINGS from "../../constants/settings.js"; import { getActorFlagData } from "../../helpers/pile-utilities.js"; @@ -175,7 +175,7 @@ - +
@@ -193,9 +193,9 @@
{#if isHovering}
Drop to add
@@ -235,7 +235,7 @@ {/each}
diff --git a/src/applications/components/PropertyPathInput.svelte b/src/applications/components/PropertyPathInput.svelte index 1a7475b0..8253e638 100644 --- a/src/applications/components/PropertyPathInput.svelte +++ b/src/applications/components/PropertyPathInput.svelte @@ -38,7 +38,7 @@ - + {#each suggestions as suggestion} diff --git a/src/applications/components/SliderInput.svelte b/src/applications/components/SliderInput.svelte index 09cd04de..653c69e5 100644 --- a/src/applications/components/SliderInput.svelte +++ b/src/applications/components/SliderInput.svelte @@ -16,8 +16,8 @@
- - + +
\ No newline at end of file + diff --git a/src/applications/components/Tabs.svelte b/src/applications/components/Tabs.svelte index 4a865990..9aabc2f9 100644 --- a/src/applications/components/Tabs.svelte +++ b/src/applications/components/Tabs.svelte @@ -9,22 +9,22 @@ diff --git a/src/applications/dialogs/drop-currency-dialog/drop-currency-dialog-shell.svelte b/src/applications/dialogs/drop-currency-dialog/drop-currency-dialog-shell.svelte index 7957a6ec..7d092fb0 100644 --- a/src/applications/dialogs/drop-currency-dialog/drop-currency-dialog-shell.svelte +++ b/src/applications/dialogs/drop-currency-dialog/drop-currency-dialog-shell.svelte @@ -92,8 +92,8 @@ -
+ {#if attributes.length || items.length} @@ -223,7 +223,7 @@ {/if} - diff --git a/src/applications/dialogs/text-editor-dialog/text-editor-dialog-shell.svelte b/src/applications/dialogs/text-editor-dialog/text-editor-dialog-shell.svelte index ba3b0395..6258c963 100644 --- a/src/applications/dialogs/text-editor-dialog/text-editor-dialog-shell.svelte +++ b/src/applications/dialogs/text-editor-dialog/text-editor-dialog-shell.svelte @@ -3,7 +3,6 @@ import { getContext } from "svelte"; import { ApplicationShell } from "@typhonjs-fvtt/runtime/svelte/component/core"; import { TJSProseMirror } from '@typhonjs-fvtt/svelte-standard/component'; - import { get, writable } from "svelte/store"; const { application } = getContext('#external'); @@ -30,19 +29,19 @@ - +
- - diff --git a/src/applications/dialogs/trade-merchant-item-dialog/trade-merchant-item-dialog.js b/src/applications/dialogs/trade-merchant-item-dialog/trade-merchant-item-dialog.js index 4c0d6f58..972f1f78 100644 --- a/src/applications/dialogs/trade-merchant-item-dialog/trade-merchant-item-dialog.js +++ b/src/applications/dialogs/trade-merchant-item-dialog/trade-merchant-item-dialog.js @@ -4,7 +4,7 @@ import { get } from "svelte/store"; import { getActiveApps } from "../../../helpers/helpers"; export default class TradeMerchantItemDialog extends SvelteApplication { - + /** * * @param item @@ -31,7 +31,7 @@ export default class TradeMerchantItemDialog extends SvelteApplication { ...options }); } - + static get defaultOptions() { return foundry.utils.mergeObject(super.defaultOptions, { width: 330, @@ -39,11 +39,11 @@ export default class TradeMerchantItemDialog extends SvelteApplication { classes: ["item-piles-app"] }) } - + static getActiveApps(id) { return getActiveApps(`item-pile-buy-item-dialog-${id}`); } - + static async show(item, seller, buyer, settings = {}, options = {}) { const apps = this.getActiveApps(item.id + "-" + seller.id + "-" + buyer.id); if (apps.length) { @@ -57,5 +57,5 @@ export default class TradeMerchantItemDialog extends SvelteApplication { new this(item, seller, buyer, settings, options).render(true, { focus: true }); }) } - -} \ No newline at end of file + +} diff --git a/src/applications/dialogs/user-select-dialog/user-select-dialog-shell.svelte b/src/applications/dialogs/user-select-dialog/user-select-dialog-shell.svelte index 26c703b2..771f228c 100644 --- a/src/applications/dialogs/user-select-dialog/user-select-dialog-shell.svelte +++ b/src/applications/dialogs/user-select-dialog/user-select-dialog-shell.svelte @@ -2,7 +2,7 @@ import { ApplicationShell } from "@typhonjs-fvtt/runtime/svelte/component/core"; import { localize } from '@typhonjs-fvtt/runtime/svelte/helper'; import { getContext } from "svelte"; - import { getUserCharacter, getOwnedCharacters } from "../../../helpers/utilities.js"; + import { getUserCharacter } from "../../../helpers/utilities.js"; const { application } = getContext('#external'); @@ -36,8 +36,8 @@ - +

{localize("ITEM-PILES.Dialogs.UserSelect.Content")} @@ -57,7 +57,7 @@

- diff --git a/src/applications/editors/currencies-editor/CurrencyList.svelte b/src/applications/editors/currencies-editor/CurrencyList.svelte index 54762eef..c29dd875 100644 --- a/src/applications/editors/currencies-editor/CurrencyList.svelte +++ b/src/applications/editors/currencies-editor/CurrencyList.svelte @@ -35,7 +35,7 @@ - +
{#if !store.secondary}
Primary
diff --git a/src/applications/editors/currencies-editor/currencies-editor-shell.svelte b/src/applications/editors/currencies-editor/currencies-editor-shell.svelte index f15f5a44..40a62735 100644 --- a/src/applications/editors/currencies-editor/currencies-editor-shell.svelte +++ b/src/applications/editors/currencies-editor/currencies-editor-shell.svelte @@ -34,7 +34,7 @@ - +

{localize(`ITEM-PILES.Applications.${secondary ? "Secondary" : ""}CurrenciesEditor.Explanation`)}

@@ -49,10 +49,10 @@
- -
diff --git a/src/applications/editors/currencies-editor/currency-store.js b/src/applications/editors/currencies-editor/currency-store.js index 1779343b..5bb525dd 100644 --- a/src/applications/editors/currencies-editor/currency-store.js +++ b/src/applications/editors/currencies-editor/currency-store.js @@ -1,4 +1,4 @@ -import { writable, get } from 'svelte/store'; +import { get, writable } from 'svelte/store'; import * as Utilities from "../../../helpers/utilities.js"; import CONSTANTS from "../../../constants/constants.js"; import * as Helpers from "../../../helpers/helpers.js"; diff --git a/src/applications/editors/item-filters-editor/item-filters-editor.svelte b/src/applications/editors/item-filters-editor/item-filters-editor.svelte index 9848690e..6c2f61e1 100644 --- a/src/applications/editors/item-filters-editor/item-filters-editor.svelte +++ b/src/applications/editors/item-filters-editor/item-filters-editor.svelte @@ -2,7 +2,7 @@ import { getContext } from 'svelte'; import { localize } from '@typhonjs-fvtt/runtime/svelte/helper'; - import { getSetting, setSetting } from "../../../helpers/helpers.js"; + import { getSetting } from "../../../helpers/helpers.js"; import SETTINGS from "../../../constants/settings.js"; import { ApplicationShell } from "@typhonjs-fvtt/runtime/svelte/component/core"; import { get, writable } from "svelte/store"; @@ -45,7 +45,7 @@ - +

{localize("ITEM-PILES.Applications.FilterEditor.Explanation")}

@@ -53,7 +53,7 @@ {localize("ITEM-PILES.Applications.FilterEditor.Path")} {localize("ITEM-PILES.Applications.FilterEditor.Filters")} - + {#each $itemFilters as { path, filters }, index (index)} @@ -67,10 +67,10 @@
- -
diff --git a/src/applications/editors/price-modifiers-editor/price-modifiers-editor-shell.svelte b/src/applications/editors/price-modifiers-editor/price-modifiers-editor-shell.svelte index 207bf2c5..3eea2113 100644 --- a/src/applications/editors/price-modifiers-editor/price-modifiers-editor-shell.svelte +++ b/src/applications/editors/price-modifiers-editor/price-modifiers-editor-shell.svelte @@ -82,12 +82,12 @@ - +

{localize("ITEM-PILES.Applications.PriceModifiersEditor.Explanation")}

-
+
{#if $priceModifiers.length} @@ -132,10 +132,10 @@
- -
diff --git a/src/applications/editors/price-preset-editor/price-preset-editor-shell.svelte b/src/applications/editors/price-preset-editor/price-preset-editor-shell.svelte index 8ceecaf1..74cb769c 100644 --- a/src/applications/editors/price-preset-editor/price-preset-editor-shell.svelte +++ b/src/applications/editors/price-preset-editor/price-preset-editor-shell.svelte @@ -27,17 +27,17 @@ - +

{localize("ITEM-PILES.Applications.PricePresetEditor.Explanation")}

- -
diff --git a/src/applications/editors/string-list-editor/string-list-editor.svelte b/src/applications/editors/string-list-editor/string-list-editor.svelte index 94806492..222e93d9 100644 --- a/src/applications/editors/string-list-editor/string-list-editor.svelte +++ b/src/applications/editors/string-list-editor/string-list-editor.svelte @@ -46,7 +46,7 @@ - + {#if application.options.content}

{localize(application.options.content)}

@@ -58,7 +58,7 @@
{/if} - + {#if keyValuePair} {#each $stringListStore as [key, path], index (index)} @@ -83,10 +83,10 @@
{localize(application.options?.columnKey)}{localize(application.options?.column)}
- -
diff --git a/src/applications/editors/styles-editor/styles-editor.svelte b/src/applications/editors/styles-editor/styles-editor.svelte index 825424e3..a077b809 100644 --- a/src/applications/editors/styles-editor/styles-editor.svelte +++ b/src/applications/editors/styles-editor/styles-editor.svelte @@ -58,10 +58,10 @@ - + -
+
{localize("ITEM-PILES.Applications.StylesEditor." + (options.variables ? "Variable" : "Style"))} {localize("ITEM-PILES.Applications.StylesEditor.Value")} {#if !options.readOnly} @@ -84,10 +84,10 @@
- -
diff --git a/src/applications/editors/unstackable-item-types-editor/unstackable-item-types-editor.svelte b/src/applications/editors/unstackable-item-types-editor/unstackable-item-types-editor.svelte index 941fc7b7..1deedffa 100644 --- a/src/applications/editors/unstackable-item-types-editor/unstackable-item-types-editor.svelte +++ b/src/applications/editors/unstackable-item-types-editor/unstackable-item-types-editor.svelte @@ -52,13 +52,13 @@ - +

{localize("ITEM-PILES.Applications.UnstackableItemTypesEditor.Explanation")}

- + {#each $unstackableItemTypesStore as type, index (index)} @@ -79,10 +79,10 @@
{localize("ITEM-PILES.Applications.UnstackableItemTypesEditor.Type")}
- -
diff --git a/src/applications/editors/vault-access-editor/vault-access-editor-shell.svelte b/src/applications/editors/vault-access-editor/vault-access-editor-shell.svelte index 8f28abf5..ce06223c 100644 --- a/src/applications/editors/vault-access-editor/vault-access-editor-shell.svelte +++ b/src/applications/editors/vault-access-editor/vault-access-editor-shell.svelte @@ -85,7 +85,7 @@ - +

{localize("ITEM-PILES.Applications.VaultAccessEditor.Explanation")} @@ -150,10 +150,10 @@

- -
diff --git a/src/applications/editors/vault-styles-editor/StyleEntry.svelte b/src/applications/editors/vault-styles-editor/StyleEntry.svelte index bf91b4a6..b0ba78b0 100644 --- a/src/applications/editors/vault-styles-editor/StyleEntry.svelte +++ b/src/applications/editors/vault-styles-editor/StyleEntry.svelte @@ -1,7 +1,7 @@ -
-
+
+
{#if image} diff --git a/src/applications/editors/vault-styles-editor/vault-styles-editor.svelte b/src/applications/editors/vault-styles-editor/vault-styles-editor.svelte index 57a6b82f..e0f6f977 100644 --- a/src/applications/editors/vault-styles-editor/vault-styles-editor.svelte +++ b/src/applications/editors/vault-styles-editor/vault-styles-editor.svelte @@ -52,7 +52,7 @@ - +

{localize("ITEM-PILES.Applications.VaultStylesEditor.Explanation")}

@@ -60,7 +60,7 @@
{localize("ITEM-PILES.Applications.VaultStylesEditor.Value")}
-
+
{#each $vaultStyleStore as entry, index (index)} @@ -69,10 +69,10 @@
- -
diff --git a/src/applications/item-editor/ItemPriceStore.js b/src/applications/item-editor/ItemPriceStore.js index ed97f021..15a1167b 100644 --- a/src/applications/item-editor/ItemPriceStore.js +++ b/src/applications/item-editor/ItemPriceStore.js @@ -1,5 +1,5 @@ import { TJSDocument } from "@typhonjs-fvtt/runtime/svelte/store"; -import { writable, get } from "svelte/store"; +import { get, writable } from "svelte/store"; import CONSTANTS from "../../constants/constants.js"; import * as PileUtilities from "../../helpers/pile-utilities.js"; import { getItemCost } from "../../helpers/utilities.js"; @@ -8,13 +8,6 @@ const existingStores = new Map(); export default class ItemPriceStore { - static make(item) { - if (existingStores.has(item.id)) { - return existingStores.get(item.id); - } - return new this(item); - } - constructor(item) { this.item = item; @@ -53,6 +46,13 @@ export default class ItemPriceStore { } + static make(item) { + if (existingStores.has(item.id)) { + return existingStores.get(item.id); + } + return new this(item); + } + removeGroup(groupIndex) { const data = get(this.data); data.prices.splice(groupIndex, 1); diff --git a/src/applications/item-editor/item-editor-shell.svelte b/src/applications/item-editor/item-editor-shell.svelte index fff1a862..8607bb50 100644 --- a/src/applications/item-editor/item-editor-shell.svelte +++ b/src/applications/item-editor/item-editor-shell.svelte @@ -2,7 +2,6 @@ import { getContext } from 'svelte'; import { localize } from '@typhonjs-fvtt/runtime/svelte/helper'; import * as Helpers from "../../helpers/helpers.js"; - import { openEditor } from "../../helpers/helpers.js"; import * as PileUtilities from "../../helpers/pile-utilities.js"; import ItemPriceStore from "./ItemPriceStore.js"; import Tabs from "../components/Tabs.svelte"; diff --git a/src/applications/item-pile-config/item-pile-config.svelte b/src/applications/item-pile-config/item-pile-config.svelte index e0d9fe1d..74c7a345 100644 --- a/src/applications/item-pile-config/item-pile-config.svelte +++ b/src/applications/item-pile-config/item-pile-config.svelte @@ -145,8 +145,8 @@ - + @@ -222,7 +222,7 @@
- diff --git a/src/applications/item-pile-config/settings/container.svelte b/src/applications/item-pile-config/settings/container.svelte index e9a99d57..a7a85517 100644 --- a/src/applications/item-pile-config/settings/container.svelte +++ b/src/applications/item-pile-config/settings/container.svelte @@ -8,60 +8,60 @@
- - + +
- - + +
- -
- -
+ +
+ +
- -
- -
+ +
+ +
- -
- -
+ +
+ +
- -
- -
+ +
+ +
- -
- -
+ +
+ +
- -
- -
+ +
+ +
- -
- -
+ +
+ +
diff --git a/src/applications/item-pile-config/settings/custom.svelte b/src/applications/item-pile-config/settings/custom.svelte index 11bd2674..c2553a89 100644 --- a/src/applications/item-pile-config/settings/custom.svelte +++ b/src/applications/item-pile-config/settings/custom.svelte @@ -17,21 +17,21 @@ {#each Object.entries(CONSTANTS.CUSTOM_PILE_TYPES[pileData.type]) as [key, data] (key)} -
- - {#if data.type === String} - - {:else if data.type === Number} - - {:else if data.type === Boolean} - - {/if} - -
+
+ + {#if data.type === String} + + {:else if data.type === Number} + + {:else if data.type === Boolean} + + {/if} + +
{/each} diff --git a/src/applications/item-pile-config/settings/itempile.svelte b/src/applications/item-pile-config/settings/itempile.svelte index 322a7551..d7b1cea1 100644 --- a/src/applications/item-pile-config/settings/itempile.svelte +++ b/src/applications/item-pile-config/settings/itempile.svelte @@ -8,38 +8,40 @@
- - + +
-
- - -
- -
- - -
- -
- - - -
+
+ + +
+ +
+ + +
+ +
+ + + +
diff --git a/src/applications/item-pile-config/settings/main.svelte b/src/applications/item-pile-config/settings/main.svelte index 897963b7..d7f90045 100644 --- a/src/applications/item-pile-config/settings/main.svelte +++ b/src/applications/item-pile-config/settings/main.svelte @@ -1,6 +1,6 @@ diff --git a/src/applications/item-pile-inventory-app/ListEntry.svelte b/src/applications/item-pile-inventory-app/ListEntry.svelte index f3be4b3d..941bf65d 100644 --- a/src/applications/item-pile-inventory-app/ListEntry.svelte +++ b/src/applications/item-pile-inventory-app/ListEntry.svelte @@ -2,7 +2,6 @@ import { fade } from 'svelte/transition'; import { localize } from '@typhonjs-fvtt/runtime/svelte/helper'; - import { get } from "svelte/store"; export let store; export let entry; @@ -30,83 +29,83 @@
{ dragStart(event) }} - class:item-piles-disabled={!$editQuantities && (!$quantityLeft || !$quantity)}> - -
- -
- -
-
-

{ dragStart(event) }} + transition:fade={{duration: 250}}> + +

+ +
+ +
+
+

{ entry.preview() }} style="color: {$rarityColor || 'inherit'};" > {$name}

- {#if !$editQuantities && entry.canStack && !currency} - (x{$quantity}) - {/if} -
-
+ {#if !$editQuantities && entry.canStack && !currency} + (x{$quantity}) + {/if} +
+
- {#if entry.canStack || !entry.id} + {#if entry.canStack || !entry.id} -
+
- {#if $editQuantities} + {#if $editQuantities} -
- -
+
+ +
- {:else} + {:else} - {#if $quantityLeft && $quantity} -
- + {#if $quantityLeft && $quantity} +
+ - + / {$quantityLeft} -
- {:else} +
+ {:else} {localize(`ITEM-PILES.Inspect.${entry.toShare && $quantity ? "NoShareLeft" : "NoneLeft"}`)} - {/if} - {/if} + {/if} + {/if} -
+
- {/if} + {/if} - {#if !$editQuantities} + {#if !$editQuantities} - + - {:else if !entry.canStack && !entry.isCurrency} + {:else if !entry.canStack && !entry.isCurrency} - + - {/if} + {/if}
diff --git a/src/applications/item-pile-inventory-app/item-pile-inventory-shell.svelte b/src/applications/item-pile-inventory-app/item-pile-inventory-shell.svelte index b43b020e..be59be90 100644 --- a/src/applications/item-pile-inventory-app/item-pile-inventory-shell.svelte +++ b/src/applications/item-pile-inventory-app/item-pile-inventory-shell.svelte @@ -120,8 +120,8 @@
-
+
{#if $deleted}

@@ -164,7 +164,7 @@ {/if} - +

{/if} @@ -199,7 +199,7 @@ {/if} -
diff --git a/src/applications/merchant-app/MerchantItemTab.svelte b/src/applications/merchant-app/MerchantItemTab.svelte index 81714db2..f27fee43 100644 --- a/src/applications/merchant-app/MerchantItemTab.svelte +++ b/src/applications/merchant-app/MerchantItemTab.svelte @@ -26,8 +26,8 @@ $: categoryDropDown = $itemCategoriesStore.filter(category => category.service === services); $: categories = $categoryStore.filter(category => category.service === services); - $: items = $itemsStore.filter(item => Boolean(get(item.itemFlagData)?.isService) === services) - $: visibleItems = $visibleItemsStore.filter(item => Boolean(get(item.itemFlagData)?.isService) === services) + $: items = $itemsStore.filter(item => Boolean(get(item.itemFlagData)?.isService) === services) + $: visibleItems = $visibleItemsStore.filter(item => Boolean(get(item.itemFlagData)?.isService) === services) let columns = []; $: { @@ -146,7 +146,7 @@ padding-right: 5px; align-items: center; height: calc(100% - 31px); - margin-top: 5px; + margin-top: 5px; align-content: flex-start; } diff --git a/src/applications/merchant-app/MerchantLeftPane.svelte b/src/applications/merchant-app/MerchantLeftPane.svelte index 8229db23..f81fd62c 100644 --- a/src/applications/merchant-app/MerchantLeftPane.svelte +++ b/src/applications/merchant-app/MerchantLeftPane.svelte @@ -4,7 +4,6 @@ import { localize } from "@typhonjs-fvtt/runtime/svelte/helper"; import SliderInput from "../components/SliderInput.svelte"; import TextEditorDialog from "../dialogs/text-editor-dialog/text-editor-dialog.js"; - import { get } from "svelte/store"; import { TJSProseMirror } from "@typhonjs-fvtt/svelte-standard/component"; export let store; diff --git a/src/applications/merchant-app/MerchantRightPane.svelte b/src/applications/merchant-app/MerchantRightPane.svelte index 0e0442f6..f17a5da9 100644 --- a/src/applications/merchant-app/MerchantRightPane.svelte +++ b/src/applications/merchant-app/MerchantRightPane.svelte @@ -20,26 +20,26 @@
-
- - {#if $closed && !game.user.isGM} -
- {localize("ITEM-PILES.Merchant.MerchantClosed")} -
- {:else if $activeTab === "buy"} - - {:else if $activeTab === "services" } - - {:else if $activeTab === "sell"} - - {:else if $activeTab === "tables"} - - {/if} - -
- - +
+ + {#if $closed && !game.user.isGM} +
+ {localize("ITEM-PILES.Merchant.MerchantClosed")} +
+ {:else if $activeTab === "buy"} + + {:else if $activeTab === "services" } + + {:else if $activeTab === "sell"} + + {:else if $activeTab === "tables"} + + {/if} + +
+ +
diff --git a/src/applications/merchant-app/merchant-app-shell.svelte b/src/applications/merchant-app/merchant-app-shell.svelte index 6e80dc1b..b57329ce 100644 --- a/src/applications/merchant-app/merchant-app-shell.svelte +++ b/src/applications/merchant-app/merchant-app-shell.svelte @@ -113,17 +113,17 @@ -
{#if $activeTab !== "tables"} {/if} - +
diff --git a/src/applications/settings-app/Setting.svelte b/src/applications/settings-app/Setting.svelte index 87833020..033caa40 100644 --- a/src/applications/settings-app/Setting.svelte +++ b/src/applications/settings-app/Setting.svelte @@ -11,7 +11,7 @@

{localize(data.hint)}

diff --git a/src/applications/settings-app/SettingButton.svelte b/src/applications/settings-app/SettingButton.svelte index 9ced903e..1202bfc7 100644 --- a/src/applications/settings-app/SettingButton.svelte +++ b/src/applications/settings-app/SettingButton.svelte @@ -56,7 +56,7 @@
- diff --git a/src/applications/settings-app/settings-shell.svelte b/src/applications/settings-app/settings-shell.svelte index 29d7fa2a..7f698722 100644 --- a/src/applications/settings-app/settings-shell.svelte +++ b/src/applications/settings-app/settings-shell.svelte @@ -108,7 +108,7 @@ - +

{localize("ITEM-PILES.Applications.Settings.Title")}

@@ -120,12 +120,12 @@
- - - - - - + + + + + +

{localize("ITEM-PILES.Applications.Settings.MoreToCome")} @@ -140,7 +140,7 @@ {localize("ITEM-PILES.Applications.Settings.Donate")}

- + diff --git a/src/applications/trade-dialogs/ActorDropSelect.svelte b/src/applications/trade-dialogs/ActorDropSelect.svelte index 707c1b1f..b03378d5 100644 --- a/src/applications/trade-dialogs/ActorDropSelect.svelte +++ b/src/applications/trade-dialogs/ActorDropSelect.svelte @@ -45,53 +45,53 @@

- + {#if hasUnlinkedTokenOwnership} +
+ +
+ {/if}