most-box 0.1.1 → 0.1.3
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 +39 -19
- package/electron/afterPack.cjs +87 -0
- package/electron/main.js +156 -8
- package/electron/preload.js +6 -0
- package/electron/updateChecker.js +97 -0
- package/electron/updateChecker.test.js +147 -0
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/__next.__PAGE__.txt +6 -6
- package/out/__next._full.txt +16 -16
- package/out/__next._head.txt +3 -3
- package/out/__next._index.txt +8 -8
- package/out/__next._tree.txt +5 -5
- package/out/_next/static/chunks/04mo7rr..0_1q.js +1 -0
- package/out/_next/static/chunks/06rf3qq5ggs6v.js +1 -0
- package/out/_next/static/chunks/07td.jq7xff84.css +1 -0
- package/out/_next/static/chunks/0_0oph_z1az14.js +1 -0
- package/out/_next/static/chunks/{0qou.u2e2dy48.css → 0adx~d-j05c9d.css} +2 -2
- package/out/_next/static/chunks/0cl7d~7abnk_p.css +1 -0
- package/out/_next/static/chunks/0d306t1wvjpdx.js +1 -0
- package/out/_next/static/chunks/0g_a~e050bgzg.css +1 -0
- package/out/_next/static/chunks/{0o6lrkxy4jwag.js → 0gcsdf57gcm6h.js} +1 -1
- package/out/_next/static/chunks/0hpev4am9jpmu.css +1 -0
- package/out/_next/static/chunks/0m_5nb6x8qy._.js +1 -0
- package/out/_next/static/chunks/0n.ayxmsar6e5.js +1 -0
- package/out/_next/static/chunks/{0usvo~vu7r8np.js → 0o9ce4cyf76by.js} +1 -1
- package/out/_next/static/chunks/0olqjomda37-e.js +1 -0
- package/out/_next/static/chunks/{0o98f1yq..o.8.js → 0pt.5cg1t09qs.js} +1 -1
- package/out/_next/static/chunks/0qgx9t4jx16ua.css +1 -0
- package/out/_next/static/chunks/0s~g.l~x049o2.js +1 -0
- package/out/_next/static/chunks/0ukyg~tkm~h2m.css +1 -0
- package/out/_next/static/chunks/0voe1.ttrh84k.css +1 -0
- package/out/_next/static/chunks/0wtf0xsiicxx6.js +1 -0
- package/out/_next/static/chunks/0x.ky97owcxxs.js +1 -0
- package/out/_next/static/chunks/0xdwau5k2augv.css +4 -0
- package/out/_next/static/chunks/0ysj5b94vu4ri.js +1 -0
- package/out/_next/static/chunks/12nr19.nnn6s3.js +5 -0
- package/out/_next/static/chunks/{0qub_r0x_r-e9.css → 12pep-2t-qg4n.css} +1 -1
- package/out/_next/static/chunks/14_inksek_rth.js +2 -0
- package/out/_next/static/chunks/153-sz7s.qml2.js +1 -0
- package/out/_next/static/chunks/17cwkb2yn_akx.js +1 -0
- package/out/_next/static/chunks/184hxsuf-5c84.js +1 -0
- package/out/_next/static/chunks/{turbopack-0xs6mybc~5t_3.js → turbopack-0xta0kqwzkf28.js} +1 -1
- package/out/_not-found/__next._full.txt +13 -13
- package/out/_not-found/__next._head.txt +3 -3
- package/out/_not-found/__next._index.txt +8 -8
- package/out/_not-found/__next._not-found.__PAGE__.txt +4 -4
- package/out/_not-found/__next._not-found.txt +3 -3
- package/out/_not-found/__next._tree.txt +3 -3
- package/out/_not-found/index.html +2 -2
- package/out/_not-found/index.txt +13 -13
- package/out/admin/__next._full.txt +15 -15
- package/out/admin/__next._head.txt +3 -3
- package/out/admin/__next._index.txt +8 -8
- package/out/admin/__next._tree.txt +4 -4
- package/out/admin/__next.admin.__PAGE__.txt +4 -4
- package/out/admin/__next.admin.txt +4 -4
- package/out/admin/index.html +2 -2
- package/out/admin/index.txt +15 -15
- package/out/app/__next._full.txt +14 -14
- package/out/app/__next._head.txt +3 -3
- package/out/app/__next._index.txt +8 -8
- package/out/app/__next._tree.txt +3 -3
- package/out/app/__next.app.__PAGE__.txt +4 -4
- package/out/app/__next.app.txt +3 -3
- package/out/app/index.html +2 -2
- package/out/app/index.txt +14 -14
- package/out/chat/__next._full.txt +15 -15
- package/out/chat/__next._head.txt +3 -3
- package/out/chat/__next._index.txt +8 -8
- package/out/chat/__next._tree.txt +4 -4
- package/out/chat/__next.chat.__PAGE__.txt +4 -4
- package/out/chat/__next.chat.txt +4 -4
- package/out/chat/index.html +2 -2
- package/out/chat/index.txt +15 -15
- package/out/chat/join/__next._full.txt +25 -0
- package/out/chat/join/__next._head.txt +5 -0
- package/out/{changelog → chat/join}/__next._index.txt +8 -8
- package/out/chat/join/__next._tree.txt +5 -0
- package/out/chat/join/__next.chat.join.__PAGE__.txt +9 -0
- package/out/chat/join/__next.chat.join.txt +5 -0
- package/out/chat/join/__next.chat.txt +5 -0
- package/out/chat/join/index.html +15 -0
- package/out/chat/join/index.txt +25 -0
- package/out/download/__next._full.txt +37 -33
- package/out/download/__next._head.txt +3 -3
- package/out/download/__next._index.txt +8 -8
- package/out/download/__next._tree.txt +5 -5
- package/out/download/__next.download.__PAGE__.txt +9 -14
- package/out/download/__next.download.txt +3 -3
- package/out/download/index.html +2 -2
- package/out/download/index.txt +37 -33
- package/out/favicon.ico +0 -0
- package/out/gandengyan/__next._full.txt +25 -0
- package/out/{changelog → gandengyan}/__next._head.txt +3 -3
- package/out/{docs → gandengyan}/__next._index.txt +8 -8
- package/out/gandengyan/__next._tree.txt +5 -0
- package/out/gandengyan/__next.gandengyan.__PAGE__.txt +10 -0
- package/out/gandengyan/__next.gandengyan.txt +5 -0
- package/out/gandengyan/index.html +15 -0
- package/out/gandengyan/index.txt +25 -0
- package/out/index.html +2 -2
- package/out/index.txt +16 -16
- package/out/note/__next._full.txt +14 -14
- package/out/note/__next._head.txt +3 -3
- package/out/note/__next._index.txt +8 -8
- package/out/note/__next._tree.txt +3 -3
- package/out/note/__next.note.__PAGE__.txt +4 -4
- package/out/note/__next.note.txt +3 -3
- package/out/note/index.html +2 -2
- package/out/note/index.txt +14 -14
- package/out/ping/__next._full.txt +16 -16
- package/out/ping/__next._head.txt +3 -3
- package/out/ping/__next._index.txt +8 -8
- package/out/ping/__next._tree.txt +5 -5
- package/out/ping/__next.ping.__PAGE__.txt +5 -5
- package/out/ping/__next.ping.txt +4 -4
- package/out/ping/index.html +2 -2
- package/out/ping/index.txt +16 -16
- package/out/web3/__next._full.txt +15 -15
- package/out/web3/__next._head.txt +3 -3
- package/out/web3/__next._index.txt +8 -8
- package/out/web3/__next._tree.txt +4 -4
- package/out/web3/__next.web3.__PAGE__.txt +4 -4
- package/out/web3/__next.web3.txt +4 -4
- package/out/web3/ed25519/__next._full.txt +13 -13
- package/out/web3/ed25519/__next._head.txt +3 -3
- package/out/web3/ed25519/__next._index.txt +8 -8
- package/out/web3/ed25519/__next._tree.txt +4 -4
- package/out/web3/ed25519/__next.web3.ed25519.__PAGE__.txt +2 -2
- package/out/web3/ed25519/__next.web3.ed25519.txt +3 -3
- package/out/web3/ed25519/__next.web3.txt +4 -4
- package/out/web3/ed25519/index.html +1 -1
- package/out/web3/ed25519/index.txt +13 -13
- package/out/web3/index.html +2 -2
- package/out/web3/index.txt +15 -15
- package/out/web3/tools/__next._full.txt +13 -13
- package/out/web3/tools/__next._head.txt +3 -3
- package/out/web3/tools/__next._index.txt +8 -8
- package/out/web3/tools/__next._tree.txt +4 -4
- package/out/web3/tools/__next.web3.tools.__PAGE__.txt +2 -2
- package/out/web3/tools/__next.web3.tools.txt +3 -3
- package/out/web3/tools/__next.web3.txt +4 -4
- package/out/web3/tools/index.html +1 -1
- package/out/web3/tools/index.txt +13 -13
- package/package.json +44 -35
- package/public/favicon.ico +0 -0
- package/server/index.js +142 -1304
- package/server/src/config.js +1 -1
- package/server/src/core/channelAttachment.js +68 -0
- package/server/src/core/cid.js +2 -88
- package/server/src/core/cidTopic.js +29 -0
- package/server/src/core/mostLink.js +88 -0
- package/server/src/games/gandengyan.js +675 -0
- package/server/src/http/access.js +127 -0
- package/server/src/http/app.js +1102 -0
- package/server/src/http/errors.js +35 -0
- package/server/src/http/nodeLogs.js +53 -0
- package/server/src/http/nodeStatus.js +146 -0
- package/server/src/http/staticFiles.js +84 -0
- package/server/src/http/uploads.js +114 -0
- package/server/src/index.js +799 -211
- package/server/src/node/config.js +38 -6
- package/server/src/utils/api.js +305 -14
- package/server/src/utils/auth.js +63 -0
- package/server/src/utils/dateTime.js +30 -0
- package/server/src/utils/downloadMessages.js +89 -0
- package/server/src/utils/errors.js +7 -0
- package/server/src/utils/mostWallet.js +151 -0
- package/server/src/utils/mp.js +2 -26
- package/server/src/utils/noteBackup.js +2 -5
- package/server/src/utils/noteUtils.js +11 -3
- package/server/src/utils/userIdentity.js +0 -1
- package/out/_next/static/chunks/00-u5nq76f0.j.js +0 -1
- package/out/_next/static/chunks/00fm8lijienf1.js +0 -1
- package/out/_next/static/chunks/00o9ht.f2qm00.css +0 -4
- package/out/_next/static/chunks/00zi-erhjrny2.js +0 -2
- package/out/_next/static/chunks/084xf0edl9sfo.js +0 -1
- package/out/_next/static/chunks/09f1gfke9m5wg.css +0 -1
- package/out/_next/static/chunks/09xyi6fpro_d-.css +0 -1
- package/out/_next/static/chunks/0_npg_pcoywti.js +0 -5
- package/out/_next/static/chunks/0_r_mk1~6bosc.js +0 -1
- package/out/_next/static/chunks/0arm0a6adt7cc.css +0 -1
- package/out/_next/static/chunks/0c9j3eq_14vv2.css +0 -1
- package/out/_next/static/chunks/0d4bueddmcnca.js +0 -1
- package/out/_next/static/chunks/0gtwvy1z9ksa7.css +0 -1
- package/out/_next/static/chunks/0ho~log~~-jwp.css +0 -1
- package/out/_next/static/chunks/0j27tcmtt4ly7.js +0 -1
- package/out/_next/static/chunks/0j3v4mq67wtnh.js +0 -1
- package/out/_next/static/chunks/0lkmf5ry.s_7w.js +0 -1
- package/out/_next/static/chunks/0p486m03-zfoi.js +0 -1
- package/out/_next/static/chunks/0r1~k82nji8sf.js +0 -1
- package/out/_next/static/chunks/0v7qp4hv-_._r.js +0 -1
- package/out/_next/static/chunks/0wuwlgcn6gxqt.js +0 -1
- package/out/_next/static/chunks/0xl5_avhu._i8.js +0 -1
- package/out/_next/static/chunks/10kvl8vj_plm-.js +0 -1
- package/out/_next/static/chunks/16m27azcs4k6w.js +0 -1
- package/out/changelog/__next._full.txt +0 -25
- package/out/changelog/__next._tree.txt +0 -5
- package/out/changelog/__next.changelog.__PAGE__.txt +0 -10
- package/out/changelog/__next.changelog.txt +0 -5
- package/out/changelog/index.html +0 -15
- package/out/changelog/index.txt +0 -25
- package/out/docs/__next._full.txt +0 -25
- package/out/docs/__next._head.txt +0 -5
- package/out/docs/__next._tree.txt +0 -5
- package/out/docs/__next.docs.__PAGE__.txt +0 -10
- package/out/docs/__next.docs.txt +0 -5
- package/out/docs/getting-started/__next._full.txt +0 -25
- package/out/docs/getting-started/__next._head.txt +0 -5
- package/out/docs/getting-started/__next._index.txt +0 -9
- package/out/docs/getting-started/__next._tree.txt +0 -5
- package/out/docs/getting-started/__next.docs.getting-started.__PAGE__.txt +0 -10
- package/out/docs/getting-started/__next.docs.getting-started.txt +0 -5
- package/out/docs/getting-started/__next.docs.txt +0 -5
- package/out/docs/getting-started/index.html +0 -15
- package/out/docs/getting-started/index.txt +0 -25
- package/out/docs/index.html +0 -15
- package/out/docs/index.txt +0 -25
- package/out/note/edit/__next._full.txt +0 -24
- package/out/note/edit/__next._head.txt +0 -5
- package/out/note/edit/__next._index.txt +0 -9
- package/out/note/edit/__next._tree.txt +0 -4
- package/out/note/edit/__next.note.edit.__PAGE__.txt +0 -9
- package/out/note/edit/__next.note.edit.txt +0 -5
- package/out/note/edit/__next.note.txt +0 -5
- package/out/note/edit/index.html +0 -15
- package/out/note/edit/index.txt +0 -24
- /package/out/_next/static/{sIuUKxnnGU7K9Tu9UDKE8 → aPEZ4zaaR5W3WpSZ0dFsa}/_buildManifest.js +0 -0
- /package/out/_next/static/{sIuUKxnnGU7K9Tu9UDKE8 → aPEZ4zaaR5W3WpSZ0dFsa}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{sIuUKxnnGU7K9Tu9UDKE8 → aPEZ4zaaR5W3WpSZ0dFsa}/_ssgManifest.js +0 -0
package/out/web3/tools/index.txt
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[14232,["/_next/static/chunks/
|
|
3
|
-
3:I[52925,["/_next/static/chunks/
|
|
4
|
-
4:I[39756,["/_next/static/chunks/
|
|
5
|
-
5:I[37457,["/_next/static/chunks/
|
|
6
|
-
6:I[36768,["/_next/static/chunks/
|
|
7
|
-
8:I[97367,["/_next/static/chunks/
|
|
2
|
+
2:I[14232,["/_next/static/chunks/0_0oph_z1az14.js","/_next/static/chunks/0ysj5b94vu4ri.js","/_next/static/chunks/0t2xr05rlu96l.js","/_next/static/chunks/0m_5nb6x8qy._.js"],"ErrorBoundary"]
|
|
3
|
+
3:I[52925,["/_next/static/chunks/0_0oph_z1az14.js","/_next/static/chunks/0ysj5b94vu4ri.js","/_next/static/chunks/0t2xr05rlu96l.js","/_next/static/chunks/0m_5nb6x8qy._.js"],"default"]
|
|
4
|
+
4:I[39756,["/_next/static/chunks/0_0oph_z1az14.js","/_next/static/chunks/0ysj5b94vu4ri.js","/_next/static/chunks/0t2xr05rlu96l.js","/_next/static/chunks/0m_5nb6x8qy._.js"],"default"]
|
|
5
|
+
5:I[37457,["/_next/static/chunks/0_0oph_z1az14.js","/_next/static/chunks/0ysj5b94vu4ri.js","/_next/static/chunks/0t2xr05rlu96l.js","/_next/static/chunks/0m_5nb6x8qy._.js"],"default"]
|
|
6
|
+
6:I[36768,["/_next/static/chunks/0_0oph_z1az14.js","/_next/static/chunks/0ysj5b94vu4ri.js","/_next/static/chunks/0t2xr05rlu96l.js","/_next/static/chunks/0m_5nb6x8qy._.js","/_next/static/chunks/0ao1lbi4b.sfa.js"],"default"]
|
|
7
|
+
8:I[97367,["/_next/static/chunks/0_0oph_z1az14.js","/_next/static/chunks/0ysj5b94vu4ri.js","/_next/static/chunks/0t2xr05rlu96l.js","/_next/static/chunks/0m_5nb6x8qy._.js"],"OutletBoundary"]
|
|
8
8
|
9:"$Sreact.suspense"
|
|
9
|
-
c:I[97367,["/_next/static/chunks/
|
|
10
|
-
e:I[97367,["/_next/static/chunks/
|
|
11
|
-
10:I[68027,["/_next/static/chunks/
|
|
12
|
-
:HL["/_next/static/chunks/
|
|
13
|
-
:HL["/_next/static/chunks/
|
|
14
|
-
:HL["/_next/static/chunks/
|
|
9
|
+
c:I[97367,["/_next/static/chunks/0_0oph_z1az14.js","/_next/static/chunks/0ysj5b94vu4ri.js","/_next/static/chunks/0t2xr05rlu96l.js","/_next/static/chunks/0m_5nb6x8qy._.js"],"ViewportBoundary"]
|
|
10
|
+
e:I[97367,["/_next/static/chunks/0_0oph_z1az14.js","/_next/static/chunks/0ysj5b94vu4ri.js","/_next/static/chunks/0t2xr05rlu96l.js","/_next/static/chunks/0m_5nb6x8qy._.js"],"MetadataBoundary"]
|
|
11
|
+
10:I[68027,["/_next/static/chunks/0_0oph_z1az14.js","/_next/static/chunks/0ysj5b94vu4ri.js","/_next/static/chunks/0t2xr05rlu96l.js","/_next/static/chunks/0m_5nb6x8qy._.js"],"default",1]
|
|
12
|
+
:HL["/_next/static/chunks/0adx~d-j05c9d.css","style"]
|
|
13
|
+
:HL["/_next/static/chunks/0xdwau5k2augv.css","style"]
|
|
14
|
+
:HL["/_next/static/chunks/0ukyg~tkm~h2m.css","style"]
|
|
15
15
|
:HC["/",""]
|
|
16
|
-
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/
|
|
16
|
+
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/0adx~d-j05c9d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/0xdwau5k2augv.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0_0oph_z1az14.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0ysj5b94vu4ri.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/0t2xr05rlu96l.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/0m_5nb6x8qy._.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":[["$","$L3",null,{}],["$","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 "}}],["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","$L6",null,{}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]]}]]}],{"children":[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0ukyg~tkm~h2m.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",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/0adx~d-j05c9d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/0xdwau5k2augv.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"aPEZ4zaaR5W3WpSZ0dFsa"}
|
|
17
17
|
7:E{"digest":"NEXT_REDIRECT;replace;/web3;307;"}
|
|
18
18
|
11:[]
|
|
19
19
|
b:"$W11"
|
package/package.json
CHANGED
|
@@ -1,33 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "most-box",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "MostBox - P2P file sharing application",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "electron/main.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"most-box": "
|
|
8
|
+
"most-box": "server/cli.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"out",
|
|
12
12
|
"public",
|
|
13
|
+
"electron",
|
|
13
14
|
"server/src",
|
|
14
15
|
"server/index.js",
|
|
15
16
|
"server/cli.js"
|
|
16
17
|
],
|
|
17
18
|
"scripts": {
|
|
18
|
-
"start": "
|
|
19
|
-
"build": "next build",
|
|
19
|
+
"start": "next dev",
|
|
20
20
|
"dev": "next dev",
|
|
21
|
+
"build": "next build",
|
|
21
22
|
"server": "node --watch server/index.js",
|
|
23
|
+
"serve": "next build && node server/index.js",
|
|
22
24
|
"test": "node --test server/tests/**/*.test.js",
|
|
23
25
|
"test:unit": "node --test server/tests/unit/*.test.js",
|
|
26
|
+
"test:frontend": "node --test app/tests/*.test.js",
|
|
24
27
|
"test:protocol": "node --test --test-name-pattern \"extracts CID and filename|matches golden CID samples|publishes a file from Buffer|lists published files|pulls through local seed nodes\" server/tests/unit/cid.test.js server/tests/integration/cid.test.js server/tests/integration/engine.test.js",
|
|
28
|
+
"typecheck": "tsc --noEmit",
|
|
25
29
|
"format": "npx prettier --write .",
|
|
26
30
|
"lint": "npx eslint .",
|
|
27
31
|
"electron:dev": "concurrently \"npm run build\" \"wait-on out/index.html && electron .\"",
|
|
28
32
|
"electron:rebuild": "electron-rebuild -f -w sodium-native",
|
|
29
33
|
"electron:build": "npm run build && npm run electron:rebuild && electron-builder",
|
|
30
34
|
"electron:build:win": "npm run build && npm run electron:rebuild && electron-builder --win",
|
|
35
|
+
"electron:build:win:x64": "npm run electron:build:win -- --x64",
|
|
36
|
+
"electron:build:win:arm64": "npm run electron:build:win -- --arm64",
|
|
31
37
|
"electron:build:mac": "npm run build && npm run electron:rebuild && electron-builder --mac",
|
|
32
38
|
"electron:build:linux": "npm run build && npm run electron:rebuild && electron-builder --linux"
|
|
33
39
|
},
|
|
@@ -42,35 +48,28 @@
|
|
|
42
48
|
"@dicebear/collection": "^9.4.2",
|
|
43
49
|
"@dicebear/core": "^9.4.2",
|
|
44
50
|
"@hono/node-server": "^2.0.0",
|
|
45
|
-
"@iconify/react": "^6.0.2",
|
|
46
|
-
"@mantine/hooks": "^9.1.0",
|
|
47
|
-
"@milkdown/crepe": "^7.21.1",
|
|
48
|
-
"@milkdown/utils": "^7.21.1",
|
|
49
51
|
"b4a": "^1.8.0",
|
|
50
52
|
"busboy": "^1.6.0",
|
|
51
53
|
"corestore": "^7.9.2",
|
|
52
54
|
"dayjs": "^1.11.20",
|
|
53
55
|
"ethers": "^6.16.0",
|
|
54
56
|
"eventemitter3": "^5.0.4",
|
|
55
|
-
"hono": "^4.12.
|
|
57
|
+
"hono": "^4.12.23",
|
|
56
58
|
"hypercore": "^11.28.1",
|
|
57
59
|
"hyperdrive": "^13.3.2",
|
|
58
60
|
"hyperswarm": "^4.17.0",
|
|
59
61
|
"ipfs-unixfs-importer": "^16.1.5",
|
|
60
|
-
"ky": "^2.0.2",
|
|
61
|
-
"lucide-react": "^1.9.0",
|
|
62
62
|
"multiformats": "^13.4.2",
|
|
63
|
-
"next": "^16.2.4",
|
|
64
|
-
"qrcode.react": "^4.2.0",
|
|
65
|
-
"react": "^19.2.5",
|
|
66
|
-
"react-dom": "^19.2.5",
|
|
67
63
|
"tweetnacl": "^1.0.3",
|
|
68
|
-
"ws": "^8.
|
|
69
|
-
"zustand": "^5.0.12"
|
|
64
|
+
"ws": "^8.21.0"
|
|
70
65
|
},
|
|
71
66
|
"devDependencies": {
|
|
72
67
|
"@electron/rebuild": "^4.0.4",
|
|
73
68
|
"@eslint/js": "^10.0.1",
|
|
69
|
+
"@iconify/react": "^6.0.2",
|
|
70
|
+
"@mantine/hooks": "^9.1.0",
|
|
71
|
+
"@milkdown/crepe": "^7.21.1",
|
|
72
|
+
"@milkdown/utils": "^7.21.1",
|
|
74
73
|
"@types/react": "19.2.14",
|
|
75
74
|
"concurrently": "^9.2.1",
|
|
76
75
|
"electron": "^41.3.0",
|
|
@@ -78,10 +77,22 @@
|
|
|
78
77
|
"esbuild": "^0.28.0",
|
|
79
78
|
"eslint": "^10.2.1",
|
|
80
79
|
"globals": "^17.5.0",
|
|
80
|
+
"ky": "^2.0.2",
|
|
81
|
+
"lucide-react": "^1.9.0",
|
|
82
|
+
"next": "^16.2.6",
|
|
81
83
|
"prettier": "^3.8.3",
|
|
84
|
+
"qrcode.react": "^4.2.0",
|
|
85
|
+
"react": "^19.2.5",
|
|
86
|
+
"react-dom": "^19.2.5",
|
|
82
87
|
"typescript": "6.0.3",
|
|
83
88
|
"typescript-eslint": "^8.59.2",
|
|
84
|
-
"wait-on": "^9.0.5"
|
|
89
|
+
"wait-on": "^9.0.5",
|
|
90
|
+
"zustand": "^5.0.12"
|
|
91
|
+
},
|
|
92
|
+
"overrides": {
|
|
93
|
+
"brace-expansion": "5.0.6",
|
|
94
|
+
"postcss": "8.5.15",
|
|
95
|
+
"ws": "$ws"
|
|
85
96
|
},
|
|
86
97
|
"build": {
|
|
87
98
|
"appId": "com.mostbox.app",
|
|
@@ -95,17 +106,17 @@
|
|
|
95
106
|
"directories": {
|
|
96
107
|
"output": "dist"
|
|
97
108
|
},
|
|
109
|
+
"afterPack": "electron/afterPack.cjs",
|
|
98
110
|
"files": [
|
|
99
111
|
"out/**/*",
|
|
100
|
-
"server/**/*",
|
|
101
112
|
"electron/**/*",
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
113
|
+
"server/src/**/*",
|
|
114
|
+
"server/index.js",
|
|
115
|
+
"server/cli.js",
|
|
116
|
+
"package.json",
|
|
117
|
+
"!**/*.map",
|
|
118
|
+
"!electron/**/*.test.js",
|
|
119
|
+
"!server/tests/**/*"
|
|
109
120
|
],
|
|
110
121
|
"asarUnpack": [
|
|
111
122
|
"**/*.node",
|
|
@@ -113,15 +124,10 @@
|
|
|
113
124
|
],
|
|
114
125
|
"win": {
|
|
115
126
|
"target": [
|
|
116
|
-
|
|
117
|
-
"target": "nsis",
|
|
118
|
-
"arch": [
|
|
119
|
-
"x64",
|
|
120
|
-
"arm64"
|
|
121
|
-
]
|
|
122
|
-
}
|
|
127
|
+
"nsis"
|
|
123
128
|
],
|
|
124
|
-
"
|
|
129
|
+
"artifactName": "${productName}-${version}-win-${arch}-setup.${ext}",
|
|
130
|
+
"icon": "public/favicon.ico"
|
|
125
131
|
},
|
|
126
132
|
"nsis": {
|
|
127
133
|
"oneClick": false,
|
|
@@ -131,6 +137,7 @@
|
|
|
131
137
|
"shortcutName": "MostBox"
|
|
132
138
|
},
|
|
133
139
|
"mac": {
|
|
140
|
+
"artifactName": "${productName}-${version}-mac-${arch}.${ext}",
|
|
134
141
|
"target": [
|
|
135
142
|
{
|
|
136
143
|
"target": "dmg",
|
|
@@ -140,7 +147,7 @@
|
|
|
140
147
|
]
|
|
141
148
|
}
|
|
142
149
|
],
|
|
143
|
-
"icon": "public/
|
|
150
|
+
"icon": "public/pwa-512x512.png",
|
|
144
151
|
"category": "public.app-category.utilities"
|
|
145
152
|
},
|
|
146
153
|
"dmg": {
|
|
@@ -158,6 +165,7 @@
|
|
|
158
165
|
]
|
|
159
166
|
},
|
|
160
167
|
"linux": {
|
|
168
|
+
"artifactName": "${productName}-${version}-linux-${arch}.${ext}",
|
|
161
169
|
"target": [
|
|
162
170
|
{
|
|
163
171
|
"target": "AppImage",
|
|
@@ -167,6 +175,7 @@
|
|
|
167
175
|
]
|
|
168
176
|
}
|
|
169
177
|
],
|
|
178
|
+
"icon": "public/pwa-512x512.png",
|
|
170
179
|
"category": "Utility"
|
|
171
180
|
}
|
|
172
181
|
}
|
package/public/favicon.ico
CHANGED
|
Binary file
|