This commit is contained in:
2026-04-25 16:36:34 +08:00
commit db90e7579b
1876 changed files with 189777 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
## com.msgbyte.snapdrop
`Tailchat` 增加 局域网文件互传的功能
Powered by [snapdrop](https://github.com/RobinLinus/snapdrop.git)
### 使用方式
仅需要在同一网络下两个设备均打开 [我 -> 隔空投送] 面板,单击或长按即可发送

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -0,0 +1,13 @@
{
"label": "Snapdrop",
"label.zh-CN": "隔空投送",
"name": "com.msgbyte.snapdrop",
"url": "/plugins/com.msgbyte.snapdrop/index.js",
"icon": "/plugins/com.msgbyte.snapdrop/assets/icon.png",
"documentUrl": "/plugins/com.msgbyte.snapdrop/README.md",
"version": "0.0.0",
"author": "msgbyte",
"description": "Snapdrop —— Send files and messages on the same network",
"description.zh-CN": "隔空投送 —— 在同一网络发送文件与消息",
"requireRestart": false
}

View File

@@ -0,0 +1,8 @@
{
"name": "@plugins/com.msgbyte.snapdrop",
"main": "src/index.tsx",
"version": "0.0.0",
"private": true,
"dependencies": {
}
}

View File

@@ -0,0 +1,19 @@
import { regCustomPanel } from '@capital/common';
import { WebviewKeepAlive } from '@capital/component';
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: () => (
<WebviewKeepAlive
className="w-full h-full bg-white"
url="https://snapdrop.net/"
/>
),
});

View File

@@ -0,0 +1,5 @@
import { localTrans } from '@capital/common';
export const Translate = {
panelName: localTrans({ 'zh-CN': '隔空投送', 'en-US': 'Snapdrop' }),
};

View File

@@ -0,0 +1,9 @@
{
"compilerOptions": {
"esModuleInterop": true,
"jsx": "react",
"paths": {
"@capital/*": ["../../src/plugin/*"],
}
}
}