Merge branch 'feature/knowledgeBase_yjp' into develop

This commit is contained in:
yujiangping
2026-01-13 19:24:01 +08:00
4 changed files with 32 additions and 19 deletions

View File

@@ -29,6 +29,7 @@ export interface versionResponse{
releaseDate: string; releaseDate: string;
upgradePosition: string; upgradePosition: string;
coreUpgrades: string[]; coreUpgrades: string[];
codeName: string;
}; };
} }
// 首页数据统计 // 首页数据统计

View File

@@ -17,6 +17,11 @@ export const en = {
spaceTitle:'Memory Bear Intelligent Space Management Platform', spaceTitle:'Memory Bear Intelligent Space Management Platform',
spaceSubTitle: 'Making it easier to implement intelligent models - a one-stop platform for model management, knowledge building, workflow orchestration, and spatial operations', spaceSubTitle: 'Making it easier to implement intelligent models - a one-stop platform for model management, knowledge building, workflow orchestration, and spatial operations',
}, },
version:{
releaseDate: 'Release Date',
version: 'Version',
name: 'Code Name'
},
quickActions:{ quickActions:{
title: 'Quick Actions', title: 'Quick Actions',
spaceManagement: 'Space Management', spaceManagement: 'Space Management',

View File

@@ -17,6 +17,11 @@ export const zh = {
spaceTitle:'记忆熊智能空间管理平台', spaceTitle:'记忆熊智能空间管理平台',
spaceSubTitle: '使智能模型的实施变得更加容易——一个集模型管理、知识构建、工作流程编排以及空间操作于一体的综合性平台', spaceSubTitle: '使智能模型的实施变得更加容易——一个集模型管理、知识构建、工作流程编排以及空间操作于一体的综合性平台',
}, },
version:{
releaseDate: '发布日',
version: '版本',
name: '代号'
},
quickActions:{ quickActions:{
title: '快速操作', title: '快速操作',
spaceManagement: '空间管理', spaceManagement: '空间管理',

View File

@@ -4,11 +4,11 @@
* @Author: yujiangping * @Author: yujiangping
* @Date: 2026-01-12 16:34:59 * @Date: 2026-01-12 16:34:59
* @LastEditors: yujiangping * @LastEditors: yujiangping
* @LastEditTime: 2026-01-13 17:23:31 * @LastEditTime: 2026-01-13 19:14:30
*/ */
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
// import { Button } from 'antd'; import { Button, Divider } from 'antd';
// import arrowRight from '@/assets/images/index/arrow_right.svg' // import arrowRight from '@/assets/images/index/arrow_right.svg'
import { getVersion, type versionResponse } from '@/api/common' import { getVersion, type versionResponse } from '@/api/common'
@@ -36,27 +36,29 @@ const GuideCard: React.FC = () => {
return ( return (
<div className='rb:w-full rb:p-4 rb:border-1 rb:border-[#DFE4ED] rb:bg-[#FBFDFF] rb:rounded-xl'> <div className='rb:w-full rb:p-4 rb:border-1 rb:border-[#DFE4ED] rb:bg-[#FBFDFF] rb:rounded-xl'>
<div className='rb:flex rb:items-center rb:justify-start rb:text-[#5B6167] rb:text-base rb:font-semibold rb:gap-2'> <div className='rb:flex rb:items-center rb:justify-start rb:text-[#5B6167] rb:text-base rb:font-semibold rb:gap-2'>
{ t('index.latestUpdate')} { t('index.latestUpdate')}
{versionInfo && (<> <span className='rb:text-xs rb:text-[#1890FF]'>
<span className='rb:text-sm rb:text-[#1890FF]'> {versionInfo?.version}
{versionInfo.version} </span>
</span>
</>)}
</div> </div>
<div className='rb:flex rb:flex-col rb:text-xs rb:text-[#5B6167] rb:leading-[18px] rb:mt-3 rb:pl-2'> <div className='rb:flex rb:flex-col rb:text-[#5B6167]'>
{versionInfo && (<> {versionInfo && (<>
<p className='rb:text-xs rb:text-[#5B6167]'> <div className='rb:flex rb:items-center rb:gap-2 rb:text-sm rb:text-[#5B6167] rb:leading-5 '>
{/* <span className='rb:text-sm rb:text-[#1890FF]'> */}
{versionInfo.introduction?.releaseDate} <span className='rb:text-xs rb:text-[#5B6167]'>
{/* </span> */} {t('version.releaseDate')}: {versionInfo.introduction?.releaseDate}
</p> </span>
<p className='rb:text-xs rb:text-[#5B6167]'> <Divider type='vertical' />
<span className='rb:text-xs rb:text-[#5B6167]'>
{t('version.name')}: {versionInfo.introduction?.codeName}
</span>
</div>
<p className='rb:text-sm rb:text-[#5B6167] rb:leading-5 rb:mt-2 '>
{versionInfo.introduction?.upgradePosition} {versionInfo.introduction?.upgradePosition}
</p> </p>
{versionInfo.introduction?.coreUpgrades?.map((item) => ( {versionInfo.introduction?.coreUpgrades?.map((item,index) => (
<p className='rb:text-xs rb:text-[#5B6167]'> <p className='rb:text-sm rb:text-[#5B6167] rb:leading-5'>
{item} {index + 1}. {item}
</p> </p>
))} ))}
</>)} </>)}