feat: add visual configuration editor and YAML handling

- Implemented a new hook `useVisualConfig` for managing visual configuration state and YAML parsing.
- Added types for visual configuration in `visualConfig.ts`.
- Enhanced `ConfigPage` to support switching between visual and source editors.
- Introduced floating action buttons for save and reload actions.
- Updated translations for tab labels in English and Chinese.
- Styled the configuration page with new tab and floating action button styles.
This commit is contained in:
LTbinglingfeng
2026-02-06 02:15:40 +08:00
parent 7d41afb5f1
commit 11c2498be6
10 changed files with 2090 additions and 103 deletions

View File

@@ -833,7 +833,11 @@
"search_button": "Search",
"search_no_results": "No results",
"search_prev": "Previous",
"search_next": "Next"
"search_next": "Next",
"tabs": {
"visual": "Visual Editor",
"source": "Source Editor"
}
},
"quota_management": {
"title": "Quota Management",

View File

@@ -833,7 +833,11 @@
"search_button": "搜索",
"search_no_results": "无结果",
"search_prev": "上一个",
"search_next": "下一个"
"search_next": "下一个",
"tabs": {
"visual": "可视化编辑",
"source": "源代码编辑"
}
},
"quota_management": {
"title": "配额管理",