diff --git a/src/lib/ListPagination.svelte b/src/lib/ListPagination.svelte new file mode 100644 index 00000000..dcac8f36 --- /dev/null +++ b/src/lib/ListPagination.svelte @@ -0,0 +1,70 @@ + + + + {#if currentPage !== 1} + + currentPage -= 1}> + + {:else} + + + + {/if} + {#if currentPage > 2} + + currentPage = 1}>1 + + {/if} + {#if currentPage === 4} + + currentPage = 2}>2 + + {/if} + {#if currentPage > 4} + + ... + + {/if} + {#if currentPage > 1} + + currentPage -= 1}>{currentPage - 1} + + {/if} + + {currentPage} + + {#if currentPage < pageAmount} + + currentPage += 1}>{currentPage + 1} + + {/if} + {#if currentPage < pageAmount - 3} + + ... + + {/if} + {#if currentPage === pageAmount - 3} + + currentPage = pageAmount - 1}>{pageAmount - 1} + + {/if} + {#if currentPage < pageAmount - 1} + + currentPage = pageAmount}>{pageAmount} + + {/if} + {#if currentPage !== pageAmount} + + currentPage += 1}> + + {:else} + + + + {/if} + \ No newline at end of file diff --git a/src/lib/member/List.svelte b/src/lib/member/List.svelte new file mode 100644 index 00000000..5d4c648c --- /dev/null +++ b/src/lib/member/List.svelte @@ -0,0 +1,209 @@ + + + + + + +
+ +
Search members +
+
+
+ + + + + Page length + + + + + + + + + + Search by + + + + + + + + + + + Sort by + + + + + + + + + + + Sort order + + + + + + + + + Only show + + + + + + + + + +
+ + +{#if listLoading && !err} +
+ +
+{:else if err} +{err} +{:else} + + + + + + + + + + + + {#each slicedList as member (member.id)} + + + + + + {/each} + + +{/if} \ No newline at end of file