@@ -155,6 +155,7 @@ const CratePage = () => {
155155 const [ packageCurrentPage , setPackageCurrentPage ] = useState ( 1 ) ;
156156 const [ depCurrentPage , setDepCurrentPage ] = useState ( 1 ) ;
157157 const itemsPerPage = 1 ;
158+ const basePath = `/${ params . nsfront } /${ params . nsbehind } /${ params . name } /${ params . version } ` ;
158159
159160 useEffect ( ( ) => {
160161 const fetchCrateData = async ( ) => {
@@ -502,23 +503,25 @@ const CratePage = () => {
502503
503504 { /* 右侧内容区域 - 占据1列 */ }
504505 < div className = "space-y-6" >
505- { /* 第一个摘要 */ }
506+ { /* Documentation */ }
506507 < div >
507508 < div className = "flex items-center gap-3 mb-6" >
508509 < Image
509- src = "/images/homepage/1 .png"
510+ src = "/images/homepage/3 .png"
510511 alt = "icon"
511512 width = { 16 }
512513 height = { 16 }
513514 className = "flex-shrink-0 rounded-[16.05px] border-[1.6px] border-[#333333]"
514515 />
515516 < h2 className = "text-[18px] font-bold text-[#333333] tracking-[0.72px] font-['HarmonyOS_Sans_SC']" >
516- 摘要
517+ Documentation
517518 </ h2 >
518519 </ div >
519520 < div className = "space-y-4" >
520- < div >
521- < h3 className = "text-[14px] text-[#333333] font-['HarmonyOS_Sans_SC'] font-normal mb-2" > Documentation URL</ h3 >
521+ < div className = "flex items-center gap-2" >
522+ < h3 className = "text-[14px] text-[#333333] font-['HarmonyOS_Sans_SC'] font-normal whitespace-nowrap" >
523+ Documentation URL:
524+ </ h3 >
522525 < a
523526 href = { results ?. doc_url }
524527 className = "text-[#4B68FF] text-[14px] font-['HarmonyOS_Sans_SC'] font-normal hover:underline break-all"
@@ -531,23 +534,25 @@ const CratePage = () => {
531534 </ div >
532535 </ div >
533536
534- { /* 第二个摘要 */ }
537+ { /* GitHub Links */ }
535538 < div >
536539 < div className = "flex items-center gap-3 mb-6" >
537540 < Image
538- src = "/images/homepage/2 .png"
541+ src = "/images/homepage/4 .png"
539542 alt = "icon"
540543 width = { 16 }
541544 height = { 16 }
542545 className = "flex-shrink-0 rounded-[16.05px] border-[1.6px] border-[#333333]"
543546 />
544547 < h2 className = "text-[18px] font-bold text-[#333333] tracking-[0.72px] font-['HarmonyOS_Sans_SC']" >
545- 摘要
548+ GitHub Links
546549 </ h2 >
547550 </ div >
548551 < div className = "space-y-4" >
549- < div >
550- < h3 className = "text-[14px] text-[#333333] font-['HarmonyOS_Sans_SC'] font-normal mb-2" > GitHub URL</ h3 >
552+ < div className = "flex items-center gap-2" >
553+ < h3 className = "text-[14px] text-[#333333] font-['HarmonyOS_Sans_SC'] font-normal whitespace-nowrap" >
554+ GitHub URL:
555+ </ h3 >
551556 < a
552557 href = { results ?. github_url }
553558 className = "text-[#4B68FF] text-[14px] font-['HarmonyOS_Sans_SC'] font-normal hover:underline break-all"
@@ -559,65 +564,34 @@ const CratePage = () => {
559564 </ div >
560565 </ div >
561566 </ div >
562-
563- { /* Documentation */ }
564- < div >
565- < div className = "flex items-center gap-3 mb-6" >
566- < Image
567- src = "/images/homepage/3.png"
568- alt = "icon"
569- width = { 16 }
570- height = { 16 }
571- className = "flex-shrink-0 rounded-[16.05px] border-[1.6px] border-[#333333]"
572- />
573- < h2 className = "text-[18px] font-bold text-[#333333] tracking-[0.72px] font-['HarmonyOS_Sans_SC']" >
574- Documentation
575- </ h2 >
576- </ div >
577- < div className = "space-y-4" >
578- < div >
579- < h3 className = "text-[14px] text-[#333333] font-['HarmonyOS_Sans_SC'] font-normal mb-2" > Documentation URL</ h3 >
580- < a
581- href = { results ?. doc_url }
582- className = "text-[#4B68FF] text-[14px] font-['HarmonyOS_Sans_SC'] font-normal hover:underline break-all"
583- target = "_blank"
584- rel = "noopener noreferrer"
585- >
586- { results ?. doc_url || 'No results available' }
587- </ a >
588- </ div >
589- </ div >
590- </ div >
591-
592- { /* GitHub Links */ }
567+ { /* 第一个摘要 */ }
593568 < div >
594569 < div className = "flex items-center gap-3 mb-6" >
595570 < Image
596- src = "/images/homepage/4 .png"
571+ src = "/images/homepage/1 .png"
597572 alt = "icon"
598573 width = { 16 }
599574 height = { 16 }
600575 className = "flex-shrink-0 rounded-[16.05px] border-[1.6px] border-[#333333]"
601576 />
602577 < h2 className = "text-[18px] font-bold text-[#333333] tracking-[0.72px] font-['HarmonyOS_Sans_SC']" >
603- GitHub Links
578+ SenseLeak
604579 </ h2 >
605580 </ div >
606581 < div className = "space-y-4" >
607582 < div >
608- < h3 className = "text-[14px] text-[#333333] font-['HarmonyOS_Sans_SC'] font-normal mb-2" > GitHub URL</ h3 >
583+ { /* <h3 className="text-[14px] text-[#333333] font-['HarmonyOS_Sans_SC'] font-normal mb-2">Documentation URL</h3> */ }
609584 < a
610- href = { results ?. github_url }
585+ href = { basePath + '/senseleak' }
611586 className = "text-[#4B68FF] text-[14px] font-['HarmonyOS_Sans_SC'] font-normal hover:underline break-all"
612587 target = "_blank"
613588 rel = "noopener noreferrer"
614589 >
615- { results ?. github_url || 'No results available' }
590+ { basePath + '/senseleak' || 'No results available' }
616591 </ a >
617592 </ div >
618593 </ div >
619594 </ div >
620-
621595 { /* OpenSSF Scorecard */ }
622596 < div >
623597 < div className = "flex items-center gap-3 mb-4" >
0 commit comments