diff --git a/src/components/ResourceTable.svelte b/src/components/ResourceTable.svelte index ea68458..40472c5 100644 --- a/src/components/ResourceTable.svelte +++ b/src/components/ResourceTable.svelte @@ -1,8 +1,157 @@ -
Resource Table goes here
+ + +
+ + + + + + + + + {#each grouped as [categoryName, resources]} + toggleCollapsed(categoryName)} + class="subhead" + tabindex="0" + role="button" + > + + + + {#if !collapsed.includes(categoryName)} + {#each resources as [resourceName, resource], index} + + + + + + {/each} + {/if} + {/each} + +
{collapsed.includes(categoryName) ? "▲" : "▼"}

{categoryName}

{resourceName}{resource.amount}{Math.round(100 * resource.change) / 100}/s
+