Files
LittleWhiteBox/README.md
RT15548 593fce3c8c
2025-12-19 02:19:10 +08:00

75 lines
2.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# LittleWhiteBox
SillyTavern 扩展插件 - 小白X
## 📁 目录结构
```
LittleWhiteBox/
├── manifest.json # 插件配置清单
├── index.js # 主入口文件
├── settings.html # 设置页面模板
├── style.css # 全局样式
├── modules/ # 功能模块目录
│ ├── streaming-generation.js # 流式生成
│ ├── dynamic-prompt.js # 动态提示词
│ ├── immersive-mode.js # 沉浸模式
│ ├── message-preview.js # 消息预览
│ ├── wallhaven-background.js # 壁纸背景
│ ├── button-collapse.js # 按钮折叠
│ ├── control-audio.js # 音频控制
│ ├── script-assistant.js # 脚本助手
│ │
│ ├── variables/ # 变量系统
│ │ ├── variables-core.js
│ │ └── variables-panel.js
│ │
│ ├── template-editor/ # 模板编辑器
│ │ ├── template-editor.js
│ │ └── template-editor.html
│ │
│ ├── scheduled-tasks/ # 定时任务
│ │ ├── scheduled-tasks.js
│ │ ├── scheduled-tasks.html
│ │ └── embedded-tasks.html
│ │
│ ├── story-summary/ # 故事摘要
│ │ ├── story-summary.js
│ │ └── story-summary.html
│ │
│ └── story-outline/ # 故事大纲
│ ├── story-outline.js
│ ├── story-outline-prompt.js
│ └── story-outline.html
├── bridges/ # 外部桥接模块
│ ├── worldbook-bridge.js # 世界书桥接
│ ├── call-generate-service.js # 生成服务调用
│ └── wrapper-iframe.js # iframe 包装器
├── ui/ # UI 模板
│ └── character-updater-menus.html
└── docs/ # 文档
├── script-docs.md # 脚本文档
├── LICENSE.md # 许可证
├── COPYRIGHT # 版权信息
└── NOTICE # 声明
```
## 📝 模块组织规则
- **单文件模块**:直接放在 `modules/` 目录下
- **多文件模块**:创建子目录,包含相关的 JS、HTML 等文件
- **桥接模块**:与外部系统交互的独立模块放在 `bridges/`
- **避免使用 `index.js`**:每个模块文件直接命名,不使用 `index.js`
## 🔄 版本历史
- v2.2.2 - 目录结构重构2025-12-08
## 📄 许可证
详见 `docs/LICENSE.md`