better findAll() in user module, no pagination tho, could add but would be hella annoying

This commit is contained in:
Me
2022-12-22 03:34:53 +01:00
parent 670936e4a1
commit beeaf1fb27
3 changed files with 111 additions and 35 deletions

View File

@@ -41,6 +41,8 @@
});
/* TMP for Testing */
let cherifFetch;
const fetchCherif = async() => {
@@ -220,14 +222,14 @@
<!-- does this work? -->
<!-- {#each allUsers as aUser (aUser.username)} -->
{#each allUsers as aUser}
{#if aUser.username !== user.username}
<!-- {#if aUser.username !== user.username} -->
<div class="sidebar-item" on:click={() => viewAUser(aUser.username)}>{aUser.username}</div>
<!-- i could make an indicator component? like green for connected or something?
i could use words but color them?
i could make it so if they're in a game -->
<div class="status sidebar-item">{aUser.status}</div>
<br>
{/if}
<!-- {/if} -->
{/each}
{:else if activeTabItem === 'My Friends' && myFriends !== undefined}
<h3>{activeTabItem}</h3>