feat: 新增 Agent OS 管理与运行时能力
This commit is contained in:
@@ -46,7 +46,7 @@ function getProjectIcon(tags: Array<{ name: string | null }>): string {
|
||||
|
||||
export function ProjectCard({ project, locale, featured = false, translations }: ProjectCardProps) {
|
||||
// 使用传入的翻译文本,如果没有提供则使用默认值
|
||||
const viewDetailsText = translations?.viewDetails || 'View Details'
|
||||
const viewDetailsText = translations?.viewDetails || (locale === 'zh' ? '查看详情' : 'View Details')
|
||||
const icon = getProjectIcon(project.tags)
|
||||
const displayName = locale === 'en' && project.nameEn ? project.nameEn : project.name
|
||||
const displayDescription = locale === 'en' && project.descriptionEn ? project.descriptionEn : project.description
|
||||
@@ -109,7 +109,7 @@ export function ProjectCard({ project, locale, featured = false, translations }:
|
||||
</svg>
|
||||
<Image
|
||||
src={badges.stars}
|
||||
alt="Stars"
|
||||
alt={locale === 'zh' ? 'Star' : 'Stars'}
|
||||
width={70}
|
||||
height={20}
|
||||
unoptimized
|
||||
@@ -135,9 +135,10 @@ interface SubmitProjectCardProps {
|
||||
}
|
||||
|
||||
export function SubmitProjectCard({ locale, translations }: SubmitProjectCardProps) {
|
||||
const submitProjectTitle = translations?.submitProjectTitle || 'Submit Your Project'
|
||||
const submitProjectDescription = translations?.submitProjectDescription || 'Help us grow the AI ecosystem'
|
||||
const submitNow = translations?.submitNow || 'Submit Now'
|
||||
const submitProjectTitle = translations?.submitProjectTitle || (locale === 'zh' ? '提交你的项目' : 'Submit Your Project')
|
||||
const submitProjectDescription =
|
||||
translations?.submitProjectDescription || (locale === 'zh' ? '帮助我们一起完善 AI 生态' : 'Help us grow the AI ecosystem')
|
||||
const submitNow = translations?.submitNow || (locale === 'zh' ? '立即提交' : 'Submit Now')
|
||||
|
||||
return (
|
||||
<article className="bg-primary border-2 border-black dark:border-gray-600 p-6 shadow-neo hover:shadow-neo-hover hover:-translate-y-1 transition-all duration-200 flex flex-col h-full justify-center items-center text-center group">
|
||||
|
||||
Reference in New Issue
Block a user