mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
.. | ||
com.msgbyte.bbcode | 2 years ago | |
com.msgbyte.biggerfont | 2 years ago | |
com.msgbyte.draw | 2 years ago | |
com.msgbyte.env.rn | 2 years ago | |
com.msgbyte.filepizza | 2 years ago | |
com.msgbyte.filesend | 2 years ago | |
com.msgbyte.filesfm | 2 years ago | |
com.msgbyte.genshin | 2 years ago | |
com.msgbyte.integration | 2 years ago | |
com.msgbyte.intro | 2 years ago | |
com.msgbyte.mdpanel | 2 years ago | |
com.msgbyte.miaolang | 2 years ago | |
com.msgbyte.music | 2 years ago | |
com.msgbyte.notify | 2 years ago | |
com.msgbyte.openapi | 2 years ago | |
com.msgbyte.posthog | 2 years ago | |
com.msgbyte.sentry | 2 years ago | |
com.msgbyte.snapdrop | 2 years ago | |
com.msgbyte.theme.genshin | 2 years ago | |
com.msgbyte.theme.miku | 2 years ago | |
com.msgbyte.toolwa | 2 years ago | |
com.msgbyte.user.location | 2 years ago | |
com.msgbyte.webview | 2 years ago | |
com.msgbyte.wenshushu | 2 years ago | |
com.msgbyte.wormhole | 2 years ago | |
.eslintrc.js | ||
README.md | 2 years ago |
README.md
如何创建一个插件
内部插件
内部插件是指随
tailchat
分发而提供的插件
在web目录执行:
pnpm ministar createPlugin
插件名请准守反域名模式, 如: com.msgbyte.xxx
设置tsconfig.json
如下:
{
"compilerOptions": {
"baseUrl": "./src",
"esModuleInterop": true,
"jsx": "react",
"paths": {
"@capital/*": ["../../../src/plugin/*"],
}
}
}
创建一个manifest.json
文件
示例:
{
"label": "网页面板插件",
"name": "com.msgbyte.webview",
"url": "/plugins/com.msgbyte.webview/index.js",
"version": "0.0.0",
"author": "msgbyte",
"description": "为群组提供创建网页面板的功能",
"requireRestart": false
}