From 074047b5f3c7b63ab3e32a13c0d6b262f27ac45e Mon Sep 17 00:00:00 2001
From: rimar1337 <132627503+rimar1337@users.noreply.github.com>
Date: Tue, 21 Oct 2025 19:48:46 +0700
Subject: [PATCH] settings revamp
---
src/components/Login.tsx | 74 ++++++++++++---
src/components/UniversalPostRenderer.tsx | 29 +++---
src/routes/profile.$did/index.tsx | 8 +-
src/routes/settings.tsx | 41 ++++++--
src/styles/app.css | 113 +++++++++++++++++++++++
src/utils/atoms.ts | 10 ++
src/utils/useHydrated.ts | 76 ++++++++++-----
7 files changed, 289 insertions(+), 62 deletions(-)
diff --git a/src/components/Login.tsx b/src/components/Login.tsx
index 868e0ba..d59402a 100644
--- a/src/components/Login.tsx
+++ b/src/components/Login.tsx
@@ -1,8 +1,10 @@
// src/components/Login.tsx
import AtpAgent, { Agent } from "@atproto/api";
+import { useAtom } from "jotai";
import React, { useEffect, useRef, useState } from "react";
import { useAuth } from "~/providers/UnifiedAuthProvider";
+import { imgCDNAtom } from "~/utils/atoms";
import { useQueryIdentity, useQueryProfile } from "~/utils/useQuery";
// --- 1. The Main Component (Orchestrator with `compact` prop) ---
@@ -190,19 +192,30 @@ const OAuthForm = () => {
Sign in with AT. Your password is never shared.
- setHandle(e.target.value)}
className="px-3 py-2 rounded border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 text-sm focus:outline-none focus:ring-2 focus:ring-gray-500"
- />
-
+ /> */}
+
+
+ setHandle(e.target.value)}
+ />
+
+
+
+
);
};
@@ -235,7 +248,7 @@ const PasswordForm = () => {
Warning: Less secure. Use an App Password.
- {
value={serviceURL}
onChange={(e) => setServiceURL(e.target.value)}
className="px-3 py-2 rounded border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 text-sm focus:outline-none focus:ring-2 focus:ring-gray-500"
- />
+ /> */}
+
+ setUser(e.target.value)}
+ />
+
+
+
+ setPassword(e.target.value)}
+ />
+
+
+
+ setServiceURL(e.target.value)}
+ />
+
+
{error && {error}
}