From af49b7027f521389185734ac85f1dbe47872e1f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E4=B8=8A=E8=B4=B5=E7=8C=AA?= <290425385@qq.com> Date: Wed, 26 Mar 2025 06:51:23 +0800 Subject: [PATCH 1/3] =?UTF-8?q?v1.0.0=EF=BC=8C=E5=8E=9F=E7=89=88=E6=94=B9?= =?UTF-8?q?=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/index.html | 40 +++++++++++++++++----------------- server/package-lock.json | 47 +++++++++++++++++++++++++++++++++------- 2 files changed, 59 insertions(+), 28 deletions(-) diff --git a/client/index.html b/client/index.html index 5f88912f..c913e761 100644 --- a/client/index.html +++ b/client/index.html @@ -57,16 +57,16 @@ -

Open Snapdrop on other devices to send files

+

在其他设备上打开Snapdrop以发送文件

- + @@ -135,28 +135,28 @@

Message Received

Snapdrop

-
The easiest way to transfer files across devices
+
在设备间传输文件的最简单方法
- - - - - - - - - - - - - - - + + + + + + + + + + + + + + +
diff --git a/server/package-lock.json b/server/package-lock.json index 1f461265..3b00a08d 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -1,23 +1,54 @@ { "name": "snapdrop", "version": "1.0.0", - "lockfileVersion": 1, + "lockfileVersion": 3, "requires": true, - "dependencies": { - "ua-parser-js": { + "packages": { + "": { + "name": "snapdrop", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "ua-parser-js": "^0.7.24", + "unique-names-generator": "^4.3.0", + "ws": "^7.4.6" + } + }, + "node_modules/ua-parser-js": { "version": "0.7.24", "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.24.tgz", - "integrity": "sha512-yo+miGzQx5gakzVK3QFfN0/L9uVhosXBBO7qmnk7c2iw1IhL212wfA3zbnI54B0obGwC/5NWub/iT9sReMx+Fw==" + "integrity": "sha512-yo+miGzQx5gakzVK3QFfN0/L9uVhosXBBO7qmnk7c2iw1IhL212wfA3zbnI54B0obGwC/5NWub/iT9sReMx+Fw==", + "engines": { + "node": "*" + } }, - "unique-names-generator": { + "node_modules/unique-names-generator": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/unique-names-generator/-/unique-names-generator-4.3.0.tgz", - "integrity": "sha512-uNX6jVFjBXfZtsc7B8jVPJ3QdfCF/Sjde4gxsy3rNQmHuWGFarnU7IFGdxZKJ4h4uRjANQc6rG7GiGolRW9fgA==" + "integrity": "sha512-uNX6jVFjBXfZtsc7B8jVPJ3QdfCF/Sjde4gxsy3rNQmHuWGFarnU7IFGdxZKJ4h4uRjANQc6rG7GiGolRW9fgA==", + "engines": { + "node": ">=6" + } }, - "ws": { + "node_modules/ws": { "version": "7.4.6", "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", - "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==" + "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } } } } From 5115f00a02a573cb07f172875273334479de90a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E4=B8=8A=E8=B4=B5=E7=8C=AA?= <290425385@qq.com> Date: Wed, 26 Mar 2025 06:51:23 +0800 Subject: [PATCH 2/3] =?UTF-8?q?v1.0.0=EF=BC=8C=E5=8E=9F=E7=89=88=E6=94=B9?= =?UTF-8?q?=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 5 +++++ .idea/SnapDrop.iml | 12 ++++++++++ .idea/modules.xml | 8 +++++++ .idea/vcs.xml | 6 +++++ client/index.html | 40 +++++++++++++++++----------------- client/package-lock.json | 6 +++++ server/package-lock.json | 47 +++++++++++++++++++++++++++++++++------- 7 files changed, 96 insertions(+), 28 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/SnapDrop.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 client/package-lock.json diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..10b731c5 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ diff --git a/.idea/SnapDrop.iml b/.idea/SnapDrop.iml new file mode 100644 index 00000000..24643cc3 --- /dev/null +++ b/.idea/SnapDrop.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..ce5bda03 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/client/index.html b/client/index.html index 5f88912f..c913e761 100644 --- a/client/index.html +++ b/client/index.html @@ -57,16 +57,16 @@ -

Open Snapdrop on other devices to send files

+

在其他设备上打开Snapdrop以发送文件

- +
-
-
You can be discovered by everyone on this network
+
+
您可以被此网络上的每个人发现
@@ -135,28 +135,28 @@

Message Received

Snapdrop

-
The easiest way to transfer files across devices
+
在设备间传输文件的最简单方法
- - - - - - - - - - - - - - - + + + + + + + + + + + + + + +
diff --git a/client/package-lock.json b/client/package-lock.json new file mode 100644 index 00000000..ac6f59a2 --- /dev/null +++ b/client/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "client", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/server/package-lock.json b/server/package-lock.json index 1f461265..3b00a08d 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -1,23 +1,54 @@ { "name": "snapdrop", "version": "1.0.0", - "lockfileVersion": 1, + "lockfileVersion": 3, "requires": true, - "dependencies": { - "ua-parser-js": { + "packages": { + "": { + "name": "snapdrop", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "ua-parser-js": "^0.7.24", + "unique-names-generator": "^4.3.0", + "ws": "^7.4.6" + } + }, + "node_modules/ua-parser-js": { "version": "0.7.24", "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.24.tgz", - "integrity": "sha512-yo+miGzQx5gakzVK3QFfN0/L9uVhosXBBO7qmnk7c2iw1IhL212wfA3zbnI54B0obGwC/5NWub/iT9sReMx+Fw==" + "integrity": "sha512-yo+miGzQx5gakzVK3QFfN0/L9uVhosXBBO7qmnk7c2iw1IhL212wfA3zbnI54B0obGwC/5NWub/iT9sReMx+Fw==", + "engines": { + "node": "*" + } }, - "unique-names-generator": { + "node_modules/unique-names-generator": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/unique-names-generator/-/unique-names-generator-4.3.0.tgz", - "integrity": "sha512-uNX6jVFjBXfZtsc7B8jVPJ3QdfCF/Sjde4gxsy3rNQmHuWGFarnU7IFGdxZKJ4h4uRjANQc6rG7GiGolRW9fgA==" + "integrity": "sha512-uNX6jVFjBXfZtsc7B8jVPJ3QdfCF/Sjde4gxsy3rNQmHuWGFarnU7IFGdxZKJ4h4uRjANQc6rG7GiGolRW9fgA==", + "engines": { + "node": ">=6" + } }, - "ws": { + "node_modules/ws": { "version": "7.4.6", "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", - "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==" + "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } } } } From de524bc3a7525aec299639e530b05b11d735cbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E4=B8=8A=E8=B4=B5=E7=8C=AA?= <290425385@qq.com> Date: Thu, 10 Apr 2025 11:04:54 +0800 Subject: [PATCH 3/3] =?UTF-8?q?v1.2=EF=BC=8C=E5=AE=8C=E5=85=A8=E6=B1=89?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E6=B7=BB=E5=8A=A0=E7=AB=AF=E5=8F=A3=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=89=8D=E7=AB=AF=E8=AF=A5index=EF=BC=8C=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E6=94=B9network?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/index.html | 30 +++++++++++++++--------------- client/scripts/network.js | 26 ++++++++++++++++++-------- client/scripts/ui.js | 34 ++++++++++++++++------------------ server/index.js | 30 ++++++++++++++++++++++-------- 4 files changed, 71 insertions(+), 49 deletions(-) diff --git a/client/index.html b/client/index.html index c913e761..4c37f1e6 100644 --- a/client/index.html +++ b/client/index.html @@ -72,19 +72,19 @@

在其他设备上打开Snapdrop以发送文件

-

File Received

-
Filename
+

文件已接收

+
文件名
- +
- Save - + 保存 +
@@ -94,11 +94,11 @@

File Received

-

Send a Message

-
+

发送信息

+
- - Cancel + + 取消
@@ -108,18 +108,18 @@

Send a Message

-

Message Received

+

已收到消息

- - + +
- File Transfer Completed + 文件传输完成!
@@ -215,8 +215,8 @@

Snapdrop