diff --git a/VS Code Extension/erikraft-drop/README.md b/VS Code Extension/erikraft-drop/README.md new file mode 100644 index 0000000..abebdd1 --- /dev/null +++ b/VS Code Extension/erikraft-drop/README.md @@ -0,0 +1,94 @@ +
+ + ErikrafT Drop Logo + +
+ +# ErikrafT Drop for VS Code + +**Send it.**
+Seamless file sharing inside Visual Studio Code โ€” powered by [ErikrafT Drop](https://drop.erikraft.com). + +[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/erikraft.erikraft-drop?color=brightgreen)](https://marketplace.visualstudio.com/items?itemName=erikraft.erikraft-drop) +[![Installs](https://img.shields.io/visual-studio-marketplace/i/erikraft.erikraft-drop?color=blue)](https://marketplace.visualstudio.com/items?itemName=erikraft.erikraft-drop) +[![Rating](https://img.shields.io/visual-studio-marketplace/r/erikraft.erikraft-drop?color=yellow)](https://marketplace.visualstudio.com/items?itemName=erikraft.erikraft-drop) + +--- + +## ๐Ÿš€ Features + +โœ… **One-click file sharing** between your devices without leaving VS Code +โœ… **Peer-to-peer** or **internet-based** transfer +โœ… Drag and drop files or folders +โœ… Uses [WebRTC](https://webrtc.org/) and WebSockets under the hood +โœ… Works on all platforms: Windows, macOS, Linux + +--- + +## ๐Ÿ“ฆ Installation + +Install from the **Visual Studio Marketplace**: + +[๐Ÿ‘‰ Click here to install](https://marketplace.visualstudio.com/items?itemName=erikraft.erikraft-drop) + +Or search for **"ErikrafT Drop"** in the **Extensions** view in VS Code (`Ctrl+Shift+X` or `โŒ˜+Shift+X`). + +--- + +## ๐Ÿง‘โ€๐Ÿ’ป Usage + +1. Open the **Command Palette** (`Ctrl+Shift+P` or `โŒ˜+Shift+P`) +2. Run `ErikrafT Drop: Open Panel` +3. Choose how to share: + - **Local network (P2P)** + - **Temporary Public Room** + - **Paired Devices** +4. Drag your files into the drop zone +5. Scan the QR code or select a nearby device +6. Done! + +> ๐Ÿ’ก Perfect for sending screenshots, code snippets, config files, or images from your dev machine to your phone, tablet, or laptop โ€” works seamlessly in both Visual Studio Code and Cursor editor. + +--- + +## ๐Ÿ“ท Screenshots + + + + + + +
Demo 1Demo 2
+ +--- + +## ๐ŸŒ Powered by ErikrafT Drop + +This extension embeds the [ErikrafT Drop](https://github.com/erikraft/Drop) web app inside a VS Code WebView. All sharing features are available from within your code editor. + +> Inspired by AirDrop, Snapdrop and PairDrop and rebuilt for the modern cross-platform web. + +--- + +## ๐Ÿค Contributing + +Found a bug or want a feature? +[Create an issue](https://github.com/erikraft/Drop/issues) or [submit a PR](https://github.com/erikraft/Drop/pulls) โ€“ your help is welcome! + +--- + +## ๐Ÿ“œ License + +MIT ยฉ [ErikrafT](https://github.com/erikraft) + +--- + +## โ˜• Support This Project + +If you find this project useful, consider donating: + +[![Donate via PayPal](https://i.imgur.com/51lm3n2.png)](https://www.paypal.com/donate/?business=QKLABC97EXJSN&no_recurring=0&item_name=ErikrafT¤cy_code=BRL) + +--- + +> ๐Ÿ”จ Built with โค๏ธ by ErikrafT โ€ข [drop.erikraft.com](https://drop.erikraft.com) โ€ข [biodrop.erikraft.com](https://biodrop.erikraft.com) \ No newline at end of file diff --git a/VS Code Extension/erikraft-drop/erikraft-drop-1.0.0.vsix b/VS Code Extension/erikraft-drop/erikraft-drop-1.0.0.vsix new file mode 100644 index 0000000..1925306 Binary files /dev/null and b/VS Code Extension/erikraft-drop/erikraft-drop-1.0.0.vsix differ diff --git a/VS Code Extension/erikraft-drop/media/webview.html b/VS Code Extension/erikraft-drop/media/webview.html new file mode 100644 index 0000000..fabb99d --- /dev/null +++ b/VS Code Extension/erikraft-drop/media/webview.html @@ -0,0 +1,24 @@ + + + + + ErikrafT Drop + + + + + + diff --git a/VS Code Extension/erikraft-drop/package.json b/VS Code Extension/erikraft-drop/package.json new file mode 100644 index 0000000..15d7c9a --- /dev/null +++ b/VS Code Extension/erikraft-drop/package.json @@ -0,0 +1,33 @@ +{ + "name": "erikraft-drop", + "displayName": "ErikrafT Drop", + "description": "A maneira mais fรกcil de transferir arquivos entre dispositivos.", + "version": "1.0.0", + "engines": { + "vscode": "^1.70.0" + }, + "activationEvents": [ + "onCommand:erikraftDrop.open" + ], + "main": "./src/extension.js", + "contributes": { + "commands": [ + { + "command": "erikraftDrop.open", + "title": "Abrir ErikrafT Drop" + } + ] + }, + "categories": ["Other"], + "publisher": "ErikrafT", + "scripts": { + "package": "vsce package" + }, + "devDependencies": { + "@vscode/vsce": "^2.21.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/erikraft/Drop" + } +} diff --git a/VS Code Extension/erikraft-drop/src/extension.js b/VS Code Extension/erikraft-drop/src/extension.js new file mode 100644 index 0000000..b844c6a --- /dev/null +++ b/VS Code Extension/erikraft-drop/src/extension.js @@ -0,0 +1,48 @@ +const vscode = require('vscode'); +function activate(context) { + let disposable = vscode.commands.registerCommand('erikraftDrop.open', function () { + const panel = vscode.window.createWebviewPanel( + 'erikraftDrop', + 'ErikrafT Drop', + vscode.ViewColumn.One, + { + enableScripts: true + } + ); + + panel.webview.html = getWebviewContent(); + }); + + context.subscriptions.push(disposable); +} +exports.activate = activate; + +function deactivate() {} +exports.deactivate = deactivate; + +function getWebviewContent() { + return ` + + + + + ErikrafT Drop + + + + + + + `; +}