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 584997826b feat: add alioss or other s3 protocol external storage support #104 2 years ago
..
com.msgbyte.ai-assistant
com.msgbyte.bbcode feat: add alioss or other s3 protocol external storage support #104 2 years ago
com.msgbyte.biggerfont
com.msgbyte.draw style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.env.electron refactor: skip update check in invalid version 2 years ago
com.msgbyte.env.rn
com.msgbyte.filepizza
com.msgbyte.filesend
com.msgbyte.filesfm
com.msgbyte.genshin style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.integration style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.intro style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.mdpanel
com.msgbyte.miaolang style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.music
com.msgbyte.notify style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.offline-icons
com.msgbyte.openapi style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.posthog
com.msgbyte.sentry
com.msgbyte.snapdrop style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.theme.genshin style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.theme.miku style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.toolwa style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.user.location
com.msgbyte.webview style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.wenshushu
com.msgbyte.widget.sakana
com.msgbyte.wormhole
.eslintrc.js feat(electron): add auto upgrade version check 2 years ago
README.md style: remove baseUrl in frontend plugin 2 years ago

README.md

如何创建一个插件

内部插件

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

在web目录执行:

pnpm ministar createPlugin 

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

设置tsconfig.json如下:

{
  "compilerOptions": {
    "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
}