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/web/plugins
moonrailgun de50da08d4 feat: 网页增加外部打开功能 3 years ago
..
com.msgbyte.bbcode perf: 优化bbcode插件的加载,增加渲染函数的预加载能力 3 years ago
com.msgbyte.draw chore: 整理项目依赖并升级webpack 3 years ago
com.msgbyte.genshin chore: 整理项目依赖并升级webpack 3 years ago
com.msgbyte.intro style: rename TailChat -> Tailchat 3 years ago
com.msgbyte.miaolang feat: 增加snapdrop插件, 用于隔空投送文件 3 years ago
com.msgbyte.notify fix: 修复notify插件显示名称不对的bug 3 years ago
com.msgbyte.openapi perf: 优化开放平台请求体验 3 years ago
com.msgbyte.snapdrop feat: 增加snapdrop插件, 用于隔空投送文件 3 years ago
com.msgbyte.theme.genshin feat: 增加snapdrop插件, 用于隔空投送文件 3 years ago
com.msgbyte.theme.miku feat: 增加snapdrop插件, 用于隔空投送文件 3 years ago
com.msgbyte.webview feat: 网页增加外部打开功能 3 years ago
.eslintrc.js chore: add plugins eslint check 3 years ago
README.md chore: 迁移yarn到pnpm 3 years ago

README.md

如何创建一个插件

内部插件

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

在web目录执行:

pnpm ministar createPlugin 

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

设置tsconfig.json如下:

{
  "compilerOptions": {
    "rootDir": "./src",
    "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
}