Skip to content

Commit

Permalink
fix: lockb
Browse files Browse the repository at this point in the history
  • Loading branch information
OXeu committed Jul 10, 2024
1 parent a2be324 commit dce52fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Binary file modified bun.lockb
Binary file not shown.
14 changes: 8 additions & 6 deletions client/src/components/feed_card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function FeedCard({ id, title, avatar, draft, listed, top, summary, hasht
<h1 className="text-xl font-bold text-gray-700 dark:text-white text-pretty overflow-hidden">
{title}
</h1>
<div className="space-x-2">
<div className="gap-x-2">
<span className="text-gray-400 text-sm" title={new Date(createdAt).toLocaleString()}>
{createdAt === updatedAt ? timeago(createdAt) : t('feed_card.published$time', { time: timeago(createdAt) })}
</span>
Expand All @@ -31,11 +31,13 @@ export function FeedCard({ id, title, avatar, draft, listed, top, summary, hasht
{t('feed_card.updated$time', { time: timeago(updatedAt) })}
</span>
}
{draft === 1 && <span className="text-gray-400 text-sm">草稿</span>}
{listed === 0 && <span className="text-gray-400 text-sm">未列出</span>}
{top === 1 && <span className="text-theme text-sm">
置顶
</span>}
<p className="gap-4">
{draft === 1 && <span className="text-gray-400 text-sm">草稿</span>}
{listed === 0 && <span className="text-gray-400 text-sm">未列出</span>}
{top === 1 && <span className="text-theme text-sm">
置顶
</span>}
</p>
</div>
<p className="text-pretty overflow-hidden dark:text-neutral-500">
{summary}
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"devDependencies": {
"@types/bun": "^1.1.2",
"drizzle-kit": "^0.21.2",
"wrangler": "3.63.1",
"wrangler": "^3.63.1",
"@cloudflare/vitest-pool-workers": "^0.1.0",
"@cloudflare/workers-types": "^4.20240529.0",
"typescript": "^5.0.4",
Expand Down

0 comments on commit dce52fa

Please sign in to comment.