most-box 0.0.4 → 0.0.7
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/LICENSE +21 -21
- package/README.md +222 -182
- package/electron/main.js +67 -0
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/__next.__PAGE__.txt +6 -4
- package/out/__next._full.txt +20 -17
- package/out/__next._head.txt +3 -3
- package/out/__next._index.txt +6 -5
- package/out/__next._tree.txt +4 -2
- package/out/_next/static/chunks/003jnm.v5tzw5.js +1 -0
- package/out/_next/static/chunks/00re8v.gbcywn.js +1 -0
- package/out/_next/static/chunks/00s106sbq8t9v.js +1 -0
- package/out/_next/static/chunks/012hi627qrdnn.js +1 -0
- package/out/_next/static/chunks/0174xh3wfsjm1.js +2 -0
- package/out/_next/static/chunks/01xlw8hd842-c.js +1 -0
- package/out/_next/static/chunks/02~o2nmo5pmy1.js +1 -0
- package/out/_next/static/chunks/07t.dhhokszz5.css +1 -0
- package/out/_next/static/chunks/0_wia9ofmsi1c.css +2 -0
- package/out/_next/static/chunks/0ah8fihozo2_u.js +5 -0
- package/out/_next/static/chunks/0bzupvr5gt3k9.js +31 -0
- package/out/_next/static/chunks/0d3shmwh5_nmn.js +1 -0
- package/out/_next/static/chunks/0e_h0d3ekzks8.css +1 -0
- package/out/_next/static/chunks/0gdluj423gso1.js +1 -0
- package/out/_next/static/chunks/0gmoiq06srjay.css +1 -0
- package/out/_next/static/chunks/0ho~log~~-jwp.css +1 -0
- package/out/_next/static/chunks/0imkasy7kb67u.js +1 -0
- package/out/_next/static/chunks/0jjc_b9q_ldi2.js +1 -0
- package/out/_next/static/chunks/0jl~j62iz2uvr.js +1 -0
- package/out/_next/static/chunks/0lqslm813wk_h.js +1 -0
- package/out/_next/static/chunks/{0bogtdbh.dcu1.js → 0n~dq4kpx9xxx.js} +1 -1
- package/out/_next/static/chunks/0pqt~8bl3ukh4.js +4 -0
- package/out/_next/static/chunks/0q782fxxd0lx~.js +1 -0
- package/out/_next/static/chunks/0qub_r0x_r-e9.css +1 -0
- package/out/_next/static/chunks/0slwj0c46k5cu.js +1 -0
- package/out/_next/static/chunks/0sorqk.oc6b7j.css +1 -0
- package/out/_next/static/chunks/0tapzqc6hgvx-.js +1 -0
- package/out/_next/static/chunks/0xsc7z5x8n7wg.js +1 -0
- package/out/_next/static/chunks/0zm~gys2jwl0g.js +1 -0
- package/out/_next/static/chunks/turbopack-0a_g3u0ud~jb8.js +1 -0
- package/out/_not-found/__next._full.txt +19 -15
- package/out/_not-found/__next._head.txt +3 -3
- package/out/_not-found/__next._index.txt +6 -5
- package/out/_not-found/__next._not-found.__PAGE__.txt +9 -0
- package/out/_not-found/__next._not-found.txt +3 -3
- package/out/_not-found/__next._tree.txt +2 -2
- package/out/_not-found/index.html +2 -2
- package/out/_not-found/index.txt +19 -15
- package/out/app/__next._full.txt +20 -0
- package/out/app/__next._head.txt +5 -0
- package/out/app/__next._index.txt +7 -0
- package/out/app/__next._tree.txt +2 -0
- package/out/app/__next.app.__PAGE__.txt +9 -0
- package/out/app/__next.app.txt +5 -0
- package/out/app/index.html +15 -0
- package/out/app/index.txt +20 -0
- package/out/changelog/__next._full.txt +22 -0
- package/out/changelog/__next._head.txt +5 -0
- package/out/changelog/__next._index.txt +7 -0
- package/out/changelog/__next._tree.txt +3 -0
- package/out/changelog/__next.changelog.__PAGE__.txt +10 -0
- package/out/changelog/__next.changelog.txt +5 -0
- package/out/changelog/index.html +15 -0
- package/out/changelog/index.txt +22 -0
- package/out/chat/__next._full.txt +20 -18
- package/out/chat/__next._head.txt +3 -3
- package/out/chat/__next._index.txt +6 -5
- package/out/chat/__next._tree.txt +3 -3
- package/out/chat/__next.chat.__PAGE__.txt +9 -0
- package/out/chat/__next.chat.txt +5 -4
- package/out/chat/index.html +2 -2
- package/out/chat/index.txt +20 -18
- package/out/docs/__next._full.txt +22 -0
- package/out/docs/__next._head.txt +5 -0
- package/out/docs/__next._index.txt +7 -0
- package/out/docs/__next._tree.txt +3 -0
- package/out/docs/__next.docs.__PAGE__.txt +10 -0
- package/out/docs/__next.docs.txt +5 -0
- package/out/docs/getting-started/__next._full.txt +22 -0
- package/out/docs/getting-started/__next._head.txt +5 -0
- package/out/docs/getting-started/__next._index.txt +7 -0
- package/out/docs/getting-started/__next._tree.txt +3 -0
- package/out/docs/getting-started/__next.docs.getting-started.__PAGE__.txt +10 -0
- package/out/docs/getting-started/__next.docs.getting-started.txt +5 -0
- package/out/docs/getting-started/__next.docs.txt +5 -0
- package/out/docs/getting-started/index.html +15 -0
- package/out/docs/getting-started/index.txt +22 -0
- package/out/docs/index.html +15 -0
- package/out/docs/index.txt +22 -0
- package/out/download/__next._full.txt +34 -0
- package/out/download/__next._head.txt +5 -0
- package/out/download/__next._index.txt +7 -0
- package/out/download/__next._tree.txt +4 -0
- package/out/download/__next.download.__PAGE__.txt +16 -0
- package/out/download/__next.download.txt +5 -0
- package/out/download/index.html +15 -0
- package/out/download/index.txt +34 -0
- package/out/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/out/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
- package/out/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
- package/out/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
- package/out/index.html +2 -2
- package/out/index.txt +20 -17
- package/out/ping/__next._full.txt +21 -0
- package/out/ping/__next._head.txt +5 -0
- package/out/ping/__next._index.txt +7 -0
- package/out/ping/__next._tree.txt +4 -0
- package/out/ping/__next.ping.__PAGE__.txt +10 -0
- package/out/ping/__next.ping.txt +5 -0
- package/out/ping/index.html +15 -0
- package/out/ping/index.txt +21 -0
- package/out/pwa-512x512.png +0 -0
- package/out/web3/__next._full.txt +21 -0
- package/out/web3/__next._head.txt +5 -0
- package/out/web3/__next._index.txt +7 -0
- package/out/web3/__next._tree.txt +3 -0
- package/out/web3/__next.web3.__PAGE__.txt +9 -0
- package/out/web3/__next.web3.txt +6 -0
- package/out/web3/ed25519/__next._full.txt +20 -0
- package/out/web3/ed25519/__next._head.txt +5 -0
- package/out/web3/ed25519/__next._index.txt +7 -0
- package/out/web3/ed25519/__next._tree.txt +3 -0
- package/out/web3/ed25519/__next.web3.ed25519.__PAGE__.txt +6 -0
- package/out/web3/ed25519/__next.web3.ed25519.txt +5 -0
- package/out/web3/ed25519/__next.web3.txt +6 -0
- package/out/web3/ed25519/index.html +1 -0
- package/out/web3/ed25519/index.txt +20 -0
- package/out/web3/index.html +15 -0
- package/out/web3/index.txt +21 -0
- package/out/web3/tools/__next._full.txt +20 -0
- package/out/web3/tools/__next._head.txt +5 -0
- package/out/web3/tools/__next._index.txt +7 -0
- package/out/web3/tools/__next._tree.txt +3 -0
- package/out/web3/tools/__next.web3.tools.__PAGE__.txt +6 -0
- package/out/web3/tools/__next.web3.tools.txt +5 -0
- package/out/web3/tools/__next.web3.txt +6 -0
- package/out/web3/tools/index.html +1 -0
- package/out/web3/tools/index.txt +20 -0
- package/package.json +162 -53
- package/public/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/public/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
- package/public/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
- package/public/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
- package/public/pwa-512x512.png +0 -0
- package/server/cli.js +3 -0
- package/server/index.js +995 -0
- package/{src → server/src}/config.js +51 -50
- package/{src → server/src}/core/cid.js +157 -150
- package/{src → server/src}/index.js +1952 -1669
- package/server/src/utils/api.js +68 -0
- package/server/src/utils/avatar.js +11 -0
- package/{src → server/src}/utils/errors.js +70 -66
- package/server/src/utils/mostWallet.js +42 -0
- package/server/src/utils/mp.js +105 -0
- package/{src → server/src}/utils/security.js +173 -169
- package/server/src/utils/userIdentity.js +93 -0
- package/cli.js +0 -2
- package/out/_next/static/chunks/00l-yd3t8dvwz.js +0 -5
- package/out/_next/static/chunks/03k8t3tgym~8~.js +0 -1
- package/out/_next/static/chunks/09vfh8lfuacc0.css +0 -1
- package/out/_next/static/chunks/0dbhjjzl8qfwv.js +0 -1
- package/out/_next/static/chunks/0f73psqhr8dre.css +0 -1
- package/out/_next/static/chunks/0fbi7z4_.4j1j.js +0 -1
- package/out/_next/static/chunks/0ht900cau6_ur.js +0 -31
- package/out/_next/static/chunks/0ohm.ia-4ec60.js +0 -1
- package/out/_next/static/chunks/0u5ydb-f0.vxl.js +0 -1
- package/out/_next/static/chunks/14t2m1on-s5v~.js +0 -1
- package/out/_next/static/chunks/turbopack-076ce9exut_h3.js +0 -1
- package/out/_not-found/__next._not-found/__PAGE__.txt +0 -5
- package/out/app.css +0 -1535
- package/out/bundle.js +0 -107
- package/out/bundle.js.map +0 -7
- package/out/chat/__next.chat/__PAGE__.txt +0 -9
- package/out/chat-page.js +0 -112
- package/out/chat.css +0 -378
- package/out/index.js +0 -148
- package/public/app.css +0 -1535
- package/public/bundle.js +0 -107
- package/public/bundle.js.map +0 -7
- package/public/chat-page.js +0 -112
- package/public/chat.css +0 -378
- package/public/index.js +0 -148
- package/server.js +0 -880
- package/src/utils/api.js +0 -6
- /package/out/_next/static/{0h4f4QFk_KC9FlSRfQACk → sV38nXrv3xVVO6wvSdFlZ}/_buildManifest.js +0 -0
- /package/out/_next/static/{0h4f4QFk_KC9FlSRfQACk → sV38nXrv3xVVO6wvSdFlZ}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{0h4f4QFk_KC9FlSRfQACk → sV38nXrv3xVVO6wvSdFlZ}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
1:"$Sreact.fragment"
|
|
2
|
+
2:I[14232,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"ErrorBoundary"]
|
|
3
|
+
3:I[39756,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"default"]
|
|
4
|
+
4:I[37457,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"default"]
|
|
5
|
+
5:I[36768,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js","/_next/static/chunks/02~o2nmo5pmy1.js"],"default"]
|
|
6
|
+
:HL["/_next/static/chunks/0_wia9ofmsi1c.css","style"]
|
|
7
|
+
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0_wia9ofmsi1c.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/0jl~j62iz2uvr.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/0d3shmwh5_nmn.js","async":true}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"data-scroll-behavior":"smooth","children":[["$","head",null,{"children":[["$","meta",null,{"charSet":"UTF-8"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0"}],["$","link",null,{"rel":"icon","href":"/favicon.ico"}],["$","meta",null,{"name":"theme-color","content":"#5e6ad2"}],["$","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","template":["$","$L4",null,{}],"notFound":[["$","$L5",null,{}],[]]}]]}]}]]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"sV38nXrv3xVVO6wvSdFlZ"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
:HL["/_next/static/chunks/0_wia9ofmsi1c.css","style"]
|
|
2
|
+
:HL["/_next/static/chunks/0e_h0d3ekzks8.css","style"]
|
|
3
|
+
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"web3","param":null,"prefetchHints":0,"slots":{"children":{"name":"tools","param":null,"prefetchHints":0,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}}}}}},"staleTime":300,"buildId":"sV38nXrv3xVVO6wvSdFlZ"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
1:"$Sreact.fragment"
|
|
2
|
+
3:I[97367,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"OutletBoundary"]
|
|
3
|
+
4:"$Sreact.suspense"
|
|
4
|
+
0:{"rsc":["$","$1","c",{"children":["$L2",null,["$","$L3",null,{"children":["$","$4",null,{"name":"Next.MetadataOutlet","children":"$@5"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"sV38nXrv3xVVO6wvSdFlZ"}
|
|
5
|
+
5:null
|
|
6
|
+
2:E{"digest":"NEXT_REDIRECT;replace;/web3;307;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
1:"$Sreact.fragment"
|
|
2
|
+
2:I[39756,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"default"]
|
|
3
|
+
3:I[37457,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"default"]
|
|
4
|
+
4:[]
|
|
5
|
+
0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"sV38nXrv3xVVO6wvSdFlZ"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
1:"$Sreact.fragment"
|
|
2
|
+
2:I[9817,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js","/_next/static/chunks/0slwj0c46k5cu.js"],"default"]
|
|
3
|
+
3:I[39756,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"default"]
|
|
4
|
+
4:I[37457,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"default"]
|
|
5
|
+
:HL["/_next/static/chunks/0e_h0d3ekzks8.css","style"]
|
|
6
|
+
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0e_h0d3ekzks8.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/0slwj0c46k5cu.js","async":true}]],["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"sV38nXrv3xVVO6wvSdFlZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0bzupvr5gt3k9.js"/><script src="/_next/static/chunks/0pqt~8bl3ukh4.js" async=""></script><script src="/_next/static/chunks/0n~dq4kpx9xxx.js" async=""></script><script src="/_next/static/chunks/0174xh3wfsjm1.js" async=""></script><script src="/_next/static/chunks/turbopack-0a_g3u0ud~jb8.js" async=""></script><script src="/_next/static/chunks/0jl~j62iz2uvr.js" async=""></script><script src="/_next/static/chunks/0d3shmwh5_nmn.js" async=""></script><link rel="preload" href="/_next/static/chunks/0_wia9ofmsi1c.css" as="style"/><title>MostBox</title><meta name="description" content="P2P 文件分享,无需注册"/><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><script src="/_next/static/chunks/0bzupvr5gt3k9.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[14232,[\"/_next/static/chunks/0jl~j62iz2uvr.js\",\"/_next/static/chunks/0d3shmwh5_nmn.js\"],\"ErrorBoundary\"]\n3:I[39756,[\"/_next/static/chunks/0jl~j62iz2uvr.js\",\"/_next/static/chunks/0d3shmwh5_nmn.js\"],\"default\"]\n4:I[37457,[\"/_next/static/chunks/0jl~j62iz2uvr.js\",\"/_next/static/chunks/0d3shmwh5_nmn.js\"],\"default\"]\n5:I[36768,[\"/_next/static/chunks/0jl~j62iz2uvr.js\",\"/_next/static/chunks/0d3shmwh5_nmn.js\",\"/_next/static/chunks/02~o2nmo5pmy1.js\"],\"default\"]\n6:I[9817,[\"/_next/static/chunks/0jl~j62iz2uvr.js\",\"/_next/static/chunks/0d3shmwh5_nmn.js\",\"/_next/static/chunks/0slwj0c46k5cu.js\"],\"default\"]\n8:I[97367,[\"/_next/static/chunks/0jl~j62iz2uvr.js\",\"/_next/static/chunks/0d3shmwh5_nmn.js\"],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nc:I[97367,[\"/_next/static/chunks/0jl~j62iz2uvr.js\",\"/_next/static/chunks/0d3shmwh5_nmn.js\"],\"ViewportBoundary\"]\ne:I[97367,[\"/_next/static/chunks/0jl~j62iz2uvr.js\",\"/_next/static/chunks/0d3shmwh5_nmn.js\"],\"MetadataBoundary\"]\n10:I[68027,[\"/_next/static/chunks/0jl~j62iz2uvr.js\",\"/_next/static/chunks/0d3shmwh5_nmn.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/0_wia9ofmsi1c.css\",\"style\"]\n:HL[\"/_next/static/chunks/0e_h0d3ekzks8.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"web3\",\"tools\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"web3\",{\"children\":[\"tools\",{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0_wia9ofmsi1c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0jl~j62iz2uvr.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0d3shmwh5_nmn.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"suppressHydrationWarning\":true,\"data-scroll-behavior\":\"smooth\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"charSet\":\"UTF-8\"}],[\"$\",\"meta\",null,{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1.0\"}],[\"$\",\"link\",null,{\"rel\":\"icon\",\"href\":\"/favicon.ico\"}],[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#5e6ad2\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n (function() {\\n var theme = localStorage.getItem('theme');\\n if (theme === 'dark' || (!theme \u0026\u0026 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\":[[\"$\",\"$L5\",null,{}],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0e_h0d3ekzks8.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0slwj0c46k5cu.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[\"$L7\",null,[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],{},null,false,null]},null,false,\"$@b\"]},null,false,null]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lc\",null,{\"children\":\"$Ld\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$10\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0_wia9ofmsi1c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"sV38nXrv3xVVO6wvSdFlZ\"}\n"])</script><script>self.__next_f.push([1,"7:E{\"digest\":\"NEXT_REDIRECT;replace;/web3;307;\"}\n"])</script><script>self.__next_f.push([1,"11:[]\nb:\"$W11\"\n"])</script><script>self.__next_f.push([1,"d:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"a:null\nf:[[\"$\",\"title\",\"0\",{\"children\":\"MostBox\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"P2P 文件分享,无需注册\"}]]\n"])</script></body></html>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
1:"$Sreact.fragment"
|
|
2
|
+
2:I[14232,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"ErrorBoundary"]
|
|
3
|
+
3:I[39756,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"default"]
|
|
4
|
+
4:I[37457,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"default"]
|
|
5
|
+
5:I[36768,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js","/_next/static/chunks/02~o2nmo5pmy1.js"],"default"]
|
|
6
|
+
6:I[9817,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js","/_next/static/chunks/0slwj0c46k5cu.js"],"default"]
|
|
7
|
+
8:I[97367,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"OutletBoundary"]
|
|
8
|
+
9:"$Sreact.suspense"
|
|
9
|
+
c:I[97367,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"ViewportBoundary"]
|
|
10
|
+
e:I[97367,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"MetadataBoundary"]
|
|
11
|
+
10:I[68027,["/_next/static/chunks/0jl~j62iz2uvr.js","/_next/static/chunks/0d3shmwh5_nmn.js"],"default",1]
|
|
12
|
+
:HL["/_next/static/chunks/0_wia9ofmsi1c.css","style"]
|
|
13
|
+
:HL["/_next/static/chunks/0e_h0d3ekzks8.css","style"]
|
|
14
|
+
0:{"P":null,"c":["","web3","tools",""],"q":"","i":false,"f":[[["",{"children":["web3",{"children":["tools",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0_wia9ofmsi1c.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0jl~j62iz2uvr.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0d3shmwh5_nmn.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"data-scroll-behavior":"smooth","children":[["$","head",null,{"children":[["$","meta",null,{"charSet":"UTF-8"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0"}],["$","link",null,{"rel":"icon","href":"/favicon.ico"}],["$","meta",null,{"name":"theme-color","content":"#5e6ad2"}],["$","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":[["$","$L5",null,{}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]]}]]}],{"children":[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0e_h0d3ekzks8.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0slwj0c46k5cu.js","async":true,"nonce":"$undefined"}]],["$","$L6",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":["$L7",null,["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,null]},null,false,"$@b"]},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$Lc",null,{"children":"$Ld"}],["$","div",null,{"hidden":true,"children":["$","$Le",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Lf"}]}]}],null]}],false]],"m":"$undefined","G":["$10",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0_wia9ofmsi1c.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"sV38nXrv3xVVO6wvSdFlZ"}
|
|
15
|
+
7:E{"digest":"NEXT_REDIRECT;replace;/web3;307;"}
|
|
16
|
+
11:[]
|
|
17
|
+
b:"$W11"
|
|
18
|
+
d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
19
|
+
a:null
|
|
20
|
+
f:[["$","title","0",{"children":"MostBox"}],["$","meta","1",{"name":"description","content":"P2P 文件分享,无需注册"}]]
|
package/package.json
CHANGED
|
@@ -1,53 +1,162 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "most-box",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "MostBox - P2P file sharing application",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "
|
|
7
|
-
"bin": {
|
|
8
|
-
"most-box": "./cli.js"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"out",
|
|
12
|
-
"public",
|
|
13
|
-
"src",
|
|
14
|
-
"server.js",
|
|
15
|
-
"cli.js"
|
|
16
|
-
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"start": "npm run build && node server.js",
|
|
19
|
-
"build": "next build",
|
|
20
|
-
"dev": "next dev",
|
|
21
|
-
"test": "node --test tests/**/*.test.js",
|
|
22
|
-
"test:unit": "node --test tests/unit/*.test.js"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "most-box",
|
|
3
|
+
"version": "0.0.7",
|
|
4
|
+
"description": "MostBox - P2P file sharing application",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "electron/main.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"most-box": "./server/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"out",
|
|
12
|
+
"public",
|
|
13
|
+
"server/src",
|
|
14
|
+
"server/index.js",
|
|
15
|
+
"server/cli.js"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"start": "npm run build && node server/index.js",
|
|
19
|
+
"build": "next build",
|
|
20
|
+
"dev": "next dev",
|
|
21
|
+
"test": "node --test server/tests/**/*.test.js",
|
|
22
|
+
"test:unit": "node --test server/tests/unit/*.test.js",
|
|
23
|
+
"format": "npx prettier --write .",
|
|
24
|
+
"lint": "npx eslint .",
|
|
25
|
+
"electron:dev": "concurrently \"npm run build\" \"wait-on out/index.html && electron .\"",
|
|
26
|
+
"electron:rebuild": "electron-rebuild -f -w sodium-native",
|
|
27
|
+
"electron:build": "npm run build && npm run electron:rebuild && electron-builder",
|
|
28
|
+
"electron:build:win": "npm run build && npm run electron:rebuild && electron-builder --win",
|
|
29
|
+
"electron:build:mac": "npm run build && npm run electron:rebuild && electron-builder --mac",
|
|
30
|
+
"electron:build:linux": "npm run build && npm run electron:rebuild && electron-builder --linux"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"p2p",
|
|
34
|
+
"file-sharing",
|
|
35
|
+
"hyperswarm",
|
|
36
|
+
"hyperdrive"
|
|
37
|
+
],
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@dicebear/collection": "^9.4.2",
|
|
41
|
+
"@dicebear/core": "^9.4.2",
|
|
42
|
+
"@hono/node-server": "^2.0.0",
|
|
43
|
+
"@iconify/react": "^6.0.2",
|
|
44
|
+
"@mantine/hooks": "^9.1.0",
|
|
45
|
+
"b4a": "^1.8.0",
|
|
46
|
+
"busboy": "^1.6.0",
|
|
47
|
+
"corestore": "^7.9.2",
|
|
48
|
+
"dayjs": "^1.11.20",
|
|
49
|
+
"ethers": "^6.16.0",
|
|
50
|
+
"eventemitter3": "^5.0.4",
|
|
51
|
+
"hono": "^4.12.15",
|
|
52
|
+
"hypercore": "^11.28.1",
|
|
53
|
+
"hyperdrive": "^13.3.2",
|
|
54
|
+
"hyperswarm": "^4.17.0",
|
|
55
|
+
"ipfs-unixfs-importer": "^16.1.5",
|
|
56
|
+
"ky": "^2.0.2",
|
|
57
|
+
"lucide-react": "^1.9.0",
|
|
58
|
+
"multiformats": "^13.4.2",
|
|
59
|
+
"next": "^16.2.4",
|
|
60
|
+
"qrcode.react": "^4.2.0",
|
|
61
|
+
"react": "^19.2.5",
|
|
62
|
+
"react-dom": "^19.2.5",
|
|
63
|
+
"tweetnacl": "^1.0.3",
|
|
64
|
+
"ws": "^8.20.0",
|
|
65
|
+
"zustand": "^5.0.12"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@electron/rebuild": "^4.0.4",
|
|
69
|
+
"@eslint/js": "^10.0.1",
|
|
70
|
+
"@types/react": "19.2.14",
|
|
71
|
+
"concurrently": "^9.2.1",
|
|
72
|
+
"electron": "^41.3.0",
|
|
73
|
+
"electron-builder": "^26.8.1",
|
|
74
|
+
"esbuild": "^0.28.0",
|
|
75
|
+
"eslint": "^10.2.1",
|
|
76
|
+
"globals": "^17.5.0",
|
|
77
|
+
"prettier": "^3.8.3",
|
|
78
|
+
"typescript": "6.0.3",
|
|
79
|
+
"wait-on": "^9.0.5"
|
|
80
|
+
},
|
|
81
|
+
"build": {
|
|
82
|
+
"appId": "com.mostbox.app",
|
|
83
|
+
"productName": "MostBox",
|
|
84
|
+
"directories": {
|
|
85
|
+
"output": "dist"
|
|
86
|
+
},
|
|
87
|
+
"files": [
|
|
88
|
+
"out/**/*",
|
|
89
|
+
"server/**/*",
|
|
90
|
+
"electron/**/*",
|
|
91
|
+
"package.json"
|
|
92
|
+
],
|
|
93
|
+
"extraResources": [
|
|
94
|
+
{
|
|
95
|
+
"from": "out",
|
|
96
|
+
"to": "app/out"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"asarUnpack": [
|
|
100
|
+
"**/*.node",
|
|
101
|
+
"**/sodium-native/**"
|
|
102
|
+
],
|
|
103
|
+
"win": {
|
|
104
|
+
"target": [
|
|
105
|
+
{
|
|
106
|
+
"target": "nsis",
|
|
107
|
+
"arch": [
|
|
108
|
+
"x64",
|
|
109
|
+
"arm64"
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"icon": "public/icon.ico"
|
|
114
|
+
},
|
|
115
|
+
"nsis": {
|
|
116
|
+
"oneClick": false,
|
|
117
|
+
"allowToChangeInstallationDirectory": true,
|
|
118
|
+
"createDesktopShortcut": true,
|
|
119
|
+
"createStartMenuShortcut": true,
|
|
120
|
+
"shortcutName": "MostBox"
|
|
121
|
+
},
|
|
122
|
+
"mac": {
|
|
123
|
+
"target": [
|
|
124
|
+
{
|
|
125
|
+
"target": "dmg",
|
|
126
|
+
"arch": [
|
|
127
|
+
"x64",
|
|
128
|
+
"arm64"
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"icon": "public/icon.icns",
|
|
133
|
+
"category": "public.app-category.utilities"
|
|
134
|
+
},
|
|
135
|
+
"dmg": {
|
|
136
|
+
"contents": [
|
|
137
|
+
{
|
|
138
|
+
"x": 130,
|
|
139
|
+
"y": 220
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"x": 410,
|
|
143
|
+
"y": 220,
|
|
144
|
+
"type": "link",
|
|
145
|
+
"path": "/Applications"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
"linux": {
|
|
150
|
+
"target": [
|
|
151
|
+
{
|
|
152
|
+
"target": "AppImage",
|
|
153
|
+
"arch": [
|
|
154
|
+
"x64",
|
|
155
|
+
"arm64"
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"category": "Utility"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/server/cli.js
ADDED