mirror of https://github.com/msgbyte/tailchat
feat: 增加snapdrop插件, 用于隔空投送文件
parent
90551f3c19
commit
9bee364610
@ -0,0 +1,9 @@
|
|||||||
|
## com.msgbyte.snapdrop
|
||||||
|
|
||||||
|
为 `Tailchat` 增加 局域网文件互传的功能
|
||||||
|
|
||||||
|
Powered by [snapdrop](https://github.com/RobinLinus/snapdrop.git)
|
||||||
|
|
||||||
|
### 使用方式
|
||||||
|
|
||||||
|
仅需要在同一网络下两个设备均打开 [我 -> 隔空投送] 面板,单击或长按即可发送
|
@ -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
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"name": "@plugins/com.msgbyte.snapdrop",
|
||||||
|
"main": "src/index.tsx",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
}
|
||||||
|
}
|
@ -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: () => (
|
||||||
|
<iframe className="w-full h-full bg-white" src="https://snapdrop.net/" />
|
||||||
|
),
|
||||||
|
});
|
@ -0,0 +1,5 @@
|
|||||||
|
import { localTrans } from '@capital/common';
|
||||||
|
|
||||||
|
export const Translate = {
|
||||||
|
panelName: localTrans({ 'zh-CN': '隔空投送', 'en-US': 'Snapdrop' }),
|
||||||
|
};
|
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": "./src",
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"jsx": "react",
|
||||||
|
"paths": {
|
||||||
|
"@capital/*": ["../../../src/plugin/*"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue