koishi-plugin-chat-patch 5.0.1 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/readme.md +45 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-chat-patch",
|
|
3
3
|
"description": "[<ruby>chat-patch<rp>(</rp><rt>点我预览效果</rt><rp>)</rp></ruby>](https://i0.hdslb.com/bfs/openplatform/71074dfc9e5256fc3333d8bd8478bec1af874046.png) 视奸小插件((bushi( (低性能警告)。手机端适配。灵感来自 chat 插件。",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.2",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:web": "npm --prefix client/web run build",
|
|
7
7
|
"prepack": "npm run build:web",
|
package/readme.md
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
1
|
# koishi-plugin-chat-patch
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/koishi-plugin-chat-patch)
|
|
3
|
+
[](https://www.npmjs.com/package/koishi-plugin-chat-patch) [](https://www.npmjs.com/package/koishi-plugin-chat-patch) [](https://koishi.chat/)
|
|
4
|
+
基于 Satori 的 Koishi WebUI 聊天室插件。它会在 Koishi 控制台中提供一个聊天页面,用于查看机器人收到的消息、联系人、群组、历史记录和媒体内容。
|
|
5
|
+
|
|
6
|
+
## 项目来源
|
|
7
|
+
|
|
8
|
+
本项目的灵感来源于 [Stapxs QQ Lite 2.0](https://github.com/Stapxs/Stapxs-QQ-Lite-2.0)。该项目具备出色的 UI 设计,并通过 OneBot 协议连接 WebUI,实现了类似网页聊天室的效果,窝很喜欢喵。
|
|
9
|
+
|
|
10
|
+
与此同时,Koishi 框架本身具备跨平台、WebUI 等特性,因此我希望将类似功能嵌入到 Koishi 的 WebUI 中,实现在控制台内直接打开网页聊天室(基于 Satori 协议的网页聊天室)。
|
|
11
|
+
|
|
12
|
+
需要说明的是,虽然存在 [satorijs/satori-app](https://github.com/satorijs/satori-app) 等类似项目,但它们需要独立安装,并未集成在 Koishi 内部。
|
|
13
|
+
|
|
14
|
+
本项目魔改自 [Stapxs QQ Lite 2.0](https://github.com/Stapxs/Stapxs-QQ-Lite-2.0) 。
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 环境要求
|
|
19
|
+
|
|
20
|
+
在使用本插件之前,请确保:
|
|
21
|
+
|
|
22
|
+
1. 已在 Koishi 中启用 `server-satori`
|
|
23
|
+
2. 再启用本插件
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 构建与发布
|
|
28
|
+
|
|
29
|
+
在 Koishi 项目根目录下执行以下命令进行构建:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
yarn build chat-patch
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
该命令会**依次构建**:
|
|
36
|
+
|
|
37
|
+
| 构建目标 | 输出路径 | 说明 |
|
|
38
|
+
| --------- | --------- | ------ |
|
|
39
|
+
| 后端 | `lib/` | 后端编译结果 |
|
|
40
|
+
| Koishi WebUI 外壳 | `dist/` | 供 Koishi 控制台加载的外壳页面 |
|
|
41
|
+
| 独立 Web 应用 | `client/web/dist/` | 实际聊天 Web 应用产物 |
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 四、许可
|
|
46
|
+
|
|
47
|
+
本项目采用 [MIT](https://opensource.org/licenses/MIT) 许可证。
|