在不同设备间通过自己部署该工具实现不依赖其他第三方软件即可进行复制粘贴操作,双向同步更改。
在 /client 目录下进行webpack打包
npm install
npm run build
随后将打包好的 /dist 目录下所有文件移至 /server/public 目录下 启动服务器
npm install
npm start
若正常即可在 http://localhost:3000/ 下访问你的剪辑板(也可能是你自定义的端口及IP或域名)
在上方的界面,上方大块带文字区域,当你连接到剪辑板后将会可编辑。 左侧偏下位置有一处要求输入一个暗号,此处可自定义,输入完毕后点击旁边连接图标即可进行连接,状态将在右侧状态文字中表示。 打开另一台设备,并重复上述操作。多台设备完成打开后,随机在一台设备上尝试删改文字,其他设备将做出同样操作,同步更改。 下方有 "复制"、"粘贴" 的快捷按钮,点击后即可对整版内容复制或粘贴。