@banou/ripple 0.0.60 → 0.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -9
- package/assets/libtorrent-J3Sb8Ek8.js +6 -0
- package/assets/{worker-Y7a-Tsw7.js → worker-BPwrevGb.js} +3 -3
- package/{de-DUVWGbyL.js → de--u67wW55.js} +7 -3
- package/{es-419-B8SGAbJd.js → es-419-HF3Qx1xe.js} +7 -3
- package/fkn.json +1 -1
- package/{fr-BanuxeUI.js → fr-Ct8z9ueI.js} +7 -3
- package/index.html +2 -0
- package/index.js +12532 -11746
- package/{it-sI_jGeXF.js → it-B472rDmp.js} +7 -3
- package/{ja-BSabZJT4.js → ja-CAs9vgNW.js} +7 -3
- package/{ko-CfuZY8Yq.js → ko-BWNyH5Hj.js} +7 -3
- package/package.json +1 -1
- package/{pl-C0j-oQYD.js → pl-CGE3wq8i.js} +7 -3
- package/{pt-BR-CzFpPYjU.js → pt-BR-B8Cd77m-.js} +7 -3
- package/{ru-CwER2q9N.js → ru-DyD2ZXfx.js} +7 -3
- package/sw.js +2 -2
- package/{tr-C-ZGdqz4.js → tr-BH6yi4h0.js} +7 -3
- package/{zh-Hans-DScBlCPv.js → zh-Hans-BXd5SiZ1.js} +7 -3
- package/{zh-Hant-DpNoNk9G.js → zh-Hant-BWjH62y1.js} +7 -3
- package/assets/libtorrent-VAuS3Wva.js +0 -6
package/README.md
CHANGED
|
@@ -60,11 +60,14 @@ npm ci
|
|
|
60
60
|
npm run dev # http://localhost:4560
|
|
61
61
|
npm run build # the site and the npm package, into build/
|
|
62
62
|
npm test # unit tests (vitest, node)
|
|
63
|
-
npm run test:browser # component tests in Chrome
|
|
63
|
+
npm run test:browser # component tests in Chrome, a few in Firefox and WebKit
|
|
64
64
|
npm run typecheck
|
|
65
65
|
npm run lint # vp lint
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
+
Off CI, WebKit runs only where `RIPPLE_WEBKIT_WS` names a Playwright server: `scripts/webkit-server.sh start` starts
|
|
69
|
+
one in Docker and prints the address.
|
|
70
|
+
|
|
68
71
|
The Playwright suites build first, then drive the built site in Chrome:
|
|
69
72
|
|
|
70
73
|
| command | what it covers |
|
|
@@ -84,7 +87,10 @@ with `fkn-sign`.
|
|
|
84
87
|
## Embedding
|
|
85
88
|
|
|
86
89
|
`/watch` and `/download` are the pages another site puts in an iframe. Both take a magnet and the
|
|
87
|
-
same
|
|
90
|
+
same parameters; the path chooses which one renders. `/watch` plays a file, `/download` delivers files.
|
|
91
|
+
|
|
92
|
+
The parameters go after `#`, which a browser never sends, so the server is not told which torrent a
|
|
93
|
+
visit is about. A link with them in the query (`?`) still works.
|
|
88
94
|
|
|
89
95
|
| param | value | meaning |
|
|
90
96
|
| --- | --- | --- |
|
|
@@ -106,12 +112,12 @@ original form and every link written with it keeps working. `m=` is the same tor
|
|
|
106
112
|
much shorter link.
|
|
107
113
|
|
|
108
114
|
```
|
|
109
|
-
/watch
|
|
110
|
-
/download
|
|
111
|
-
/download
|
|
112
|
-
/download
|
|
113
|
-
/download
|
|
114
|
-
/download
|
|
115
|
+
/watch#magnet=<base64>&fileIndex=3 plays file 3
|
|
116
|
+
/download#magnet=<base64> the whole torrent
|
|
117
|
+
/download#magnet=<base64>&files=3 just file 3
|
|
118
|
+
/download#magnet=<base64>&files=0-4 files 0 to 4 inclusive, as a zip
|
|
119
|
+
/download#magnet=<base64>&files=0,2,5 those three, as a zip
|
|
120
|
+
/download#magnet=<base64>&fileIndex=3 same as files=3
|
|
115
121
|
```
|
|
116
122
|
|
|
117
123
|
One file is delivered as that file, and more than one as a single `.zip`. `files` outranks
|
|
@@ -122,7 +128,7 @@ nothing says so instead of downloading the whole torrent.
|
|
|
122
128
|
Leaving out `sandbox` works too.
|
|
123
129
|
|
|
124
130
|
```html
|
|
125
|
-
<iframe src="https://torrent.fkn.app/download
|
|
131
|
+
<iframe src="https://torrent.fkn.app/download#magnet=..."
|
|
126
132
|
sandbox="allow-scripts allow-same-origin allow-downloads"></iframe>
|
|
127
133
|
```
|
|
128
134
|
|