2 Commits

Author SHA1 Message Date
f2fe458a46 fix html text 2025-06-19 21:01:29 +09:00
a7e6fc4a1a Release v0.2.4: Complete OAuth system with AI chat and mobile support
- Fixed OAuth authentication with ATProto integration
- Implemented Ask AI functionality with conversation history
- Resolved PDS/web link issues for cross-network compatibility
- Added comprehensive mobile responsive design
- Enhanced comment posting with loading states and auto-refresh
- Improved chat record display with question/answer pairing
- Fixed tab scrolling and layout overflow issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-19 20:02:24 +09:00
4 changed files with 23 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "ailog"
version = "0.2.3"
version = "0.2.4"
edition = "2021"
authors = ["syui"]
description = "A static blog generator with AI features"

View File

@@ -1,6 +1,6 @@
{
"name": "ailog-oauth",
"version": "0.2.2",
"version": "0.2.4",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -78,34 +78,34 @@ export default function CommentForm({ user, agent, onCommentPosted }) {
}
}
if (!user) {
return (
<div style={{
textAlign: 'center',
padding: '40px',
color: 'var(--text-secondary)'
}}>
<p>ログインしてコメントを投稿</p>
</div>
)
}
//if (!user) {
// return (
// <div style={{
// textAlign: 'center',
// padding: '40px',
// color: 'var(--text-secondary)'
// }}>
// <p>atproto</p>
// </div>
// )
//}
return (
<div>
<h3>コメントを投稿</h3>
<h3>post</h3>
<form onSubmit={handleSubmit}>
<div className="form-group" style={{ marginBottom: '12px', padding: '8px', backgroundColor: 'var(--background-secondary)', borderRadius: '4px', fontSize: '0.9em' }}>
<strong>投稿先:</strong> {window.location.href}
<strong>url:</strong> {window.location.href}
</div>
<div className="form-group">
<label htmlFor="comment-text">コメント:</label>
<label htmlFor="comment-text">comment:</label>
<textarea
id="comment-text"
value={text}
onChange={(e) => setText(e.target.value)}
placeholder="コメントを入力してください..."
placeholder="text..."
rows={4}
required
disabled={loading}
@@ -131,4 +131,4 @@ export default function CommentForm({ user, agent, onCommentPosted }) {
</form>
</div>
)
}
}

View File

@@ -40,25 +40,25 @@ export default function RecordTabs({ langRecords, commentRecords, userComments,
className={`tab-btn ${activeTab === 'lang' ? 'active' : ''}`}
onClick={() => setActiveTab('lang')}
>
Lang ({filteredLangRecords.length})
en ({filteredLangRecords.length})
</button>
<button
className={`tab-btn ${activeTab === 'comment' ? 'active' : ''}`}
onClick={() => setActiveTab('comment')}
>
Comment ({filteredCommentRecords.length})
feedback ({filteredCommentRecords.length})
</button>
<button
className={`tab-btn ${activeTab === 'collection' ? 'active' : ''}`}
onClick={() => setActiveTab('collection')}
>
Posts ({userChatRecords?.length || 0})
chat ({userChatRecords?.length || 0})
</button>
<button
className={`tab-btn ${activeTab === 'users' ? 'active' : ''}`}
onClick={() => setActiveTab('users')}
>
Users ({filteredUserComments.length})
comment ({filteredUserComments.length})
</button>
</div>
@@ -125,4 +125,4 @@ export default function RecordTabs({ langRecords, commentRecords, userComments,
</div>
)
}
}