diff --git a/README.md b/README.md index 54faa73..5c4ca06 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # atmo garden -communities on bsky +experiment for communities on bsky ## how it works @@ -9,9 +9,4 @@ communities on bsky - you can send a dm with a post to that profile and it gets posted to that profile (if you add a text as a quote post, otherwise as a repost) - follow the community profile to see the posts in your timeline (or go to cooking.atmo.garden) - -## todo - -- pinned post explaining communities -- submit posts on site -- limit title length? \ No newline at end of file +- community submissions can be gated by a list of allowed users or open to everyone \ No newline at end of file diff --git a/src/app.d.ts b/src/app.d.ts index 9c8189c..e0e3dad 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -27,6 +27,13 @@ declare global { ROOKERY_HOSTNAME: string; ROOKERY_SIGNUP_SECRET: string; CRON_SECRET?: string; + // Optional: credentials for adding newly-registered communities + // to the public atmo.garden discovery list. If any of these are + // missing, registration still succeeds but skips the list-add. + ATMO_GARDEN_PDS?: string; + ATMO_GARDEN_IDENTIFIER?: string; + ATMO_GARDEN_APP_PASSWORD?: string; + ATMO_GARDEN_LIST_RKEY?: string; }; } } diff --git a/src/lib/reddit/SortTabs.svelte b/src/lib/reddit/SortTabs.svelte new file mode 100644 index 0000000..45cb12f --- /dev/null +++ b/src/lib/reddit/SortTabs.svelte @@ -0,0 +1,80 @@ + + +
+
+ + + +
+ {#if primaryTab === 'top'} +
+ {#each TOP_SORT_OPTIONS as option (option)} + + {/each} +
+ {/if} +
diff --git a/src/lib/reddit/SubmitModal.svelte b/src/lib/reddit/SubmitModal.svelte new file mode 100644 index 0000000..09a74c2 --- /dev/null +++ b/src/lib/reddit/SubmitModal.svelte @@ -0,0 +1,123 @@ + + + +

Posting to c/{communityShort}

+
{ + e.preventDefault(); + onSubmit(); + }} + class="flex flex-col gap-4" + > + + + +