diff --git a/frontend/src/lib/components/PullToRefresh.svelte b/frontend/src/lib/components/PullToRefresh.svelte new file mode 100644 index 0000000..594d88a --- /dev/null +++ b/frontend/src/lib/components/PullToRefresh.svelte @@ -0,0 +1,225 @@ + + +{#if isIOSPWA} +
+ +
+
+
+ +
+
+ {#if isRefreshing} + Refreshing... + {:else if pullState === 'ready'} + Release to refresh + {:else if pullState === 'pulling'} + Pull to refresh + {/if} +
+
+
+ + +
+ {@render children()} +
+
+{:else} + {@render children()} +{/if} + + diff --git a/frontend/src/routes/(authed)/+page.svelte b/frontend/src/routes/(authed)/+page.svelte index 9cfadaf..2d8ed7b 100644 --- a/frontend/src/routes/(authed)/+page.svelte +++ b/frontend/src/routes/(authed)/+page.svelte @@ -1,28 +1,38 @@ {t('common.unread')} -
- - {#await data.items} - - {:then items} - - {/await} - -
-
-

{t('common.unread')}

+ +
+ + {#await data.items} + + {:then items} + + {/await} + +
+
+

{t('common.unread')}

+
+
-
-
+ diff --git a/frontend/src/routes/(authed)/all/+page.svelte b/frontend/src/routes/(authed)/all/+page.svelte index 168fbd2..1f33a55 100644 --- a/frontend/src/routes/(authed)/all/+page.svelte +++ b/frontend/src/routes/(authed)/all/+page.svelte @@ -1,21 +1,31 @@ {t('common.all')} -
- -
-
-

{t('common.all')}

+ +
+ +
+
+

{t('common.all')}

+
+
-
-
+ diff --git a/frontend/src/routes/(authed)/bookmarks/+page.svelte b/frontend/src/routes/(authed)/bookmarks/+page.svelte index aa98909..5def115 100644 --- a/frontend/src/routes/(authed)/bookmarks/+page.svelte +++ b/frontend/src/routes/(authed)/bookmarks/+page.svelte @@ -1,21 +1,31 @@ {t('common.bookmark')} -
- -
-
-

{t('common.bookmark')}

+ +
+ +
+
+

{t('common.bookmark')}

+
+
-
-
+ diff --git a/frontend/src/routes/(authed)/feeds/[id]/+page.svelte b/frontend/src/routes/(authed)/feeds/[id]/+page.svelte index cf304a6..d7821d8 100644 --- a/frontend/src/routes/(authed)/feeds/[id]/+page.svelte +++ b/frontend/src/routes/(authed)/feeds/[id]/+page.svelte @@ -1,12 +1,21 @@ @@ -15,56 +24,58 @@ {/await} -{#await data.feed then feed} - - {#await data.items then items} - - {/await} - - - + + {#await data.feed then feed} + + {#await data.items then items} + + {/await} + + + - {#if feed.suspended} - - {:else if feed.failure} - - {/if} + {#if feed.suspended} + + {:else if feed.failure} + + {/if} -
-
-

{feed.name}

-

{feed.link}

+
+
+

{feed.name}

+

{feed.link}

+
+
- -
-{/await} + {/await} + diff --git a/frontend/src/routes/(authed)/groups/[id]/+page.svelte b/frontend/src/routes/(authed)/groups/[id]/+page.svelte index 1820cf7..bd2a4a5 100644 --- a/frontend/src/routes/(authed)/groups/[id]/+page.svelte +++ b/frontend/src/routes/(authed)/groups/[id]/+page.svelte @@ -1,11 +1,19 @@ @@ -14,22 +22,24 @@ {/await} -{#await data.group then group} - - {#await data.items then items} - - {/await} -
- - - -
-
+ + {#await data.group then group} + + {#await data.items then items} + + {/await} +
+ + + +
+
-
-
-

{group.name}

+
+
+

{group.name}

+
+
- -
-{/await} + {/await} +