feat(ui): 添加API使用指南页面

- 新增usage页面组件,包含API使用文档和示例代码
- 添加BookOpen图标用于使用指南菜单项
- 在侧边栏导航中增加"使用指南"链接,指向/usage路径
- 集成到路由系统,支持访问/usage路径
- 提供多种编程语言的API调用示例(bash、python、typescript)
- 支持流式输出和非流式输出的API调用方式
- 集成OpenAI SDK使用示例
This commit is contained in:
PoRi
2026-04-25 17:40:20 +08:00
parent b5305dbfb0
commit a15d39187c
5 changed files with 467 additions and 0 deletions
+5
View File
@@ -5,3 +5,8 @@ This template should help get you started developing with Tauri, React and Types
## Recommended IDE Setup
- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
ui 使用shadcn-admin ,基本上是直接粘贴过来的,
这个项目只有两个