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 43a7d47ec5 chore: update grade sentry version 2 years ago
..
com.msgbyte.bbcode feat: 提及tag增加用户名fallback 2 years ago
com.msgbyte.draw
com.msgbyte.filepizza feat: 文件传输插件增加文叔叔与filesend 2 years ago
com.msgbyte.filesend feat: 文件传输插件增加文叔叔与filesend 2 years ago
com.msgbyte.filesfm feat: 文件传输插件增加文叔叔与filesend 2 years ago
com.msgbyte.genshin
com.msgbyte.integration
com.msgbyte.intro feat: 引导插件增加国际化支持 2 years ago
com.msgbyte.miaolang
com.msgbyte.notify feat: 消息通知插件增加开关允许禁用内置的提示音 2 years ago
com.msgbyte.openapi
com.msgbyte.posthog feat: 增加加载到主组件时上报加载耗时 2 years ago
com.msgbyte.sentry chore: update grade sentry version 2 years ago
com.msgbyte.snapdrop feat: 增加工具蛙插件 2 years ago
com.msgbyte.theme.genshin
com.msgbyte.theme.miku
com.msgbyte.toolwa feat: 增加工具蛙插件 2 years ago
com.msgbyte.user.location
com.msgbyte.webview
com.msgbyte.wenshushu feat: 文件传输插件增加文叔叔与filesend 2 years ago
com.msgbyte.wormhole feat: 增加wormhole插件用于文件传输 2 years ago
.eslintrc.js
README.md feat: 消息通知插件增加开关允许禁用内置的提示音 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
}