most-box 0.0.1 → 0.0.4
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 +182 -73
- package/out/404/index.html +15 -0
- package/out/404.html +15 -0
- package/out/__next.__PAGE__.txt +9 -0
- package/out/__next._full.txt +18 -0
- package/out/__next._head.txt +5 -0
- package/out/__next._index.txt +6 -0
- package/out/__next._tree.txt +2 -0
- package/out/_next/static/0h4f4QFk_KC9FlSRfQACk/_buildManifest.js +11 -0
- package/out/_next/static/0h4f4QFk_KC9FlSRfQACk/_clientMiddlewareManifest.js +1 -0
- package/out/_next/static/0h4f4QFk_KC9FlSRfQACk/_ssgManifest.js +1 -0
- package/out/_next/static/chunks/00l-yd3t8dvwz.js +5 -0
- package/out/_next/static/chunks/03k8t3tgym~8~.js +1 -0
- package/out/_next/static/chunks/03~yq9q893hmn.js +1 -0
- package/out/_next/static/chunks/09vfh8lfuacc0.css +1 -0
- package/out/_next/static/chunks/0bogtdbh.dcu1.js +1 -0
- package/out/_next/static/chunks/0dbhjjzl8qfwv.js +1 -0
- package/out/_next/static/chunks/0f73psqhr8dre.css +1 -0
- package/out/_next/static/chunks/0fbi7z4_.4j1j.js +1 -0
- package/out/_next/static/chunks/0ht900cau6_ur.js +31 -0
- package/out/_next/static/chunks/0ohm.ia-4ec60.js +1 -0
- package/out/_next/static/chunks/0u5ydb-f0.vxl.js +1 -0
- package/out/_next/static/chunks/14t2m1on-s5v~.js +1 -0
- package/out/_next/static/chunks/turbopack-076ce9exut_h3.js +1 -0
- package/out/_not-found/__next._full.txt +16 -0
- package/out/_not-found/__next._head.txt +5 -0
- package/out/_not-found/__next._index.txt +6 -0
- package/out/_not-found/__next._not-found/__PAGE__.txt +5 -0
- package/out/_not-found/__next._not-found.txt +5 -0
- package/out/_not-found/__next._tree.txt +2 -0
- package/out/_not-found/index.html +15 -0
- package/out/_not-found/index.txt +16 -0
- package/out/app.css +1535 -0
- package/out/bundle.js +107 -0
- package/out/bundle.js.map +7 -0
- package/out/chat/__next._full.txt +19 -0
- package/out/chat/__next._head.txt +5 -0
- package/out/chat/__next._index.txt +6 -0
- package/out/chat/__next._tree.txt +3 -0
- package/out/chat/__next.chat/__PAGE__.txt +9 -0
- package/out/chat/__next.chat.txt +5 -0
- package/out/chat/index.html +15 -0
- package/out/chat/index.txt +19 -0
- package/out/chat-page.js +112 -0
- package/out/chat.css +378 -0
- package/out/favicon.ico +0 -0
- package/out/index.html +15 -0
- package/out/index.js +148 -0
- package/out/index.txt +18 -0
- package/package.json +16 -7
- package/public/app.css +1535 -0
- package/public/bundle.js +10 -14
- package/public/bundle.js.map +4 -4
- package/public/chat-page.js +112 -0
- package/public/chat.css +378 -0
- package/public/index.js +148 -0
- package/server.js +464 -199
- package/src/config.js +36 -8
- package/src/core/cid.js +28 -19
- package/src/index.js +872 -276
- package/src/utils/api.js +6 -0
- package/src/utils/security.js +27 -24
- package/build.mjs +0 -40
- package/public/app.jsx +0 -1335
- package/public/icons/apple-touch-icon.png +0 -0
- package/public/icons/mask-icon.svg +0 -3
- package/public/icons/most.png +0 -0
- package/public/icons/pwa-192x192.png +0 -0
- package/public/icons/pwa-512x512.png +0 -0
- package/public/index.html +0 -15
- package/public/index.jsx +0 -5
package/out/index.txt
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
1:"$Sreact.fragment"
|
|
2
|
+
2:I[17279,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"ErrorBoundary"]
|
|
3
|
+
3:I[39756,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"default"]
|
|
4
|
+
4:I[37457,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"default"]
|
|
5
|
+
5:I[47257,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"ClientPageRoot"]
|
|
6
|
+
6:I[29615,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js","/_next/static/chunks/03k8t3tgym~8~.js","/_next/static/chunks/0ohm.ia-4ec60.js"],"default"]
|
|
7
|
+
9:I[97367,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"OutletBoundary"]
|
|
8
|
+
a:"$Sreact.suspense"
|
|
9
|
+
c:I[97367,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"ViewportBoundary"]
|
|
10
|
+
e:I[97367,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"MetadataBoundary"]
|
|
11
|
+
10:I[68027,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"default",1]
|
|
12
|
+
:HL["/_next/static/chunks/09vfh8lfuacc0.css","style"]
|
|
13
|
+
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/09vfh8lfuacc0.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0u5ydb-f0.vxl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0dbhjjzl8qfwv.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"charSet":"UTF-8"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"}],["$","link",null,{"rel":"icon","href":"/favicon.ico"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n (function() {\n var theme = localStorage.getItem('theme');\n if (theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)) {\n document.documentElement.setAttribute('data-theme', 'dark');\n }\n })();\n "}}]]}],["$","body",null,{"children":["$","$L2",null,{"children":[["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n window.onerror = function(message, source, lineno, colno, error) {\n console.error('[Global Error]', { message, source, lineno, colno, error });\n };\n window.onunhandledrejection = function(event) {\n console.error('[Unhandled Promise Rejection]', event.reason);\n };\n "}}],["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]]}]]}],{"children":[["$","$1","c",{"children":[["$","$L5",null,{"Component":"$6","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@7","$@8"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/03k8t3tgym~8~.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0ohm.ia-4ec60.js","async":true,"nonce":"$undefined"}]],["$","$L9",null,{"children":["$","$a",null,{"name":"Next.MetadataOutlet","children":"$@b"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$Lc",null,{"children":"$Ld"}],["$","div",null,{"hidden":true,"children":["$","$Le",null,{"children":["$","$a",null,{"name":"Next.Metadata","children":"$Lf"}]}]}],null]}],false]],"m":"$undefined","G":["$10",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/09vfh8lfuacc0.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"0h4f4QFk_KC9FlSRfQACk"}
|
|
14
|
+
7:{}
|
|
15
|
+
8:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
16
|
+
d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
17
|
+
b:null
|
|
18
|
+
f:[["$","title","0",{"children":"MostBox 文件管理"}],["$","meta","1",{"name":"description","content":"MostBox P2P 文件管理"}]]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "most-box",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "MostBox - P2P file sharing application",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "server.js",
|
|
@@ -8,16 +8,18 @@
|
|
|
8
8
|
"most-box": "./cli.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
+
"out",
|
|
11
12
|
"public",
|
|
12
13
|
"src",
|
|
13
14
|
"server.js",
|
|
14
|
-
"build.mjs",
|
|
15
15
|
"cli.js"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
18
|
"start": "npm run build && node server.js",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"build": "next build",
|
|
20
|
+
"dev": "next dev",
|
|
21
|
+
"test": "node --test tests/**/*.test.js",
|
|
22
|
+
"test:unit": "node --test tests/unit/*.test.js"
|
|
21
23
|
},
|
|
22
24
|
"keywords": [
|
|
23
25
|
"p2p",
|
|
@@ -28,17 +30,24 @@
|
|
|
28
30
|
"license": "MIT",
|
|
29
31
|
"dependencies": {
|
|
30
32
|
"b4a": "^1.8.0",
|
|
33
|
+
"busboy": "^1.6.0",
|
|
31
34
|
"corestore": "^7.9.2",
|
|
32
35
|
"eventemitter3": "^5.0.4",
|
|
33
|
-
"
|
|
36
|
+
"hypercore": "^11.28.1",
|
|
37
|
+
"hyperdrive": "^13.3.2",
|
|
34
38
|
"hyperswarm": "^4.17.0",
|
|
35
39
|
"ipfs-unixfs-importer": "^16.1.4",
|
|
40
|
+
"ky": "^2.0.0",
|
|
36
41
|
"lucide-react": "^1.7.0",
|
|
37
42
|
"multiformats": "^13.4.2",
|
|
43
|
+
"next": "^16.2.2",
|
|
38
44
|
"react": "^19.2.4",
|
|
39
|
-
"react-dom": "^19.2.4"
|
|
45
|
+
"react-dom": "^19.2.4",
|
|
46
|
+
"react-router-dom": "^7.14.0",
|
|
47
|
+
"ws": "^8.20.0"
|
|
40
48
|
},
|
|
41
49
|
"devDependencies": {
|
|
42
|
-
"esbuild": "^0.
|
|
50
|
+
"esbuild": "^0.28.0",
|
|
51
|
+
"supertest": "^7.2.2"
|
|
43
52
|
}
|
|
44
53
|
}
|