Download client/src/actions/file.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 424 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/src/actions/file.js
- Command line
-
hf download hf://spaces/linuxrun/deer/client/src/actions/file.js
-
curl -L -o file.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/src/actions/file.js
424 Bytes
| import ws from '../ws'; | |
| export function prepareSend(files) { | |
| ws.sendJSON({ | |
| type: 'c2s_prepare_send', | |
| payload: { | |
| files, | |
| }, | |
| }); | |
| } | |
| export function deleteRecvCode(recvCode) { | |
| ws.sendJSON({ | |
| type: 'c2s_delete_recv_code', | |
| payload: { | |
| recvCode, | |
| }, | |
| }); | |
| } | |
| export function prepareRecv(recvCode) { | |
| ws.sendJSON({ | |
| type: 'c2s_prepare_recv', | |
| payload: { | |
| recvCode, | |
| }, | |
| }); | |
| } | |