feat: Add arrow toggle functionality in WikiBrowser component

Implemented new features in the WikiBrowser component to allow users to toggle the visibility of arrows on graph edges. This includes:

1. **Localization Updates**: Added translations for "Show arrows" and "Hide arrows" in English, Korean, Russian, and Chinese.
2. **Graph Rendering Enhancements**: Introduced logic to dynamically update SVG line attributes based on the toggle state, improving visual clarity in graph representations.
3. **State Management**: Added reactive state management for arrow visibility, ensuring seamless user interaction.

These changes enhance the user experience by providing more control over graph visualizations.
This commit is contained in:
wizardchen
2026-04-07 21:21:48 +08:00
parent d4d005422d
commit 0e28b2448c
11 changed files with 609 additions and 55 deletions
+2
View File
@@ -1633,6 +1633,8 @@ export default {
graphEmpty: 'Loading graph...',
logTitle: 'Activity Log',
graphNoData: 'No graph data yet. Upload documents first.',
showArrows: 'Show arrows',
hideArrows: 'Hide arrows',
healthCheck: 'Health Check',
},
buttons: {
+2
View File
@@ -2156,6 +2156,8 @@ export default {
graphEmpty: "그래프 로딩 중...",
logTitle: '활동 로그',
graphNoData: '그래프 데이터가 없습니다. 먼저 문서를 업로드하세요.',
showArrows: '화살표 표시',
hideArrows: '화살표 숨기기',
healthCheck: "상태 점검",
},
buttons: {
+2
View File
@@ -1836,6 +1836,8 @@ export default {
graphEmpty: 'Загрузка графа...',
logTitle: 'Журнал активности',
graphNoData: 'Нет данных графа. Сначала загрузите документы.',
showArrows: 'Показать стрелки',
hideArrows: 'Скрыть стрелки',
healthCheck: 'Проверка здоровья',
},
buttons: {
+2
View File
@@ -2139,6 +2139,8 @@ export default {
graphEmpty: "加载图谱中...",
logTitle: '操作日志',
graphNoData: '暂无图谱数据,请先上传文档',
showArrows: '显示箭头',
hideArrows: '隐藏箭头',
healthCheck: "健康检查",
},
buttons: {