feat(web): add multi-language support for version information
- Add English introduction field (introduction_en) to versionResponse interface in common.ts - Implement language-aware version information retrieval in VersionCard component - Add getIntroduction() function to return appropriate language version based on current i18n language - Fix running_apps data key mapping to use direct key instead of total_ prefix in TopCardList - Add max-height and overflow styling to version card content for better scrolling - Remove unused loading state and Button import from VersionCard - Add key prop to coreUpgrades list items for proper React rendering - Support fallback to English introduction when current language version is unavailable
This commit is contained in:
@@ -31,6 +31,12 @@ export interface versionResponse{
|
||||
coreUpgrades: string[];
|
||||
codeName: string;
|
||||
};
|
||||
introduction_en?: {
|
||||
releaseDate: string;
|
||||
upgradePosition: string;
|
||||
coreUpgrades: string[];
|
||||
codeName: string;
|
||||
};
|
||||
}
|
||||
// 首页数据统计
|
||||
export const getDashboardData = `/home-page/workspaces`
|
||||
|
||||
Reference in New Issue
Block a user