From 60d9e8292cc6093ab9ac729d76558d12a4ca883f Mon Sep 17 00:00:00 2001 From: syui Date: Mon, 16 Jun 2025 01:43:51 +0900 Subject: [PATCH] update layout --- my-blog/static/css/style.css | 2 +- my-blog/templates/index.html | 13 --- oauth/src/App.tsx | 122 +++++++++++++++++++++++-- oauth/src/components/AIChat-access.tsx | 2 +- oauth/src/components/AIChat.tsx | 2 +- scpt/run.zsh | 2 +- src/commands/stream.rs | 4 +- 7 files changed, 118 insertions(+), 29 deletions(-) diff --git a/my-blog/static/css/style.css b/my-blog/static/css/style.css index 6591d80..52b9ed2 100644 --- a/my-blog/static/css/style.css +++ b/my-blog/static/css/style.css @@ -248,7 +248,7 @@ a.view-markdown:any-link { } .post-title a { - color: #1f2328; + color: var(--theme-color); text-decoration: none; font-size: 18px; font-weight: 600; diff --git a/my-blog/templates/index.html b/my-blog/templates/index.html index 1de63ca..2ba6f82 100644 --- a/my-blog/templates/index.html +++ b/my-blog/templates/index.html @@ -20,19 +20,6 @@ {{ post.title }} - {% if post.excerpt %} -

{{ post.excerpt }}

- {% endif %} - -
- Read more - {% if post.markdown_url %} - .md - {% endif %} - {% if post.translation_url %} - 🌐 - {% endif %} -
{% endfor %} diff --git a/oauth/src/App.tsx b/oauth/src/App.tsx index 928a565..b9b9b4b 100644 --- a/oauth/src/App.tsx +++ b/oauth/src/App.tsx @@ -1080,6 +1080,7 @@ function App() { ) : ( + /* User Section */
@@ -1187,7 +1188,6 @@ function App() {
)} -
)} @@ -1197,25 +1197,25 @@ function App() { className={`tab-button ${activeTab === 'comments' ? 'active' : ''}`} onClick={() => setActiveTab('comments')} > - Comments ({comments.filter(shouldShowComment).length}) + comment ({comments.filter(shouldShowComment).length}) @@ -1534,11 +1534,113 @@ function App() { )} - {/* Show authentication status on non-post pages */} + {/* User Section - moved from above */} {user && !appConfig.rkey && ( -
-

✅ Authenticated as @{user.handle}

-

Visit a post page to comment

+
+
+
+ User Avatar +
+

{user.displayName || user.handle}

+

@{user.handle}

+

{user.did}

+
+
+ +
+ + {/* Admin Section - User Management */} + {isAdmin(user) && ( +
+

管理者機能 - ユーザーリスト管理

+ + {/* User List Form */} +
+