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 25a5c41bfc feat: #76 add offline icons plugin which will prefetch icons from iconify
useful in full internal environment
2 years ago
..
com.msgbyte.ai-assistant refactor: update prompt with i18n 2 years ago
com.msgbyte.bbcode test: fix test problem 2 years ago
com.msgbyte.biggerfont
com.msgbyte.draw
com.msgbyte.env.electron feat(desktop): add screenshot button in chatbox at electron env 2 years ago
com.msgbyte.env.rn feat: add device version display in settings 2 years ago
com.msgbyte.filepizza
com.msgbyte.filesend
com.msgbyte.filesfm
com.msgbyte.genshin
com.msgbyte.integration style: add translate for integration 2 years ago
com.msgbyte.intro
com.msgbyte.mdpanel style: remove unused code 2 years ago
com.msgbyte.miaolang
com.msgbyte.music
com.msgbyte.notify fix: fix audio.play() error throw which will marked as Unhandled 2 years ago
com.msgbyte.offline-icons feat: #76 add offline icons plugin which will prefetch icons from iconify 2 years ago
com.msgbyte.openapi style: hide baseinfo section because not content 2 years ago
com.msgbyte.posthog
com.msgbyte.sentry refactor(sentry): sentry report ignore file too large error 2 years ago
com.msgbyte.snapdrop
com.msgbyte.theme.genshin
com.msgbyte.theme.miku
com.msgbyte.toolwa
com.msgbyte.user.location
com.msgbyte.webview refactor: fill iframe size in custom html panel 2 years ago
com.msgbyte.wenshushu
com.msgbyte.widget.sakana style: move sakana widget positon to bottom 2 years ago
com.msgbyte.wormhole
.eslintrc.js
README.md

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
}