From 81164cd897cfd83ef294b07e96983f7a351a0a84 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Thu, 1 Feb 2024 14:37:15 -0500 Subject: [PATCH] add sorting --- .prettierrc.cjs | 1 + src/routes/+page.svelte | 145 +++++++++++++++++++++++----------------- 2 files changed, 85 insertions(+), 61 deletions(-) diff --git a/.prettierrc.cjs b/.prettierrc.cjs index 688495e..6e646df 100644 --- a/.prettierrc.cjs +++ b/.prettierrc.cjs @@ -9,4 +9,5 @@ module.exports = { svelteSortOrder: 'options-markup-scripts-styles', svelteStrictMode: false, svelteAllowShorthand: true, + bracketSameLine: true, }; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index d28ffdc..a4bf553 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,84 +1,95 @@
-

Ottawa board games for sale and to trade

+

Ottawa board games for sale and to trade

-

This is a list of games for sale or trade of people living in the Ottawa - region, taken from their profiles on - Board Game Geek.

+

+ This is a list of games for sale or trade of people living in the Ottawa + region, taken from their profiles on + Board Game Geek. +

-

If you want to be added to the list of sellers, you can send me a - BGG - mail. All I need is your BGG username, and I'll be able to gather - all your games tagged For Trade. If there is a price mentioned in - the Trading Notes of the game (that is, any number prefixed with - a $), it'll be assumed to be the asking price.

+

+ If you want to be added to the list of sellers, you can send me a + + BGG mail. All I need is your BGG username, and I'll be able to gather all your + games tagged For Trade. If there is a price mentioned in the + Trading Notes + of the game (that is, any number prefixed with a $), it'll be + assumed to be the asking price. +

-

Have questions, suggestions, anything else? - Discussion of this service happens in the Ottawa Guild.

+

+ Have questions, suggestions, anything else? Discussion of this service + happens in the Ottawa Guild. +

+
+ +
- -
- -
- - - - - - - - - - - - - - {#each $rows as row} +
usergamenotesprice
+ - - - - - + + + + - {/each} - -
{row.username} -   - - email - {row.name} - - - - {row.notes}{row.price??''}usergamenotesprice
+ + + {#each $rows as row} + + {row.username} +   + + email + + + + {row.notes} + {row.price ?? ''} + + {/each} + +
- - -