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 f0abf1b9cb style: 开放平台插件补全国际化翻译 2 years ago
..
com.msgbyte.bbcode fix: 修复在处理当前页面的完整路径时url的跳转行为 2 years ago
com.msgbyte.biggerfont fix: 修复放大字体插件默认状态不生效的bug 2 years ago
com.msgbyte.draw
com.msgbyte.env.rn feat(rn): 移动端增加消息通知显示 2 years ago
com.msgbyte.filepizza
com.msgbyte.filesend
com.msgbyte.filesfm
com.msgbyte.genshin
com.msgbyte.integration
com.msgbyte.intro
com.msgbyte.miaolang
com.msgbyte.music feat: 增加在线听音乐插件 2 years ago
com.msgbyte.notify refactor: 重构消息通知模式,将免打扰相关的逻辑集成到核心代码中 2 years ago
com.msgbyte.openapi style: 开放平台插件补全国际化翻译 2 years ago
com.msgbyte.posthog
com.msgbyte.sentry chore: update grade sentry version 2 years ago
com.msgbyte.snapdrop
com.msgbyte.theme.genshin
com.msgbyte.theme.miku
com.msgbyte.toolwa
com.msgbyte.user.location
com.msgbyte.webview perf: 优化自定义网页面板url生成机制, 使用blob url来生成临时地址 2 years ago
com.msgbyte.wenshushu
com.msgbyte.wormhole
.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
}