@@ -57,7 +59,7 @@ export function ItemDetailView({
{model.tags.length > 0 && (
{model.tags.map((tag) => (
-
+
{tag}
))}
@@ -65,9 +67,12 @@ export function ItemDetailView({
)}
{model.comment !== undefined && (
-
- {model.comment}
-
+
+
+ “
+
+ {model.comment}
+
)}
{model.paragraphs.map((paragraph, index) => (
@@ -76,36 +81,36 @@ export function ItemDetailView({
))}
-
-
+
+
-
+
{model.views}
-
+
{model.likes}
- } />
+ } />
{/* 占位数据没有真实地址时,按钮置灰而不是打开空白页 */}
{model.href === '#' ? (
-
) : (
-
+
跳转到
)}
-
+
{model.banner !== undefined && (
diff --git a/stash-web/src/components/content/PosterCard.tsx b/stash-web/src/components/content/PosterCard.tsx
index fc1d713..bc7823a 100644
--- a/stash-web/src/components/content/PosterCard.tsx
+++ b/stash-web/src/components/content/PosterCard.tsx
@@ -1,3 +1,4 @@
+import { Cover } from '@stash/ui'
import type { PosterItem } from '../../data/types'
/**
@@ -10,20 +11,13 @@ type PosterCardProps = {
}
export function PosterCard({ item, onOpen }: PosterCardProps) {
- const content = (
- <>
-
- {item.title}
- >
- )
-
- if (onOpen === undefined) {
- return {content}
- }
-
return (
- onOpen(item.id)}>
- {content}
-
+ onOpen(item.id)}
+ />
)
}
diff --git a/stash-web/src/components/content/PosterGrid.tsx b/stash-web/src/components/content/PosterGrid.tsx
index 82ea9b6..1a5e26e 100644
--- a/stash-web/src/components/content/PosterGrid.tsx
+++ b/stash-web/src/components/content/PosterGrid.tsx
@@ -12,7 +12,7 @@ type PosterGridProps = {
export function PosterGrid({ items, onOpen }: PosterGridProps) {
return (
-
+
{items.map((item) => (
))}
diff --git a/stash-web/src/components/content/RelatedList.tsx b/stash-web/src/components/content/RelatedList.tsx
index 5c0d841..9c3cc04 100644
--- a/stash-web/src/components/content/RelatedList.tsx
+++ b/stash-web/src/components/content/RelatedList.tsx
@@ -14,12 +14,13 @@ export function RelatedList({ items, onOpen }: RelatedListProps) {
if (items.length === 0) return null
return (
-
-
+
+
+ 📚
推荐阅读
-
+
{items.map((item) => (
onOpen(item.id)}
>
-
+
{item.name}
diff --git a/stash-web/src/components/content/SectionCard.tsx b/stash-web/src/components/content/SectionCard.tsx
index cb088ba..4f464f6 100644
--- a/stash-web/src/components/content/SectionCard.tsx
+++ b/stash-web/src/components/content/SectionCard.tsx
@@ -17,7 +17,7 @@ type SectionCardProps = {
export function SectionCard({ title, count, barColor, onMore, children }: SectionCardProps) {
return (
-
+
diff --git a/stash-web/src/components/search/SearchBar.tsx b/stash-web/src/components/search/SearchBar.tsx
index 545c02b..85a41a7 100644
--- a/stash-web/src/components/search/SearchBar.tsx
+++ b/stash-web/src/components/search/SearchBar.tsx
@@ -35,7 +35,6 @@ export function SearchBar({ value, onChange, inputRef }: SearchBarProps) {
aria-label="搜索本地项目"
clearable
onClear={() => onChange('')}
- shortcut="Ctrl K"
spellCheck={false}
onChange={(event) => onChange(event.target.value)}
onKeyDown={(event) => {
diff --git a/stash-web/src/components/sidebar/CategoryNav.tsx b/stash-web/src/components/sidebar/CategoryNav.tsx
index fdf41c9..7f4c34a 100644
--- a/stash-web/src/components/sidebar/CategoryNav.tsx
+++ b/stash-web/src/components/sidebar/CategoryNav.tsx
@@ -65,7 +65,7 @@ export function CategoryNav({
}
return (
-
+
)
diff --git a/stash-web/src/components/sidebar/ProfileCard.tsx b/stash-web/src/components/sidebar/ProfileCard.tsx
index 3d8ea76..cc4cc14 100644
--- a/stash-web/src/components/sidebar/ProfileCard.tsx
+++ b/stash-web/src/components/sidebar/ProfileCard.tsx
@@ -10,8 +10,8 @@ export function ProfileCard() {
return (
-
- {name}
+
+ {name}
{!name.includes(role) && {role}}
{bio}
diff --git a/stash-web/src/components/sidebar/ServicePanel.tsx b/stash-web/src/components/sidebar/ServicePanel.tsx
index 0258c16..4e53eeb 100644
--- a/stash-web/src/components/sidebar/ServicePanel.tsx
+++ b/stash-web/src/components/sidebar/ServicePanel.tsx
@@ -16,7 +16,7 @@ export function ServicePanel({ projects, live, refreshing, onRefresh }: ServiceP
const host = typeof window === 'undefined' ? '-' : window.location.host
return (
-
+
本地服务
@@ -48,7 +48,7 @@ export function ServicePanel({ projects, live, refreshing, onRefresh }: ServiceP
}
onClick={onRefresh}