wiki-viewer 2.9.5 → 2.11.0
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +3 -3
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +2 -2
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page/next-font-manifest.json +43 -1
- package/.next/standalone/.next/server/app/_not-found/page.js +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agent/activity/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/events/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/files/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/fs/file/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/fs/ls/[[...path]]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/fs/move/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/fs/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/internal/span/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/settings/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/sidecar/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/app-proxy/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/assets/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/pdf/save/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/share/[token]/asset/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/share/[token]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/share/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/browse/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/reveal/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/branch/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/open/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/refresh/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/workspaces/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/upload/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/app/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/backlinks/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/content/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/download/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/folder/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-branches/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-checkout/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-diff/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-file-info/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-history/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/git-pull/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/move/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/new-file/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/outlinks/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/page/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/presence/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/slugs/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/upload/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/watch/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page/next-font-manifest.json +43 -1
- package/.next/standalone/.next/server/app/page.js +1 -1
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/s/[token]/page/next-font-manifest.json +43 -1
- package/.next/standalone/.next/server/app/s/[token]/page.js +1 -1
- package/.next/standalone/.next/server/app/s/[token]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/s/[token]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/signin/page/next-font-manifest.json +43 -1
- package/.next/standalone/.next/server/app/signin/page.js +2 -2
- package/.next/standalone/.next/server/app/signin/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/signin/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{0~w0_katex_dist_katex_mjs_018q_uc._.js → 0~w0_katex_dist_katex_mjs_0ezwklf._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__09ut-wj._.js → [root-of-the-server]__0.03n~-._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0st27bi._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0n5kphk._.js → [root-of-the-server]__0v4bxn5._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_0d9d~c~._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0kkaybx._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0oq8kwv._.js +21 -23
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0mv0.4i._.js → node_modules__pnpm_02omd8-._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0kkbph0._.js → node_modules__pnpm_02sp547._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0x9-_1d._.js → node_modules__pnpm_02uftns._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0bnc0lk._.js → node_modules__pnpm_03a6alg._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0qmqt0m._.js → node_modules__pnpm_04t9xl-._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0ebvpwi._.js → node_modules__pnpm_067bv9c._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0s1th-1._.js → node_modules__pnpm_07aatdc._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_07bf4mp._.js → node_modules__pnpm_09cxxh9._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0f9vj0~._.js → node_modules__pnpm_09ms74y._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0pv3k.9._.js → node_modules__pnpm_0a~ka8f._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_02yqus6._.js → node_modules__pnpm_0dyz243._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0g21lw4._.js → node_modules__pnpm_0fjns1m._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0fa23-q._.js → node_modules__pnpm_0gp97p7._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0kdk2ot._.js → node_modules__pnpm_0hqvb5v._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0.wgpvp._.js → node_modules__pnpm_0iy87hj._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0a~3f2a._.js → node_modules__pnpm_0pe2rdb._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0q~maar._.js → node_modules__pnpm_0q8v8dz._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0tdnho_._.js → node_modules__pnpm_0usypt0._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_12nfd13._.js → node_modules__pnpm_0v38l5j._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0xq~zku._.js → node_modules__pnpm_0vn1wax._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0dm.meu._.js → node_modules__pnpm_0ybuie9._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_02j0p3a._.js → node_modules__pnpm_0yi0xoe._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0p4w0~q._.js → node_modules__pnpm_0~v9~.c._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0w6oo9l._.js → node_modules__pnpm_11-0pez._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0f.5boy._.js → node_modules__pnpm_11-k0fx._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0nt22aq._.js → node_modules__pnpm_11ya8hu._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0f9vuiw._.js → node_modules__pnpm_124x.i6._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/src_app_s_[token]_page_tsx_0_fzrmd._.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/.next/server/next-font-manifest.js +1 -1
- package/.next/standalone/.next/server/next-font-manifest.json +172 -4
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/{0fm2eul-wqh2f.js → 02.js-~-mud9y.js} +1 -1
- package/.next/standalone/.next/static/chunks/08a~bt71ve3kk.js +1 -0
- package/.next/standalone/.next/static/chunks/09.erdz0y5yfg.css +1 -0
- package/.next/standalone/.next/static/chunks/09z52vnt~jxdl.css +28 -0
- package/.next/standalone/.next/static/chunks/0h1rq-by77vbq.js +1 -0
- package/.next/standalone/.next/static/chunks/0qs5wsoz9l~.r.js +170 -0
- package/.next/standalone/.next/static/chunks/{00_12ekhbvhhp.js → 0wkj8v.ttvxv..js} +1 -1
- package/.next/standalone/.next/static/media/02046ca7e906ed9f-s.1602kxq-59i~c.woff2 +0 -0
- package/.next/standalone/.next/static/media/04c5164763c40239-s.0h-nw9_c8d~-_.woff2 +0 -0
- package/.next/standalone/.next/static/media/051742360c26797e-s.p.0f97p8c3305p~.woff2 +0 -0
- package/.next/standalone/.next/static/media/0797a9ffe47acb65-s.045uve1.n0xw5.woff2 +0 -0
- package/.next/standalone/.next/static/media/08328e320c8f68d1-s.068q2mbkdvzxv.woff2 +0 -0
- package/.next/standalone/.next/static/media/0951afe60dbf5d36-s.04q-sk9kar98f.woff2 +0 -0
- package/.next/standalone/.next/static/media/0fe8cf670dc7929a-s.17zesi_2dq2~a.woff2 +0 -0
- package/.next/standalone/.next/static/media/1e239d59b95c7889-s.0y5o_un~q19dn.woff2 +0 -0
- package/.next/standalone/.next/static/media/248e1dc0efc99276-s.p.0ft7o6kv5bp14.woff2 +0 -0
- package/.next/standalone/.next/static/media/26f284dcc38c84c0-s.10hk62x1-0d9n.woff2 +0 -0
- package/.next/standalone/.next/static/media/2742b3d653a3157b-s.12jcr6dg9go_n.woff2 +0 -0
- package/.next/standalone/.next/static/media/2aec202ebfcf461b-s.0p8pxnvll2h.7.woff2 +0 -0
- package/.next/standalone/.next/static/media/2f13ad8e538108e0-s.p.0o52u8sd-fo14.woff2 +0 -0
- package/.next/standalone/.next/static/media/31a7435702a308bc-s.0epd03d_qcp.q.woff2 +0 -0
- package/.next/standalone/.next/static/media/3381337b621a9a6a-s.064fjoont5c7t.woff2 +0 -0
- package/.next/standalone/.next/static/media/33f266618f7bf8bb-s.0lgz5n9d2ni1l.woff2 +0 -0
- package/.next/standalone/.next/static/media/36f8835f1b5285ee-s.00elvlb..o0ve.woff2 +0 -0
- package/.next/standalone/.next/static/media/38772d1e0cde909c-s.06sf8d84-9n3w.woff2 +0 -0
- package/.next/standalone/.next/static/media/38df7484fe560b25-s.p.0_h8~hcb-m6kp.woff2 +0 -0
- package/.next/standalone/.next/static/media/3ZLMEXZEQPLTEPMHTQDAUXP5ZZXCZAEN-s.p.0hfk9k1kkjsdy.woff2 +0 -0
- package/.next/standalone/.next/static/media/3c9bd1ad48ccb78c-s.0mbvj~smw3lv4.woff2 +0 -0
- package/.next/standalone/.next/static/media/3ce154ad7d54dc86-s.0n54~jvon9ee5.woff2 +0 -0
- package/.next/standalone/.next/static/media/3e80ce3d3175ff0e-s.0r7j4fqpb_s~7.woff2 +0 -0
- package/.next/standalone/.next/static/media/433XP6QWDVL6KQ5K7ZCOP524TX4LE4RJ-s.p.13or5lok2-922.woff2 +0 -0
- package/.next/standalone/.next/static/media/48e5af244f2769e4-s.p.02pz5pzr7s54d.woff2 +0 -0
- package/.next/standalone/.next/static/media/4a439e1ba971da1a-s.0ldnolnishmjo.woff2 +0 -0
- package/.next/standalone/.next/static/media/4ba802ed8e67eac5-s.04ygcc0k6zvvf.woff2 +0 -0
- package/.next/standalone/.next/static/media/5413d6e6d8960ee4-s.05vzz1snb6e.m.woff2 +0 -0
- package/.next/standalone/.next/static/media/572c13468b8cff87-s.0k68dgt5gi4w6.woff2 +0 -0
- package/.next/standalone/.next/static/media/574e5b2a8fe8e45b-s.01yactx5t2mij.woff2 +0 -0
- package/.next/standalone/.next/static/media/5b0229109f6656bb-s.1455rc8vwuctw.woff2 +0 -0
- package/.next/standalone/.next/static/media/5c773c73f3b750dc-s.0qis_my1gal~q.woff2 +0 -0
- package/.next/standalone/.next/static/media/62d4b50592542c9f-s.0id408x23fv8q.woff2 +0 -0
- package/.next/standalone/.next/static/media/6KRVTMHEY26GBVOWXYL6F3ZLGUXE5ZD5-s.p.0xh3vtwj392i-.woff2 +0 -0
- package/.next/standalone/.next/static/media/6a5386fd6038edbe-s.16fk0g~ypa53a.woff2 +0 -0
- package/.next/standalone/.next/static/media/6bbcb5b36acd717c-s.0oz2cuf9udaui.woff2 +0 -0
- package/.next/standalone/.next/static/media/7AHDUZ4A7LFLVFUIFSARGIWCRQJHISQP-s.p.0hq2a81xn4_re.woff2 +0 -0
- package/.next/standalone/.next/static/media/7YY3ZAAE3TRV2LANYOLXNHTPHLXVWTKH-s.p.0aqd04_idyb6d.woff2 +0 -0
- package/.next/standalone/.next/static/media/7a454fa283e484f3-s.p.0quc0xhiv~l2f.woff2 +0 -0
- package/.next/standalone/.next/static/media/7c2c7251ac640798-s.0ci7sidzj82wz.woff2 +0 -0
- package/.next/standalone/.next/static/media/7cdbb9ca823c0a73-s.0g~9kd3dx56ng.woff2 +0 -0
- package/.next/standalone/.next/static/media/7e7f32a39836f228-s.0bmyfaahigzds.woff2 +0 -0
- package/.next/standalone/.next/static/media/83a6e70a3a81dd9f-s.0q090~kxs1xcn.woff2 +0 -0
- package/.next/standalone/.next/static/media/861011d7404b02f6-s.0.xm8qlf5_315.woff2 +0 -0
- package/.next/standalone/.next/static/media/88731e1a74492905-s.093kp-ivx0g2f.woff2 +0 -0
- package/.next/standalone/.next/static/media/89ea96820aa96980-s.p.05i4trv5wh9ym.woff2 +0 -0
- package/.next/standalone/.next/static/media/8c352cd2dd0b7ed3-s.046_rt88lmymv.woff2 +0 -0
- package/.next/standalone/.next/static/media/8fcf71678f67d0c5-s.0kn0u2cosumsr.woff2 +0 -0
- package/.next/standalone/.next/static/media/97e7b204180d1274-s.15almw42k3wem.woff2 +0 -0
- package/.next/standalone/.next/static/media/99ac5753282bcf05-s.14-35mipncksh.woff2 +0 -0
- package/.next/standalone/.next/static/media/9de307755bdae5a1-s.p.0h_ujslg0gefa.woff2 +0 -0
- package/.next/standalone/.next/static/media/GHM6WVH6MILNYOOCXHXB5GTSGNTMGXZR-s.p.0yt9gwi-.i49f.woff2 +0 -0
- package/.next/standalone/.next/static/media/J64QX5IPOHK56I2KYUNBQ5M2XWZEYKYX-s.p.0mxjq567rs1on.woff2 +0 -0
- package/.next/standalone/.next/static/media/KFIAZD4RUMEZIYV6FQ3T3GP5PDBDB6JY-s.p.049.kwhs-b7lf.woff2 +0 -0
- package/.next/standalone/.next/static/media/NIQ54PVBBIWVK3PFSOIOUJSXIJ5WTNDP-s.p.0-mpnqa_q7f0-.woff2 +0 -0
- package/.next/standalone/.next/static/media/ODDSCHC7OZCRRQJDJV5LMJKTGF7URFO4-s.p.0ti.-5ju6w580.woff2 +0 -0
- package/.next/standalone/.next/static/media/RMBKFTS6UFOXVBCL3EVCXLWRQBA3PN4K-s.p.0udd26.7.3pmc.woff2 +0 -0
- package/.next/standalone/.next/static/media/RNUZPHMIVMPXFHVACRGCAJ32E6WUEDVU-s.p.0h80ym842138e.woff2 +0 -0
- package/.next/standalone/.next/static/media/SB2OEB6IKZPRR6JT4GFJ2TFT6HBB6AZN-s.p.0rb3ehjtk_okh.woff2 +0 -0
- package/.next/standalone/.next/static/media/SIH66VPT4WS2HIF5PEJNDU4INNUF54LG-s.p.08_1ce4x9brpn.woff2 +0 -0
- package/.next/standalone/.next/static/media/TW4KNQIPR4LNP4I6I6C6HKQ23B2EQAU5-s.p.02kr7k5v_8hxa.woff2 +0 -0
- package/.next/standalone/.next/static/media/UMQTMTAEPCAFNEJDVEURBIXJENGOHOWO-s.p.0~8tz_97dla0z.woff2 +0 -0
- package/.next/standalone/.next/static/media/WNDVG7O66ENLOD43GS7FBUCC4KMT5OM2-s.p.0lx670_9j82xu.woff2 +0 -0
- package/.next/standalone/.next/static/media/a0ffaa6a9384d9d3-s.0rpo5i9-tpup~.woff2 +0 -0
- package/.next/standalone/.next/static/media/a421df443b3f383b-s.0-2a4_vov7hfq.woff2 +0 -0
- package/.next/standalone/.next/static/media/ab36ba74ba67ee0c-s.09ox707qsuxzd.woff2 +0 -0
- package/.next/standalone/.next/static/media/b12ef0642bbc5f5f-s.0wesrn-n.ko7v.woff2 +0 -0
- package/.next/standalone/.next/static/media/b3b0afff8ab38d95-s.0_6z8bw5fnpp2.woff2 +0 -0
- package/.next/standalone/.next/static/media/b8b552e8609c5636-s.p.0vinx1niofu4y.woff2 +0 -0
- package/.next/standalone/.next/static/media/be7780d61d89233b-s.01u0nh~~sr1co.woff2 +0 -0
- package/.next/standalone/.next/static/media/c2873153dc73d9e3-s.0g6heybwh~nbo.woff2 +0 -0
- package/.next/standalone/.next/static/media/c9e42e3eae6237c2-s.p.0waomiq-mw47p.woff2 +0 -0
- package/.next/standalone/.next/static/media/ca19bc83075b2625-s.0s0y.-f87v-al.woff2 +0 -0
- package/.next/standalone/.next/static/media/ca31d6821328a4e9-s.p.0w8w9q576xw20.woff2 +0 -0
- package/.next/standalone/.next/static/media/cc6c75d91fb27f62-s.117builj2s2_-.woff2 +0 -0
- package/.next/standalone/.next/static/media/ccee61546c0358b7-s.17kgvx8~8.fj6.woff2 +0 -0
- package/.next/standalone/.next/static/media/ce5b45ab00236ec9-s.0e2v01fdnfw~o.woff2 +0 -0
- package/.next/standalone/.next/static/media/ce62453a442c7f35-s.p.0333ktddfbsxy.woff2 +0 -0
- package/.next/standalone/.next/static/media/cf514f5d0007dafa-s.p.0lok5zj4ubzox.woff2 +0 -0
- package/.next/standalone/.next/static/media/d38a53d0ba90b32d-s.0-z21w-861g1d.woff2 +0 -0
- package/.next/standalone/.next/static/media/d7a0600e467cf0bd-s.18awt9904y5ei.woff2 +0 -0
- package/.next/standalone/.next/static/media/datatype_regular-s.p.0j71g.k6bf9dr.woff2 +0 -0
- package/.next/standalone/.next/static/media/dc0d9adbac686440-s.p.0~z396rbj0t4w.woff2 +0 -0
- package/.next/standalone/.next/static/media/e858660d9da6747c-s.07fgytta8ajxk.woff2 +0 -0
- package/.next/standalone/.next/static/media/eae18db174274e0c-s.018x-x0snqelf.woff2 +0 -0
- package/.next/standalone/.next/static/media/ed5f1f9bced69653-s.p.0t~r0znp74~xb.woff2 +0 -0
- package/.next/standalone/.next/static/media/elms_sans_regular-s.p.0ca_dpt0ytdvz.woff2 +0 -0
- package/.next/standalone/.next/static/media/f5031e7b18bdfbb3-s.p.17530ebvtj~5g.woff2 +0 -0
- package/.next/standalone/.next/static/media/f7d6090e8b3debad-s.00qosz~21_9iq.woff2 +0 -0
- package/.next/standalone/.next/static/media/fa39153a3fc630ba-s.0-0ft90hthv3~.woff2 +0 -0
- package/.next/standalone/.next/static/media/fad568eea626db0e-s.04s-lri-1fnua.woff2 +0 -0
- package/.next/standalone/.next/static/media/fb4a86a49ba2c1c4-s.0h_5frik6_87y.woff2 +0 -0
- package/.next/standalone/.next/static/media/luciole_bold-s.p.0psnmt9gb4e-1.woff2 +0 -0
- package/.next/standalone/.next/static/media/luciole_bolditalic-s.p.02l.qqox3o-3o.woff2 +0 -0
- package/.next/standalone/.next/static/media/luciole_italic-s.p.0vt.gc9ulxy.p.woff2 +0 -0
- package/.next/standalone/.next/static/media/luciole_regular-s.p.0b_wrlnaatliw.woff2 +0 -0
- package/.next/standalone/.next/static/media/miranda_sans_regular-s.p.0s2lp.tajrx9n.woff2 +0 -0
- package/.next/standalone/.next/static/media/stack_sans_notch_regular-s.p.16v-w3iusmqa0.woff2 +0 -0
- package/.next/standalone/.next/static/media/stack_sans_text_regular-s.p.0-4jeegtdke5b.woff2 +0 -0
- package/.next/standalone/next.config.ts +6 -1
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/public/fonts/datatype/datatype-regular.woff2 +0 -0
- package/.next/standalone/public/fonts/elms-sans/elms-sans-regular.woff2 +0 -0
- package/.next/standalone/public/fonts/gambetta/6KRVTMHEY26GBVOWXYL6F3ZLGUXE5ZD5.woff2 +0 -0
- package/.next/standalone/public/fonts/gambetta/ODDSCHC7OZCRRQJDJV5LMJKTGF7URFO4.woff2 +0 -0
- package/.next/standalone/public/fonts/gambetta/RMBKFTS6UFOXVBCL3EVCXLWRQBA3PN4K.woff2 +0 -0
- package/.next/standalone/public/fonts/gambetta/UMQTMTAEPCAFNEJDVEURBIXJENGOHOWO.woff2 +0 -0
- package/.next/standalone/public/fonts/general-sans/3ZLMEXZEQPLTEPMHTQDAUXP5ZZXCZAEN.woff2 +0 -0
- package/.next/standalone/public/fonts/general-sans/7YY3ZAAE3TRV2LANYOLXNHTPHLXVWTKH.woff2 +0 -0
- package/.next/standalone/public/fonts/general-sans/NIQ54PVBBIWVK3PFSOIOUJSXIJ5WTNDP.woff2 +0 -0
- package/.next/standalone/public/fonts/general-sans/SB2OEB6IKZPRR6JT4GFJ2TFT6HBB6AZN.woff2 +0 -0
- package/.next/standalone/public/fonts/general-sans/TW4KNQIPR4LNP4I6I6C6HKQ23B2EQAU5.woff2 +0 -0
- package/.next/standalone/public/fonts/luciole/luciole-bold.woff2 +0 -0
- package/.next/standalone/public/fonts/luciole/luciole-bolditalic.woff2 +0 -0
- package/.next/standalone/public/fonts/luciole/luciole-italic.woff2 +0 -0
- package/.next/standalone/public/fonts/luciole/luciole-regular.woff2 +0 -0
- package/.next/standalone/public/fonts/miranda-sans/miranda-sans-regular.woff2 +0 -0
- package/.next/standalone/public/fonts/satoshi/7AHDUZ4A7LFLVFUIFSARGIWCRQJHISQP.woff2 +0 -0
- package/.next/standalone/public/fonts/satoshi/GHM6WVH6MILNYOOCXHXB5GTSGNTMGXZR.woff2 +0 -0
- package/.next/standalone/public/fonts/satoshi/J64QX5IPOHK56I2KYUNBQ5M2XWZEYKYX.woff2 +0 -0
- package/.next/standalone/public/fonts/satoshi/KFIAZD4RUMEZIYV6FQ3T3GP5PDBDB6JY.woff2 +0 -0
- package/.next/standalone/public/fonts/satoshi/WNDVG7O66ENLOD43GS7FBUCC4KMT5OM2.woff2 +0 -0
- package/.next/standalone/public/fonts/sentient/433XP6QWDVL6KQ5K7ZCOP524TX4LE4RJ.woff2 +0 -0
- package/.next/standalone/public/fonts/sentient/RNUZPHMIVMPXFHVACRGCAJ32E6WUEDVU.woff2 +0 -0
- package/.next/standalone/public/fonts/sentient/SIH66VPT4WS2HIF5PEJNDU4INNUF54LG.woff2 +0 -0
- package/.next/standalone/public/fonts/stack-sans-notch/stack-sans-notch-regular.woff2 +0 -0
- package/.next/standalone/public/fonts/stack-sans-text/stack-sans-text-regular.woff2 +0 -0
- package/.next/standalone/server.js +1 -1
- package/package.json +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0txwwn-._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_00pku9f._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0_.s7b8._.js +0 -3
- package/.next/standalone/.next/static/chunks/0aeii_m.9~9_t.js +0 -1
- package/.next/standalone/.next/static/chunks/0g6xc2sqjuw.h.js +0 -172
- package/.next/standalone/.next/static/chunks/0n7px0u5.eizf.css +0 -9
- package/.next/standalone/.next/static/chunks/0wu_n6m9jg8rn.js +0 -1
- /package/.next/standalone/.next/static/{2qQdcBZEXk0wXjBdvnPD5 → QSas9vMwm9uMJRwezOW9O}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{2qQdcBZEXk0wXjBdvnPD5 → QSas9vMwm9uMJRwezOW9O}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{2qQdcBZEXk0wXjBdvnPD5 → QSas9vMwm9uMJRwezOW9O}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,354502,e=>{"use strict";e.s(["apiUrl",0,function(e){if(!e.startsWith("/"))return e;let t=window.__WIKI_PREFIX??"";return!t||e.startsWith(t+"/")||e===t?e:t+e},"isLite",0,function(){return!0===window.__WIKI_LITE}])},824627,e=>{"use strict";var t=function(e,s){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,s)},s=function(){return(s=Object.assign||function(e){for(var t,s=1,n=arguments.length;s<n;s++)for(var r in t=arguments[s])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>s,"__awaiter",0,function(e,t,s,n){return new(s||(s=Promise))(function(r,a){function i(e){try{o(n.next(e))}catch(e){a(e)}}function l(e){try{o(n.throw(e))}catch(e){a(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,l)}o((n=n.apply(e,t||[])).next())})},"__extends",0,function(e,s){if("function"!=typeof s&&null!==s)throw TypeError("Class extends value "+String(s)+" is not a constructor or null");function n(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(n.prototype=s.prototype,new n)},"__generator",0,function(e,t){var s,n,r,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(o){var c=[l,o];if(s)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(s=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{s=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},"__rest",0,function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(s[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(s[n[r]]=e[n[r]]);return s},"__spreadArray",0,function(e,t,s){if(s||2==arguments.length)for(var n,r=0,a=t.length;r<a;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}])},670977,e=>{"use strict";var t=e.i(44501),s=e.i(425732),n=e.i(301138),r=e.i(567776),a=e.i(691520),i=e.i(764143),l=e.i(391548),o=e.i(43240),c=e.i(101685),d=e.i(354502),m=e.i(519455),u=e.i(793479),x=e.i(515288),h=e.i(427423),p=e.i(792934),f=e.i(755146),w=e.i(395624);function g({className:e}){let s=(0,w.useViewWidthStore)(e=>e.width),n=(0,w.useViewWidthStore)(e=>e.setWidth),r=(0,w.useViewWidthStore)(e=>e.align),a=(0,w.useViewWidthStore)(e=>e.setAlign);return(0,t.jsxs)(f.DropdownMenu,{children:[(0,t.jsx)(f.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(m.Button,{size:"sm",variant:"ghost",className:`h-7 w-7 p-0 ${e??""}`,title:`Content width: ${w.VIEW_WIDTH_LABEL[s]}`,children:(0,t.jsx)(p.AlignJustify,{className:"h-3.5 w-3.5"})})}),(0,t.jsxs)(f.DropdownMenuContent,{align:"end",className:"w-36",children:[(0,t.jsx)(f.DropdownMenuLabel,{className:"text-[11px] text-muted-foreground",children:"Width"}),w.VIEW_WIDTH_ORDER.map(e=>(0,t.jsxs)(f.DropdownMenuItem,{onClick:()=>n(e),className:"flex items-center justify-between text-xs",children:[w.VIEW_WIDTH_LABEL[e],e===s&&(0,t.jsx)(o.Check,{className:"h-3.5 w-3.5"})]},e)),(0,t.jsx)(f.DropdownMenuSeparator,{}),(0,t.jsx)(f.DropdownMenuLabel,{className:"text-[11px] text-muted-foreground",children:"Alignment"}),w.VIEW_ALIGN_ORDER.map(e=>(0,t.jsxs)(f.DropdownMenuItem,{onClick:()=>a(e),className:"flex items-center justify-between text-xs",children:[w.VIEW_ALIGN_LABEL[e],e===r&&(0,t.jsx)(o.Check,{className:"h-3.5 w-3.5"})]},e))]})]})}var j=e.i(409082),v=e.i(847463),b=e.i(917356);function y({className:e}){let{resolvedTheme:s,setTheme:n}=(0,b.useTheme)();return(0,t.jsx)(m.Button,{size:"sm",variant:"ghost",className:`h-7 w-7 p-0 ${e??""}`,title:"dark"===s?"Switch to light":"Switch to dark",onClick:()=>n("dark"===s?"light":"dark"),children:"dark"===s?(0,t.jsx)(v.Sun,{className:"h-3.5 w-3.5"}):(0,t.jsx)(j.Moon,{className:"h-3.5 w-3.5"})})}var N=e.i(406347),k=e.i(727551),S=e.i(496366),_=e.i(797715);function C(e){let t=e.lastIndexOf(".");return t<0?"":e.slice(t+1).toLowerCase()}function T(e){let t=C(e);return["md","markdown"].includes(t)?"markdown":["csv","tsv"].includes(t)?"csv":["pdf"].includes(t)?"pdf":["html","htm"].includes(t)?"html":["png","jpg","jpeg","gif","webp","svg","avif","ico","bmp"].includes(t)?"image":["mp4","webm","mov","m4v","mp3","wav","ogg","m4a","aac"].includes(t)?"media":["txt","log","ini","env","conf"].includes(t)?"text":["py","js","ts","tsx","jsx","go","rs","java","c","cpp","h","sh","bash","zsh","rb","php","swift","kt","lua","sql","yaml","yml","toml","json","xml","css","scss","mmd","mermaid"].includes(t)?"source":"binary"}function O({content:e,filename:s,filePath:n,token:r}){switch(T(s)){case"markdown":return(0,t.jsx)(E,{content:e});case"image":return(0,t.jsx)(I,{filename:s,token:r});case"pdf":return(0,t.jsx)(L,{filename:s,token:r});case"media":return(0,t.jsx)(P,{filename:s,token:r});case"html":return(0,t.jsx)(W,{content:e,filename:s});case"csv":return(0,t.jsx)(A,{content:e});case"source":case"text":return(0,t.jsx)(D,{content:e,filename:s});case"binary":return(0,t.jsx)(B,{filename:s,token:r})}}function E({content:e}){let[s,n]=(0,c.useState)("");return(0,c.useEffect)(()=>{let t=!1;return(0,_.markdownToHtml)(e,{sanitize:!0}).then(e=>{t||n(e)}),()=>{t=!0}},[e]),(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)("div",{className:"mx-auto max-w-4xl px-4 py-8 prose prose-neutral dark:prose-invert",children:(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:s}})})})}function I({filename:e,token:s}){let n=(0,d.apiUrl)(`/api/share/${s}/asset`);return(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center p-8 bg-[repeating-conic-gradient(hsl(var(--muted))_0%_25%,transparent_0%_50%)] bg-[length:20px_20px]",children:(0,t.jsx)("img",{src:n,alt:e,className:"max-w-full max-h-[80vh] object-contain rounded-sm"})})}function L({filename:e,token:s}){let n=(0,d.apiUrl)(`/api/share/${s}/asset`);return(0,t.jsx)("div",{className:"flex-1 flex flex-col min-h-0",children:(0,t.jsx)("iframe",{src:n,title:e,className:"flex-1 w-full border-0",style:{minHeight:"80vh"}})})}function P({filename:e,token:s}){let n=(0,d.apiUrl)(`/api/share/${s}/asset`),r=["mp4","webm","mov","m4v"].includes(C(e));return(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center p-8",children:r?(0,t.jsx)("video",{controls:!0,className:"max-w-full max-h-[80vh] rounded-sm",src:n}):(0,t.jsxs)("div",{className:"w-full max-w-md",children:[(0,t.jsx)("audio",{controls:!0,className:"w-full",src:n}),(0,t.jsx)("p",{className:"text-center text-sm text-muted-foreground mt-3",children:e})]})})}function W({content:e,filename:s}){let[n,r]=(0,c.useState)(!1);return(0,t.jsxs)("div",{className:"flex-1 flex flex-col min-h-0",children:[(0,t.jsx)("div",{className:"flex items-center justify-end gap-2 px-4 py-2 border-b bg-muted/30",children:(0,t.jsx)(m.Button,{variant:"ghost",size:"sm",className:"h-7 gap-1.5 text-xs",onClick:()=>r(e=>!e),children:n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.Ban,{className:"h-3.5 w-3.5"}),"Disable scripts"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.Play,{className:"h-3.5 w-3.5"}),"Enable scripts"]})})}),(0,t.jsx)("iframe",{srcDoc:e,title:s,className:"flex-1 w-full border-0 bg-white",style:{minHeight:"80vh"},sandbox:n?"allow-scripts allow-forms allow-popups allow-top-navigation-by-user-activation":"allow-forms allow-popups allow-top-navigation-by-user-activation"})]})}function D({content:e,filename:s}){let n=e.split("\n"),r=n.length,[a,i]=(0,c.useState)(r<=500),l=a?n:n.slice(0,500);return(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 border-b bg-muted/30",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground font-mono",children:s}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[r.toLocaleString()," lines"]})]}),(0,t.jsx)("pre",{className:"text-[13px] font-mono leading-relaxed",children:(0,t.jsx)("table",{className:"w-full border-collapse",children:(0,t.jsx)("tbody",{children:l.map((e,s)=>(0,t.jsxs)("tr",{className:"hover:bg-muted/50",children:[(0,t.jsx)("td",{className:"select-none text-right pr-4 pl-4 py-0 text-muted-foreground/50 text-xs w-[1%] whitespace-nowrap align-top",children:s+1}),(0,t.jsx)("td",{className:"pr-4 py-0 whitespace-pre-wrap break-all",children:e||" "})]},s))})})}),!a&&r>500&&(0,t.jsx)("div",{className:"flex justify-center py-4 border-t",children:(0,t.jsxs)(m.Button,{size:"sm",variant:"ghost",onClick:()=>i(!0),children:["Show all ",r.toLocaleString()," lines"]})})]})})}function A({content:e}){let s=(0,c.useMemo)(()=>e.split("\n").filter(Boolean).map(e=>{let t=[],s="",n=!1;for(let r=0;r<e.length;r++){let a=e[r];'"'===a?n=!n:","!==a&&" "!==a||n?s+=a:(t.push(s.trim()),s="")}return t.push(s.trim()),t}),[e]);if(0===s.length)return null;let n=s[0],r=s.slice(1);return(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)("div",{className:"mx-auto max-w-6xl p-4",children:(0,t.jsxs)("table",{className:"w-full text-sm border-collapse",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{children:n.map((e,s)=>(0,t.jsx)("th",{className:"text-left px-3 py-2 border-b-2 border-border font-medium bg-muted/50 whitespace-nowrap",children:e},s))})}),(0,t.jsx)("tbody",{children:r.map((e,s)=>(0,t.jsx)("tr",{className:"hover:bg-muted/30",children:e.map((e,s)=>(0,t.jsx)("td",{className:"px-3 py-1.5 border-b border-border/50 whitespace-nowrap",children:e},s))},s))})]})})})}function B({filename:e,token:s}){let n=(0,d.apiUrl)(`/api/share/${s}/asset`);return(0,t.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 p-8",children:[(0,t.jsx)(i.FileText,{className:"h-12 w-12 text-muted-foreground"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e}),(0,t.jsx)("a",{href:n,download:e,children:(0,t.jsxs)(m.Button,{size:"sm",variant:"outline",className:"gap-1.5",children:[(0,t.jsx)(N.Download,{className:"h-3.5 w-3.5"}),"Download file"]})})]})}e.s(["default",0,function({params:e}){let[p,f]=(0,c.useState)(null),[w,j]=(0,c.useState)({kind:"loading"}),[v,b]=(0,c.useState)(""),[N,k]=(0,c.useState)(!1),[S,_]=(0,c.useState)(!1),[C,E]=(0,c.useState)(null),I="content"===w.kind?T(w.filename):"markdown",L=["markdown","source","text","csv","html"].includes(I),P=e=>{E(e),setTimeout(()=>E(null),2e3)},W=async()=>{if("content"===w.kind)try{await navigator.clipboard.writeText(w.content),P("raw")}catch{}},D=(0,c.useCallback)(async()=>{if(p){j({kind:"loading"});try{let e=await fetch((0,d.apiUrl)(`/api/share/${p}`)),t=await e.json();e.ok&&"string"==typeof t.content?j({kind:"content",content:t.content,filename:String(t.filename??"document"),filePath:String(t.filePath??t.filename??"document"),viewCount:"number"==typeof t.viewCount?t.viewCount:0}):401===e.status&&t.protected?j({kind:"password",message:String(t.message??"")}):410===e.status?j({kind:"error",title:"Link unavailable",message:String(t.message??"This share link is no longer available.")}):404===e.status?j({kind:"error",title:"Not found",message:"This share link does not exist."}):j({kind:"error",title:"Error",message:String(t.message??"Something went wrong. Try again later.")})}catch{j({kind:"error",title:"Connection error",message:"Could not reach the server. Check your connection."})}}},[p]);(0,c.useEffect)(()=>{e.then(e=>f(e.token))},[e]),(0,c.useEffect)(()=>{p&&D()},[p,D]);let A=async e=>{if(e.preventDefault(),v.trim()&&p){k(!0),_(!1);try{let e=await fetch((0,d.apiUrl)(`/api/share/${p}`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:v.trim()})}),t=await e.json();e.ok&&"string"==typeof t.content?j({kind:"content",content:t.content,filename:String(t.filename??"document"),filePath:String(t.filePath??t.filename??"document"),viewCount:"number"==typeof t.viewCount?t.viewCount:0}):403===e.status?(_(!0),j({kind:"password",message:"Incorrect password"})):429===e.status?j({kind:"password",message:"Too many attempts. Try again later."}):j({kind:"error",title:"Error",message:String(t.message??"Something went wrong.")})}catch{j({kind:"error",title:"Connection error",message:"Could not reach the server."})}k(!1)}};return(0,t.jsx)(h.ThemeProvider,{children:(0,t.jsxs)("div",{className:"min-h-screen flex flex-col bg-background text-foreground",children:[(0,t.jsx)("header",{className:"border-b border-border bg-muted/50",children:(0,t.jsx)("div",{className:"mx-auto flex max-w-4xl items-center gap-2 px-4 py-2",children:"content"===w.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-success shrink-0"}),(0,t.jsx)("span",{className:"text-sm font-mono truncate",title:w.filename,children:w.filename})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,t.jsxs)(m.Button,{size:"sm",variant:"ghost",className:"h-7 gap-1.5 px-2 text-xs",onClick:()=>{p&&(navigator.clipboard.writeText(`${window.location.origin}/s/${p}`),P("link"))},title:"Copy share link",children:["link"===C?(0,t.jsx)(o.Check,{className:"h-3.5 w-3.5 text-success"}):(0,t.jsx)(l.Copy,{className:"h-3.5 w-3.5"}),"Link"]}),L&&(0,t.jsxs)(m.Button,{size:"sm",variant:"ghost",className:"h-7 gap-1.5 px-2 text-xs",onClick:W,title:"Copy raw content",children:["raw"===C?(0,t.jsx)(o.Check,{className:"h-3.5 w-3.5 text-success"}):(0,t.jsx)(i.FileText,{className:"h-3.5 w-3.5"}),"Raw"]}),"markdown"===I&&(0,t.jsx)(g,{}),(0,t.jsx)(y,{}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground ml-2",children:[w.viewCount," view",1!==w.viewCount?"s":""]})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Eye,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:"Shared document"})]})})}),"loading"===w.kind&&(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,t.jsx)(a.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})}),"password"===w.kind&&(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center px-4",children:(0,t.jsx)(x.Card,{className:"max-w-sm w-full p-6",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,t.jsx)("div",{className:"rounded-full bg-muted p-3",children:(0,t.jsx)(r.Lock,{className:"h-6 w-6 text-muted-foreground"})}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-base font-medium",children:"Password required"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:w.message||"This document is password-protected."})]}),(0,t.jsxs)("form",{onSubmit:A,className:"w-full space-y-3",children:[(0,t.jsx)(u.Input,{type:"password",placeholder:"Enter password",value:v,onChange:e=>{b(e.target.value),_(!1)},autoFocus:!0}),S&&(0,t.jsxs)("p",{className:"text-xs text-destructive flex items-center gap-1",children:[(0,t.jsx)(s.AlertCircle,{className:"h-3 w-3"}),"Wrong password. Try again."]}),(0,t.jsx)(m.Button,{type:"submit",className:"w-full",disabled:N||!v.trim(),children:N?(0,t.jsx)(a.Loader2,{className:"h-4 w-4 animate-spin"}):"View document"})]})]})})}),"error"===w.kind&&(0,t.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 px-4 text-center",children:[(0,t.jsx)("div",{className:"rounded-full bg-muted p-3",children:(0,t.jsx)(s.AlertCircle,{className:"h-6 w-6 text-muted-foreground"})}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-base font-medium",children:w.title}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:w.message})]})]}),"content"===w.kind&&(0,t.jsx)(O,{content:w.content,filename:w.filename,filePath:w.filePath,token:p}),"content"===w.kind&&(0,t.jsx)("footer",{className:"border-t border-border bg-muted/30",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-4xl items-center gap-2 px-4 py-2",children:[(0,t.jsx)(i.FileText,{className:"h-3 w-3 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:w.filename})]})})]})})}],670977)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,354502,e=>{"use strict";e.s(["apiUrl",0,function(e){if(!e.startsWith("/"))return e;let t=window.__WIKI_PREFIX??"";return!t||e.startsWith(t+"/")||e===t?e:t+e},"isLite",0,function(){return!0===window.__WIKI_LITE}])},824627,e=>{"use strict";var t=function(e,s){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,s)},s=function(){return(s=Object.assign||function(e){for(var t,s=1,n=arguments.length;s<n;s++)for(var r in t=arguments[s])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>s,"__awaiter",0,function(e,t,s,n){return new(s||(s=Promise))(function(r,a){function i(e){try{o(n.next(e))}catch(e){a(e)}}function l(e){try{o(n.throw(e))}catch(e){a(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,l)}o((n=n.apply(e,t||[])).next())})},"__extends",0,function(e,s){if("function"!=typeof s&&null!==s)throw TypeError("Class extends value "+String(s)+" is not a constructor or null");function n(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(n.prototype=s.prototype,new n)},"__generator",0,function(e,t){var s,n,r,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(o){var c=[l,o];if(s)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(s=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{s=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},"__rest",0,function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(s[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(s[n[r]]=e[n[r]]);return s},"__spreadArray",0,function(e,t,s){if(s||2==arguments.length)for(var n,r=0,a=t.length;r<a;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}])},670977,e=>{"use strict";var t=e.i(44501),s=e.i(425732),n=e.i(301138),r=e.i(567776),a=e.i(691520),i=e.i(764143),l=e.i(391548),o=e.i(43240),c=e.i(101685),d=e.i(354502),m=e.i(519455),u=e.i(793479),x=e.i(515288),h=e.i(427423),p=e.i(792934),f=e.i(755146),w=e.i(395624);function g({className:e}){let s=(0,w.useViewWidthStore)(e=>e.width),n=(0,w.useViewWidthStore)(e=>e.setWidth),r=(0,w.useViewWidthStore)(e=>e.align),a=(0,w.useViewWidthStore)(e=>e.setAlign);return(0,t.jsxs)(f.DropdownMenu,{children:[(0,t.jsx)(f.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(m.Button,{size:"sm",variant:"ghost",className:`h-7 w-7 p-0 ${e??""}`,title:`Content width: ${w.VIEW_WIDTH_LABEL[s]}`,children:(0,t.jsx)(p.AlignJustify,{className:"h-3.5 w-3.5"})})}),(0,t.jsxs)(f.DropdownMenuContent,{align:"end",className:"w-36",children:[(0,t.jsx)(f.DropdownMenuLabel,{className:"text-[11px] text-muted-foreground",children:"Width"}),w.VIEW_WIDTH_ORDER.map(e=>(0,t.jsxs)(f.DropdownMenuItem,{onClick:()=>n(e),className:"flex items-center justify-between text-xs",children:[w.VIEW_WIDTH_LABEL[e],e===s&&(0,t.jsx)(o.Check,{className:"h-3.5 w-3.5"})]},e)),(0,t.jsx)(f.DropdownMenuSeparator,{}),(0,t.jsx)(f.DropdownMenuLabel,{className:"text-[11px] text-muted-foreground",children:"Alignment"}),w.VIEW_ALIGN_ORDER.map(e=>(0,t.jsxs)(f.DropdownMenuItem,{onClick:()=>a(e),className:"flex items-center justify-between text-xs",children:[w.VIEW_ALIGN_LABEL[e],e===r&&(0,t.jsx)(o.Check,{className:"h-3.5 w-3.5"})]},e))]})]})}var j=e.i(409082),v=e.i(847463),b=e.i(917356);function y({className:e}){let{resolvedTheme:s,setTheme:n}=(0,b.useTheme)();return(0,t.jsx)(m.Button,{size:"sm",variant:"ghost",className:`h-7 w-7 p-0 ${e??""}`,title:"dark"===s?"Switch to light":"Switch to dark",onClick:()=>n("dark"===s?"light":"dark"),children:"dark"===s?(0,t.jsx)(v.Sun,{className:"h-3.5 w-3.5"}):(0,t.jsx)(j.Moon,{className:"h-3.5 w-3.5"})})}var N=e.i(406347),k=e.i(727551),S=e.i(496366),_=e.i(797715);function C(e){let t=e.lastIndexOf(".");return t<0?"":e.slice(t+1).toLowerCase()}function T(e){let t=C(e);return["md","markdown"].includes(t)?"markdown":["csv","tsv"].includes(t)?"csv":["pdf"].includes(t)?"pdf":["html","htm"].includes(t)?"html":["png","jpg","jpeg","gif","webp","svg","avif","ico","bmp"].includes(t)?"image":["mp4","webm","mov","m4v","mp3","wav","ogg","m4a","aac"].includes(t)?"media":["txt","log","ini","env","conf"].includes(t)?"text":["py","js","ts","tsx","jsx","go","rs","java","c","cpp","h","sh","bash","zsh","rb","php","swift","kt","lua","sql","yaml","yml","toml","json","xml","css","scss","mmd","mermaid"].includes(t)?"source":"binary"}function O({content:e,filename:s,filePath:n,token:r}){switch(T(s)){case"markdown":return(0,t.jsx)(E,{content:e});case"image":return(0,t.jsx)(I,{filename:s,token:r});case"pdf":return(0,t.jsx)(L,{filename:s,token:r});case"media":return(0,t.jsx)(P,{filename:s,token:r});case"html":return(0,t.jsx)(W,{content:e,filename:s});case"csv":return(0,t.jsx)(A,{content:e});case"source":case"text":return(0,t.jsx)(D,{content:e,filename:s});case"binary":return(0,t.jsx)(B,{filename:s,token:r})}}function E({content:e}){let[s,n]=(0,c.useState)("");return(0,c.useEffect)(()=>{let t=!1;return(0,_.markdownToHtml)(e,{sanitize:!0}).then(e=>{t||n(e)}),()=>{t=!0}},[e]),(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)("div",{className:"mx-auto max-w-4xl px-4 py-8 prose prose-neutral dark:prose-invert",children:(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:s}})})})}function I({filename:e,token:s}){let n=(0,d.apiUrl)(`/api/share/${s}/asset`);return(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center p-8 bg-[repeating-conic-gradient(hsl(var(--muted))_0%_25%,transparent_0%_50%)] bg-[length:20px_20px]",children:(0,t.jsx)("img",{src:n,alt:e,className:"max-w-full max-h-[80vh] object-contain rounded-sm"})})}function L({filename:e,token:s}){let n=(0,d.apiUrl)(`/api/share/${s}/asset`);return(0,t.jsx)("div",{className:"flex-1 flex flex-col min-h-0",children:(0,t.jsx)("iframe",{src:n,title:e,className:"flex-1 w-full border-0",style:{minHeight:"80vh"}})})}function P({filename:e,token:s}){let n=(0,d.apiUrl)(`/api/share/${s}/asset`),r=["mp4","webm","mov","m4v"].includes(C(e));return(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center p-8",children:r?(0,t.jsx)("video",{controls:!0,className:"max-w-full max-h-[80vh] rounded-sm",src:n}):(0,t.jsxs)("div",{className:"w-full max-w-md",children:[(0,t.jsx)("audio",{controls:!0,className:"w-full",src:n}),(0,t.jsx)("p",{className:"text-center text-sm text-muted-foreground mt-3",children:e})]})})}function W({content:e,filename:s}){let[n,r]=(0,c.useState)(!1);return(0,t.jsxs)("div",{className:"flex-1 flex flex-col min-h-0",children:[(0,t.jsx)("div",{className:"flex items-center justify-end gap-2 px-4 py-2 border-b bg-muted/30",children:(0,t.jsx)(m.Button,{variant:"ghost",size:"sm",className:"h-7 gap-1.5 text-xs",onClick:()=>r(e=>!e),children:n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.Ban,{className:"h-3.5 w-3.5"}),"Disable scripts"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.Play,{className:"h-3.5 w-3.5"}),"Enable scripts"]})})}),(0,t.jsx)("iframe",{srcDoc:e,title:s,className:"flex-1 w-full border-0 bg-white",style:{minHeight:"80vh"},sandbox:n?"allow-scripts allow-forms allow-popups allow-top-navigation-by-user-activation":"allow-forms allow-popups allow-top-navigation-by-user-activation"})]})}function D({content:e,filename:s}){let n=e.split("\n"),r=n.length,[a,i]=(0,c.useState)(r<=500),l=a?n:n.slice(0,500);return(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 border-b bg-muted/30",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:s}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[r.toLocaleString()," lines"]})]}),(0,t.jsx)("pre",{className:"text-[13px] font-mono leading-relaxed",children:(0,t.jsx)("table",{className:"w-full border-collapse",children:(0,t.jsx)("tbody",{children:l.map((e,s)=>(0,t.jsxs)("tr",{className:"hover:bg-muted/50",children:[(0,t.jsx)("td",{className:"select-none text-right pr-4 pl-4 py-0 text-muted-foreground/50 text-xs w-[1%] whitespace-nowrap align-top",children:s+1}),(0,t.jsx)("td",{className:"pr-4 py-0 whitespace-pre-wrap break-all",children:e||" "})]},s))})})}),!a&&r>500&&(0,t.jsx)("div",{className:"flex justify-center py-4 border-t",children:(0,t.jsxs)(m.Button,{size:"sm",variant:"ghost",onClick:()=>i(!0),children:["Show all ",r.toLocaleString()," lines"]})})]})})}function A({content:e}){let s=(0,c.useMemo)(()=>e.split("\n").filter(Boolean).map(e=>{let t=[],s="",n=!1;for(let r=0;r<e.length;r++){let a=e[r];'"'===a?n=!n:","!==a&&" "!==a||n?s+=a:(t.push(s.trim()),s="")}return t.push(s.trim()),t}),[e]);if(0===s.length)return null;let n=s[0],r=s.slice(1);return(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)("div",{className:"mx-auto max-w-6xl p-4",children:(0,t.jsxs)("table",{className:"w-full text-sm border-collapse",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{children:n.map((e,s)=>(0,t.jsx)("th",{className:"text-left px-3 py-2 border-b-2 border-border font-medium bg-muted/50 whitespace-nowrap",children:e},s))})}),(0,t.jsx)("tbody",{children:r.map((e,s)=>(0,t.jsx)("tr",{className:"hover:bg-muted/30",children:e.map((e,s)=>(0,t.jsx)("td",{className:"px-3 py-1.5 border-b border-border/50 whitespace-nowrap",children:e},s))},s))})]})})})}function B({filename:e,token:s}){let n=(0,d.apiUrl)(`/api/share/${s}/asset`);return(0,t.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 p-8",children:[(0,t.jsx)(i.FileText,{className:"h-12 w-12 text-muted-foreground"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e}),(0,t.jsx)("a",{href:n,download:e,children:(0,t.jsxs)(m.Button,{size:"sm",variant:"outline",className:"gap-1.5",children:[(0,t.jsx)(N.Download,{className:"h-3.5 w-3.5"}),"Download file"]})})]})}e.s(["default",0,function({params:e}){let[p,f]=(0,c.useState)(null),[w,j]=(0,c.useState)({kind:"loading"}),[v,b]=(0,c.useState)(""),[N,k]=(0,c.useState)(!1),[S,_]=(0,c.useState)(!1),[C,E]=(0,c.useState)(null),I="content"===w.kind?T(w.filename):"markdown",L=["markdown","source","text","csv","html"].includes(I),P=e=>{E(e),setTimeout(()=>E(null),2e3)},W=async()=>{if("content"===w.kind)try{await navigator.clipboard.writeText(w.content),P("raw")}catch{}},D=(0,c.useCallback)(async()=>{if(p){j({kind:"loading"});try{let e=await fetch((0,d.apiUrl)(`/api/share/${p}`)),t=await e.json();e.ok&&"string"==typeof t.content?j({kind:"content",content:t.content,filename:String(t.filename??"document"),filePath:String(t.filePath??t.filename??"document"),viewCount:"number"==typeof t.viewCount?t.viewCount:0}):401===e.status&&t.protected?j({kind:"password",message:String(t.message??"")}):410===e.status?j({kind:"error",title:"Link unavailable",message:String(t.message??"This share link is no longer available.")}):404===e.status?j({kind:"error",title:"Not found",message:"This share link does not exist."}):j({kind:"error",title:"Error",message:String(t.message??"Something went wrong. Try again later.")})}catch{j({kind:"error",title:"Connection error",message:"Could not reach the server. Check your connection."})}}},[p]);(0,c.useEffect)(()=>{e.then(e=>f(e.token))},[e]),(0,c.useEffect)(()=>{p&&D()},[p,D]);let A=async e=>{if(e.preventDefault(),v.trim()&&p){k(!0),_(!1);try{let e=await fetch((0,d.apiUrl)(`/api/share/${p}`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:v.trim()})}),t=await e.json();e.ok&&"string"==typeof t.content?j({kind:"content",content:t.content,filename:String(t.filename??"document"),filePath:String(t.filePath??t.filename??"document"),viewCount:"number"==typeof t.viewCount?t.viewCount:0}):403===e.status?(_(!0),j({kind:"password",message:"Incorrect password"})):429===e.status?j({kind:"password",message:"Too many attempts. Try again later."}):j({kind:"error",title:"Error",message:String(t.message??"Something went wrong.")})}catch{j({kind:"error",title:"Connection error",message:"Could not reach the server."})}k(!1)}};return(0,t.jsx)(h.ThemeProvider,{children:(0,t.jsxs)("div",{className:"min-h-screen flex flex-col bg-background text-foreground",children:[(0,t.jsx)("header",{className:"border-b border-border bg-muted/50",children:(0,t.jsx)("div",{className:"mx-auto flex max-w-4xl items-center gap-2 px-4 py-2",children:"content"===w.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-success shrink-0"}),(0,t.jsx)("span",{className:"text-sm truncate",title:w.filename,children:w.filename})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,t.jsxs)(m.Button,{size:"sm",variant:"ghost",className:"h-7 gap-1.5 px-2 text-xs",onClick:()=>{p&&(navigator.clipboard.writeText(`${window.location.origin}/s/${p}`),P("link"))},title:"Copy share link",children:["link"===C?(0,t.jsx)(o.Check,{className:"h-3.5 w-3.5 text-success"}):(0,t.jsx)(l.Copy,{className:"h-3.5 w-3.5"}),"Link"]}),L&&(0,t.jsxs)(m.Button,{size:"sm",variant:"ghost",className:"h-7 gap-1.5 px-2 text-xs",onClick:W,title:"Copy raw content",children:["raw"===C?(0,t.jsx)(o.Check,{className:"h-3.5 w-3.5 text-success"}):(0,t.jsx)(i.FileText,{className:"h-3.5 w-3.5"}),"Raw"]}),"markdown"===I&&(0,t.jsx)(g,{}),(0,t.jsx)(y,{}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground ml-2",children:[w.viewCount," view",1!==w.viewCount?"s":""]})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Eye,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:"Shared document"})]})})}),"loading"===w.kind&&(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,t.jsx)(a.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})}),"password"===w.kind&&(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center px-4",children:(0,t.jsx)(x.Card,{className:"max-w-sm w-full p-6",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,t.jsx)("div",{className:"rounded-full bg-muted p-3",children:(0,t.jsx)(r.Lock,{className:"h-6 w-6 text-muted-foreground"})}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-base font-medium",children:"Password required"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:w.message||"This document is password-protected."})]}),(0,t.jsxs)("form",{onSubmit:A,className:"w-full space-y-3",children:[(0,t.jsx)(u.Input,{type:"password",placeholder:"Enter password",value:v,onChange:e=>{b(e.target.value),_(!1)},autoFocus:!0}),S&&(0,t.jsxs)("p",{className:"text-xs text-destructive flex items-center gap-1",children:[(0,t.jsx)(s.AlertCircle,{className:"h-3 w-3"}),"Wrong password. Try again."]}),(0,t.jsx)(m.Button,{type:"submit",className:"w-full",disabled:N||!v.trim(),children:N?(0,t.jsx)(a.Loader2,{className:"h-4 w-4 animate-spin"}):"View document"})]})]})})}),"error"===w.kind&&(0,t.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 px-4 text-center",children:[(0,t.jsx)("div",{className:"rounded-full bg-muted p-3",children:(0,t.jsx)(s.AlertCircle,{className:"h-6 w-6 text-muted-foreground"})}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-base font-medium",children:w.title}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:w.message})]})]}),"content"===w.kind&&(0,t.jsx)(O,{content:w.content,filename:w.filename,filePath:w.filePath,token:p}),"content"===w.kind&&(0,t.jsx)("footer",{className:"border-t border-border bg-muted/30",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-4xl items-center gap-2 px-4 py-2",children:[(0,t.jsx)(i.FileText,{className:"h-3 w-3 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:w.filename})]})})]})})}],670977)}]);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.next/standalone/.next/static/media/3ZLMEXZEQPLTEPMHTQDAUXP5ZZXCZAEN-s.p.0hfk9k1kkjsdy.woff2
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.next/standalone/.next/static/media/433XP6QWDVL6KQ5K7ZCOP524TX4LE4RJ-s.p.13or5lok2-922.woff2
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.next/standalone/.next/static/media/6KRVTMHEY26GBVOWXYL6F3ZLGUXE5ZD5-s.p.0xh3vtwj392i-.woff2
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.next/standalone/.next/static/media/7AHDUZ4A7LFLVFUIFSARGIWCRQJHISQP-s.p.0hq2a81xn4_re.woff2
ADDED
|
Binary file
|
package/.next/standalone/.next/static/media/7YY3ZAAE3TRV2LANYOLXNHTPHLXVWTKH-s.p.0aqd04_idyb6d.woff2
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.next/standalone/.next/static/media/GHM6WVH6MILNYOOCXHXB5GTSGNTMGXZR-s.p.0yt9gwi-.i49f.woff2
ADDED
|
Binary file
|
package/.next/standalone/.next/static/media/J64QX5IPOHK56I2KYUNBQ5M2XWZEYKYX-s.p.0mxjq567rs1on.woff2
ADDED
|
Binary file
|
package/.next/standalone/.next/static/media/KFIAZD4RUMEZIYV6FQ3T3GP5PDBDB6JY-s.p.049.kwhs-b7lf.woff2
ADDED
|
Binary file
|
package/.next/standalone/.next/static/media/NIQ54PVBBIWVK3PFSOIOUJSXIJ5WTNDP-s.p.0-mpnqa_q7f0-.woff2
ADDED
|
Binary file
|
package/.next/standalone/.next/static/media/ODDSCHC7OZCRRQJDJV5LMJKTGF7URFO4-s.p.0ti.-5ju6w580.woff2
ADDED
|
Binary file
|
package/.next/standalone/.next/static/media/RMBKFTS6UFOXVBCL3EVCXLWRQBA3PN4K-s.p.0udd26.7.3pmc.woff2
ADDED
|
Binary file
|
package/.next/standalone/.next/static/media/RNUZPHMIVMPXFHVACRGCAJ32E6WUEDVU-s.p.0h80ym842138e.woff2
ADDED
|
Binary file
|
package/.next/standalone/.next/static/media/SB2OEB6IKZPRR6JT4GFJ2TFT6HBB6AZN-s.p.0rb3ehjtk_okh.woff2
ADDED
|
Binary file
|
package/.next/standalone/.next/static/media/SIH66VPT4WS2HIF5PEJNDU4INNUF54LG-s.p.08_1ce4x9brpn.woff2
ADDED
|
Binary file
|
package/.next/standalone/.next/static/media/TW4KNQIPR4LNP4I6I6C6HKQ23B2EQAU5-s.p.02kr7k5v_8hxa.woff2
ADDED
|
Binary file
|
package/.next/standalone/.next/static/media/UMQTMTAEPCAFNEJDVEURBIXJENGOHOWO-s.p.0~8tz_97dla0z.woff2
ADDED
|
Binary file
|
package/.next/standalone/.next/static/media/WNDVG7O66ENLOD43GS7FBUCC4KMT5OM2-s.p.0lx670_9j82xu.woff2
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -23,7 +23,12 @@ const nextConfig: NextConfig = {
|
|
|
23
23
|
experimental: {
|
|
24
24
|
optimizePackageImports: ["lucide-react"],
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
// Extra origins allowed to hit the dev server (e.g. LAN IPs used to test
|
|
27
|
+
// from another device). Override via NEXT_ALLOWED_DEV_ORIGINS, a
|
|
28
|
+
// comma-separated list, without editing this file.
|
|
29
|
+
allowedDevOrigins: process.env.NEXT_ALLOWED_DEV_ORIGINS
|
|
30
|
+
? process.env.NEXT_ALLOWED_DEV_ORIGINS.split(",").map((o) => o.trim()).filter(Boolean)
|
|
31
|
+
: ["localhost"],
|
|
27
32
|
// Block framing on all routes by default. Same-origin framing for nested
|
|
28
33
|
// /api/assets and /api/app-proxy iframes still works because the host is now
|
|
29
34
|
// same-origin (X-Frame-Options: SAMEORIGIN permits same-origin ancestors).
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -15,7 +15,7 @@ const currentPort = parseInt(process.env.PORT, 10) || 3000
|
|
|
15
15
|
const hostname = process.env.HOSTNAME || '0.0.0.0'
|
|
16
16
|
|
|
17
17
|
let keepAliveTimeout = parseInt(process.env.KEEP_ALIVE_TIMEOUT, 10)
|
|
18
|
-
const nextConfig = {"env":{"NEXT_PUBLIC_APP_VERSION":"2.
|
|
18
|
+
const nextConfig = {"env":{"NEXT_PUBLIC_APP_VERSION":"2.11.0"},"webpack":null,"typescript":{"ignoreBuildErrors":false},"typedRoutes":false,"distDir":"./.next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.ts","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"poweredByHeader":true,"compress":true,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":14400,"formats":["image/webp"],"maximumRedirects":3,"maximumResponseBody":50000000,"dangerouslyAllowLocalIP":false,"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"attachment","localPatterns":[{"pathname":"**","search":""}],"remotePatterns":[],"qualities":[75],"unoptimized":true,"customCacheHandler":false},"devIndicators":{"position":"bottom-left"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"excludeDefaultMomentLocales":true,"reactProductionProfiling":false,"reactStrictMode":null,"reactMaxHeadersLength":6000,"httpAgentOptions":{"keepAlive":true},"logging":{"serverFunctions":true,"browserToTerminal":"warn"},"compiler":{},"expireTime":31536000,"staticPageGenerationTimeout":60,"output":"standalone","modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"}},"outputFileTracingRoot":"/home/runner/work/wiki-viewer/wiki-viewer","allowedDevOrigins":["localhost"],"cacheComponents":false,"cacheLife":{"default":{"stale":300,"revalidate":900,"expire":4294967294},"seconds":{"stale":30,"revalidate":1,"expire":60},"minutes":{"stale":300,"revalidate":60,"expire":3600},"hours":{"stale":300,"revalidate":3600,"expire":86400},"days":{"stale":300,"revalidate":86400,"expire":604800},"weeks":{"stale":300,"revalidate":604800,"expire":2592000},"max":{"stale":300,"revalidate":2592000,"expire":31536000}},"cacheHandlers":{},"experimental":{"appNewScrollHandler":false,"useSkewCookie":false,"cssChunking":true,"multiZoneDraftMode":false,"appNavFailHandling":false,"prerenderEarlyExit":true,"serverMinification":true,"linkNoTouchStart":false,"caseSensitiveRoutes":false,"cachedNavigations":false,"partialFallbacks":false,"dynamicOnHover":false,"varyParams":false,"prefetchInlining":false,"preloadEntriesOnStart":true,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","proxyPrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":3,"memoryBasedWorkersCount":false,"imgOptConcurrency":null,"imgOptTimeoutInSeconds":7,"imgOptMaxInputPixels":268402689,"imgOptSequentialRead":null,"imgOptSkipMetadata":null,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":false,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"swcTraceProfiling":false,"forceSwcTransforms":false,"largePageDataBytes":128000,"typedEnv":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"authInterrupts":false,"webpackMemoryOptimizations":false,"optimizeServerReact":true,"strictRouteTypes":false,"viewTransition":false,"removeUncaughtErrorAndRejectionListeners":false,"validateRSCRequestHeaders":false,"staleTimes":{"dynamic":0,"static":300},"reactDebugChannel":true,"serverComponentsHmrCache":true,"staticGenerationMaxConcurrency":8,"staticGenerationMinPagesPerWorker":25,"transitionIndicator":false,"gestureTransition":false,"inlineCss":false,"useCache":false,"globalNotFound":false,"browserDebugInfoInTerminal":"warn","lockDistDir":true,"proxyClientMaxBodySize":10485760,"hideLogsAfterAbort":false,"mcpServer":true,"turbopackFileSystemCacheForDev":true,"turbopackFileSystemCacheForBuild":false,"turbopackInferModuleSideEffects":true,"turbopackPluginRuntimeStrategy":"childProcesses","optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","effect","@effect/schema","@effect/platform","@effect/platform-node","@effect/platform-browser","@effect/platform-bun","@effect/sql","@effect/sql-mssql","@effect/sql-mysql2","@effect/sql-pg","@effect/sql-sqlite-node","@effect/sql-sqlite-bun","@effect/sql-sqlite-wasm","@effect/sql-sqlite-react-native","@effect/rpc","@effect/rpc-http","@effect/typeclass","@effect/experimental","@effect/opentelemetry","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"trustHostHeader":false,"isExperimentalCompile":false},"htmlLimitedBots":"[\\w-]+-Google|Google-[\\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight","bundlePagesRouterDependencies":false,"configFileName":"next.config.ts","turbopack":{"root":"/home/runner/work/wiki-viewer/wiki-viewer"},"distDirRoot":".next"}
|
|
19
19
|
|
|
20
20
|
process.env.__NEXT_PRIVATE_STANDALONE_CONFIG = JSON.stringify(nextConfig)
|
|
21
21
|
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[521290,a=>{a.v({className:"inter_5901b7c6-module__ec5Qua__className",variable:"inter_5901b7c6-module__ec5Qua__variable"})},189980,a=>{a.v({className:"fraunces_b92072b0-module__sw6Q8q__className",variable:"fraunces_b92072b0-module__sw6Q8q__variable"})},840823,a=>{a.v({className:"newsreader_c4814ff8-module__L-7Q2W__className",variable:"newsreader_c4814ff8-module__L-7Q2W__variable"})},706459,a=>{a.v({className:"ibm_plex_mono_120c816a-module__Ikjzxa__className",variable:"ibm_plex_mono_120c816a-module__Ikjzxa__variable"})},451344,a=>{"use strict";a.s(["Toaster",()=>c,"toast",()=>d,"useSonner",()=>e]);var b=a.i(413981);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Toaster() from the server but Toaster is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/sonner@2.0.7_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/sonner/dist/index.mjs <module evaluation>","Toaster"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call toast() from the server but toast is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/sonner@2.0.7_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/sonner/dist/index.mjs <module evaluation>","toast"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call useSonner() from the server but useSonner is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/sonner@2.0.7_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/sonner/dist/index.mjs <module evaluation>","useSonner")},508023,a=>{"use strict";a.s(["Toaster",()=>c,"toast",()=>d,"useSonner",()=>e]);var b=a.i(413981);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Toaster() from the server but Toaster is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/sonner@2.0.7_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/sonner/dist/index.mjs","Toaster"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call toast() from the server but toast is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/sonner@2.0.7_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/sonner/dist/index.mjs","toast"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call useSonner() from the server but useSonner is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/.pnpm/sonner@2.0.7_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/sonner/dist/index.mjs","useSonner")},980742,a=>{"use strict";a.i(451344);var b=a.i(508023);a.n(b)},144666,a=>{"use strict";a.s(["ThemeProvider",()=>b]);let b=(0,a.i(413981).registerClientReference)(function(){throw Error("Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/components/theme-provider.tsx <module evaluation>","ThemeProvider")},425790,a=>{"use strict";a.s(["ThemeProvider",()=>b]);let b=(0,a.i(413981).registerClientReference)(function(){throw Error("Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/components/theme-provider.tsx","ThemeProvider")},1788,a=>{"use strict";a.i(144666);var b=a.i(425790);a.n(b)},827572,a=>{"use strict";var b=a.i(616842),c=a.i(521290);let d={className:c.default.className,style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"}};null!=c.default.variable&&(d.variable=c.default.variable);var e=a.i(189980);let f={className:e.default.className,style:{fontFamily:"'Fraunces', 'Fraunces Fallback'",fontStyle:"normal"}};null!=e.default.variable&&(f.variable=e.default.variable);var g=a.i(840823);let h={className:g.default.className,style:{fontFamily:"'Newsreader', 'Newsreader Fallback'"}};null!=g.default.variable&&(h.variable=g.default.variable);var i=a.i(706459);let j={className:i.default.className,style:{fontFamily:"'IBM Plex Mono', 'IBM Plex Mono Fallback'",fontStyle:"normal"}};null!=i.default.variable&&(j.variable=i.default.variable);var k=a.i(980742),l=a.i(1788);function m(a){if(!a.startsWith("/"))return a;let b=process.env.WIKI_URL_PREFIX??"";return!b||a.startsWith(b+"/")||a===b?a:b+a}a.s(["default",0,function({children:a}){return(0,b.jsxs)("html",{lang:"en",suppressHydrationWarning:!0,children:[(0,b.jsxs)("head",{children:[(0,b.jsx)("script",{dangerouslySetInnerHTML:{__html:`window.__WIKI_PREFIX=${JSON.stringify(process.env.WIKI_URL_PREFIX??"")};window.__WIKI_LITE=${"1"===process.env.WIKI_LITE};`}}),(0,b.jsx)("script",{dangerouslySetInnerHTML:{__html:"(function(){try{var s=localStorage.getItem('wiki-skin');if(s!=='default'){document.documentElement.setAttribute('data-skin','editorial');}}catch(e){}})();"}})]}),(0,b.jsx)("body",{className:`${d.variable} ${f.variable} ${h.variable} ${j.variable} font-sans antialiased`,children:(0,b.jsxs)(l.ThemeProvider,{children:[a,(0,b.jsx)(k.Toaster,{theme:"system",position:"bottom-right",toastOptions:{className:"border-border bg-card text-card-foreground"}})]})})]})},"dynamic",0,"force-dynamic","generateMetadata",0,function(){return{title:"Wiki Viewer",description:"Local file browser, viewer, and editor",manifest:m("/manifest.webmanifest"),appleWebApp:{capable:!0,title:"Wiki",statusBarStyle:"black-translucent"},icons:{icon:m("/icon-192.png"),apple:m("/icon-192.png")}}},"viewport",0,{themeColor:"#0c0a09",width:"device-width",initialScale:1}],827572)},650645,a=>{a.n(a.i(827572))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0txwwn-._.js.map
|