diff --git a/web/plugins/com.msgbyte.miaolang/manifest.json b/web/plugins/com.msgbyte.miaolang/manifest.json index 9d2e1f48..a24e373a 100644 --- a/web/plugins/com.msgbyte.miaolang/manifest.json +++ b/web/plugins/com.msgbyte.miaolang/manifest.json @@ -6,5 +6,5 @@ "author": "msgbyte", "description": "为聊天提供喵语言对话功能", "documentUrl": "/plugins/com.msgbyte.miaolang/README.md", - "requireRestart": true + "requireRestart": false } diff --git a/web/plugins/com.msgbyte.snapdrop/README.md b/web/plugins/com.msgbyte.snapdrop/README.md new file mode 100644 index 00000000..7d7b5ef4 --- /dev/null +++ b/web/plugins/com.msgbyte.snapdrop/README.md @@ -0,0 +1,9 @@ +## com.msgbyte.snapdrop + +为 `Tailchat` 增加 局域网文件互传的功能 + +Powered by [snapdrop](https://github.com/RobinLinus/snapdrop.git) + +### 使用方式 + +仅需要在同一网络下两个设备均打开 [我 -> 隔空投送] 面板,单击或长按即可发送 diff --git a/web/plugins/com.msgbyte.snapdrop/manifest.json b/web/plugins/com.msgbyte.snapdrop/manifest.json new file mode 100644 index 00000000..2b344337 --- /dev/null +++ b/web/plugins/com.msgbyte.snapdrop/manifest.json @@ -0,0 +1,10 @@ +{ + "label": "隔空投送", + "name": "com.msgbyte.snapdrop", + "url": "/plugins/com.msgbyte.snapdrop/index.js", + "version": "0.0.0", + "author": "msgbyte", + "description": "隔空投送 —— 在同一网络发送文件与消息", + "documentUrl": "/plugins/com.msgbyte.webview/README.md", + "requireRestart": false +} diff --git a/web/plugins/com.msgbyte.snapdrop/package.json b/web/plugins/com.msgbyte.snapdrop/package.json new file mode 100644 index 00000000..cdf75f5b --- /dev/null +++ b/web/plugins/com.msgbyte.snapdrop/package.json @@ -0,0 +1,8 @@ +{ + "name": "@plugins/com.msgbyte.snapdrop", + "main": "src/index.tsx", + "version": "0.0.0", + "private": true, + "dependencies": { + } +} diff --git a/web/plugins/com.msgbyte.snapdrop/src/index.tsx b/web/plugins/com.msgbyte.snapdrop/src/index.tsx new file mode 100644 index 00000000..3b7b06ba --- /dev/null +++ b/web/plugins/com.msgbyte.snapdrop/src/index.tsx @@ -0,0 +1,15 @@ +import { regCustomPanel } from '@capital/common'; +import React from 'react'; +import { Translate } from './translate'; + +const PLUGIN_NAME = 'com.msgbyte.snapdrop'; + +regCustomPanel({ + name: `${PLUGIN_NAME}/personPanel`, + position: 'personal', + label: Translate.panelName, + icon: 'mdi:radio-tower', + render: () => ( +