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 246fe293b9 refactor: update offline icons 7 months ago
..
com.msgbyte.ai-assistant feat: add more tip in ai-assistant plugin 1 year ago
com.msgbyte.bbcode fix: fix text cannot select part problem and url dont need context menu problem 11 months ago
com.msgbyte.biggerfont chore: add registry config for fe and add i18n support for plugin 2 years ago
com.msgbyte.draw style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.env.electron feat: add hide tip 1 year ago
com.msgbyte.env.rn feat(mobile): add webrtc permission grant and allow webrtc service work correct 1 year ago
com.msgbyte.filepizza chore: add registry config for fe and add i18n support for plugin 2 years ago
com.msgbyte.filesend chore: add registry config for fe and add i18n support for plugin 2 years ago
com.msgbyte.filesfm chore: add registry config for fe and add i18n support for plugin 2 years ago
com.msgbyte.genshin refactor: migrate tabs.pane into tabs item 2 years ago
com.msgbyte.integration perf: add friendly tip for add non-message feature bot 1 year ago
com.msgbyte.intro fix: fix tour will be break when flag DISABLE_CREATE_GROUP is been open 2 years ago
com.msgbyte.mdpanel feat: add <PreJoinView /> for voice channel 2 years ago
com.msgbyte.miaolang style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.music feat: add navbar icon which can jump to active panel 2 years ago
com.msgbyte.notify style: remove baseUrl in frontend plugin 2 years ago
com.msgbyte.offline-icons refactor: update offline icons 7 months ago
com.msgbyte.openapi style: remove duplicate key 2 years ago
com.msgbyte.posthog chore: add registry config for fe and add i18n support for plugin 2 years ago
com.msgbyte.sentry perf: reduce entry js size 2 years ago
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 chore: add registry config for fe and add i18n support for plugin 2 years ago
com.msgbyte.webview feat: web panel support add background color which useful for transparent background website 1 year ago
com.msgbyte.wenshushu chore: add registry config for fe and add i18n support for plugin 2 years ago
com.msgbyte.widget.sakana style: move sakana widget positon to bottom 2 years ago
com.msgbyte.wormhole chore: add registry config for fe and add i18n support for plugin 2 years ago
.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
}