feat(frontend): add frontend-v2 modular architecture (Task 17)

- React 19 + TypeScript + Vite
- Module registration mechanism with dynamic loading
- Permission management system (basic/advanced/premium)
- Route guards for access control
- Error boundaries for module isolation
- 6 business module placeholders (AIA/ASL/PKB/DC/SSA/ST)
- Top navigation layout
- Tailwind CSS 3 + Ant Design 5
This commit is contained in:
2025-11-16 15:43:17 +08:00
parent 5579ffa78e
commit 11325f88a7
39 changed files with 8051 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import Placeholder from '@/shared/components/Placeholder'
const AIAModule = () => {
return (
<Placeholder
title="AI智能问答模块"
description="后续基于新架构重写,提供更好的用户体验"
moduleName="AIA - AI Intelligent Assistant"
/>
)
}
export default AIAModule

View File

@@ -0,0 +1,18 @@
import Placeholder from '@/shared/components/Placeholder'
const ASLModule = () => {
return (
<Placeholder
title="AI智能文献模块"
description="Week 3 开始开发支持4个LLM的智能文献筛选和分析"
moduleName="ASL - AI Smart Literature"
/>
)
}
export default ASLModule

View File

@@ -0,0 +1,18 @@
import Placeholder from '@/shared/components/Placeholder'
const DCModule = () => {
return (
<Placeholder
title="数据清洗模块"
description="功能规划中,将提供智能数据清洗和整理工具"
moduleName="DC - Data Cleaning"
/>
)
}
export default DCModule

View File

@@ -0,0 +1,18 @@
import Placeholder from '@/shared/components/Placeholder'
const PKBModule = () => {
return (
<Placeholder
title="个人知识库模块"
description="后续基于新架构重写,提供更好的文档管理和智能检索"
moduleName="PKB - Personal Knowledge Base"
/>
)
}
export default PKBModule

View File

@@ -0,0 +1,22 @@
import React from 'react'
import Placeholder from '../../shared/components/Placeholder'
/**
* 智能统计分析模块
* Java团队开发前端仅做导航集成
*/
const SSAModule: React.FC = () => {
return (
<Placeholder
moduleName="智能统计分析"
message="由Java团队开发中前端集成规划中"
/>
)
}
export default SSAModule

View File

@@ -0,0 +1,22 @@
import React from 'react'
import Placeholder from '../../shared/components/Placeholder'
/**
* 统计分析工具模块
* Java团队开发前端仅做导航集成
*/
const STModule: React.FC = () => {
return (
<Placeholder
moduleName="统计分析工具"
message="由Java团队开发中前端集成规划中"
/>
)
}
export default STModule