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.
tailchat/client/web/plugins
moonrailgun d2b3dccee2 perf: 优化行为分析插件上报插件安装状态 2 years ago
..
com.msgbyte.bbcode style: fix ci problem 2 years ago
com.msgbyte.draw refactor: 升级依赖: react18与react-router v6 以及其他 3 years ago
com.msgbyte.filepizza style: 部分插件增加icon 3 years ago
com.msgbyte.filesfm style: 部分插件增加icon 3 years ago
com.msgbyte.genshin refactor: 升级依赖: react18与react-router v6 以及其他 3 years ago
com.msgbyte.integration feat: 增加添加应用机器人到群组的功能 3 years ago
com.msgbyte.intro feat: 增加群组消息通知免打扰功能 3 years ago
com.msgbyte.miaolang feat(website): 插件文档自动生成 3 years ago
com.msgbyte.notify style: add translation for com.msgbyte.notify 3 years ago
com.msgbyte.openapi style: 移除无用组件 3 years ago
com.msgbyte.posthog perf: 优化行为分析插件上报插件安装状态 2 years ago
com.msgbyte.sentry feat: sentry 插件增加用户信息设置 2 years ago
com.msgbyte.snapdrop style: 部分插件增加icon 3 years ago
com.msgbyte.theme.genshin feat(website): 插件文档自动生成 3 years ago
com.msgbyte.theme.miku feat(website): 插件文档自动生成 3 years ago
com.msgbyte.webview refactor: move all files into client 3 years ago
.eslintrc.js chore: add eslint 3 years ago
README.md refactor: move all files into client 3 years ago

README.md

如何创建一个插件

内部插件

内部插件是指随 tailchat 分发而提供的插件

在web目录执行:

pnpm ministar createPlugin 

插件名请准守反域名模式, 如: com.msgbyte.xxx

设置tsconfig.json如下:

{
  "compilerOptions": {
    "rootDir": "./src",
    "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
}