feat: 更新插件元数据和文档,并移除旧的 README 文件。

This commit is contained in:
fujie
2025-12-28 21:54:47 +08:00
parent 9ee3d495b6
commit 66a6d6b103
5 changed files with 162 additions and 116 deletions

View File

@@ -1,67 +1,65 @@
# 信息图 - OpenWebUI Action 插件
# 📊 Smart Infographic (AntV)
将文本内容智能转换为美观的信息图,基于蚂蚁集团 AntV Infographic 引擎。
An Open WebUI plugin powered by the AntV Infographic engine. It transforms long text into professional, beautiful infographics with a single click.
## 功能特性
## ✨ Key Features
- 🤖 **AI 驱动**: 使用 LLM 自动分析文本内容并生成信息图语法
- 📊 **多种模板**: 支持列表、流程、层级等多种信息图类型
- 🎨 **自动图标**: 使用 `ref:search` 语法自动匹配高质量图标
- 💾 **多格式导出**: 支持下载 SVG、PNG 和独立 HTML 文件
- 🎯 **零配置**: 开箱即用,无需额外设置
- 🚀 **AI-Powered Transformation**: Automatically analyzes text logic, extracts key points, and generates structured charts.
- 🎨 **Professional Templates**: Includes various AntV official templates: Lists, Trees, Mindmaps, Comparison Tables, Flowcharts, and Statistical Charts.
- 🔍 **Auto-Icon Matching**: Built-in logic to search and match the most relevant Material Design Icons based on content.
- 📥 **Multi-Format Export**: Download your infographics as **SVG**, **PNG**, or a **Standalone HTML** file.
- 🌈 **Highly Customizable**: Supports Dark/Light modes, auto-adapts theme colors, with bold titles and refined card layouts.
- 📱 **Responsive Design**: Generated charts look great on both desktop and mobile devices.
## 安装
## 🛠️ Supported Template Types
1.`信息图.py` 文件复制到 Open WebUI 的插件目录:
```
plugins/actions/infographic/
```
| Category | Template Name | Use Case |
| :--- | :--- | :--- |
| **Lists & Hierarchy** | `list-grid`, `tree-vertical`, `mindmap` | Features, Org Charts, Brainstorming |
| **Sequence & Relation** | `sequence-roadmap`, `relation-circle` | Roadmaps, Circular Flows, Steps |
| **Comparison & Analysis** | `compare-binary`, `compare-swot`, `quadrant-quarter` | Pros/Cons, SWOT, Quadrants |
| **Charts & Data** | `chart-bar`, `chart-line`, `chart-pie` | Trends, Distributions, Metrics |
2. 重启 Open WebUI 或在管理界面重新加载插件
## 🚀 How to Use
3. 在聊天界面的 Action 菜单中即可看到 "信息图" 选项
1. **Install**: Search for "Smart Infographic" in the Open WebUI Community and install.
2. **Trigger**: Enter your text in the chat, then click the **Action Button** (📊 icon) next to the input box.
3. **AI Processing**: The AI analyzes the text and generates the infographic syntax.
4. **Preview & Download**: Preview the result and use the download buttons below to save your infographic.
## 使用方法
## ⚙️ Configuration (Valves)
1. 在聊天框输入需要可视化的文本内容(建议 100 字符以上)
2. 点击 "信息图" Action 按钮
3. AI 将自动分析文本并生成信息图
4. 可以下载 SVG、PNG 或 HTML 格式的文件
You can adjust the following parameters in the plugin settings to optimize the generation:
### 示例文本
| Parameter | Default | Description |
| :--- | :--- | :--- |
| **Show Status (SHOW_STATUS)** | `True` | Whether to show real-time AI analysis and generation status in the chat. |
| **Model ID (MODEL_ID)** | `Empty` | Specify the LLM model for text analysis. If empty, the current chat model is used. |
| **Min Text Length (MIN_TEXT_LENGTH)** | `100` | Minimum characters required to trigger analysis, preventing accidental triggers on short text. |
| **Clear Previous (CLEAR_PREVIOUS_HTML)** | `False` | Whether to clear previous charts. If `False`, new charts will be appended below. |
| **Message Count (MESSAGE_COUNT)** | `1` | Number of recent messages to use for analysis. Increase this for more context. |
```
我们的产品开发流程包括三个主要阶段:
1. 需求分析 - 收集和分析用户需求,确定产品方向
2. 设计开发 - 完成 UI/UX 设计和前后端开发
3. 测试上线 - 进行质量验证并正式发布
## 📝 Syntax Example (For Advanced Users)
You can also input this syntax directly for AI to render:
```infographic
infographic list-grid
data
title 🚀 Plugin Benefits
desc Why use the Smart Infographic plugin
items
- label Fast Generation
desc Convert text to charts in seconds
- label Beautiful Design
desc Uses AntV professional design standards
```
## 配置选项Valves
## 👨‍💻 Author
- **SHOW_STATUS**: 是否显示操作状态更新(默认: True
- **MODEL_ID**: 用于分析的 LLM 模型 ID默认: 使用当前对话模型)
- **MIN_TEXT_LENGTH**: 最小文本长度要求(默认: 100 字符)
- **CLEAR_PREVIOUS_HTML**: 是否清除之前的插件输出(默认: False
**jeff**
- GitHub: [Fu-Jie/awesome-openwebui](https://github.com/Fu-Jie/awesome-openwebui)
## 支持的信息图类型
插件会根据文本内容自动选择最合适的模板:
- **列表型**: `list-row-horizontal-icon-arrow`, `list-grid`
- **层级型**: `tree-vertical`, `tree-horizontal`
## 技术栈
- **后端**: Python, OpenWebUI Action API
- **前端**: AntV Infographic (CDN)
- **AI**: 自定义提示词工程
## 许可证
## 📄 License
MIT License
## 致谢
- [AntV Infographic](https://infographic.antv.vision/) - 信息图渲染引擎
- [Open WebUI](https://github.com/open-webui/open-webui) - AI 聊天界面