From 8cd8b90e4e8ec64417d3c70a264e962741f7fb2c Mon Sep 17 00:00:00 2001
From: Florian <45694132+flo-bit@users.noreply.github.com>
Date: Wed, 28 Jan 2026 12:06:37 +0100
Subject: [PATCH] fixes
---
README.md | 14 +++++-----
src/lib/{ => atproto}/UI/Avatar.svelte | 0
src/lib/{ => atproto}/UI/Button.svelte | 0
src/lib/{ => atproto}/UI/HandleInput.svelte | 0
src/lib/{ => atproto}/UI/LoginModal.svelte | 5 +++-
.../{ => atproto}/UI/SecondaryButton.svelte | 0
src/lib/atproto/UI/index.ts | 1 +
src/lib/atproto/auth.svelte.ts | 28 +++++++++++++------
src/lib/atproto/metadata.ts | 8 +++---
src/lib/atproto/methods.ts | 2 +-
src/lib/atproto/settings.ts | 13 +++++++--
src/routes/+layout.svelte | 2 +-
src/routes/+page.svelte | 14 ++++------
13 files changed, 53 insertions(+), 34 deletions(-)
rename src/lib/{ => atproto}/UI/Avatar.svelte (100%)
rename src/lib/{ => atproto}/UI/Button.svelte (100%)
rename src/lib/{ => atproto}/UI/HandleInput.svelte (100%)
rename src/lib/{ => atproto}/UI/LoginModal.svelte (97%)
rename src/lib/{ => atproto}/UI/SecondaryButton.svelte (100%)
create mode 100644 src/lib/atproto/UI/index.ts
diff --git a/README.md b/README.md
index e731f70..389697f 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@ const config = {
7. setup the correct permissions (see below)
-### or manually install in your own project
+### or manually add to your own project
1. copy the `src/lib/atproto` folder into your own project
2. also copy the `src/routes/oauth-client-metadata.json` folder into your project
@@ -72,7 +72,7 @@ export default defineConfig({
npm install @atcute/atproto @atcute/bluesky @atcute/identity-resolver @atcute/lexicons @atcute/oauth-browser-client @atcute/client
```
-6. (optionally) set your base in `svelte.config.js` (e.g. for github pages: `base: '/your-repo-name/'`) while keeping it as `''` in development.
+6. (optionally) set your base in `svelte.config.js` (e.g. for deploying to github pages: `base: '/your-repo-name/'`) while keeping it as `''` in development.
```ts
const config = {
@@ -102,7 +102,7 @@ const config = {
### change sign up pds
-If you want to allow sign-up, change the `signUpPDS` variable in `$lib/atproto/settings.ts` to a pds of your choice
+If you want to allow sign-up, change the `devPDS` and `prodPDS` variables in `$lib/atproto/settings.ts` to a pds of your choice
ATTENTION: the current setting (pds.rip) is only for development, all accounts get deleted automatically after a week
@@ -115,18 +115,18 @@ Either use the `LoginModal` component to render a login modal or use the `user`
import { user } from '$lib/atproto';
// methods:
+user.isInitializing;
+user.isLoggedIn;
user.login(handle);
user.signup();
-user.isLoggedIn;
user.logout();
```
-LoginModal is a component that renders a login modal, add it for a quick login flow (needs tailwind).
-(copy the `src/lib/UI` folder into your projects `src/lib` folder, add the `src/app.css` content to your `app.css`)
+LoginModal is a component that renders a login modal, add it for a quick login flow (needs tailwind and tailwind/forms, copy the `src/app.css` content to your `app.css`).
```svelte
diff --git a/src/lib/UI/Avatar.svelte b/src/lib/atproto/UI/Avatar.svelte
similarity index 100%
rename from src/lib/UI/Avatar.svelte
rename to src/lib/atproto/UI/Avatar.svelte
diff --git a/src/lib/UI/Button.svelte b/src/lib/atproto/UI/Button.svelte
similarity index 100%
rename from src/lib/UI/Button.svelte
rename to src/lib/atproto/UI/Button.svelte
diff --git a/src/lib/UI/HandleInput.svelte b/src/lib/atproto/UI/HandleInput.svelte
similarity index 100%
rename from src/lib/UI/HandleInput.svelte
rename to src/lib/atproto/UI/HandleInput.svelte
diff --git a/src/lib/UI/LoginModal.svelte b/src/lib/atproto/UI/LoginModal.svelte
similarity index 97%
rename from src/lib/UI/LoginModal.svelte
rename to src/lib/atproto/UI/LoginModal.svelte
index e2c7c87..886b6de 100644
--- a/src/lib/UI/LoginModal.svelte
+++ b/src/lib/atproto/UI/LoginModal.svelte
@@ -122,7 +122,9 @@
{#if showRecentLogins}