@jant/core 0.3.40 → 0.3.42
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 +21 -34
- package/bin/commands/assets/upload.js +247 -0
- package/bin/commands/collections.js +268 -0
- package/bin/commands/import-site.js +1169 -343
- package/bin/commands/media.js +302 -0
- package/bin/commands/migrate-text-attachments.js +183 -0
- package/bin/commands/migrate.js +263 -2
- package/bin/commands/posts.js +262 -0
- package/bin/commands/search.js +53 -0
- package/bin/commands/settings.js +93 -0
- package/bin/commands/site/export.js +34 -33
- package/bin/commands/site/{localize-media.js → pull-media.js} +17 -17
- package/bin/lib/d1-query.js +15 -3
- package/bin/lib/http-api.js +223 -0
- package/bin/lib/media-upload.js +206 -0
- package/bin/lib/migration-runner.js +64 -0
- package/bin/lib/runtime-target.js +7 -2
- package/bin/lib/site-media-parser.js +71 -16
- package/bin/lib/site-pull-media.js +698 -0
- package/bin/lib/site-snapshot.js +0 -1
- package/dist/{app-CAtsuLLh.js → app-Cu3lveYI.js} +23768 -23057
- package/dist/app-DzCB4yOp.js +5 -0
- package/dist/client/.vite/manifest.json +3485 -0
- package/dist/client/_assets/chunks/02611a045a7fe83a12014e3debc9f731-BqEDtwXC.woff2 +0 -0
- package/dist/client/_assets/chunks/033466ef683afe931f7f520cfb42d928-BluLHEh9.woff2 +0 -0
- package/dist/client/_assets/chunks/04b8bde59cff68eeee74fb1914eb09c7-D5j2CLTt.woff2 +0 -0
- package/dist/client/_assets/chunks/057a6a98bda7fe57105ddaa99ec82015-DY_AoijT.woff2 +0 -0
- package/dist/client/_assets/chunks/05ac821472e235943ed1435e4bb8ecad-CUm8GiH6.woff2 +0 -0
- package/dist/client/_assets/chunks/05da12edb9d52210581dc6ec4541031f-BXAOx2XP.woff2 +0 -0
- package/dist/client/_assets/chunks/074c1f8483d5a4d8c45c8c5f3e4cbb32-CDqdMQm8.woff2 +0 -0
- package/dist/client/_assets/chunks/0968e4861204b51f62a2f8e9f15dd5e0-D5tLgF_8.woff2 +0 -0
- package/dist/client/_assets/chunks/0acd1fe2b2ea1ad1bfee7ae1fa139d27-BKK1m412.woff2 +0 -0
- package/dist/client/_assets/chunks/0c2ab6b295e55f356f8020d4e7747522-CkCQjQw3.woff2 +0 -0
- package/dist/client/_assets/chunks/0c5f9492af03a4fa42c784de94649de1-CQlJqksa.woff2 +0 -0
- package/dist/client/_assets/chunks/0d5dec931dc885f07fe5cd5af8bed675-C74x-U_U.woff2 +0 -0
- package/dist/client/_assets/chunks/0d9a936885a4c39077438effd3779cbd-Bw0fYF4S.woff2 +0 -0
- package/dist/client/_assets/chunks/0e645da524f7cfc0e8c3c03fb2b08428-BVeI_5Th.woff2 +0 -0
- package/dist/client/_assets/chunks/0f5e1a18987dbc84ca05188c129e1936-B6_lZ6fE.woff2 +0 -0
- package/dist/client/_assets/chunks/1076f0f6f66d28d7a2f16427faad4413-ubiXnD1P.woff2 +0 -0
- package/dist/client/_assets/chunks/112743a4ab5fdd1498dfdf2b11336380-B5FzQxTK.woff2 +0 -0
- package/dist/client/_assets/chunks/1211f03d3ff5759a702631445793f60e-DDcSiyCt.woff2 +0 -0
- package/dist/client/_assets/chunks/12ef1ba76bd20b004b865266a1aa70b3-BwmaD87S.woff2 +0 -0
- package/dist/client/_assets/chunks/135e83b403475c5dc9e49b43501a5b84-C5mE_KZS.woff2 +0 -0
- package/dist/client/_assets/chunks/1380210a722ac9aeef54005ad7b015c9-CjA-MP82.woff2 +0 -0
- package/dist/client/_assets/chunks/13b2c53b30e6a3e4de7132dbc18dbdfc-B9WOB7kv.woff2 +0 -0
- package/dist/client/_assets/chunks/147b24c2f08d03bbed30887d4cb3311c-IeeFCJ13.woff2 +0 -0
- package/dist/client/_assets/chunks/152395634a207579552f8cb54db88599-C2y2JyNZ.woff2 +0 -0
- package/dist/client/_assets/chunks/15d95680dc31cc6ce20e0a5464106dc4-CpD8dqRm.woff2 +0 -0
- package/dist/client/_assets/chunks/16663e567f81f4725a1522f37e18f71f-BNoxS9pQ.woff2 +0 -0
- package/dist/client/_assets/chunks/1733f27476507ca68b68a803bc533cc2-DXL-14Ug.woff2 +0 -0
- package/dist/client/_assets/chunks/17c7f5d0a45e92ede0e5dec3a2c77efa-CNj3jQMl.woff2 +0 -0
- package/dist/client/_assets/chunks/1824321da801e6257b902f3d1d09054c-D4dgdyWB.woff2 +0 -0
- package/dist/client/_assets/chunks/188c2db794f3dd7a45889ddbc81da9bb-C9NbUBBO.woff2 +0 -0
- package/dist/client/_assets/chunks/1a08931435f885e707edb85978ea3bb6-BOiP2u7G.woff2 +0 -0
- package/dist/client/_assets/chunks/1a3a92c7c060a71a6c35819b9ebcdbb9-DFfonQfz.woff2 +0 -0
- package/dist/client/_assets/chunks/1be602ad456b0d75902d352116cb35fd-Bc-XQtQh.woff2 +0 -0
- package/dist/client/_assets/chunks/1cf737900dd49c2e88f1b3221a82a602-CfTmnns3.woff2 +0 -0
- package/dist/client/_assets/chunks/1fba7ec0e412e911bf31841de5a8a4e4-18ELMbFF.woff2 +0 -0
- package/dist/client/_assets/chunks/233d3a685ee18276b319363474599d47-BaFdJ0-G.woff2 +0 -0
- package/dist/client/_assets/chunks/2612c60f9dc5459ac42763591240a1d6-CTD69cq1.woff2 +0 -0
- package/dist/client/_assets/chunks/284b53bbefb06924cf236d24c8ed5641-CPDiuOv6.woff2 +0 -0
- package/dist/client/_assets/chunks/28a97af9ab9d38983d20f39ff09840e1-mFqcT3Jw.woff2 +0 -0
- package/dist/client/_assets/chunks/2a56eaf19d1d38a6b57e2a388f733676-CU52qBlE.woff2 +0 -0
- package/dist/client/_assets/chunks/2ab8cf1f23a5ac7939a7876054e711a7-B4T3dK7A.woff2 +0 -0
- package/dist/client/_assets/chunks/2abfbab82b6a7c04426afc054d2464da-D5PIIHde.woff2 +0 -0
- package/dist/client/_assets/chunks/2bfaadaf3479c72286248e6de0be0ec9-DEpU6O74.woff2 +0 -0
- package/dist/client/_assets/chunks/2c8c55e4cec85ce77e95cac9d330f5cf-BCTA96EZ.woff2 +0 -0
- package/dist/client/_assets/chunks/2e6f4bb71ef6b38765d51acc5a79f638-Mbs6PECD.woff2 +0 -0
- package/dist/client/_assets/chunks/2ed9981d2e8983365bd051159b976b6d-D8gg6NWM.woff2 +0 -0
- package/dist/client/_assets/chunks/2f4c633e923ba30c6ba376367379fc91-CIJCFztv.woff2 +0 -0
- package/dist/client/_assets/chunks/31194d303a67561926a544ed0e072aee-w3-eGYAi.woff2 +0 -0
- package/dist/client/_assets/chunks/31a197213ae61d7043c81013f52d10d6-DXZrrkJP.woff2 +0 -0
- package/dist/client/_assets/chunks/349965eee0a9b6c984a319ab96a4ece9-DByAVmXw.woff2 +0 -0
- package/dist/client/_assets/chunks/34e6750e00c3a911ef87dc66b336594d-DNbWesOu.woff2 +0 -0
- package/dist/client/_assets/chunks/3623d96698132c61e861f984ce11cc23-jqV9ErzX.woff2 +0 -0
- package/dist/client/_assets/chunks/36cda3eae13370b934bba4429fab9078-BPDcUlw9.woff2 +0 -0
- package/dist/client/_assets/chunks/36f3df4730cfca4fc77fe52b52e6a126-BwK10NC0.woff2 +0 -0
- package/dist/client/_assets/chunks/37887deb7a9c466cf2af6ee7ff372ea6-BrAerJB1.woff2 +0 -0
- package/dist/client/_assets/chunks/37dbd564820cce2f7b3331e442da0df3-Cql2kzIi.woff2 +0 -0
- package/dist/client/_assets/chunks/37dc8505b20b37a2477a9121b16d44a7-CoXw6XWV.woff2 +0 -0
- package/dist/client/_assets/chunks/39211b02f24c69cbd1b54f6d41b01933-4Xu7vvnq.woff2 +0 -0
- package/dist/client/_assets/chunks/3aa13f1843d7c8fa16109b6395a9a29d-BQFZUc3B.woff2 +0 -0
- package/dist/client/_assets/chunks/3aba89c4d4281553078de4622b498cbb-8QS1zDYk.woff2 +0 -0
- package/dist/client/_assets/chunks/3ac0a07878cacdc98bb889f40f5970d3-C-BaM6-y.woff2 +0 -0
- package/dist/client/_assets/chunks/3d88558097559d775231194d43745ba7-CR2aqGC7.woff2 +0 -0
- package/dist/client/_assets/chunks/3dc3e8c35524cad2d1236f3393104ccf-9sqBsF7B.woff2 +0 -0
- package/dist/client/_assets/chunks/3e24063b19abd2b051af986a6870046d-TlweM3SW.woff2 +0 -0
- package/dist/client/_assets/chunks/3e2c06bdd9dcab29aeaeb0cfb7fa608a-BaqU-dIt.woff2 +0 -0
- package/dist/client/_assets/chunks/424123f9371ba357087363263eeafcda-C8SVfEJi.woff2 +0 -0
- package/dist/client/_assets/chunks/43b3bbf43055c3e65db9cdf2c5b18c1c-CbHx6-Ki.woff2 +0 -0
- package/dist/client/_assets/chunks/4410f876d27c9821839474b6b1059fd7-ClYz91aY.woff2 +0 -0
- package/dist/client/_assets/chunks/44704471b60c18b3ecec5300a88f1102-DDmmy6-m.woff2 +0 -0
- package/dist/client/_assets/chunks/45140742dfa8686b58db2899ce89f89a-D5IMMzDM.woff2 +0 -0
- package/dist/client/_assets/chunks/46604090efbb99c2db1800928af0a239-JX2fpYX_.woff2 +0 -0
- package/dist/client/_assets/chunks/46998df85d31e629c0142f0556f5e7c5-BIkNG9Wh.woff2 +0 -0
- package/dist/client/_assets/chunks/469d2754e315e77270c12fa0ab28026c-D-y-vsfA.woff2 +0 -0
- package/dist/client/_assets/chunks/479329a39a3eb6c0047e6b0981919855-vZKCRx42.woff2 +0 -0
- package/dist/client/_assets/chunks/491bbba374093fff045f55803a22bfef-DSQXiDCd.woff2 +0 -0
- package/dist/client/_assets/chunks/49902f1c41b281f8eb3771abdd4dccb8-DxVxNg2W.woff2 +0 -0
- package/dist/client/_assets/chunks/4c0760284569b87d8f2290c324953973-Bqd-TKHH.woff2 +0 -0
- package/dist/client/_assets/chunks/4cba92c942694bdc479bc54101bb1aa4-BrfsrgrC.woff2 +0 -0
- package/dist/client/_assets/chunks/4d38e56738156625329d93bd5c8cc74a-DONkMP0y.woff2 +0 -0
- package/dist/client/_assets/chunks/4db4f31a16965baa42cb7dad667a8f04-Dt1Cy4gr.woff2 +0 -0
- package/dist/client/_assets/chunks/4e7d263c30bb48604069a3b4404d4eeb-DNPCkvKD.woff2 +0 -0
- package/dist/client/_assets/chunks/5279c7e465d9871edf51fd02e691eee7-CKhyhvVf.woff2 +0 -0
- package/dist/client/_assets/chunks/527ff336279465617aafbafe1a830632-CC3lv4pm.woff2 +0 -0
- package/dist/client/_assets/chunks/54bfdb6f21f9d6191e5100580239e14f-PGlqYvgl.woff2 +0 -0
- package/dist/client/_assets/chunks/56b40518ea0608e62826bd44ee27f5f9-BD9F9Oss.woff2 +0 -0
- package/dist/client/_assets/chunks/56be5e32fd01668fe5ba814d94905839-CSyFA-9l.woff2 +0 -0
- package/dist/client/_assets/chunks/572b9e28f1e6d89b765a16d809db84a1-BIYMjzEa.woff2 +0 -0
- package/dist/client/_assets/chunks/57e9a86651366c1ba299e47aa7e358c2-BHuZXB4W.woff2 +0 -0
- package/dist/client/_assets/chunks/57f89adeae55aa7fe2add3fc1801ce03-Cy3PNrfx.woff2 +0 -0
- package/dist/client/_assets/chunks/5921cef36750ff6092d94b83a802823b-hF-uymTh.woff2 +0 -0
- package/dist/client/_assets/chunks/59e95d8b5332dcdae894a19946ab767d-ClRfsjWZ.woff2 +0 -0
- package/dist/client/_assets/chunks/5acc7f736217259db79a42bf44241c48-FYQUuFOM.woff2 +0 -0
- package/dist/client/_assets/chunks/5c05f8b75c9d7f25b3c04ca711cf43b3-D-YWPkSq.woff2 +0 -0
- package/dist/client/_assets/chunks/5df9ce98c75f8c50fb4fff7f01a23925-DgoCENyW.woff2 +0 -0
- package/dist/client/_assets/chunks/5e0124c7265f1b4cf0fc797b94efbebc-BTBNHsSB.woff2 +0 -0
- package/dist/client/_assets/chunks/5ec349ff62b9ee5fe0c6dae867704dc4-B4dezhrz.woff2 +0 -0
- package/dist/client/_assets/chunks/60020a830d809c26970cf8e48ba1eeda-B6FDTSik.woff2 +0 -0
- package/dist/client/_assets/chunks/601f812e8b1eafecd5ba585a6a6d7962-gIVBlUU9.woff2 +0 -0
- package/dist/client/_assets/chunks/6025ddaf99d86cc8bfd781006b19fbd6-CS-ze337.woff2 +0 -0
- package/dist/client/_assets/chunks/60bcfa3ea7446eb42394aab02d28be40-C-PQfCu3.woff2 +0 -0
- package/dist/client/_assets/chunks/60f6e28b3f0400b0e8fe32c3c7116102-Dag9L2qU.woff2 +0 -0
- package/dist/client/_assets/chunks/615a7e0d63f257109d599b2a1977de68-D6Y93yoG.woff2 +0 -0
- package/dist/client/_assets/chunks/615b38e0b5bb3ea68426f44f47706e6f-B5yzIIer.woff2 +0 -0
- package/dist/client/_assets/chunks/61a2c80d0c924d5a6187c02e8d1d1642-BY3MmHbZ.woff2 +0 -0
- package/dist/client/_assets/chunks/62fc94f8d4c5a750b7f25e7387539910-3ql2_WDK.woff2 +0 -0
- package/dist/client/_assets/chunks/639c7c6b0b0c27c738702741cfa4b8c0-BCD3OGri.woff2 +0 -0
- package/dist/client/_assets/chunks/63fafcb069520613d0ea35ad3e6b1e42-DP0Rrj4o.woff2 +0 -0
- package/dist/client/_assets/chunks/64a404d675f1d726f0891b7a80794595-DU3L0I9s.woff2 +0 -0
- package/dist/client/_assets/chunks/65a60d87c64228d258a123cbe85f5f31-B4kbf-79.woff2 +0 -0
- package/dist/client/_assets/chunks/65e9c4585d71bf48a5c62f367010da16-CvzgzReN.woff2 +0 -0
- package/dist/client/_assets/chunks/68a3a4bf337f8a0722be76676e20b850-Dnaw8EPD.woff2 +0 -0
- package/dist/client/_assets/chunks/6968e889e18891d912809fe484c2e745-Bj1m5e0s.woff2 +0 -0
- package/dist/client/_assets/chunks/6abdd163d2c4b85698db8aa1ce149361-B5FVGJuo.woff2 +0 -0
- package/dist/client/_assets/chunks/6b75213eb0be40ce84241eb2bb438a2e-CqHmF-NR.woff2 +0 -0
- package/dist/client/_assets/chunks/70714891ad3fbfc3d5f10a8669dacc5a-BWk5nLFN.woff2 +0 -0
- package/dist/client/_assets/chunks/7158022889c6c177062ac85036e7af10-B3D4K22n.woff2 +0 -0
- package/dist/client/_assets/chunks/73b794d885b88f7befb7ea8ab1780a15-D0ZehnEI.woff2 +0 -0
- package/dist/client/_assets/chunks/743f290baf027d4626a86e22f3d44600-DDTDQdRC.woff2 +0 -0
- package/dist/client/_assets/chunks/7520ca6ca8c60eb1e62d50e71c8d30f1-CVRaGu2G.woff2 +0 -0
- package/dist/client/_assets/chunks/757019c01c5e2c2b0f54293cea3b5636-BTovUnoH.woff2 +0 -0
- package/dist/client/_assets/chunks/759a647b77791b1e98f99bc0ab5317a7-CrK6FIFz.woff2 +0 -0
- package/dist/client/_assets/chunks/761d84afca8d7f34eebefe538adba827-DRbiVuwX.woff2 +0 -0
- package/dist/client/_assets/chunks/76e07530323418ec723c5d7634c9bcca-DGtVJTTH.woff2 +0 -0
- package/dist/client/_assets/chunks/76e51630143b95b6322ef93ad330da7a-D-kV82C_.woff2 +0 -0
- package/dist/client/_assets/chunks/76f117a3baacda304a71965a17266a13-DFfvsFUm.woff2 +0 -0
- package/dist/client/_assets/chunks/773819b7b9b8fd404a929867c0fd677e-Bu1xCMZb.woff2 +0 -0
- package/dist/client/_assets/chunks/77747f17625a259fb405b7bbdd84ac4b-o_vNfh-6.woff2 +0 -0
- package/dist/client/_assets/chunks/7817dd16805145d8538ad57590f69f5a-DguSUP3O.woff2 +0 -0
- package/dist/client/_assets/chunks/788498548ddfb710d6ef3c7bff79fa97-3ffoQfRd.woff2 +0 -0
- package/dist/client/_assets/chunks/78ea6c40923ce95367e3517dd1e5a849-DvLDRhX9.woff2 +0 -0
- package/dist/client/_assets/chunks/79aa7c8c842c4a27cf57c0a3a1ffca5a-sDoCeoKI.woff2 +0 -0
- package/dist/client/_assets/chunks/7b59f0ec7792b18458dc5a361e37884c-DWvxkKmT.woff2 +0 -0
- package/dist/client/_assets/chunks/7c3945788a689a69356c1a622d69d48b-1JjIpss2.woff2 +0 -0
- package/dist/client/_assets/chunks/7cc72fd2c9105560422b6a67c6162945-Co3AF5_G.woff2 +0 -0
- package/dist/client/_assets/chunks/7d0ea0690e432462f4d05a23d720ec19-Dx7DK4C3.woff2 +0 -0
- package/dist/client/_assets/chunks/7dffa5c1bec57e0903fd62357401ff1a-DuQHmiiN.woff2 +0 -0
- package/dist/client/_assets/chunks/7e38ca789a9e76ac91d9256374e154f0-BtETgGRe.woff2 +0 -0
- package/dist/client/_assets/chunks/7f9a6c9286b68de9c72b0024f7beeb40-JpXdo4FC.woff2 +0 -0
- package/dist/client/_assets/chunks/815a0b797465190f60d8b1a04656c42e-Spzo94nU.woff2 +0 -0
- package/dist/client/_assets/chunks/823d1bb11097331238d103c7f72138dc-CGN6m2VF.woff2 +0 -0
- package/dist/client/_assets/chunks/82f6ccc063960eed1cdfd1d61ada8862-CsmAqx2a.woff2 +0 -0
- package/dist/client/_assets/chunks/835b6505bb9eea9678925a1fa885353d-C6mSBwUc.woff2 +0 -0
- package/dist/client/_assets/chunks/845b4b67564d62cf5cad242f7ac08ea5-DnvzrloJ.woff2 +0 -0
- package/dist/client/_assets/chunks/84c8e7bc0931008ed91f44ed12dfea94-C2Hvhh-b.woff2 +0 -0
- package/dist/client/_assets/chunks/8726558cf297cbda831cc19514897205-gSFV1vW0.woff2 +0 -0
- package/dist/client/_assets/chunks/8855472f3c02f6c7ebb3216617ebe4af-C1JsWVqq.woff2 +0 -0
- package/dist/client/_assets/chunks/887a11290ba78b1e66c6d2f67043005e-L_A1f5Fz.woff2 +0 -0
- package/dist/client/_assets/chunks/888ba53510213d5d1f6a7deb60e569b6-OP8E-ELN.woff2 +0 -0
- package/dist/client/_assets/chunks/88db1d042074fb6e66821ffc10941930-kZ6K3e62.woff2 +0 -0
- package/dist/client/_assets/chunks/892aa49b2529c89bb4076d4aa51fe30f-Bw0_Km2A.woff2 +0 -0
- package/dist/client/_assets/chunks/8b5c9ef81159f31d2ab35f45ca4373e0-Djw95sKC.woff2 +0 -0
- package/dist/client/_assets/chunks/8b91c7c2ed390f1278b9befa3aa87233-B2C3iFbQ.woff2 +0 -0
- package/dist/client/_assets/chunks/8dc18c0cebe6aa4bf4c45dbb831048ab-bUlANLit.woff2 +0 -0
- package/dist/client/_assets/chunks/8e231d707f0c4f8e3cde90a6b52a79aa-CvwbWlul.woff2 +0 -0
- package/dist/client/_assets/chunks/8fb45117a62d92dce44a80f0b729ead5-Djr4-o5-.woff2 +0 -0
- package/dist/client/_assets/chunks/9064c12fd72c7aba235d8c3881755b91-BnguxT-p.woff2 +0 -0
- package/dist/client/_assets/chunks/90b7848e9b1623b77bdcf155e90b839c-CFvPRnoM.woff2 +0 -0
- package/dist/client/_assets/chunks/911b9e53e9814de2998c60bf3115f560-DmPmj635.woff2 +0 -0
- package/dist/client/_assets/chunks/919a879bd2d580d8491a31a449390689-BY2w-8_Y.woff2 +0 -0
- package/dist/client/_assets/chunks/91da6cb174bebfb96976e2f1316be2fe-DztAJb6W.woff2 +0 -0
- package/dist/client/_assets/chunks/92fdc376bce277874e75db666f175b44-DJUnHEIN.woff2 +0 -0
- package/dist/client/_assets/chunks/930a23430f0eb64480d7fe5f82834e21-2VrDPT7E.woff2 +0 -0
- package/dist/client/_assets/chunks/934dfdbed2bb2c4b6129199d699a34fa-CtpHsjRD.woff2 +0 -0
- package/dist/client/_assets/chunks/93bed0e5f2dd5a21cf73304fcfbc149d-DJiaETX7.woff2 +0 -0
- package/dist/client/_assets/chunks/93f3ea6918533d96d9c252378b9a4af0-D-FJaGi-.woff2 +0 -0
- package/dist/client/_assets/chunks/95a0951d2a2722ff773a1a45e8c474d6-DuZg-BpP.woff2 +0 -0
- package/dist/client/_assets/chunks/95ff41191c76ef893ac70a1043e95e44-C08QDbJO.woff2 +0 -0
- package/dist/client/_assets/chunks/96c75862c8cec51a7c05ff025fea86cd-DBnRwCuW.woff2 +0 -0
- package/dist/client/_assets/chunks/97d7a17234f2b5030ae9697ae00aded2-CkUSaB-p.woff2 +0 -0
- package/dist/client/_assets/chunks/982cd1765ca6bbb3e6547e47834d5148-DkIybx1r.woff2 +0 -0
- package/dist/client/_assets/chunks/985d4d41afa0934a4eb2de35473fb9a2-CF7rgJMw.woff2 +0 -0
- package/dist/client/_assets/chunks/995c4fda62d25c3b79dd5987737df6ae-CY5ri8HW.woff2 +0 -0
- package/dist/client/_assets/chunks/9b0c3caac458c7bc9c9133e40405ddea-DhPrYOcz.woff2 +0 -0
- package/dist/client/_assets/chunks/9b21e8244f5930c48ad5073f83777b6c-CuE9-r-r.woff2 +0 -0
- package/dist/client/_assets/chunks/9bb38fd05201de666b88b82d56a386f7-nMl6lB8X.woff2 +0 -0
- package/dist/client/_assets/chunks/9d0afa53dc2f92ba42024f55f11f6779-Bozpx8bL.woff2 +0 -0
- package/dist/client/_assets/chunks/9e13a47242926f1cd7d68c08d9ef8889-DwKQjc8M.woff2 +0 -0
- package/dist/client/_assets/chunks/9eff2ab2a9d2ced47ab761bf6fdb11ec-D86-Zm1H.woff2 +0 -0
- package/dist/client/_assets/chunks/9f1963fe8d4d6878d717d872a8f3fdb5-DxjITUFq.woff2 +0 -0
- package/dist/client/_assets/chunks/9f3bdab4025dc7c5ba1a5871e62e8918-BqxDEFLJ.woff2 +0 -0
- package/dist/client/_assets/chunks/9fce02d1a09f464c36c9fcfb14a354c5-F2tMAB_j.woff2 +0 -0
- package/dist/client/_assets/chunks/a00e94d4f04df6aa659db9c4954c7efe-CRBKCj_3.woff2 +0 -0
- package/dist/client/_assets/chunks/a0a6755c7e3f9e4cf03387027dd9f16c-BAyRqF2w.woff2 +0 -0
- package/dist/client/_assets/chunks/a0d00fe4816c95a8c7dffd445ef00b03-CxcTiRLJ.woff2 +0 -0
- package/dist/client/_assets/chunks/a0f199077fa1a33bc2a1e01c64de7fe6-IdgVJmZD.woff2 +0 -0
- package/dist/client/_assets/chunks/a2b0597837e382aca19919c4b74e58c8-7iVOBjzI.woff2 +0 -0
- package/dist/client/_assets/chunks/a373e85c96aa0dc303092429fb837e51-Dvmw8mbX.woff2 +0 -0
- package/dist/client/_assets/chunks/a379ada89abd750c587ded29f77e731c-CgPBsEsv.woff2 +0 -0
- package/dist/client/_assets/chunks/a4475c442c6b259354c9eda62e64e7df-TZ0c8vK-.woff2 +0 -0
- package/dist/client/_assets/chunks/a48be56ce5d3a99dc8f8331398004412-BR_ixH1W.woff2 +0 -0
- package/dist/client/_assets/chunks/a4a39b5f048671aa37c2b2a9581ab08a-EDfDYsUd.woff2 +0 -0
- package/dist/client/_assets/chunks/a534449d67561ac9b06489f64e57ad98-C355TCrD.woff2 +0 -0
- package/dist/client/_assets/chunks/a6e044424780a57610833cc856c15bf5-x1b8FE4H.woff2 +0 -0
- package/dist/client/_assets/chunks/a7c35e42a659347e490c3cb7983b2e7f-BWpA0-oz.woff2 +0 -0
- package/dist/client/_assets/chunks/a7c58070d68dc1724e9d4e781afb78db-ql27pT-6.woff2 +0 -0
- package/dist/client/_assets/chunks/a806759e72987951d6d08b7cbdf36a1b-TvLDwB_u.woff2 +0 -0
- package/dist/client/_assets/chunks/a88481ec8bc7be11cb66e46781a79bb9-Ck-r_sGx.woff2 +0 -0
- package/dist/client/_assets/chunks/a919a8c6fec6d7e8bb21177965f2e9d7-CC5uWzwd.woff2 +0 -0
- package/dist/client/_assets/chunks/a9a016d4a93409f65278327e8a8bb38d-dylrNwF8.woff2 +0 -0
- package/dist/client/_assets/chunks/aa662092cf249707123ca4d575e2764b-CSxNsTUL.woff2 +0 -0
- package/dist/client/_assets/chunks/aae1eda193285ab817a2d1b408440326-CjyjBoRm.woff2 +0 -0
- package/dist/client/_assets/chunks/ab92d41062a7644faa45f50bf384454a-Cq0X8a9H.woff2 +0 -0
- package/dist/client/_assets/chunks/accc43762ad05edfbff66ba1380d192a-B5jIykaZ.woff2 +0 -0
- package/dist/client/_assets/chunks/ad47bcd6d4663026d648c132d969318d-BYdIbDge.woff2 +0 -0
- package/dist/client/_assets/chunks/ad67113f88b59582991cb0c5d33ea19f-DOH1vcIZ.woff2 +0 -0
- package/dist/client/_assets/chunks/adb6e613fb99c6dd660b727101f554a8-DJDw_ZZK.woff2 +0 -0
- package/dist/client/_assets/chunks/adc4a98a89870ef984ee8f4b57c8a3a5-D30vw26R.woff2 +0 -0
- package/dist/client/_assets/chunks/af57a2e8c72f9ba0efb1af771d32c124-D5Zwq9pS.woff2 +0 -0
- package/dist/client/_assets/chunks/b0ae5f374e43dac992a4a5d334cebc0b-Ccoi4dPt.woff2 +0 -0
- package/dist/client/_assets/chunks/b0cb664cb2e1371efda8943c0b7dcd1c-YzGFnelF.woff2 +0 -0
- package/dist/client/_assets/chunks/b0d1cdced482352cf0d3ae58638aacb9-IunWfc6R.woff2 +0 -0
- package/dist/client/_assets/chunks/b12379ab782468d725519cd07a7d15bc-IjbydKs2.woff2 +0 -0
- package/dist/client/_assets/chunks/b320f5d185b2cff933ac549c184031c5-IYnPrIz4.woff2 +0 -0
- package/dist/client/_assets/chunks/b326a8a9c33b554db570da94f60bc380-B6dzaCQg.woff2 +0 -0
- package/dist/client/_assets/chunks/b55486f8a459c838fe329d4e79a8c211-DW8q7oGV.woff2 +0 -0
- package/dist/client/_assets/chunks/b6117ff2993b11bb1fdc7ea3588a010c-JoMYL5W_.woff2 +0 -0
- package/dist/client/_assets/chunks/b61982951bd51b724143c30dfaaa9fe9-D3KhBKl6.woff2 +0 -0
- package/dist/client/_assets/chunks/b91234c10fd8b8c8abc88e03afe66a1f-BABNh2la.woff2 +0 -0
- package/dist/client/_assets/chunks/b9317198f118a1dfd8ddf2b82ec028f3-CiMecxeH.woff2 +0 -0
- package/dist/client/_assets/chunks/ba825ae79b1a6f7e0cce5215fcb5c96f-B6EWU_D5.woff2 +0 -0
- package/dist/client/_assets/chunks/ba9c59d7dfa4494db1bb764ada81467d-D0yPcC1m.woff2 +0 -0
- package/dist/client/_assets/chunks/bab547459d514f46206e340c4bb2dc88-YnBqlGhw.woff2 +0 -0
- package/dist/client/_assets/chunks/bb0b15492b8cdbbec57c0bcfa0aa9241-BjIFbEsN.woff2 +0 -0
- package/dist/client/_assets/chunks/bc6183ac08f0fac78c46f80c10cf7c92-B81nbRb3.woff2 +0 -0
- package/dist/client/_assets/chunks/bc8ccea5abf6598cf3cfa97eb59804bb-B_7IbluG.woff2 +0 -0
- package/dist/client/_assets/chunks/bc95a792cbca6639214c9b0da13392ff-CHQe0E-D.woff2 +0 -0
- package/dist/client/_assets/chunks/bcc39eda837bb7a7a3d37c8c60fffb81-CGd1Zk6S.woff2 +0 -0
- package/dist/client/_assets/chunks/bcfa62f35731856246c146d3a6932bf3-DMDq6w4v.woff2 +0 -0
- package/dist/client/_assets/chunks/bd73264d7f98776708d5d6f3c9b78fcc-d9QWWMym.woff2 +0 -0
- package/dist/client/_assets/chunks/bed610b217d500f5975cfc9fe6157570-B5t7s1bw.woff2 +0 -0
- package/dist/client/_assets/chunks/bedc74b423b7293b6ad0bdecc61c42cc-4Nnh7peP.woff2 +0 -0
- package/dist/client/_assets/chunks/bf8901f8f11d4f433ea17dabc9370ea6-B8dkfvGn.woff2 +0 -0
- package/dist/client/_assets/chunks/bfb00d4a4c48661bd0be99f300a0faae-OxsWZ7l-.woff2 +0 -0
- package/dist/client/_assets/chunks/c0098958e20db68cab90097b5e62516f-VpjQo3vV.woff2 +0 -0
- package/dist/client/_assets/chunks/c063897793f593eb26d6ff7b7baaba18-BWeJJ1sH.woff2 +0 -0
- package/dist/client/_assets/chunks/c1b0df29ae41d764904df84e9ac83d1e-D1N934vs.woff2 +0 -0
- package/dist/client/_assets/chunks/c4143bb9f2fe77b6ccf20088a8904650-nHfYM24e.woff2 +0 -0
- package/dist/client/_assets/chunks/c42c67070cfe99cf823df92d81c7fa6e-B_a405Ez.woff2 +0 -0
- package/dist/client/_assets/chunks/c4bfaa5e50798246e3770718b7a7c84a-B-r6Y_o0.woff2 +0 -0
- package/dist/client/_assets/chunks/c4d749e45ecd5a5aed5a0bb3ebfd355d-CkqE1fRi.woff2 +0 -0
- package/dist/client/_assets/chunks/c6c2971ad1f3221f6cf84028aa0f477e-D7BZGIcY.woff2 +0 -0
- package/dist/client/_assets/chunks/c7ff3f6bbdcd5f604b7343602ab904df-Bq7UjVrZ.woff2 +0 -0
- package/dist/client/_assets/chunks/c84598999133455503042e06f4ab79cb-DIXndJX3.woff2 +0 -0
- package/dist/client/_assets/chunks/c945c62368357d05a53206620460fb30-82gFEf6n.woff2 +0 -0
- package/dist/client/_assets/chunks/c96d83978add28b356c22c4c84916733-BL4VaPIE.woff2 +0 -0
- package/dist/client/_assets/chunks/c97f41eef722121d86f55d553c056a39-CjejgQO2.woff2 +0 -0
- package/dist/client/_assets/chunks/ca62704509932d3232d62918de97af3f-CKWF-3mX.woff2 +0 -0
- package/dist/client/_assets/chunks/ca9a533988d7019597a60d4e17127e0c-ClZ6ygZM.woff2 +0 -0
- package/dist/client/_assets/chunks/cb7ccd6494256f7a2977b7c2b0225592-Cxp8XObm.woff2 +0 -0
- package/dist/client/_assets/chunks/ce022e18a1377ac509443c3c3790b431-DpH0t6Tn.woff2 +0 -0
- package/dist/client/_assets/chunks/ce41d70ce6a069a498525c9e15c45cf2-DGtgv-_b.woff2 +0 -0
- package/dist/client/_assets/chunks/cf2b28f90f47276f7e2688a65e88a101-LVbNkXHj.woff2 +0 -0
- package/dist/client/_assets/chunks/cf9cffe56636322f62b40d61130fbc5e-DNCBMqAo.woff2 +0 -0
- package/dist/client/_assets/chunks/d1f064825fa5784b5c930652bd831cce-BU6qwjp8.woff2 +0 -0
- package/dist/client/_assets/chunks/d20d8944bc0b85f5b2aae4b24f343516-oY9l-NmC.woff2 +0 -0
- package/dist/client/_assets/chunks/d2faabcedd19f016e7b21bce073c0ec8-Dv6eFCf5.woff2 +0 -0
- package/dist/client/_assets/chunks/d320171e57480510f87dbbc7d5264b0a-CcCfjaFX.woff2 +0 -0
- package/dist/client/_assets/chunks/d36644d6502527e1fff205d0c7eca434-kVBj8zy_.woff2 +0 -0
- package/dist/client/_assets/chunks/d3a72a99d365dddfbca8d017a8011368-Bgdmhl3M.woff2 +0 -0
- package/dist/client/_assets/chunks/d40ab99c7a38026f411c8f112f742b48-D7Nm7fg6.woff2 +0 -0
- package/dist/client/_assets/chunks/d42aafa0f246ad3b4c16fe96d3a3a432-CRxTqZXU.woff2 +0 -0
- package/dist/client/_assets/chunks/d4aaf23c13ae808a4bed617afd13aa07-d_T1SKe9.woff2 +0 -0
- package/dist/client/_assets/chunks/d509ee5c8241bc7c3de2039d75564fa5-BpNFD9JE.woff2 +0 -0
- package/dist/client/_assets/chunks/d675d717cd329bfd4c0524f76ae1579c-Bd5_ctoQ.woff2 +0 -0
- package/dist/client/_assets/chunks/d689b1861d7e4377dd72ad3013482612-jPsVOU3F.woff2 +0 -0
- package/dist/client/_assets/chunks/d6bb686bddfbe8f38a36a68e609a8667-C_QduS-X.woff2 +0 -0
- package/dist/client/_assets/chunks/d9020ff69a83b2a6ee1f42ae480f7db0-DLBUPMCe.woff2 +0 -0
- package/dist/client/_assets/chunks/d9047070d72a816b3dba9d40c2d85e69-LTQ42vEp.woff2 +0 -0
- package/dist/client/_assets/chunks/da04549f3f4ed28076b01b8cd710d313-CDXOeduw.woff2 +0 -0
- package/dist/client/_assets/chunks/da7af303f8c645f9a9dbae0e6e32dd35-DCkS2jqi.woff2 +0 -0
- package/dist/client/_assets/chunks/da90a9012ab2d98f759e3fa0820ef502-D0D9d1zg.woff2 +0 -0
- package/dist/client/_assets/chunks/dc6e234ded795e91f76d6647f628fbf0-IkooXcRh.woff2 +0 -0
- package/dist/client/_assets/chunks/dc8f6256445e68199540be9ade33529f-umb5tWbZ.woff2 +0 -0
- package/dist/client/_assets/chunks/dd0cfdfdac0866e66d587e2b5a9e9961-bl4ozE0c.woff2 +0 -0
- package/dist/client/_assets/chunks/de304c8a02e45ded4f8dcc479d167198-ClRu89-4.woff2 +0 -0
- package/dist/client/_assets/chunks/df10d94bea357a43313e20da5d84bd30-CmAgh2oA.woff2 +0 -0
- package/dist/client/_assets/chunks/df9568257eb29b156449fdd4bec5ec76-BMz6aLRr.woff2 +0 -0
- package/dist/client/_assets/chunks/e067cd0ed76c90cd0a93c9339253f20b-6RxCQ4jy.woff2 +0 -0
- package/dist/client/_assets/chunks/e08b07772e7bed3cec2832d43f7fd339-CQCkeKsr.woff2 +0 -0
- package/dist/client/_assets/chunks/e12150d5a39b30be8f567968c7a527b0-DjdoWzeQ.woff2 +0 -0
- package/dist/client/_assets/chunks/e34b2b141e472dc776c86fdf8eea23b0-Cjk7H-Ev.woff2 +0 -0
- package/dist/client/_assets/chunks/e444fd88f1390636e603d0d681538ac8-Bx7CPOZh.woff2 +0 -0
- package/dist/client/_assets/chunks/e53fcb2381eee345db4f6f973dd95a3e-DmkkCUWz.woff2 +0 -0
- package/dist/client/_assets/chunks/e5bd313ef81f687d398aacb11cec3069-CwBEbcji.woff2 +0 -0
- package/dist/client/_assets/chunks/e79898628283edc27180fc39d0d769c1-By2pplQz.woff2 +0 -0
- package/dist/client/_assets/chunks/e8c15be62faf978d208925e79ea6a10d-Ct5M9lTP.woff2 +0 -0
- package/dist/client/_assets/chunks/e8c364c16daa04835bf32d293d2598db-3v4Tut_d.woff2 +0 -0
- package/dist/client/_assets/chunks/e91c4d941ed9f5c2f3e27f205a3a225e-BwOJ2Lst.woff2 +0 -0
- package/dist/client/_assets/chunks/e9c566be7a5d38a9085225f7372bc82b-BCtnCVML.woff2 +0 -0
- package/dist/client/_assets/chunks/e9ebc567a711eeb29019ddae3e0ce7fe-CnNhV49O.woff2 +0 -0
- package/dist/client/_assets/chunks/eaf332445a40942928e5f5750c1c3116-qZ5LSRrj.woff2 +0 -0
- package/dist/client/_assets/chunks/eb5afb3d952b8593782caec6026514b6-BXugZF2T.woff2 +0 -0
- package/dist/client/_assets/chunks/ec86e23683052da5cfdc3b77641bd15a-BeLcbcRc.woff2 +0 -0
- package/dist/client/_assets/chunks/ecb8875a56c7b038b35432fda41ae128-BVqgNf1o.woff2 +0 -0
- package/dist/client/_assets/chunks/eda1b0cb6d1719dd9bedcf3216a9e8de-BJTfLL5z.woff2 +0 -0
- package/dist/client/_assets/chunks/edd6a4f608d04fc0351d7688cfc321e4-d3V4U40c.woff2 +0 -0
- package/dist/client/_assets/chunks/ee6fce20b420a480714607c66d7f97e5-DEtC-G5G.woff2 +0 -0
- package/dist/client/_assets/chunks/eee3836d6ac17ebb2c450bbcbc9db121-C5a2TZjQ.woff2 +0 -0
- package/dist/client/_assets/chunks/et-book-bold-line-figures-BFJr2_zv.woff +0 -0
- package/dist/client/_assets/chunks/et-book-display-italic-old-style-figures-CoeRJAe8.woff +0 -0
- package/dist/client/_assets/chunks/et-book-roman-line-figures-CaA40oOf.woff +0 -0
- package/dist/client/_assets/chunks/f1661731474b78bdf81114daf10b254f-KnMKX_U3.woff2 +0 -0
- package/dist/client/_assets/chunks/f2c58dee206ba9355046fc23d05491f7-Cm4tCWav.woff2 +0 -0
- package/dist/client/_assets/chunks/f50ac27ea4358d67fdda403c2bb52467-WCfYHde1.woff2 +0 -0
- package/dist/client/_assets/chunks/f55334112f8e8be82d65db29887a663f-vDq1zH8k.woff2 +0 -0
- package/dist/client/_assets/chunks/f5738255e92d8dd34a46d1bcdf4c4074-tpghTzL1.woff2 +0 -0
- package/dist/client/_assets/chunks/f740e93f3c0277ecc616594103bca683-C4BgW_ko.woff2 +0 -0
- package/dist/client/_assets/chunks/f7633b5af033d76ff2fb3c3c266d77c5-BCkrZxwO.woff2 +0 -0
- package/dist/client/_assets/chunks/f7d8468cba2335a83ee414ea68291bab-CVnotkZU.woff2 +0 -0
- package/dist/client/_assets/chunks/f91cd722855f4269256eae1187df64ec-DJlAx1A_.woff2 +0 -0
- package/dist/client/_assets/chunks/f9695c6c4df2bf6bc03045ff79d4f01f-DDaYGYHT.woff2 +0 -0
- package/dist/client/_assets/chunks/fa6e58ce4b52695e7ae19bbea6336ec8-B30jEpze.woff2 +0 -0
- package/dist/client/_assets/chunks/fada6eaa68ff8816afe43d2a36c5423e-DlGAWNPb.woff2 +0 -0
- package/dist/client/_assets/chunks/fbcc4bf5367218951172bdee6f77d7a6-Dax2VSCd.woff2 +0 -0
- package/dist/client/_assets/chunks/fc895f5ce66b656f4a933097bf2a8775-DjjysNdf.woff2 +0 -0
- package/dist/client/_assets/chunks/fc9ae5b600fb711f2d67e93ce768cba4-D1lx7LBz.woff2 +0 -0
- package/dist/client/_assets/chunks/fca6720fd14c467d29a90f18ef3859b9-B3btrwq3.woff2 +0 -0
- package/dist/client/_assets/chunks/fd1bb507bcbf04856eeb7f7fd47ea579-NR1nGJTt.woff2 +0 -0
- package/dist/client/_assets/chunks/fd1bceb55d3e0183ac2454b8532fec7d-D3t-v6nn.woff2 +0 -0
- package/dist/client/_assets/chunks/fd2069e6e8588c70b4f11364093b81f2-BoXhYVgw.woff2 +0 -0
- package/dist/client/_assets/chunks/{url-CG0eolsk.js → url-pLre2DM_.js} +1 -1
- package/dist/client/_assets/client-C_kImWZj.css +2 -0
- package/dist/client/_assets/client-D95FNDg5.js +272 -0
- package/dist/client/_assets/client-auth-BRFl5zQA.js +4547 -0
- package/dist/client/_assets/client-cjk-jp-DZwrTzQC.css +1 -0
- package/dist/client/_assets/client-cjk-kr-_3ZNI2ZP.css +1 -0
- package/dist/env-wCpMcNXs.js +252 -0
- package/dist/github-api-CficQztC.js +176 -0
- package/dist/github-app-F4qZ05xk.js +275 -0
- package/dist/github-sync-zohnA9qv.js +4696 -0
- package/dist/index.js +88 -2
- package/dist/node.js +71 -30
- package/dist/url-FvvgARU9.js +305 -0
- package/package.json +16 -12
- package/src/__tests__/bin/content-cli.test.ts +179 -0
- package/src/__tests__/bin/media-cli.test.ts +192 -0
- package/src/__tests__/export-hugo-build.test.ts +178 -0
- package/src/__tests__/export-import-roundtrip.test.ts +265 -0
- package/src/__tests__/export-service.test.ts +763 -510
- package/src/__tests__/helpers/export-fixtures.ts +108 -0
- package/src/__tests__/import-site-command.test.ts +358 -350
- package/src/__tests__/site-pull-media.test.ts +256 -0
- package/src/app.tsx +60 -13
- package/src/client/__tests__/collection-form-bridge.test.ts +87 -7
- package/src/client/__tests__/collection-page-actions.test.ts +4 -4
- package/src/client/__tests__/collection-picker-order.test.ts +53 -0
- package/src/client/__tests__/collection-sort-menu.test.ts +2 -2
- package/src/client/__tests__/compose-bridge.test.ts +305 -13
- package/src/client/__tests__/compose-launch.test.ts +120 -0
- package/src/client/__tests__/compose-shortcuts.test.ts +141 -0
- package/src/client/__tests__/feed-video-player.test.ts +44 -0
- package/src/client/__tests__/site-header-nav.test.ts +250 -0
- package/src/client/__tests__/sortable-list.test.ts +6 -2
- package/src/client/__tests__/thread-context.test.ts +117 -0
- package/src/client/collection-form-bridge.ts +109 -4
- package/src/client/collection-page-actions.ts +3 -1
- package/src/client/collection-picker-order.ts +104 -0
- package/src/client/components/__tests__/{jant-collection-sidebar.test.ts → jant-collection-directory.test.ts} +91 -10
- package/src/client/components/__tests__/jant-collection-form.test.ts +40 -18
- package/src/client/components/__tests__/jant-compose-dialog.test.ts +1285 -66
- package/src/client/components/__tests__/jant-compose-editor.test.ts +254 -19
- package/src/client/components/__tests__/jant-compose-fullscreen.test.ts +127 -1
- package/src/client/components/__tests__/jant-media-lightbox.test.ts +237 -0
- package/src/client/components/__tests__/jant-nav-manager.test.ts +326 -0
- package/src/client/components/__tests__/jant-post-menu.test.ts +372 -2
- package/src/client/components/__tests__/jant-settings-avatar.test.ts +61 -5
- package/src/client/components/__tests__/jant-settings-general.test.ts +29 -28
- package/src/client/components/__tests__/jant-text-preview.test.ts +206 -0
- package/src/client/components/collection-manager-types.ts +18 -1
- package/src/client/components/compose-types.ts +48 -0
- package/src/client/components/jant-collection-directory.ts +1448 -0
- package/src/client/components/jant-collection-form.ts +65 -17
- package/src/client/components/jant-command-palette.ts +544 -0
- package/src/client/components/jant-compose-dialog.ts +2490 -375
- package/src/client/components/jant-compose-editor.ts +420 -75
- package/src/client/components/jant-compose-fullscreen.ts +59 -8
- package/src/client/components/jant-media-lightbox.ts +373 -18
- package/src/client/components/jant-nav-manager.ts +624 -286
- package/src/client/components/jant-post-menu.ts +451 -126
- package/src/client/components/jant-repo-picker-types.ts +39 -0
- package/src/client/components/jant-repo-picker.ts +799 -0
- package/src/client/components/jant-settings-avatar.ts +16 -2
- package/src/client/components/jant-settings-general.ts +137 -35
- package/src/client/components/jant-text-preview.ts +239 -55
- package/src/client/components/nav-manager-types.ts +25 -9
- package/src/client/components/settings-types.ts +13 -2
- package/src/client/compose-bridge.ts +428 -68
- package/src/client/compose-launch.ts +41 -4
- package/src/client/compose-shortcuts.ts +77 -5
- package/src/client/feed-video-player.ts +374 -0
- package/src/client/image-processor.ts +53 -127
- package/src/client/media-lightbox-events.ts +1 -0
- package/src/client/media-scroll-hint.ts +66 -0
- package/src/client/multipart-upload.ts +4 -1
- package/src/client/palette-shortcuts.ts +35 -0
- package/src/client/search-rank.ts +74 -0
- package/src/client/settings-bridge.ts +7 -0
- package/src/client/site-header-nav.d.ts +1 -0
- package/src/client/site-header-nav.js +139 -51
- package/src/client/sortable-list.ts +2 -0
- package/src/client/thread-context.ts +54 -11
- package/src/client/tiptap/__tests__/block-insertion.test.ts +65 -0
- package/src/client/tiptap/__tests__/footnotes.test.ts +692 -0
- package/src/client/tiptap/__tests__/link-toolbar.test.ts +120 -4
- package/src/client/tiptap/__tests__/markdown-clipboard.test.ts +48 -0
- package/src/client/tiptap/block-insertion.ts +36 -0
- package/src/client/tiptap/bubble-menu.ts +34 -4
- package/src/client/tiptap/create-editor.ts +49 -30
- package/src/client/tiptap/embed-dialog.ts +301 -0
- package/src/client/tiptap/embed-node.ts +373 -0
- package/src/client/tiptap/embed-paste.ts +91 -0
- package/src/client/tiptap/extensions.ts +77 -28
- package/src/client/tiptap/footnotes.ts +718 -0
- package/src/client/tiptap/html-block-node.ts +222 -0
- package/src/client/tiptap/image-node.ts +49 -6
- package/src/client/tiptap/inline-image-upload.ts +200 -40
- package/src/client/tiptap/link-input-rules.ts +50 -16
- package/src/client/tiptap/link-toolbar.ts +156 -133
- package/src/client/tiptap/markdown-clipboard.ts +120 -0
- package/src/client/tiptap/more-break.ts +36 -3
- package/src/client/tiptap/paste-media.ts +6 -0
- package/src/client/tiptap/slash-commands.ts +167 -14
- package/src/client/tiptap/tab-indent.ts +184 -0
- package/src/client/tiptap/toolbar-mode.ts +15 -2
- package/src/client/tiptap/wrapping-input-rules.ts +102 -0
- package/src/client/types/sortablejs.d.ts +9 -1
- package/src/client/upload-session.ts +2 -1
- package/src/client/video-processor.ts +177 -20
- package/src/client-auth.ts +9 -1
- package/src/client-site.ts +15 -0
- package/src/client.ts +2 -0
- package/src/db/__tests__/demo-canonical-snapshot.test.ts +1 -1
- package/src/db/__tests__/migration-rehearsal.test.ts +5 -1
- package/src/db/__tests__/migrations.test.ts +25 -2
- package/src/db/backfills/0001_strip_collection_path_c_prefix.sql +11 -0
- package/src/db/backfills/0002_strip_collection_path_c_prefix_fix.sql +12 -0
- package/src/db/backfills/0003_clear_system_nav_default_labels.sql +15 -0
- package/src/db/dialect.ts +40 -0
- package/src/db/migrations/0005_busy_the_phantom.sql +39 -0
- package/src/db/migrations/0006_adorable_magdalene.sql +3 -0
- package/src/db/migrations/0007_unusual_warstar.sql +1 -0
- package/src/db/migrations/0008_nasty_lockheed.sql +1 -0
- package/src/db/migrations/0009_clear_fixer.sql +31 -0
- package/src/db/migrations/0010_futuristic_preak.sql +31 -0
- package/src/db/migrations/0011_bizarre_smasher.sql +30 -0
- package/src/db/migrations/0012_furry_thena.sql +52 -0
- package/src/db/migrations/0013_mixed_lightspeed.sql +39 -0
- package/src/db/migrations/0014_high_the_santerians.sql +41 -0
- package/src/db/migrations/0015_skinny_shinobi_shaw.sql +1 -0
- package/src/db/migrations/0016_remarkable_nicolaos.sql +17 -0
- package/src/db/migrations/0017_powerful_moonstone.sql +14 -0
- package/src/db/migrations/meta/0005_snapshot.json +1904 -0
- package/src/db/migrations/meta/0006_snapshot.json +1925 -0
- package/src/db/migrations/meta/0007_snapshot.json +1933 -0
- package/src/db/migrations/meta/0008_snapshot.json +1940 -0
- package/src/db/migrations/meta/0009_snapshot.json +1952 -0
- package/src/db/migrations/meta/0010_snapshot.json +1952 -0
- package/src/db/migrations/meta/0011_snapshot.json +1948 -0
- package/src/db/migrations/meta/0012_snapshot.json +1955 -0
- package/src/db/migrations/meta/0013_snapshot.json +1977 -0
- package/src/db/migrations/meta/0014_snapshot.json +1988 -0
- package/src/db/migrations/meta/0015_snapshot.json +1995 -0
- package/src/db/migrations/meta/0016_snapshot.json +2104 -0
- package/src/db/migrations/meta/0017_snapshot.json +2188 -0
- package/src/db/migrations/meta/_journal.json +92 -1
- package/src/db/migrations/pg/0003_motionless_norrin_radd.sql +21 -0
- package/src/db/migrations/pg/0004_nervous_captain_midlands.sql +3 -0
- package/src/db/migrations/pg/0005_romantic_mesmero.sql +1 -0
- package/src/db/migrations/pg/0006_perpetual_bruce_banner.sql +1 -0
- package/src/db/migrations/pg/0007_nav_item_placement.sql +1 -0
- package/src/db/migrations/pg/0008_yielding_frightful_four.sql +3 -0
- package/src/db/migrations/pg/0009_outstanding_ogun.sql +1 -0
- package/src/db/migrations/pg/0010_overjoyed_gertrude_yorkes.sql +28 -0
- package/src/db/migrations/pg/0011_fixed_hulk.sql +19 -0
- package/src/db/migrations/pg/0012_cute_shockwave.sql +2 -0
- package/src/db/migrations/pg/0013_bizarre_obadiah_stane.sql +1 -0
- package/src/db/migrations/pg/0014_tearful_grim_reaper.sql +16 -0
- package/src/db/migrations/pg/0015_daffy_mikhail_rasputin.sql +14 -0
- package/src/db/migrations/pg/meta/0003_snapshot.json +2482 -0
- package/src/db/migrations/pg/meta/0004_snapshot.json +2500 -0
- package/src/db/migrations/pg/meta/0005_snapshot.json +2507 -0
- package/src/db/migrations/pg/meta/0006_snapshot.json +2513 -0
- package/src/db/migrations/pg/meta/0008_snapshot.json +2524 -0
- package/src/db/migrations/pg/meta/0009_snapshot.json +2520 -0
- package/src/db/migrations/pg/meta/0010_snapshot.json +2526 -0
- package/src/db/migrations/pg/meta/0011_snapshot.json +2563 -0
- package/src/db/migrations/pg/meta/0012_snapshot.json +2573 -0
- package/src/db/migrations/pg/meta/0013_snapshot.json +2579 -0
- package/src/db/migrations/pg/meta/0014_snapshot.json +2702 -0
- package/src/db/migrations/pg/meta/0015_snapshot.json +2803 -0
- package/src/db/migrations/pg/meta/_journal.json +92 -1
- package/src/db/pg/__tests__/node.test.ts +38 -0
- package/src/db/pg/node.ts +149 -0
- package/src/db/pg/schema.ts +130 -12
- package/src/db/rehearsal-fixtures/demo-current.sql +47 -3
- package/src/db/schema.ts +139 -12
- package/src/i18n/Trans.tsx +3 -3
- package/src/i18n/__tests__/context.test.tsx +9 -6
- package/src/i18n/__tests__/detect.test.ts +65 -48
- package/src/i18n/__tests__/fallback.test.ts +40 -0
- package/src/i18n/__tests__/message-placeholders.test.ts +43 -0
- package/src/i18n/__tests__/middleware.test.ts +83 -0
- package/src/i18n/context.tsx +9 -44
- package/src/i18n/detect.ts +95 -28
- package/src/i18n/i18n.ts +41 -17
- package/src/i18n/index.ts +7 -5
- package/src/i18n/locales/{en.po → public/en.po} +284 -1151
- package/src/i18n/locales/public/en.ts +1 -0
- package/src/i18n/locales/public/zh-Hans.po +2327 -0
- package/src/i18n/locales/public/zh-Hans.ts +1 -0
- package/src/i18n/locales/public/zh-Hant.po +2327 -0
- package/src/i18n/locales/public/zh-Hant.ts +1 -0
- package/src/i18n/locales/settings/en.po +1622 -0
- package/src/i18n/locales/settings/en.ts +1 -0
- package/src/i18n/locales/settings/zh-Hans.po +1622 -0
- package/src/i18n/locales/settings/zh-Hans.ts +1 -0
- package/src/i18n/locales/settings/zh-Hant.po +1622 -0
- package/src/i18n/locales/settings/zh-Hant.ts +1 -0
- package/src/i18n/middleware.ts +37 -24
- package/src/index.ts +4 -5
- package/src/lib/__tests__/collection-groups.test.ts +17 -0
- package/src/lib/__tests__/constants.test.ts +2 -24
- package/src/lib/__tests__/csp-builder.test.ts +68 -0
- package/src/lib/__tests__/display-text.test.ts +27 -0
- package/src/lib/__tests__/embed-providers.test.ts +104 -0
- package/src/lib/__tests__/embed-render.test.ts +60 -0
- package/src/lib/__tests__/feed.test.ts +125 -63
- package/src/lib/__tests__/hosted-signin.test.ts +11 -2
- package/src/lib/__tests__/markdown-roundtrip-embed.test.ts +88 -0
- package/src/lib/__tests__/markdown-to-tiptap.test.ts +59 -0
- package/src/lib/__tests__/markdown.test.ts +47 -5
- package/src/lib/__tests__/navigation.test.ts +148 -0
- package/src/lib/__tests__/post-display.test.ts +3 -2
- package/src/lib/__tests__/post-meta.test.ts +3 -0
- package/src/lib/__tests__/resolve-config.test.ts +30 -25
- package/src/lib/__tests__/schemas.test.ts +20 -3
- package/src/lib/__tests__/summary.test.ts +400 -1
- package/src/lib/__tests__/theme.test.ts +41 -2
- package/src/lib/__tests__/timeline.test.ts +33 -27
- package/src/lib/__tests__/tiptap-render.test.ts +224 -0
- package/src/lib/__tests__/tiptap-to-markdown.test.ts +51 -0
- package/src/lib/__tests__/video-playback.test.ts +48 -0
- package/src/lib/__tests__/view.test.ts +115 -8
- package/src/lib/__tests__/worker-response-cache.test.ts +311 -0
- package/src/lib/__tests__/youtube.test.ts +99 -0
- package/src/lib/api-media.ts +55 -0
- package/src/lib/api-posts.ts +99 -0
- package/src/lib/api-search.ts +47 -0
- package/src/lib/api-settings.ts +122 -0
- package/src/lib/asset-path.ts +20 -2
- package/src/lib/collection-groups.ts +2 -1
- package/src/lib/collection-paths.ts +40 -0
- package/src/lib/constants.ts +3 -24
- package/src/lib/csp-builder.ts +99 -0
- package/src/lib/decorative-quote-mark.ts +11 -0
- package/src/lib/display-text.ts +56 -0
- package/src/lib/embed-providers.ts +289 -0
- package/src/lib/embed-render.ts +151 -0
- package/src/lib/env.ts +70 -1
- package/src/lib/excerpt.ts +11 -2
- package/src/lib/feed.ts +89 -66
- package/src/lib/footnotes.ts +146 -0
- package/src/lib/github-api.ts +423 -0
- package/src/lib/github-app-state.ts +135 -0
- package/src/lib/github-app.ts +487 -0
- package/src/lib/github-sync-queue-handler.ts +69 -0
- package/src/lib/github-sync-site-config.ts +57 -0
- package/src/lib/github-sync-status.tsx +87 -0
- package/src/lib/github-sync-trigger.ts +199 -0
- package/src/lib/github-sync-worker.ts +72 -0
- package/src/lib/hosted-signin.ts +1 -1
- package/src/lib/hugo-markdown.ts +255 -0
- package/src/lib/job-queue-cf.ts +18 -0
- package/src/lib/job-queue-db.ts +149 -0
- package/src/lib/job-queue.ts +35 -0
- package/src/lib/markdown-manager.ts +864 -0
- package/src/lib/markdown-to-tiptap.ts +4 -323
- package/src/lib/markdown.ts +16 -24
- package/src/lib/media-helpers.ts +1 -0
- package/src/lib/navigation.ts +40 -8
- package/src/lib/post-display.ts +10 -22
- package/src/lib/public-storage.ts +6 -1
- package/src/lib/render.tsx +5 -2
- package/src/lib/resolve-config.ts +23 -11
- package/src/lib/rich-image.ts +89 -0
- package/src/lib/schemas.ts +180 -13
- package/src/lib/summary.ts +125 -18
- package/src/lib/theme.ts +119 -0
- package/src/lib/timeline.ts +63 -42
- package/src/lib/tiptap-render.ts +265 -126
- package/src/lib/tiptap-to-markdown.ts +6 -329
- package/src/lib/upload.ts +97 -6
- package/src/lib/version.ts +18 -0
- package/src/lib/video-playback.ts +73 -0
- package/src/lib/view.ts +130 -90
- package/src/lib/webhook-signature.ts +65 -0
- package/src/lib/worker-response-cache.ts +220 -0
- package/src/lib/youtube.ts +119 -0
- package/src/middleware/__tests__/onboarding.test.ts +3 -3
- package/src/middleware/__tests__/secure-headers.test.ts +28 -1
- package/src/middleware/config.ts +7 -10
- package/src/middleware/cors.ts +49 -0
- package/src/middleware/secure-headers.ts +45 -55
- package/src/node/__tests__/cli-migrate.test.ts +111 -0
- package/src/node/__tests__/cli-runtime-target.test.ts +1 -1
- package/src/node/__tests__/cli-site-token-env.test.ts +2 -2
- package/src/preset.css +316 -12
- package/src/routes/__tests__/compose.test.ts +3 -1
- package/src/routes/api/__tests__/collections.test.ts +81 -27
- package/src/routes/api/__tests__/mcp.test.ts +389 -0
- package/src/routes/api/__tests__/nav-items.test.ts +163 -2
- package/src/routes/api/__tests__/posts.test.ts +190 -0
- package/src/routes/api/__tests__/settings.test.ts +99 -3
- package/src/routes/api/__tests__/upload-multipart.test.ts +10 -2
- package/src/routes/api/__tests__/upload.test.ts +132 -0
- package/src/routes/api/__tests__/uploads.test.ts +5 -3
- package/src/routes/api/collections.ts +67 -26
- package/src/routes/api/custom-urls.ts +1 -0
- package/src/routes/api/export.ts +8 -4
- package/src/routes/api/github-sync.tsx +380 -0
- package/src/routes/api/internal/__tests__/sites.test.ts +45 -2
- package/src/routes/api/internal/sites.ts +2 -0
- package/src/routes/api/internal/text-attachments.ts +60 -0
- package/src/routes/api/internal/uploads.ts +5 -1
- package/src/routes/api/mcp.ts +30 -0
- package/src/routes/api/nav-items.ts +30 -11
- package/src/routes/api/palette.ts +17 -0
- package/src/routes/api/posts.ts +37 -106
- package/src/routes/api/public/__tests__/posts.test.ts +372 -0
- package/src/routes/api/public/posts.ts +302 -0
- package/src/routes/api/search.ts +1 -47
- package/src/routes/api/settings.ts +44 -58
- package/src/routes/api/upload-multipart.ts +15 -5
- package/src/routes/api/upload.ts +62 -49
- package/src/routes/api/uploads.ts +1 -0
- package/src/routes/auth/__tests__/hosted-sso.test.ts +33 -0
- package/src/routes/auth/__tests__/setup.test.ts +29 -4
- package/src/routes/auth/hosted-sso-expired-page.tsx +89 -0
- package/src/routes/auth/hosted-sso.ts +42 -1
- package/src/routes/auth/reset.tsx +46 -32
- package/src/routes/auth/setup.tsx +53 -43
- package/src/routes/auth/signin.tsx +34 -24
- package/src/routes/compose.tsx +114 -1
- package/src/routes/dash/__tests__/font-theme.test.ts +6 -27
- package/src/routes/dash/__tests__/settings-avatar.test.ts +2 -3
- package/src/routes/dash/custom-urls.tsx +250 -112
- package/src/routes/dash/settings.tsx +1179 -70
- package/src/routes/feed/__tests__/{rss.test.ts → feed.test.ts} +62 -123
- package/src/routes/feed/feed.ts +386 -0
- package/src/routes/feed/manifest.ts +67 -0
- package/src/routes/feed/sitemap.ts +11 -2
- package/src/routes/pages/__tests__/collection-routing.test.ts +176 -0
- package/src/routes/pages/__tests__/collections.test.ts +2 -3
- package/src/routes/pages/__tests__/featured.test.ts +2 -3
- package/src/routes/pages/archive.tsx +523 -127
- package/src/routes/pages/collection.tsx +197 -43
- package/src/routes/pages/collections.tsx +5 -1
- package/src/routes/pages/home.tsx +2 -2
- package/src/routes/pages/latest.tsx +3 -3
- package/src/routes/pages/page.tsx +221 -3
- package/src/routes/pages/partials.tsx +5 -0
- package/src/routes/pages/search.tsx +17 -1
- package/src/routes/pages/theme-sample.tsx +1 -2
- package/src/runtime/__tests__/node.test.ts +1 -1
- package/src/runtime/readiness.ts +1 -1
- package/src/runtime/site.ts +9 -1
- package/src/services/__tests__/collection.test.ts +137 -54
- package/src/services/__tests__/github-app-installations.test.ts +181 -0
- package/src/services/__tests__/github-sync-classify.test.ts +189 -0
- package/src/services/__tests__/github-sync-push.test.ts +159 -0
- package/src/services/__tests__/media.test.ts +444 -7
- package/src/services/__tests__/navigation.test.ts +271 -14
- package/src/services/__tests__/post-timeline.test.ts +31 -21
- package/src/services/__tests__/post.test.ts +83 -9
- package/src/services/__tests__/settings.test.ts +43 -21
- package/src/services/auth.ts +2 -2
- package/src/services/bootstrap.ts +10 -7
- package/src/services/collection.ts +591 -193
- package/src/services/custom-url.ts +34 -7
- package/src/services/export-theme/assets/client-site.css +2 -0
- package/src/services/export-theme/assets/client-site.js +145 -0
- package/src/services/export-theme/layouts/_default/alias.html +49 -0
- package/src/services/export-theme/layouts/_default/baseof.html +21 -0
- package/src/services/export-theme/layouts/_default/list.html +104 -0
- package/src/services/export-theme/layouts/_default/rss.xml +160 -0
- package/src/services/export-theme/layouts/_default/single.html +15 -0
- package/src/services/export-theme/layouts/archive/list.html +31 -0
- package/src/services/export-theme/layouts/collection/single.html +19 -0
- package/src/services/export-theme/layouts/collections/list.html +111 -0
- package/src/services/export-theme/layouts/featured/list.html +28 -0
- package/src/services/export-theme/layouts/index.html +41 -0
- package/src/services/export-theme/layouts/partials/feed-post-content.xml +107 -0
- package/src/services/export-theme/layouts/partials/footer.html +32 -0
- package/src/services/export-theme/layouts/partials/head.html +52 -0
- package/src/services/export-theme/layouts/partials/header.html +115 -0
- package/src/services/export-theme/layouts/partials/media-gallery.html +246 -0
- package/src/services/export-theme/layouts/partials/pagination.html +55 -0
- package/src/services/export-theme/layouts/partials/post-card.html +127 -0
- package/src/services/export-theme/layouts/partials/reply.html +91 -0
- package/src/services/export-theme/layouts/partials/thread-preview.html +82 -0
- package/src/services/export-theme/layouts/post/list.html +129 -0
- package/src/services/export-theme/styles/main.css +1981 -0
- package/src/services/export-theme/theme.toml +12 -0
- package/src/services/export.ts +1365 -2412
- package/src/services/github-app-installations.ts +302 -0
- package/src/services/github-sync.ts +769 -0
- package/src/services/index.ts +15 -0
- package/src/services/mcp.ts +1324 -0
- package/src/services/media.ts +336 -25
- package/src/services/navigation.ts +115 -23
- package/src/services/path.ts +129 -28
- package/src/services/post.ts +658 -195
- package/src/services/search.ts +3 -0
- package/src/services/settings.ts +29 -15
- package/src/services/site-admin.ts +26 -6
- package/src/services/upload-session.ts +69 -34
- package/src/style-cjk-jp.css +3 -0
- package/src/style-cjk-kr.css +3 -0
- package/src/styles/components.css +160 -59
- package/src/styles/fonts/et-book/et-book-bold-line-figures.woff +0 -0
- package/src/styles/fonts/et-book/et-book-display-italic-old-style-figures.woff +0 -0
- package/src/styles/fonts/et-book/et-book-roman-line-figures.woff +0 -0
- package/src/styles/fonts/et-book.css +31 -0
- package/src/styles/fonts/latin.css +1 -0
- package/src/styles/fonts/noto-serif-jp/400/057a6a98bda7fe57105ddaa99ec82015.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/0acd1fe2b2ea1ad1bfee7ae1fa139d27.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/0c2ab6b295e55f356f8020d4e7747522.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/0c5f9492af03a4fa42c784de94649de1.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/0d9a936885a4c39077438effd3779cbd.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/0e645da524f7cfc0e8c3c03fb2b08428.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/135e83b403475c5dc9e49b43501a5b84.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/13b2c53b30e6a3e4de7132dbc18dbdfc.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/15d95680dc31cc6ce20e0a5464106dc4.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/1733f27476507ca68b68a803bc533cc2.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/188c2db794f3dd7a45889ddbc81da9bb.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/1cf737900dd49c2e88f1b3221a82a602.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/233d3a685ee18276b319363474599d47.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/284b53bbefb06924cf236d24c8ed5641.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/2a56eaf19d1d38a6b57e2a388f733676.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/2abfbab82b6a7c04426afc054d2464da.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/2e6f4bb71ef6b38765d51acc5a79f638.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/31194d303a67561926a544ed0e072aee.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/3623d96698132c61e861f984ce11cc23.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/39211b02f24c69cbd1b54f6d41b01933.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/3e24063b19abd2b051af986a6870046d.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/4410f876d27c9821839474b6b1059fd7.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/479329a39a3eb6c0047e6b0981919855.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/527ff336279465617aafbafe1a830632.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/56b40518ea0608e62826bd44ee27f5f9.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/5acc7f736217259db79a42bf44241c48.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/5c05f8b75c9d7f25b3c04ca711cf43b3.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/5e0124c7265f1b4cf0fc797b94efbebc.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/615a7e0d63f257109d599b2a1977de68.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/61a2c80d0c924d5a6187c02e8d1d1642.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/62fc94f8d4c5a750b7f25e7387539910.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/639c7c6b0b0c27c738702741cfa4b8c0.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/68a3a4bf337f8a0722be76676e20b850.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/6abdd163d2c4b85698db8aa1ce149361.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/73b794d885b88f7befb7ea8ab1780a15.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/743f290baf027d4626a86e22f3d44600.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/757019c01c5e2c2b0f54293cea3b5636.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/76f117a3baacda304a71965a17266a13.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/77747f17625a259fb405b7bbdd84ac4b.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/788498548ddfb710d6ef3c7bff79fa97.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/78ea6c40923ce95367e3517dd1e5a849.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/7f9a6c9286b68de9c72b0024f7beeb40.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/823d1bb11097331238d103c7f72138dc.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/888ba53510213d5d1f6a7deb60e569b6.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/892aa49b2529c89bb4076d4aa51fe30f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/95ff41191c76ef893ac70a1043e95e44.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/96c75862c8cec51a7c05ff025fea86cd.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/9b21e8244f5930c48ad5073f83777b6c.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/9fce02d1a09f464c36c9fcfb14a354c5.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/a0a6755c7e3f9e4cf03387027dd9f16c.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/a4475c442c6b259354c9eda62e64e7df.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/a4a39b5f048671aa37c2b2a9581ab08a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/a534449d67561ac9b06489f64e57ad98.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/a919a8c6fec6d7e8bb21177965f2e9d7.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/ad67113f88b59582991cb0c5d33ea19f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/adb6e613fb99c6dd660b727101f554a8.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/adc4a98a89870ef984ee8f4b57c8a3a5.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/b12379ab782468d725519cd07a7d15bc.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/b55486f8a459c838fe329d4e79a8c211.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/bb0b15492b8cdbbec57c0bcfa0aa9241.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/bedc74b423b7293b6ad0bdecc61c42cc.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/bfb00d4a4c48661bd0be99f300a0faae.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/c1b0df29ae41d764904df84e9ac83d1e.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/c42c67070cfe99cf823df92d81c7fa6e.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/c4d749e45ecd5a5aed5a0bb3ebfd355d.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/c96d83978add28b356c22c4c84916733.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/cb7ccd6494256f7a2977b7c2b0225592.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/ce41d70ce6a069a498525c9e15c45cf2.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/d509ee5c8241bc7c3de2039d75564fa5.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/d675d717cd329bfd4c0524f76ae1579c.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/dc8f6256445e68199540be9ade33529f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/e8c15be62faf978d208925e79ea6a10d.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/e91c4d941ed9f5c2f3e27f205a3a225e.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/e9c566be7a5d38a9085225f7372bc82b.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/e9ebc567a711eeb29019ddae3e0ce7fe.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/ecb8875a56c7b038b35432fda41ae128.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/f1661731474b78bdf81114daf10b254f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/f2c58dee206ba9355046fc23d05491f7.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/f50ac27ea4358d67fdda403c2bb52467.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/f55334112f8e8be82d65db29887a663f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/f740e93f3c0277ecc616594103bca683.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/f7633b5af033d76ff2fb3c3c266d77c5.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/f7d8468cba2335a83ee414ea68291bab.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/fc9ae5b600fb711f2d67e93ce768cba4.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/400/fd1bceb55d3e0183ac2454b8532fec7d.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/02611a045a7fe83a12014e3debc9f731.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/0f5e1a18987dbc84ca05188c129e1936.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/112743a4ab5fdd1498dfdf2b11336380.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/1211f03d3ff5759a702631445793f60e.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/147b24c2f08d03bbed30887d4cb3311c.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/16663e567f81f4725a1522f37e18f71f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/1824321da801e6257b902f3d1d09054c.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/1a3a92c7c060a71a6c35819b9ebcdbb9.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/1fba7ec0e412e911bf31841de5a8a4e4.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/28a97af9ab9d38983d20f39ff09840e1.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/2bfaadaf3479c72286248e6de0be0ec9.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/2c8c55e4cec85ce77e95cac9d330f5cf.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/2ed9981d2e8983365bd051159b976b6d.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/2f4c633e923ba30c6ba376367379fc91.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/349965eee0a9b6c984a319ab96a4ece9.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/36cda3eae13370b934bba4429fab9078.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/3aa13f1843d7c8fa16109b6395a9a29d.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/3e2c06bdd9dcab29aeaeb0cfb7fa608a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/424123f9371ba357087363263eeafcda.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/43b3bbf43055c3e65db9cdf2c5b18c1c.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/44704471b60c18b3ecec5300a88f1102.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/46604090efbb99c2db1800928af0a239.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/46998df85d31e629c0142f0556f5e7c5.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/49902f1c41b281f8eb3771abdd4dccb8.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/4db4f31a16965baa42cb7dad667a8f04.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/572b9e28f1e6d89b765a16d809db84a1.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/5921cef36750ff6092d94b83a802823b.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/59e95d8b5332dcdae894a19946ab767d.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/5ec349ff62b9ee5fe0c6dae867704dc4.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/601f812e8b1eafecd5ba585a6a6d7962.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/6025ddaf99d86cc8bfd781006b19fbd6.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/60f6e28b3f0400b0e8fe32c3c7116102.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/64a404d675f1d726f0891b7a80794595.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/7158022889c6c177062ac85036e7af10.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/7e38ca789a9e76ac91d9256374e154f0.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/815a0b797465190f60d8b1a04656c42e.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/8726558cf297cbda831cc19514897205.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/8855472f3c02f6c7ebb3216617ebe4af.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/8e231d707f0c4f8e3cde90a6b52a79aa.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/9064c12fd72c7aba235d8c3881755b91.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/911b9e53e9814de2998c60bf3115f560.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/92fdc376bce277874e75db666f175b44.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/930a23430f0eb64480d7fe5f82834e21.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/93bed0e5f2dd5a21cf73304fcfbc149d.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/93f3ea6918533d96d9c252378b9a4af0.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/95a0951d2a2722ff773a1a45e8c474d6.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/982cd1765ca6bbb3e6547e47834d5148.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/9b0c3caac458c7bc9c9133e40405ddea.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/9f3bdab4025dc7c5ba1a5871e62e8918.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/a00e94d4f04df6aa659db9c4954c7efe.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/a2b0597837e382aca19919c4b74e58c8.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/a373e85c96aa0dc303092429fb837e51.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/a6e044424780a57610833cc856c15bf5.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/a7c58070d68dc1724e9d4e781afb78db.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/accc43762ad05edfbff66ba1380d192a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/ad47bcd6d4663026d648c132d969318d.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/af57a2e8c72f9ba0efb1af771d32c124.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/b0ae5f374e43dac992a4a5d334cebc0b.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/b91234c10fd8b8c8abc88e03afe66a1f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/b9317198f118a1dfd8ddf2b82ec028f3.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/ba825ae79b1a6f7e0cce5215fcb5c96f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/bc6183ac08f0fac78c46f80c10cf7c92.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/bc8ccea5abf6598cf3cfa97eb59804bb.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/bc95a792cbca6639214c9b0da13392ff.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/bcfa62f35731856246c146d3a6932bf3.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/c063897793f593eb26d6ff7b7baaba18.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/c6c2971ad1f3221f6cf84028aa0f477e.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/c97f41eef722121d86f55d553c056a39.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/ca62704509932d3232d62918de97af3f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/d1f064825fa5784b5c930652bd831cce.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/d2faabcedd19f016e7b21bce073c0ec8.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/d320171e57480510f87dbbc7d5264b0a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/d3a72a99d365dddfbca8d017a8011368.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/d42aafa0f246ad3b4c16fe96d3a3a432.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/d4aaf23c13ae808a4bed617afd13aa07.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/d6bb686bddfbe8f38a36a68e609a8667.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/d9020ff69a83b2a6ee1f42ae480f7db0.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/da90a9012ab2d98f759e3fa0820ef502.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/df10d94bea357a43313e20da5d84bd30.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/e34b2b141e472dc776c86fdf8eea23b0.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/e444fd88f1390636e603d0d681538ac8.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/e79898628283edc27180fc39d0d769c1.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/eaf332445a40942928e5f5750c1c3116.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/f91cd722855f4269256eae1187df64ec.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/fc895f5ce66b656f4a933097bf2a8775.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/fca6720fd14c467d29a90f18ef3859b9.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/700/fd1bb507bcbf04856eeb7f7fd47ea579.woff2 +0 -0
- package/src/styles/fonts/noto-serif-jp/noto-serif-jp.css +3349 -0
- package/src/styles/fonts/noto-serif-kr/400/033466ef683afe931f7f520cfb42d928.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/05da12edb9d52210581dc6ec4541031f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/0968e4861204b51f62a2f8e9f15dd5e0.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/0d5dec931dc885f07fe5cd5af8bed675.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/1076f0f6f66d28d7a2f16427faad4413.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/12ef1ba76bd20b004b865266a1aa70b3.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/152395634a207579552f8cb54db88599.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/1a08931435f885e707edb85978ea3bb6.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/31a197213ae61d7043c81013f52d10d6.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/37dbd564820cce2f7b3331e442da0df3.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/37dc8505b20b37a2477a9121b16d44a7.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/3ac0a07878cacdc98bb889f40f5970d3.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/491bbba374093fff045f55803a22bfef.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/4d38e56738156625329d93bd5c8cc74a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/57e9a86651366c1ba299e47aa7e358c2.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/57f89adeae55aa7fe2add3fc1801ce03.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/5df9ce98c75f8c50fb4fff7f01a23925.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/60020a830d809c26970cf8e48ba1eeda.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/60bcfa3ea7446eb42394aab02d28be40.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/63fafcb069520613d0ea35ad3e6b1e42.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/65a60d87c64228d258a123cbe85f5f31.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/6968e889e18891d912809fe484c2e745.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/70714891ad3fbfc3d5f10a8669dacc5a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/761d84afca8d7f34eebefe538adba827.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/76e07530323418ec723c5d7634c9bcca.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/773819b7b9b8fd404a929867c0fd677e.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/7817dd16805145d8538ad57590f69f5a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/7b59f0ec7792b18458dc5a361e37884c.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/7c3945788a689a69356c1a622d69d48b.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/835b6505bb9eea9678925a1fa885353d.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/8b5c9ef81159f31d2ab35f45ca4373e0.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/8b91c7c2ed390f1278b9befa3aa87233.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/8fb45117a62d92dce44a80f0b729ead5.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/90b7848e9b1623b77bdcf155e90b839c.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/985d4d41afa0934a4eb2de35473fb9a2.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/9bb38fd05201de666b88b82d56a386f7.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/9eff2ab2a9d2ced47ab761bf6fdb11ec.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/9f1963fe8d4d6878d717d872a8f3fdb5.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/a0d00fe4816c95a8c7dffd445ef00b03.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/a0f199077fa1a33bc2a1e01c64de7fe6.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/a7c35e42a659347e490c3cb7983b2e7f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/aa662092cf249707123ca4d575e2764b.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/aae1eda193285ab817a2d1b408440326.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/b0cb664cb2e1371efda8943c0b7dcd1c.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/b0d1cdced482352cf0d3ae58638aacb9.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/b320f5d185b2cff933ac549c184031c5.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/ba9c59d7dfa4494db1bb764ada81467d.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/bab547459d514f46206e340c4bb2dc88.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/bcc39eda837bb7a7a3d37c8c60fffb81.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/bd73264d7f98776708d5d6f3c9b78fcc.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/bed610b217d500f5975cfc9fe6157570.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/bf8901f8f11d4f433ea17dabc9370ea6.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/c4143bb9f2fe77b6ccf20088a8904650.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/c7ff3f6bbdcd5f604b7343602ab904df.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/c945c62368357d05a53206620460fb30.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/ce022e18a1377ac509443c3c3790b431.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/cf9cffe56636322f62b40d61130fbc5e.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/d20d8944bc0b85f5b2aae4b24f343516.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/d36644d6502527e1fff205d0c7eca434.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/d40ab99c7a38026f411c8f112f742b48.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/dc6e234ded795e91f76d6647f628fbf0.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/dd0cfdfdac0866e66d587e2b5a9e9961.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/de304c8a02e45ded4f8dcc479d167198.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/e8c364c16daa04835bf32d293d2598db.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/ec86e23683052da5cfdc3b77641bd15a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/eda1b0cb6d1719dd9bedcf3216a9e8de.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/ee6fce20b420a480714607c66d7f97e5.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/eee3836d6ac17ebb2c450bbcbc9db121.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/f5738255e92d8dd34a46d1bcdf4c4074.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/fa6e58ce4b52695e7ae19bbea6336ec8.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/400/fd2069e6e8588c70b4f11364093b81f2.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/04b8bde59cff68eeee74fb1914eb09c7.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/05ac821472e235943ed1435e4bb8ecad.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/074c1f8483d5a4d8c45c8c5f3e4cbb32.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/1380210a722ac9aeef54005ad7b015c9.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/17c7f5d0a45e92ede0e5dec3a2c77efa.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/1be602ad456b0d75902d352116cb35fd.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/2612c60f9dc5459ac42763591240a1d6.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/2ab8cf1f23a5ac7939a7876054e711a7.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/34e6750e00c3a911ef87dc66b336594d.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/36f3df4730cfca4fc77fe52b52e6a126.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/37887deb7a9c466cf2af6ee7ff372ea6.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/3aba89c4d4281553078de4622b498cbb.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/3d88558097559d775231194d43745ba7.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/3dc3e8c35524cad2d1236f3393104ccf.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/45140742dfa8686b58db2899ce89f89a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/469d2754e315e77270c12fa0ab28026c.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/4c0760284569b87d8f2290c324953973.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/4cba92c942694bdc479bc54101bb1aa4.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/4e7d263c30bb48604069a3b4404d4eeb.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/5279c7e465d9871edf51fd02e691eee7.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/54bfdb6f21f9d6191e5100580239e14f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/56be5e32fd01668fe5ba814d94905839.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/615b38e0b5bb3ea68426f44f47706e6f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/65e9c4585d71bf48a5c62f367010da16.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/6b75213eb0be40ce84241eb2bb438a2e.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/7520ca6ca8c60eb1e62d50e71c8d30f1.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/759a647b77791b1e98f99bc0ab5317a7.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/76e51630143b95b6322ef93ad330da7a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/79aa7c8c842c4a27cf57c0a3a1ffca5a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/7cc72fd2c9105560422b6a67c6162945.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/7d0ea0690e432462f4d05a23d720ec19.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/7dffa5c1bec57e0903fd62357401ff1a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/82f6ccc063960eed1cdfd1d61ada8862.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/845b4b67564d62cf5cad242f7ac08ea5.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/84c8e7bc0931008ed91f44ed12dfea94.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/887a11290ba78b1e66c6d2f67043005e.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/88db1d042074fb6e66821ffc10941930.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/8dc18c0cebe6aa4bf4c45dbb831048ab.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/919a879bd2d580d8491a31a449390689.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/91da6cb174bebfb96976e2f1316be2fe.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/934dfdbed2bb2c4b6129199d699a34fa.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/97d7a17234f2b5030ae9697ae00aded2.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/995c4fda62d25c3b79dd5987737df6ae.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/9d0afa53dc2f92ba42024f55f11f6779.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/9e13a47242926f1cd7d68c08d9ef8889.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/a379ada89abd750c587ded29f77e731c.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/a48be56ce5d3a99dc8f8331398004412.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/a806759e72987951d6d08b7cbdf36a1b.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/a88481ec8bc7be11cb66e46781a79bb9.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/a9a016d4a93409f65278327e8a8bb38d.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/ab92d41062a7644faa45f50bf384454a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/b326a8a9c33b554db570da94f60bc380.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/b6117ff2993b11bb1fdc7ea3588a010c.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/b61982951bd51b724143c30dfaaa9fe9.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/c0098958e20db68cab90097b5e62516f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/c4bfaa5e50798246e3770718b7a7c84a.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/c84598999133455503042e06f4ab79cb.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/ca9a533988d7019597a60d4e17127e0c.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/cf2b28f90f47276f7e2688a65e88a101.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/d689b1861d7e4377dd72ad3013482612.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/d9047070d72a816b3dba9d40c2d85e69.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/da04549f3f4ed28076b01b8cd710d313.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/da7af303f8c645f9a9dbae0e6e32dd35.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/df9568257eb29b156449fdd4bec5ec76.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/e067cd0ed76c90cd0a93c9339253f20b.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/e08b07772e7bed3cec2832d43f7fd339.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/e12150d5a39b30be8f567968c7a527b0.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/e53fcb2381eee345db4f6f973dd95a3e.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/e5bd313ef81f687d398aacb11cec3069.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/eb5afb3d952b8593782caec6026514b6.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/edd6a4f608d04fc0351d7688cfc321e4.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/f9695c6c4df2bf6bc03045ff79d4f01f.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/fada6eaa68ff8816afe43d2a36c5423e.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/700/fbcc4bf5367218951172bdee6f77d7a6.woff2 +0 -0
- package/src/styles/fonts/noto-serif-kr/noto-serif-kr.css +2601 -0
- package/src/styles/site-media.css +823 -0
- package/src/styles/tokens.css +292 -21
- package/src/styles/ui.css +4188 -1857
- package/src/types/bindings.ts +3 -1
- package/src/types/config.ts +139 -9
- package/src/types/constants.ts +46 -11
- package/src/types/entities.ts +24 -8
- package/src/types/operations.ts +80 -1
- package/src/types/props.ts +10 -2
- package/src/types/raw-assets.d.ts +39 -0
- package/src/types/views.ts +28 -7
- package/src/ui/__tests__/color-themes.test.ts +7 -40
- package/src/ui/__tests__/font-themes.test.ts +30 -11
- package/src/ui/color-themes.ts +311 -270
- package/src/ui/compose/ComposeDialog.tsx +712 -394
- package/src/ui/compose/ComposePrompt.tsx +15 -10
- package/src/ui/dash/ActionButtons.tsx +27 -18
- package/src/ui/dash/DangerZone.tsx +15 -10
- package/src/ui/dash/FormatBadge.tsx +21 -8
- package/src/ui/dash/StatusBadge.tsx +33 -22
- package/src/ui/dash/appearance/AdvancedContent.tsx +44 -30
- package/src/ui/dash/appearance/CodeInjectionContent.tsx +164 -0
- package/src/ui/dash/appearance/ColorThemeContent.tsx +127 -160
- package/src/ui/dash/appearance/FontThemeContent.tsx +20 -15
- package/src/ui/dash/appearance/NavigationContent.tsx +368 -225
- package/src/ui/dash/appearance/__tests__/NavigationContent.test.tsx +54 -0
- package/src/ui/dash/settings/AccountContent.tsx +34 -23
- package/src/ui/dash/settings/AccountMenuContent.tsx +226 -137
- package/src/ui/dash/settings/ApiTokensContent.tsx +122 -79
- package/src/ui/dash/settings/AvatarContent.tsx +73 -45
- package/src/ui/dash/settings/DeleteAccountContent.tsx +106 -66
- package/src/ui/dash/settings/GeneralContent.tsx +274 -157
- package/src/ui/dash/settings/GitHubSyncContent.tsx +558 -0
- package/src/ui/dash/settings/SessionsContent.tsx +79 -38
- package/src/ui/dash/settings/SettingsRootContent.tsx +209 -109
- package/src/ui/dash/settings/__tests__/AccountMenuContent.test.tsx +67 -0
- package/src/ui/dash/settings/__tests__/GeneralContent.test.tsx +75 -0
- package/src/ui/feed/CuratedThreadPreview.tsx +24 -14
- package/src/ui/feed/LinkCard.tsx +116 -84
- package/src/ui/feed/LinkPreview.tsx +75 -0
- package/src/ui/feed/NoteCard.tsx +60 -16
- package/src/ui/feed/PostStatusBadges.tsx +15 -0
- package/src/ui/feed/QuoteCard.tsx +10 -3
- package/src/ui/feed/ThreadPreview.tsx +62 -36
- package/src/ui/feed/TimelineFeed.tsx +2 -1
- package/src/ui/feed/__tests__/thread-preview.test.ts +220 -11
- package/src/ui/feed/__tests__/timeline-cards.test.ts +186 -5
- package/src/ui/feed/thread-preview-state.ts +23 -10
- package/src/ui/font-themes.ts +57 -97
- package/src/ui/layouts/BaseLayout.tsx +221 -136
- package/src/ui/layouts/SiteLayout.tsx +431 -143
- package/src/ui/layouts/__tests__/BaseLayout.test.tsx +76 -6
- package/src/ui/layouts/__tests__/SiteLayout.test.tsx +76 -0
- package/src/ui/pages/ArchivePage.tsx +320 -207
- package/src/ui/pages/BrandPage.tsx +499 -341
- package/src/ui/pages/CollectionEditorPage.tsx +50 -30
- package/src/ui/pages/CollectionPage.tsx +151 -78
- package/src/ui/pages/CollectionsPage.tsx +27 -18
- package/src/ui/pages/ComposePage.tsx +15 -10
- package/src/ui/pages/FeaturedPage.tsx +16 -11
- package/src/ui/pages/HomePage.tsx +15 -10
- package/src/ui/pages/PostPage.tsx +5 -1
- package/src/ui/pages/SearchPage.tsx +93 -43
- package/src/ui/pages/ThemeSamplePage.tsx +758 -520
- package/src/ui/pages/__tests__/ArchivePage.test.tsx +72 -0
- package/src/ui/shared/CollectionDirectory.tsx +215 -34
- package/src/ui/shared/CollectionsManager.tsx +155 -75
- package/src/ui/shared/DecorativeQuoteMark.tsx +12 -9
- package/src/ui/shared/MediaGallery.tsx +350 -256
- package/src/ui/shared/Pagination.tsx +36 -25
- package/src/ui/shared/PostFooter.tsx +139 -96
- package/src/ui/shared/__tests__/media-gallery.test.ts +27 -0
- package/src/ui/shared/__tests__/navigation-labels.test.ts +79 -28
- package/src/ui/shared/__tests__/post-footer.test.ts +42 -17
- package/src/ui/shared/collection-management-labels.ts +109 -33
- package/src/ui/shared/navigation-labels.ts +78 -8
- package/bin/lib/site-localize-media.js +0 -427
- package/dist/client/_assets/client-auth.js +0 -3260
- package/dist/client/_assets/client.css +0 -2
- package/dist/client/_assets/client.js +0 -380
- package/src/__tests__/site-localize-media.test.ts +0 -150
- package/src/client/components/jant-collection-sidebar.ts +0 -816
- package/src/i18n/locales/en.ts +0 -1
- package/src/i18n/locales/zh-Hans.po +0 -3197
- package/src/i18n/locales/zh-Hans.ts +0 -1
- package/src/i18n/locales/zh-Hant.po +0 -3197
- package/src/i18n/locales/zh-Hant.ts +0 -1
- package/src/routes/feed/rss.ts +0 -216
- package/src/types/lingui-react-macro.d.ts +0 -34
- /package/dist/client/_assets/chunks/{heic-to-XcUDQvtx.js → heic-to-DUUaO23q.js} +0 -0
- /package/dist/client/_assets/chunks/{module-ChVQstFd.js → module-DcsAZQZ_.js} +0 -0
- /package/dist/client/_assets/chunks/{native-CR5HLOyf.js → native-DpcrFAPh.js} +0 -0
- /package/dist/client/_assets/{client-cjk.css → client-cjk-B7Z0snDu.css} +0 -0
- /package/dist/client/_assets/{client-cjk-tc.css → client-cjk-tc-BesJYrb2.css} +0 -0
|
@@ -0,0 +1,1448 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collections Page Manager
|
|
3
|
+
*
|
|
4
|
+
* Manages collections on the public /collections page for authenticated users:
|
|
5
|
+
* - Renders collection rows and dividers in a single-column layout
|
|
6
|
+
* - Dropdown menu for page actions (organize, new divider)
|
|
7
|
+
* - SortableJS drag-and-drop organize mode
|
|
8
|
+
* - Links out to full-page collection create/edit flows
|
|
9
|
+
* - Divider CRUD
|
|
10
|
+
*
|
|
11
|
+
* Light DOM only so site styles apply directly.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { LitElement, html, nothing } from "lit";
|
|
15
|
+
import type { PropertyValueMap } from "lit";
|
|
16
|
+
import type { Editor } from "@tiptap/core";
|
|
17
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
18
|
+
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
19
|
+
import Sortable from "sortablejs";
|
|
20
|
+
import {
|
|
21
|
+
captureSortableRevertNextSibling,
|
|
22
|
+
getSortableMove,
|
|
23
|
+
readSortableDataIds,
|
|
24
|
+
responsiveSortableOptions,
|
|
25
|
+
revertSortableDomMove,
|
|
26
|
+
setSortableDraggingState,
|
|
27
|
+
} from "../sortable-list.js";
|
|
28
|
+
import { showConfirmDialog } from "../confirm.js";
|
|
29
|
+
import { publicPath } from "../runtime-paths.js";
|
|
30
|
+
import { showToast } from "../toast.js";
|
|
31
|
+
import { getDividerCollectionGroup } from "../../lib/collection-groups.js";
|
|
32
|
+
import {
|
|
33
|
+
getCollectionEditPath,
|
|
34
|
+
getCollectionSelectionPath,
|
|
35
|
+
getCollectionsDirectoryPath,
|
|
36
|
+
} from "../../lib/collection-paths.js";
|
|
37
|
+
import { render as renderMarkdown } from "../../lib/markdown.js";
|
|
38
|
+
import { formatRelativeAge, toISOString } from "../../lib/time.js";
|
|
39
|
+
import {
|
|
40
|
+
createSettingsEditor,
|
|
41
|
+
jsonToMarkdown,
|
|
42
|
+
} from "../tiptap/create-editor.js";
|
|
43
|
+
import type {
|
|
44
|
+
CollectionManagerItem,
|
|
45
|
+
CollectionManagerLabels,
|
|
46
|
+
ManagedCollection,
|
|
47
|
+
} from "./collection-manager-types.js";
|
|
48
|
+
|
|
49
|
+
interface CollectionsResponse {
|
|
50
|
+
collections?: Array<{
|
|
51
|
+
id: string;
|
|
52
|
+
slug: string;
|
|
53
|
+
title: string;
|
|
54
|
+
description: string | null;
|
|
55
|
+
sortOrder: string;
|
|
56
|
+
postCount: number;
|
|
57
|
+
recentActivityAt: number;
|
|
58
|
+
}>;
|
|
59
|
+
directoryItems?: Array<{
|
|
60
|
+
id: string;
|
|
61
|
+
type: "collection" | "divider" | "link";
|
|
62
|
+
collectionId: string | null;
|
|
63
|
+
label: string | null;
|
|
64
|
+
url: string | null;
|
|
65
|
+
description: string | null;
|
|
66
|
+
position: string;
|
|
67
|
+
}>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
interface DirectoryItemUpdateResponse {
|
|
71
|
+
label?: string | null;
|
|
72
|
+
url?: string | null;
|
|
73
|
+
description?: string | null;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export class JantCollectionsManager extends LitElement {
|
|
77
|
+
static properties = {
|
|
78
|
+
items: { type: Array },
|
|
79
|
+
labels: { type: Object },
|
|
80
|
+
|
|
81
|
+
_items: { state: true },
|
|
82
|
+
_reorderMode: { state: true },
|
|
83
|
+
_editingDividerId: { state: true },
|
|
84
|
+
_editingLinkId: { state: true },
|
|
85
|
+
_editLinkLabel: { state: true },
|
|
86
|
+
_editLinkUrl: { state: true },
|
|
87
|
+
_editLinkDescription: { state: true },
|
|
88
|
+
_showMoreMenu: { state: true },
|
|
89
|
+
_showLinkForm: { state: true },
|
|
90
|
+
_newLinkLabel: { state: true },
|
|
91
|
+
_newLinkUrl: { state: true },
|
|
92
|
+
_newLinkDescription: { state: true },
|
|
93
|
+
_addingLink: { state: true },
|
|
94
|
+
_hoveringId: { state: true },
|
|
95
|
+
_showItemMenuId: { state: true },
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
declare items: CollectionManagerItem[];
|
|
99
|
+
declare labels: CollectionManagerLabels;
|
|
100
|
+
|
|
101
|
+
declare _items: CollectionManagerItem[];
|
|
102
|
+
declare _reorderMode: boolean;
|
|
103
|
+
declare _editingDividerId: string | null;
|
|
104
|
+
declare _editingLinkId: string | null;
|
|
105
|
+
declare _editLinkLabel: string;
|
|
106
|
+
declare _editLinkUrl: string;
|
|
107
|
+
declare _editLinkDescription: string;
|
|
108
|
+
declare _showMoreMenu: boolean;
|
|
109
|
+
declare _showLinkForm: boolean;
|
|
110
|
+
declare _newLinkLabel: string;
|
|
111
|
+
declare _newLinkUrl: string;
|
|
112
|
+
declare _newLinkDescription: string;
|
|
113
|
+
declare _addingLink: boolean;
|
|
114
|
+
declare _hoveringId: string | null;
|
|
115
|
+
declare _showItemMenuId: string | null;
|
|
116
|
+
|
|
117
|
+
#sortable: { destroy(): void } | null = null;
|
|
118
|
+
#initialized = false;
|
|
119
|
+
#revertNextSibling: Node | null = null;
|
|
120
|
+
#managerRoot: HTMLElement | null = null;
|
|
121
|
+
#newLinkDescEditor: Editor | null = null;
|
|
122
|
+
#editLinkDescEditor: Editor | null = null;
|
|
123
|
+
|
|
124
|
+
#closeMoreMenu = () => {
|
|
125
|
+
this._showMoreMenu = false;
|
|
126
|
+
document.removeEventListener("click", this.#closeMoreMenu);
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
#closeItemMenu = () => {
|
|
130
|
+
this._showItemMenuId = null;
|
|
131
|
+
document.removeEventListener("click", this.#closeItemMenu);
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
#handleHeaderClick = (event: Event) => {
|
|
135
|
+
const target = event.target as HTMLElement | null;
|
|
136
|
+
if (!target) return;
|
|
137
|
+
|
|
138
|
+
if (target.closest("[data-collections-more-menu]")) {
|
|
139
|
+
event.stopPropagation();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const actionEl = target.closest<HTMLElement>("[data-collections-action]");
|
|
143
|
+
if (!actionEl || !this.#managerRoot?.contains(actionEl)) return;
|
|
144
|
+
|
|
145
|
+
const action = actionEl.dataset.collectionsAction;
|
|
146
|
+
if (!action) return;
|
|
147
|
+
|
|
148
|
+
event.preventDefault();
|
|
149
|
+
event.stopPropagation();
|
|
150
|
+
|
|
151
|
+
if (action !== "toggle-menu" && this._showMoreMenu) {
|
|
152
|
+
this._showMoreMenu = false;
|
|
153
|
+
document.removeEventListener("click", this.#closeMoreMenu);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
switch (action) {
|
|
157
|
+
case "done":
|
|
158
|
+
this.#exitReorderMode();
|
|
159
|
+
break;
|
|
160
|
+
case "toggle-menu":
|
|
161
|
+
this._showMoreMenu = !this._showMoreMenu;
|
|
162
|
+
if (this._showMoreMenu) {
|
|
163
|
+
setTimeout(() => {
|
|
164
|
+
document.addEventListener("click", this.#closeMoreMenu);
|
|
165
|
+
});
|
|
166
|
+
} else {
|
|
167
|
+
document.removeEventListener("click", this.#closeMoreMenu);
|
|
168
|
+
}
|
|
169
|
+
break;
|
|
170
|
+
case "organize":
|
|
171
|
+
this.#enterReorderMode();
|
|
172
|
+
break;
|
|
173
|
+
case "divider":
|
|
174
|
+
void this.#addDivider();
|
|
175
|
+
break;
|
|
176
|
+
case "link":
|
|
177
|
+
this.#openLinkForm();
|
|
178
|
+
break;
|
|
179
|
+
default:
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
createRenderRoot() {
|
|
185
|
+
this.innerHTML = "";
|
|
186
|
+
return this;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
connectedCallback() {
|
|
190
|
+
super.connectedCallback();
|
|
191
|
+
this.#bindManagerRoot();
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
constructor() {
|
|
195
|
+
super();
|
|
196
|
+
this.items = [];
|
|
197
|
+
this.labels = {} as CollectionManagerLabels;
|
|
198
|
+
|
|
199
|
+
this._items = [];
|
|
200
|
+
this._reorderMode = false;
|
|
201
|
+
this._editingDividerId = null;
|
|
202
|
+
this._editingLinkId = null;
|
|
203
|
+
this._editLinkLabel = "";
|
|
204
|
+
this._editLinkUrl = "";
|
|
205
|
+
this._editLinkDescription = "";
|
|
206
|
+
this._showMoreMenu = false;
|
|
207
|
+
this._showLinkForm = false;
|
|
208
|
+
this._newLinkLabel = "";
|
|
209
|
+
this._newLinkUrl = "";
|
|
210
|
+
this._newLinkDescription = "";
|
|
211
|
+
this._addingLink = false;
|
|
212
|
+
this._hoveringId = null;
|
|
213
|
+
this._showItemMenuId = null;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
protected update(
|
|
217
|
+
changedProperties: PropertyValueMap<JantCollectionsManager>,
|
|
218
|
+
): void {
|
|
219
|
+
if (!this.#initialized || changedProperties.has("items")) {
|
|
220
|
+
this._items = [...(this.items ?? [])];
|
|
221
|
+
this.#initialized = true;
|
|
222
|
+
}
|
|
223
|
+
super.update(changedProperties);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
disconnectedCallback() {
|
|
227
|
+
super.disconnectedCallback();
|
|
228
|
+
this.#sortable?.destroy();
|
|
229
|
+
this.#sortable = null;
|
|
230
|
+
this.#managerRoot?.removeEventListener("click", this.#handleHeaderClick);
|
|
231
|
+
this.#managerRoot = null;
|
|
232
|
+
this.#newLinkDescEditor?.destroy();
|
|
233
|
+
this.#newLinkDescEditor = null;
|
|
234
|
+
this.#editLinkDescEditor?.destroy();
|
|
235
|
+
this.#editLinkDescEditor = null;
|
|
236
|
+
document.removeEventListener("click", this.#closeMoreMenu);
|
|
237
|
+
document.removeEventListener("click", this.#closeItemMenu);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
#hasDirectoryContent() {
|
|
241
|
+
return this._items.some(
|
|
242
|
+
(item) =>
|
|
243
|
+
(item.type === "collection" && item.collection) ||
|
|
244
|
+
(item.type === "link" && item.label && item.url),
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
#collectionCount() {
|
|
249
|
+
return this._items.filter(
|
|
250
|
+
(item) => item.type === "collection" && item.collection,
|
|
251
|
+
).length;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
#collectionCountLabel() {
|
|
255
|
+
const count = this.#collectionCount();
|
|
256
|
+
return `${count} ${
|
|
257
|
+
count === 1
|
|
258
|
+
? this.labels.collectionSingular
|
|
259
|
+
: this.labels.collectionPlural
|
|
260
|
+
}`;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
#countLabel(count: number) {
|
|
264
|
+
return `${count} ${
|
|
265
|
+
count === 1 ? this.labels.entrySingular : this.labels.entryPlural
|
|
266
|
+
}`;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
#bindManagerRoot() {
|
|
270
|
+
const root = this.closest<HTMLElement>("[data-collections-manager-root]");
|
|
271
|
+
if (root === this.#managerRoot) return;
|
|
272
|
+
|
|
273
|
+
this.#managerRoot?.removeEventListener("click", this.#handleHeaderClick);
|
|
274
|
+
this.#managerRoot = root;
|
|
275
|
+
this.#managerRoot?.addEventListener("click", this.#handleHeaderClick);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
#queryHeaderElement<T extends HTMLElement>(selector: string) {
|
|
279
|
+
return this.#managerRoot?.querySelector<T>(selector) ?? null;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
#syncHeaderState() {
|
|
283
|
+
const countEl = this.#queryHeaderElement<HTMLElement>(
|
|
284
|
+
"[data-collections-count]",
|
|
285
|
+
);
|
|
286
|
+
if (countEl) {
|
|
287
|
+
countEl.textContent = this.#collectionCountLabel();
|
|
288
|
+
countEl.hidden = false;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
const doneButton = this.#queryHeaderElement<HTMLButtonElement>(
|
|
292
|
+
'[data-collections-action="done"]',
|
|
293
|
+
);
|
|
294
|
+
if (doneButton) {
|
|
295
|
+
doneButton.hidden = !this._reorderMode;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
const reorderActions = this.#queryHeaderElement<HTMLElement>(
|
|
299
|
+
"[data-collections-reorder-actions]",
|
|
300
|
+
);
|
|
301
|
+
if (reorderActions) {
|
|
302
|
+
reorderActions.hidden = !this._reorderMode;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
const toolbar = this.#queryHeaderElement<HTMLElement>(
|
|
306
|
+
"[data-collections-toolbar]",
|
|
307
|
+
);
|
|
308
|
+
if (toolbar) {
|
|
309
|
+
toolbar.hidden = this._reorderMode;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
const hint = this.#queryHeaderElement<HTMLElement>(
|
|
313
|
+
"[data-collections-hint]",
|
|
314
|
+
);
|
|
315
|
+
if (hint) {
|
|
316
|
+
hint.hidden = !this._reorderMode;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
const menu = this.#queryHeaderElement<HTMLElement>(
|
|
320
|
+
"[data-collections-more-menu]",
|
|
321
|
+
);
|
|
322
|
+
if (menu) {
|
|
323
|
+
menu.hidden = !this._showMoreMenu || this._reorderMode;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
const toggleButton = this.#queryHeaderElement<HTMLButtonElement>(
|
|
327
|
+
'[data-collections-action="toggle-menu"]',
|
|
328
|
+
);
|
|
329
|
+
if (toggleButton) {
|
|
330
|
+
toggleButton.setAttribute(
|
|
331
|
+
"aria-expanded",
|
|
332
|
+
String(this._showMoreMenu && !this._reorderMode),
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
#toItems(json: CollectionsResponse): CollectionManagerItem[] {
|
|
338
|
+
const collections = json.collections ?? [];
|
|
339
|
+
const directoryItems = json.directoryItems ?? [];
|
|
340
|
+
const collectionMap = new Map<string, ManagedCollection>();
|
|
341
|
+
|
|
342
|
+
for (const collection of collections) {
|
|
343
|
+
collectionMap.set(collection.id, {
|
|
344
|
+
id: collection.id,
|
|
345
|
+
slug: collection.slug,
|
|
346
|
+
title: collection.title,
|
|
347
|
+
description: collection.description,
|
|
348
|
+
sortOrder: collection.sortOrder,
|
|
349
|
+
postCount: collection.postCount ?? 0,
|
|
350
|
+
recentActivityAt: collection.recentActivityAt,
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
const seenCollections = new Set<string>();
|
|
355
|
+
const orderedItems: CollectionManagerItem[] = [];
|
|
356
|
+
|
|
357
|
+
for (const item of directoryItems) {
|
|
358
|
+
const collection =
|
|
359
|
+
item.collectionId != null
|
|
360
|
+
? collectionMap.get(item.collectionId)
|
|
361
|
+
: undefined;
|
|
362
|
+
|
|
363
|
+
if (item.type === "collection" && !collection) {
|
|
364
|
+
continue;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
if (collection) {
|
|
368
|
+
seenCollections.add(collection.id);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
orderedItems.push({
|
|
372
|
+
id: item.id,
|
|
373
|
+
type: item.type,
|
|
374
|
+
collectionId: item.collectionId,
|
|
375
|
+
label: item.label,
|
|
376
|
+
url: item.url,
|
|
377
|
+
description: item.description,
|
|
378
|
+
position: item.position,
|
|
379
|
+
collection,
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
for (const collection of collections) {
|
|
384
|
+
if (seenCollections.has(collection.id)) continue;
|
|
385
|
+
orderedItems.push({
|
|
386
|
+
id: `collection-${collection.id}`,
|
|
387
|
+
type: "collection",
|
|
388
|
+
collectionId: collection.id,
|
|
389
|
+
label: null,
|
|
390
|
+
url: null,
|
|
391
|
+
position: "",
|
|
392
|
+
collection: collectionMap.get(collection.id),
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
return orderedItems;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
async #refreshList() {
|
|
400
|
+
try {
|
|
401
|
+
const res = await fetch("/api/collections");
|
|
402
|
+
if (!res.ok) return;
|
|
403
|
+
const json = (await res.json()) as CollectionsResponse;
|
|
404
|
+
this._items = this.#toItems(json);
|
|
405
|
+
} catch {
|
|
406
|
+
// stale UI is acceptable
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
#initSortable() {
|
|
411
|
+
const list = this.querySelector<HTMLElement>("#collections-manager-list");
|
|
412
|
+
if (!list || this.#sortable) return;
|
|
413
|
+
|
|
414
|
+
this.#sortable = Sortable.create(list, {
|
|
415
|
+
...responsiveSortableOptions,
|
|
416
|
+
chosenClass: "collection-directory-chosen",
|
|
417
|
+
dragClass: "collection-directory-drag",
|
|
418
|
+
ghostClass: "collection-directory-ghost",
|
|
419
|
+
handle: "[data-drag-handle]",
|
|
420
|
+
scroll: true,
|
|
421
|
+
onChoose: () => {
|
|
422
|
+
setSortableDraggingState(list, true);
|
|
423
|
+
},
|
|
424
|
+
onStart: (evt) => {
|
|
425
|
+
this.#revertNextSibling = captureSortableRevertNextSibling(evt);
|
|
426
|
+
},
|
|
427
|
+
onUnchoose: () => {
|
|
428
|
+
setSortableDraggingState(list, false);
|
|
429
|
+
},
|
|
430
|
+
onEnd: (evt) => {
|
|
431
|
+
const orderedIds = readSortableDataIds(
|
|
432
|
+
list,
|
|
433
|
+
"[data-directory-item]",
|
|
434
|
+
"directoryItem",
|
|
435
|
+
);
|
|
436
|
+
revertSortableDomMove(list, evt, this.#revertNextSibling);
|
|
437
|
+
this.#revertNextSibling = null;
|
|
438
|
+
setSortableDraggingState(list, false);
|
|
439
|
+
|
|
440
|
+
this.#sortable?.destroy();
|
|
441
|
+
this.#sortable = null;
|
|
442
|
+
|
|
443
|
+
const { movedId, afterId, beforeId } = getSortableMove(
|
|
444
|
+
orderedIds,
|
|
445
|
+
evt.newIndex,
|
|
446
|
+
);
|
|
447
|
+
if (!movedId) return;
|
|
448
|
+
|
|
449
|
+
const itemMap = new Map(this._items.map((entry) => [entry.id, entry]));
|
|
450
|
+
this._items = orderedIds
|
|
451
|
+
.map((id) => itemMap.get(id))
|
|
452
|
+
.filter(
|
|
453
|
+
(entry): entry is CollectionManagerItem => entry !== undefined,
|
|
454
|
+
);
|
|
455
|
+
|
|
456
|
+
fetch(`/api/collections/directory-items/${movedId}/move`, {
|
|
457
|
+
method: "PUT",
|
|
458
|
+
headers: { "Content-Type": "application/json" },
|
|
459
|
+
body: JSON.stringify({
|
|
460
|
+
after: afterId ?? null,
|
|
461
|
+
before: beforeId ?? null,
|
|
462
|
+
}),
|
|
463
|
+
}).then((res) => {
|
|
464
|
+
if (res.ok) showToast(this.labels.orderSaved);
|
|
465
|
+
else showToast(this.labels.saveFailed, "error");
|
|
466
|
+
});
|
|
467
|
+
},
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
#enterReorderMode() {
|
|
472
|
+
this._reorderMode = true;
|
|
473
|
+
this._showLinkForm = false;
|
|
474
|
+
this._editingLinkId = null;
|
|
475
|
+
this._showMoreMenu = false;
|
|
476
|
+
document.removeEventListener("click", this.#closeMoreMenu);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
#exitReorderMode() {
|
|
480
|
+
this._reorderMode = false;
|
|
481
|
+
this._editingDividerId = null;
|
|
482
|
+
this.#sortable?.destroy();
|
|
483
|
+
this.#sortable = null;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
protected updated(
|
|
487
|
+
changedProperties: PropertyValueMap<JantCollectionsManager>,
|
|
488
|
+
): void {
|
|
489
|
+
this.#bindManagerRoot();
|
|
490
|
+
this.#syncHeaderState();
|
|
491
|
+
|
|
492
|
+
if (this._reorderMode) {
|
|
493
|
+
this.#initSortable();
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
if (this._editingDividerId) {
|
|
497
|
+
const input = this.querySelector<HTMLInputElement>(
|
|
498
|
+
`[data-divider-input-for="${this._editingDividerId}"]`,
|
|
499
|
+
);
|
|
500
|
+
if (input) {
|
|
501
|
+
input.focus();
|
|
502
|
+
input.select();
|
|
503
|
+
input.scrollIntoView({ block: "nearest" });
|
|
504
|
+
this._editingDividerId = null;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
if (changedProperties.has("_showLinkForm") && this._showLinkForm) {
|
|
509
|
+
const input = this.querySelector<HTMLInputElement>(
|
|
510
|
+
'[data-link-form-input="label"]',
|
|
511
|
+
);
|
|
512
|
+
if (input && this.ownerDocument.activeElement !== input) {
|
|
513
|
+
input.focus();
|
|
514
|
+
}
|
|
515
|
+
this.#initNewLinkDescEditor();
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
if (changedProperties.has("_editingLinkId") && this._editingLinkId) {
|
|
519
|
+
this.#initEditLinkDescEditor();
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
#initNewLinkDescEditor() {
|
|
524
|
+
const container = this.querySelector<HTMLElement>(
|
|
525
|
+
"[data-new-link-desc-editor]",
|
|
526
|
+
);
|
|
527
|
+
if (!container || this.#newLinkDescEditor) return;
|
|
528
|
+
|
|
529
|
+
this.#newLinkDescEditor = createSettingsEditor({
|
|
530
|
+
element: container,
|
|
531
|
+
placeholder: this.labels.linkDescriptionPlaceholder,
|
|
532
|
+
content: this._newLinkDescription || undefined,
|
|
533
|
+
onUpdate: (markdown) => {
|
|
534
|
+
this._newLinkDescription = markdown;
|
|
535
|
+
},
|
|
536
|
+
});
|
|
537
|
+
|
|
538
|
+
this._newLinkDescription = jsonToMarkdown(
|
|
539
|
+
this.#newLinkDescEditor.getJSON(),
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
#initEditLinkDescEditor() {
|
|
544
|
+
const container = this.querySelector<HTMLElement>(
|
|
545
|
+
"[data-edit-link-desc-editor]",
|
|
546
|
+
);
|
|
547
|
+
if (!container || this.#editLinkDescEditor) return;
|
|
548
|
+
|
|
549
|
+
this.#editLinkDescEditor = createSettingsEditor({
|
|
550
|
+
element: container,
|
|
551
|
+
placeholder: this.labels.linkDescriptionPlaceholder,
|
|
552
|
+
content: this._editLinkDescription || undefined,
|
|
553
|
+
onUpdate: (markdown) => {
|
|
554
|
+
this._editLinkDescription = markdown;
|
|
555
|
+
},
|
|
556
|
+
});
|
|
557
|
+
|
|
558
|
+
this._editLinkDescription = jsonToMarkdown(
|
|
559
|
+
this.#editLinkDescEditor.getJSON(),
|
|
560
|
+
);
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
async #addDivider() {
|
|
564
|
+
this._showMoreMenu = false;
|
|
565
|
+
document.removeEventListener("click", this.#closeMoreMenu);
|
|
566
|
+
try {
|
|
567
|
+
const res = await fetch("/api/collections/directory-items", {
|
|
568
|
+
method: "POST",
|
|
569
|
+
headers: { "Content-Type": "application/json" },
|
|
570
|
+
body: JSON.stringify({ type: "divider" }),
|
|
571
|
+
});
|
|
572
|
+
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
573
|
+
const item = (await res.json()) as { id: string };
|
|
574
|
+
this._reorderMode = true;
|
|
575
|
+
await this.#refreshList();
|
|
576
|
+
this._editingDividerId = item.id;
|
|
577
|
+
} catch {
|
|
578
|
+
showToast(this.labels.saveFailed, "error");
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
#openLinkForm() {
|
|
583
|
+
this._showMoreMenu = false;
|
|
584
|
+
this._showLinkForm = true;
|
|
585
|
+
this._newLinkLabel = "";
|
|
586
|
+
this._newLinkUrl = "";
|
|
587
|
+
this._newLinkDescription = "";
|
|
588
|
+
this.#newLinkDescEditor?.destroy();
|
|
589
|
+
this.#newLinkDescEditor = null;
|
|
590
|
+
document.removeEventListener("click", this.#closeMoreMenu);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
async #createLink() {
|
|
594
|
+
const label = this._newLinkLabel.trim();
|
|
595
|
+
const url = this._newLinkUrl.trim();
|
|
596
|
+
if (!label || !url) {
|
|
597
|
+
showToast(this.labels.labelAndUrlRequired, "error");
|
|
598
|
+
return;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
this._addingLink = true;
|
|
602
|
+
try {
|
|
603
|
+
const description = this._newLinkDescription.trim() || null;
|
|
604
|
+
const res = await fetch("/api/collections/directory-items", {
|
|
605
|
+
method: "POST",
|
|
606
|
+
headers: { "Content-Type": "application/json" },
|
|
607
|
+
body: JSON.stringify({
|
|
608
|
+
type: "link",
|
|
609
|
+
label,
|
|
610
|
+
url,
|
|
611
|
+
description,
|
|
612
|
+
}),
|
|
613
|
+
});
|
|
614
|
+
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
615
|
+
|
|
616
|
+
this._showLinkForm = false;
|
|
617
|
+
this._newLinkLabel = "";
|
|
618
|
+
this._newLinkUrl = "";
|
|
619
|
+
this._newLinkDescription = "";
|
|
620
|
+
this.#newLinkDescEditor?.destroy();
|
|
621
|
+
this.#newLinkDescEditor = null;
|
|
622
|
+
showToast(this.labels.linkCreated);
|
|
623
|
+
await this.#refreshList();
|
|
624
|
+
} catch {
|
|
625
|
+
showToast(this.labels.saveFailed, "error");
|
|
626
|
+
} finally {
|
|
627
|
+
this._addingLink = false;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
async #deleteDivider(id: string) {
|
|
632
|
+
try {
|
|
633
|
+
const res = await fetch(`/api/collections/directory-items/${id}`, {
|
|
634
|
+
method: "DELETE",
|
|
635
|
+
});
|
|
636
|
+
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
637
|
+
this._items = this._items.filter((item) => item.id !== id);
|
|
638
|
+
} catch {
|
|
639
|
+
showToast(this.labels.saveFailed, "error");
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
async #saveDividerLabel(id: string, label: string) {
|
|
644
|
+
const normalized = label.trim();
|
|
645
|
+
const current = this._items.find((item) => item.id === id)?.label ?? "";
|
|
646
|
+
if (normalized === current) return;
|
|
647
|
+
|
|
648
|
+
try {
|
|
649
|
+
const res = await fetch(`/api/collections/directory-items/${id}`, {
|
|
650
|
+
method: "PUT",
|
|
651
|
+
headers: { "Content-Type": "application/json" },
|
|
652
|
+
body: JSON.stringify({
|
|
653
|
+
label: normalized || null,
|
|
654
|
+
}),
|
|
655
|
+
});
|
|
656
|
+
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
657
|
+
const updated = (await res.json()) as DirectoryItemUpdateResponse;
|
|
658
|
+
this._items = this._items.map((item) =>
|
|
659
|
+
item.id === id ? { ...item, label: updated.label ?? null } : item,
|
|
660
|
+
);
|
|
661
|
+
} catch {
|
|
662
|
+
showToast(this.labels.saveFailed, "error");
|
|
663
|
+
await this.#refreshList();
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
async #deleteCollection(collection: ManagedCollection) {
|
|
668
|
+
const confirmed = await showConfirmDialog({
|
|
669
|
+
message: this.labels.confirmDelete,
|
|
670
|
+
confirmLabel: this.labels.deleteCollection,
|
|
671
|
+
cancelLabel: this.labels.cancel,
|
|
672
|
+
tone: "danger",
|
|
673
|
+
});
|
|
674
|
+
if (!confirmed) return;
|
|
675
|
+
|
|
676
|
+
this._showItemMenuId = null;
|
|
677
|
+
document.removeEventListener("click", this.#closeItemMenu);
|
|
678
|
+
|
|
679
|
+
try {
|
|
680
|
+
const res = await fetch(`/api/collections/${collection.id}`, {
|
|
681
|
+
method: "DELETE",
|
|
682
|
+
});
|
|
683
|
+
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
684
|
+
|
|
685
|
+
showToast(this.labels.deleted);
|
|
686
|
+
await this.#refreshList();
|
|
687
|
+
} catch {
|
|
688
|
+
showToast(this.labels.saveFailed, "error");
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
#toggleLinkEdit(item: CollectionManagerItem) {
|
|
693
|
+
if (item.type !== "link") return;
|
|
694
|
+
|
|
695
|
+
if (this._editingLinkId === item.id) {
|
|
696
|
+
this._editingLinkId = null;
|
|
697
|
+
this._editLinkLabel = "";
|
|
698
|
+
this._editLinkUrl = "";
|
|
699
|
+
this._editLinkDescription = "";
|
|
700
|
+
this.#editLinkDescEditor?.destroy();
|
|
701
|
+
this.#editLinkDescEditor = null;
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
this._editingLinkId = item.id;
|
|
706
|
+
this._editLinkLabel = item.label ?? "";
|
|
707
|
+
this._editLinkUrl = item.url ?? "";
|
|
708
|
+
this._editLinkDescription = item.description ?? "";
|
|
709
|
+
this.#editLinkDescEditor?.destroy();
|
|
710
|
+
this.#editLinkDescEditor = null;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
async #saveLink(item: CollectionManagerItem) {
|
|
714
|
+
const label = this._editLinkLabel.trim();
|
|
715
|
+
const url = this._editLinkUrl.trim();
|
|
716
|
+
if (!label || !url) {
|
|
717
|
+
showToast(this.labels.labelAndUrlRequired, "error");
|
|
718
|
+
return;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
try {
|
|
722
|
+
const description = this._editLinkDescription.trim() || null;
|
|
723
|
+
const res = await fetch(`/api/collections/directory-items/${item.id}`, {
|
|
724
|
+
method: "PUT",
|
|
725
|
+
headers: { "Content-Type": "application/json" },
|
|
726
|
+
body: JSON.stringify({ label, url, description }),
|
|
727
|
+
});
|
|
728
|
+
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
729
|
+
|
|
730
|
+
const updated = (await res.json()) as DirectoryItemUpdateResponse;
|
|
731
|
+
this._items = this._items.map((entry) =>
|
|
732
|
+
entry.id === item.id
|
|
733
|
+
? {
|
|
734
|
+
...entry,
|
|
735
|
+
label: updated.label ?? label,
|
|
736
|
+
url: updated.url ?? url,
|
|
737
|
+
description: updated.description ?? null,
|
|
738
|
+
}
|
|
739
|
+
: entry,
|
|
740
|
+
);
|
|
741
|
+
this._editingLinkId = null;
|
|
742
|
+
this._editLinkLabel = "";
|
|
743
|
+
this._editLinkUrl = "";
|
|
744
|
+
this._editLinkDescription = "";
|
|
745
|
+
this.#editLinkDescEditor?.destroy();
|
|
746
|
+
this.#editLinkDescEditor = null;
|
|
747
|
+
showToast(this.labels.linkSaved);
|
|
748
|
+
} catch {
|
|
749
|
+
showToast(this.labels.saveFailed, "error");
|
|
750
|
+
await this.#refreshList();
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
async #deleteLink(item: CollectionManagerItem) {
|
|
755
|
+
const confirmed = await showConfirmDialog({
|
|
756
|
+
message: this.labels.confirmDeleteLink,
|
|
757
|
+
confirmLabel: this.labels.deleteLink,
|
|
758
|
+
cancelLabel: this.labels.cancel,
|
|
759
|
+
tone: "danger",
|
|
760
|
+
});
|
|
761
|
+
if (!confirmed) return;
|
|
762
|
+
|
|
763
|
+
this._showItemMenuId = null;
|
|
764
|
+
document.removeEventListener("click", this.#closeItemMenu);
|
|
765
|
+
|
|
766
|
+
try {
|
|
767
|
+
const res = await fetch(`/api/collections/directory-items/${item.id}`, {
|
|
768
|
+
method: "DELETE",
|
|
769
|
+
});
|
|
770
|
+
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
771
|
+
|
|
772
|
+
this._editingLinkId = null;
|
|
773
|
+
this._editLinkLabel = "";
|
|
774
|
+
this._editLinkUrl = "";
|
|
775
|
+
this._editLinkDescription = "";
|
|
776
|
+
this.#editLinkDescEditor?.destroy();
|
|
777
|
+
this.#editLinkDescEditor = null;
|
|
778
|
+
showToast(this.labels.linkDeleted);
|
|
779
|
+
this._items = this._items.filter((entry) => entry.id !== item.id);
|
|
780
|
+
} catch {
|
|
781
|
+
showToast(this.labels.saveFailed, "error");
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
#computeSequenceLabels(): string[] {
|
|
786
|
+
const isContentItem = (item: CollectionManagerItem) =>
|
|
787
|
+
(item.type === "collection" && item.collection) ||
|
|
788
|
+
(item.type === "link" && item.label && item.url);
|
|
789
|
+
|
|
790
|
+
const groupSizes: number[] = [];
|
|
791
|
+
let seenDivider = false;
|
|
792
|
+
let ungroupedCount = 0;
|
|
793
|
+
for (const item of this._items) {
|
|
794
|
+
if (item.type === "divider") {
|
|
795
|
+
seenDivider = true;
|
|
796
|
+
groupSizes.push(0);
|
|
797
|
+
} else if (isContentItem(item)) {
|
|
798
|
+
if (seenDivider) {
|
|
799
|
+
groupSizes[groupSizes.length - 1] += 1;
|
|
800
|
+
} else {
|
|
801
|
+
ungroupedCount += 1;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
const hasGroups = groupSizes.length > 0;
|
|
807
|
+
const maxGroupIndex = Math.max(0, groupSizes.length - 1);
|
|
808
|
+
const groupWidth = hasGroups
|
|
809
|
+
? Math.max(1, maxGroupIndex.toString(36).length)
|
|
810
|
+
: 0;
|
|
811
|
+
const ungroupedItemWidth = Math.max(
|
|
812
|
+
2,
|
|
813
|
+
String(Math.max(0, ungroupedCount - 1)).length,
|
|
814
|
+
);
|
|
815
|
+
|
|
816
|
+
const labels: string[] = [];
|
|
817
|
+
let groupIndex = -1;
|
|
818
|
+
let itemIndex = 0;
|
|
819
|
+
|
|
820
|
+
for (const item of this._items) {
|
|
821
|
+
if (item.type === "divider") {
|
|
822
|
+
groupIndex += 1;
|
|
823
|
+
itemIndex = 0;
|
|
824
|
+
labels.push("");
|
|
825
|
+
} else if (isContentItem(item)) {
|
|
826
|
+
if (hasGroups) {
|
|
827
|
+
const g = Math.max(0, groupIndex)
|
|
828
|
+
.toString(36)
|
|
829
|
+
.padStart(groupWidth, "0");
|
|
830
|
+
const i = itemIndex.toString(36);
|
|
831
|
+
labels.push(g + i);
|
|
832
|
+
} else {
|
|
833
|
+
labels.push(String(itemIndex).padStart(ungroupedItemWidth, "0"));
|
|
834
|
+
}
|
|
835
|
+
itemIndex += 1;
|
|
836
|
+
} else {
|
|
837
|
+
labels.push("");
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
return labels;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
#renderCollectionItem(item: CollectionManagerItem, sequence: string) {
|
|
845
|
+
const collection = item.collection;
|
|
846
|
+
if (!collection) return nothing;
|
|
847
|
+
|
|
848
|
+
const collectionHref = publicPath(
|
|
849
|
+
getCollectionSelectionPath(collection.slug),
|
|
850
|
+
);
|
|
851
|
+
|
|
852
|
+
const body = html`
|
|
853
|
+
<div class="collection-directory-main">
|
|
854
|
+
<span class="collection-directory-sequence" aria-hidden="true">
|
|
855
|
+
${sequence}
|
|
856
|
+
</span>
|
|
857
|
+
<div class="collection-directory-title-row">
|
|
858
|
+
<a href=${collectionHref} class="collection-directory-title-link">
|
|
859
|
+
<span class="collection-directory-title">${collection.title}</span>
|
|
860
|
+
</a>
|
|
861
|
+
</div>
|
|
862
|
+
${collection.description
|
|
863
|
+
? html`
|
|
864
|
+
<div class="collection-directory-description prose">
|
|
865
|
+
${unsafeHTML(renderMarkdown(collection.description))}
|
|
866
|
+
</div>
|
|
867
|
+
`
|
|
868
|
+
: nothing}
|
|
869
|
+
<p class="collection-directory-summary">
|
|
870
|
+
<span class="collection-directory-meta"
|
|
871
|
+
>${this.#countLabel(collection.postCount)}</span
|
|
872
|
+
>
|
|
873
|
+
<span class="collection-directory-meta-separator" aria-hidden="true"
|
|
874
|
+
>/</span
|
|
875
|
+
>
|
|
876
|
+
<time
|
|
877
|
+
class="collection-directory-updated"
|
|
878
|
+
datetime=${toISOString(collection.recentActivityAt)}
|
|
879
|
+
>
|
|
880
|
+
${formatRelativeAge(collection.recentActivityAt)}
|
|
881
|
+
</time>
|
|
882
|
+
</p>
|
|
883
|
+
</div>
|
|
884
|
+
`;
|
|
885
|
+
|
|
886
|
+
if (this._reorderMode) {
|
|
887
|
+
return html`
|
|
888
|
+
<div
|
|
889
|
+
data-directory-item=${item.id}
|
|
890
|
+
class="collection-directory-item collection-directory-item-reorder"
|
|
891
|
+
>
|
|
892
|
+
<div class="collection-directory-handle" data-drag-handle>
|
|
893
|
+
<svg
|
|
894
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
895
|
+
width="16"
|
|
896
|
+
height="16"
|
|
897
|
+
viewBox="0 0 24 24"
|
|
898
|
+
fill="none"
|
|
899
|
+
stroke="currentColor"
|
|
900
|
+
stroke-width="2"
|
|
901
|
+
stroke-linecap="round"
|
|
902
|
+
stroke-linejoin="round"
|
|
903
|
+
>
|
|
904
|
+
<circle cx="9" cy="12" r="1" />
|
|
905
|
+
<circle cx="9" cy="5" r="1" />
|
|
906
|
+
<circle cx="9" cy="19" r="1" />
|
|
907
|
+
<circle cx="15" cy="12" r="1" />
|
|
908
|
+
<circle cx="15" cy="5" r="1" />
|
|
909
|
+
<circle cx="15" cy="19" r="1" />
|
|
910
|
+
</svg>
|
|
911
|
+
</div>
|
|
912
|
+
<div class="collection-directory-reorder-main">${body}</div>
|
|
913
|
+
</div>
|
|
914
|
+
`;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
return html`
|
|
918
|
+
<div
|
|
919
|
+
class=${classMap({
|
|
920
|
+
"group relative": true,
|
|
921
|
+
"z-50":
|
|
922
|
+
this._showItemMenuId === item.id || this._editingLinkId === item.id,
|
|
923
|
+
})}
|
|
924
|
+
@mouseenter=${() => {
|
|
925
|
+
this._hoveringId = item.id;
|
|
926
|
+
}}
|
|
927
|
+
@mouseleave=${() => {
|
|
928
|
+
if (this._hoveringId === item.id) this._hoveringId = null;
|
|
929
|
+
}}
|
|
930
|
+
>
|
|
931
|
+
<div
|
|
932
|
+
class="collection-directory-item collection-directory-item-manageable"
|
|
933
|
+
>
|
|
934
|
+
${body}
|
|
935
|
+
</div>
|
|
936
|
+
${this._hoveringId === item.id || this._showItemMenuId === item.id
|
|
937
|
+
? this.#renderItemMenu(item)
|
|
938
|
+
: nothing}
|
|
939
|
+
</div>
|
|
940
|
+
`;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
#renderLinkEditPanel(item: CollectionManagerItem) {
|
|
944
|
+
if (this._editingLinkId !== item.id) return nothing;
|
|
945
|
+
|
|
946
|
+
return html`
|
|
947
|
+
<div
|
|
948
|
+
class="collections-link-edit card"
|
|
949
|
+
@click=${(e: Event) => e.stopPropagation()}
|
|
950
|
+
>
|
|
951
|
+
<form
|
|
952
|
+
class="grid gap-4"
|
|
953
|
+
@submit=${(e: Event) => {
|
|
954
|
+
e.preventDefault();
|
|
955
|
+
void this.#saveLink(item);
|
|
956
|
+
}}
|
|
957
|
+
>
|
|
958
|
+
<div class="field">
|
|
959
|
+
<label class="label" for=${`collections-link-label-${item.id}`}>
|
|
960
|
+
${this.labels.label}
|
|
961
|
+
</label>
|
|
962
|
+
<input
|
|
963
|
+
id=${`collections-link-label-${item.id}`}
|
|
964
|
+
type="text"
|
|
965
|
+
class="input"
|
|
966
|
+
.value=${this._editLinkLabel}
|
|
967
|
+
@input=${(e: Event) => {
|
|
968
|
+
this._editLinkLabel = (
|
|
969
|
+
e.currentTarget as HTMLInputElement
|
|
970
|
+
).value;
|
|
971
|
+
}}
|
|
972
|
+
/>
|
|
973
|
+
</div>
|
|
974
|
+
<div class="field">
|
|
975
|
+
<label class="label" for=${`collections-link-url-${item.id}`}>
|
|
976
|
+
${this.labels.url}
|
|
977
|
+
</label>
|
|
978
|
+
<input
|
|
979
|
+
id=${`collections-link-url-${item.id}`}
|
|
980
|
+
type="text"
|
|
981
|
+
class="input"
|
|
982
|
+
.value=${this._editLinkUrl}
|
|
983
|
+
@input=${(e: Event) => {
|
|
984
|
+
this._editLinkUrl = (e.currentTarget as HTMLInputElement).value;
|
|
985
|
+
}}
|
|
986
|
+
/>
|
|
987
|
+
</div>
|
|
988
|
+
<div class="field">
|
|
989
|
+
<label class="label"> ${this.labels.linkDescriptionLabel} </label>
|
|
990
|
+
<div
|
|
991
|
+
class="settings-tiptap-editor"
|
|
992
|
+
data-edit-link-desc-editor
|
|
993
|
+
></div>
|
|
994
|
+
</div>
|
|
995
|
+
<div class="collections-link-edit-actions">
|
|
996
|
+
<button
|
|
997
|
+
type="button"
|
|
998
|
+
class="btn-outline"
|
|
999
|
+
@click=${() => this.#toggleLinkEdit(item)}
|
|
1000
|
+
>
|
|
1001
|
+
${this.labels.cancel}
|
|
1002
|
+
</button>
|
|
1003
|
+
<button type="submit" class="btn-sm">
|
|
1004
|
+
${this.labels.formLabels.submitLabel}
|
|
1005
|
+
</button>
|
|
1006
|
+
</div>
|
|
1007
|
+
</form>
|
|
1008
|
+
</div>
|
|
1009
|
+
`;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
#renderLinkItem(item: CollectionManagerItem, sequence: string) {
|
|
1013
|
+
if (!item.label || !item.url) return nothing;
|
|
1014
|
+
|
|
1015
|
+
const linkHref = publicPath(item.url);
|
|
1016
|
+
const isExternal =
|
|
1017
|
+
item.url.startsWith("http://") || item.url.startsWith("https://");
|
|
1018
|
+
|
|
1019
|
+
const body = html`
|
|
1020
|
+
<div class="collection-directory-main">
|
|
1021
|
+
<span class="collection-directory-sequence" aria-hidden="true">
|
|
1022
|
+
${sequence}
|
|
1023
|
+
</span>
|
|
1024
|
+
<div class="collection-directory-title-row">
|
|
1025
|
+
<a
|
|
1026
|
+
href=${linkHref}
|
|
1027
|
+
class="collection-directory-title-link"
|
|
1028
|
+
target=${isExternal ? "_blank" : nothing}
|
|
1029
|
+
rel=${isExternal ? "noopener noreferrer" : nothing}
|
|
1030
|
+
>
|
|
1031
|
+
<span class="collection-directory-title">
|
|
1032
|
+
${item.label}
|
|
1033
|
+
<span
|
|
1034
|
+
class="collection-directory-title-marker"
|
|
1035
|
+
aria-hidden="true"
|
|
1036
|
+
>
|
|
1037
|
+
<svg
|
|
1038
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1039
|
+
width="14"
|
|
1040
|
+
height="14"
|
|
1041
|
+
viewBox="0 0 24 24"
|
|
1042
|
+
fill="none"
|
|
1043
|
+
stroke="currentColor"
|
|
1044
|
+
stroke-width="2"
|
|
1045
|
+
stroke-linecap="round"
|
|
1046
|
+
stroke-linejoin="round"
|
|
1047
|
+
>
|
|
1048
|
+
<path
|
|
1049
|
+
d="M10 13a5 5 0 0 0 7.54.54l2.92-2.92a5 5 0 0 0-7.07-7.08L11.7 5.24"
|
|
1050
|
+
/>
|
|
1051
|
+
<path
|
|
1052
|
+
d="M14 11a5 5 0 0 0-7.54-.54l-2.92 2.92a5 5 0 0 0 7.07 7.08l1.69-1.7"
|
|
1053
|
+
/>
|
|
1054
|
+
</svg>
|
|
1055
|
+
</span>
|
|
1056
|
+
</span>
|
|
1057
|
+
</a>
|
|
1058
|
+
</div>
|
|
1059
|
+
${item.description
|
|
1060
|
+
? html`
|
|
1061
|
+
<div class="collection-directory-description prose">
|
|
1062
|
+
${unsafeHTML(renderMarkdown(item.description))}
|
|
1063
|
+
</div>
|
|
1064
|
+
`
|
|
1065
|
+
: html`
|
|
1066
|
+
<p class="collection-directory-summary">
|
|
1067
|
+
<span class="collection-directory-meta"
|
|
1068
|
+
>${this.labels.linkDescriptionPlaceholder}</span
|
|
1069
|
+
>
|
|
1070
|
+
</p>
|
|
1071
|
+
`}
|
|
1072
|
+
</div>
|
|
1073
|
+
`;
|
|
1074
|
+
|
|
1075
|
+
if (this._reorderMode) {
|
|
1076
|
+
return html`
|
|
1077
|
+
<div
|
|
1078
|
+
data-directory-item=${item.id}
|
|
1079
|
+
class="collection-directory-item collection-directory-item-reorder"
|
|
1080
|
+
>
|
|
1081
|
+
<div class="collection-directory-handle" data-drag-handle>
|
|
1082
|
+
<svg
|
|
1083
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1084
|
+
width="16"
|
|
1085
|
+
height="16"
|
|
1086
|
+
viewBox="0 0 24 24"
|
|
1087
|
+
fill="none"
|
|
1088
|
+
stroke="currentColor"
|
|
1089
|
+
stroke-width="2"
|
|
1090
|
+
stroke-linecap="round"
|
|
1091
|
+
stroke-linejoin="round"
|
|
1092
|
+
>
|
|
1093
|
+
<circle cx="9" cy="12" r="1" />
|
|
1094
|
+
<circle cx="9" cy="5" r="1" />
|
|
1095
|
+
<circle cx="9" cy="19" r="1" />
|
|
1096
|
+
<circle cx="15" cy="12" r="1" />
|
|
1097
|
+
<circle cx="15" cy="5" r="1" />
|
|
1098
|
+
<circle cx="15" cy="19" r="1" />
|
|
1099
|
+
</svg>
|
|
1100
|
+
</div>
|
|
1101
|
+
<div class="collection-directory-reorder-main">${body}</div>
|
|
1102
|
+
</div>
|
|
1103
|
+
`;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
return html`
|
|
1107
|
+
<div
|
|
1108
|
+
class=${classMap({
|
|
1109
|
+
"group relative": true,
|
|
1110
|
+
"z-50":
|
|
1111
|
+
this._showItemMenuId === item.id || this._editingLinkId === item.id,
|
|
1112
|
+
})}
|
|
1113
|
+
@mouseenter=${() => {
|
|
1114
|
+
this._hoveringId = item.id;
|
|
1115
|
+
}}
|
|
1116
|
+
@mouseleave=${() => {
|
|
1117
|
+
if (this._hoveringId === item.id) this._hoveringId = null;
|
|
1118
|
+
}}
|
|
1119
|
+
>
|
|
1120
|
+
<div
|
|
1121
|
+
class="collection-directory-item collection-directory-item-link collection-directory-item-manageable"
|
|
1122
|
+
>
|
|
1123
|
+
${body}
|
|
1124
|
+
</div>
|
|
1125
|
+
${this._hoveringId === item.id || this._showItemMenuId === item.id
|
|
1126
|
+
? this.#renderItemMenu(item)
|
|
1127
|
+
: nothing}
|
|
1128
|
+
${this.#renderLinkEditPanel(item)}
|
|
1129
|
+
</div>
|
|
1130
|
+
`;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
#renderItemMenu(item: CollectionManagerItem) {
|
|
1134
|
+
const collection = item.collection;
|
|
1135
|
+
const isLink = item.type === "link" && !!item.label && !!item.url;
|
|
1136
|
+
if (!collection && !isLink) return nothing;
|
|
1137
|
+
|
|
1138
|
+
const isOpen = this._showItemMenuId === item.id;
|
|
1139
|
+
|
|
1140
|
+
return html`
|
|
1141
|
+
<div class="collection-directory-item-menu">
|
|
1142
|
+
<button
|
|
1143
|
+
type="button"
|
|
1144
|
+
class="collections-page-icon-button"
|
|
1145
|
+
aria-label=${this.labels.moreActions}
|
|
1146
|
+
@click=${(e: Event) => {
|
|
1147
|
+
e.preventDefault();
|
|
1148
|
+
e.stopPropagation();
|
|
1149
|
+
if (isOpen) {
|
|
1150
|
+
this._showItemMenuId = null;
|
|
1151
|
+
document.removeEventListener("click", this.#closeItemMenu);
|
|
1152
|
+
} else {
|
|
1153
|
+
this._showItemMenuId = item.id;
|
|
1154
|
+
setTimeout(() => {
|
|
1155
|
+
document.addEventListener("click", this.#closeItemMenu);
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
1158
|
+
}}
|
|
1159
|
+
>
|
|
1160
|
+
<svg
|
|
1161
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1162
|
+
width="14"
|
|
1163
|
+
height="14"
|
|
1164
|
+
viewBox="0 0 24 24"
|
|
1165
|
+
fill="currentColor"
|
|
1166
|
+
>
|
|
1167
|
+
<circle cx="5" cy="12" r="2" />
|
|
1168
|
+
<circle cx="12" cy="12" r="2" />
|
|
1169
|
+
<circle cx="19" cy="12" r="2" />
|
|
1170
|
+
</svg>
|
|
1171
|
+
</button>
|
|
1172
|
+
${isOpen
|
|
1173
|
+
? html`
|
|
1174
|
+
<div
|
|
1175
|
+
class="collections-page-menu"
|
|
1176
|
+
@click=${(e: Event) => e.stopPropagation()}
|
|
1177
|
+
>
|
|
1178
|
+
${collection
|
|
1179
|
+
? html`
|
|
1180
|
+
<a
|
|
1181
|
+
href=${publicPath(
|
|
1182
|
+
`${getCollectionEditPath(
|
|
1183
|
+
collection.slug,
|
|
1184
|
+
)}?returnTo=${encodeURIComponent(
|
|
1185
|
+
publicPath(getCollectionsDirectoryPath()),
|
|
1186
|
+
)}`,
|
|
1187
|
+
)}
|
|
1188
|
+
class="collections-page-menu-item"
|
|
1189
|
+
>
|
|
1190
|
+
${this.labels.edit}
|
|
1191
|
+
</a>
|
|
1192
|
+
<button
|
|
1193
|
+
type="button"
|
|
1194
|
+
class="collections-page-menu-item collections-page-menu-item-danger"
|
|
1195
|
+
@click=${() => this.#deleteCollection(collection)}
|
|
1196
|
+
>
|
|
1197
|
+
${this.labels.deleteCollection}
|
|
1198
|
+
</button>
|
|
1199
|
+
`
|
|
1200
|
+
: html`
|
|
1201
|
+
<button
|
|
1202
|
+
type="button"
|
|
1203
|
+
class="collections-page-menu-item"
|
|
1204
|
+
@click=${() => {
|
|
1205
|
+
this._showItemMenuId = null;
|
|
1206
|
+
document.removeEventListener(
|
|
1207
|
+
"click",
|
|
1208
|
+
this.#closeItemMenu,
|
|
1209
|
+
);
|
|
1210
|
+
this.#toggleLinkEdit(item);
|
|
1211
|
+
}}
|
|
1212
|
+
>
|
|
1213
|
+
${this.labels.edit}
|
|
1214
|
+
</button>
|
|
1215
|
+
<button
|
|
1216
|
+
type="button"
|
|
1217
|
+
class="collections-page-menu-item collections-page-menu-item-danger"
|
|
1218
|
+
@click=${() => this.#deleteLink(item)}
|
|
1219
|
+
>
|
|
1220
|
+
${this.labels.deleteLink}
|
|
1221
|
+
</button>
|
|
1222
|
+
`}
|
|
1223
|
+
</div>
|
|
1224
|
+
`
|
|
1225
|
+
: nothing}
|
|
1226
|
+
</div>
|
|
1227
|
+
`;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
#renderDividerItem(item: CollectionManagerItem, index: number) {
|
|
1231
|
+
if (this._reorderMode) {
|
|
1232
|
+
return html`
|
|
1233
|
+
<div
|
|
1234
|
+
data-directory-item=${item.id}
|
|
1235
|
+
class="collection-directory-divider-row"
|
|
1236
|
+
>
|
|
1237
|
+
<div class="collection-directory-handle" data-drag-handle>
|
|
1238
|
+
<svg
|
|
1239
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1240
|
+
width="16"
|
|
1241
|
+
height="16"
|
|
1242
|
+
viewBox="0 0 24 24"
|
|
1243
|
+
fill="none"
|
|
1244
|
+
stroke="currentColor"
|
|
1245
|
+
stroke-width="2"
|
|
1246
|
+
stroke-linecap="round"
|
|
1247
|
+
stroke-linejoin="round"
|
|
1248
|
+
>
|
|
1249
|
+
<circle cx="9" cy="12" r="1" />
|
|
1250
|
+
<circle cx="9" cy="5" r="1" />
|
|
1251
|
+
<circle cx="9" cy="19" r="1" />
|
|
1252
|
+
<circle cx="15" cy="12" r="1" />
|
|
1253
|
+
<circle cx="15" cy="5" r="1" />
|
|
1254
|
+
<circle cx="15" cy="19" r="1" />
|
|
1255
|
+
</svg>
|
|
1256
|
+
</div>
|
|
1257
|
+
<div class="collection-directory-divider-body">
|
|
1258
|
+
<input
|
|
1259
|
+
type="text"
|
|
1260
|
+
class="collection-directory-divider-input"
|
|
1261
|
+
data-divider-input-for=${item.id}
|
|
1262
|
+
placeholder=${this.labels.dividerLabelPlaceholder}
|
|
1263
|
+
.value=${item.label ?? ""}
|
|
1264
|
+
aria-label=${this.labels.dividerLabelPlaceholder}
|
|
1265
|
+
@blur=${(e: Event) =>
|
|
1266
|
+
this.#saveDividerLabel(
|
|
1267
|
+
item.id,
|
|
1268
|
+
(e.currentTarget as HTMLInputElement).value,
|
|
1269
|
+
)}
|
|
1270
|
+
@keydown=${(e: globalThis.KeyboardEvent) => {
|
|
1271
|
+
const target = e.currentTarget as HTMLInputElement;
|
|
1272
|
+
if (e.key === "Enter") {
|
|
1273
|
+
e.preventDefault();
|
|
1274
|
+
target.blur();
|
|
1275
|
+
}
|
|
1276
|
+
if (e.key === "Escape") {
|
|
1277
|
+
target.value = item.label ?? "";
|
|
1278
|
+
target.blur();
|
|
1279
|
+
}
|
|
1280
|
+
}}
|
|
1281
|
+
/>
|
|
1282
|
+
<hr class="collection-directory-divider-line" />
|
|
1283
|
+
</div>
|
|
1284
|
+
<button
|
|
1285
|
+
type="button"
|
|
1286
|
+
class="collections-page-icon-button"
|
|
1287
|
+
title=${this.labels.deleteDivider}
|
|
1288
|
+
aria-label=${this.labels.deleteDivider}
|
|
1289
|
+
@click=${() => this.#deleteDivider(item.id)}
|
|
1290
|
+
>
|
|
1291
|
+
<svg
|
|
1292
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1293
|
+
width="12"
|
|
1294
|
+
height="12"
|
|
1295
|
+
viewBox="0 0 24 24"
|
|
1296
|
+
fill="none"
|
|
1297
|
+
stroke="currentColor"
|
|
1298
|
+
stroke-width="2"
|
|
1299
|
+
stroke-linecap="round"
|
|
1300
|
+
stroke-linejoin="round"
|
|
1301
|
+
>
|
|
1302
|
+
<path d="M18 6 6 18" />
|
|
1303
|
+
<path d="m6 6 12 12" />
|
|
1304
|
+
</svg>
|
|
1305
|
+
</button>
|
|
1306
|
+
</div>
|
|
1307
|
+
`;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
const hasLabel = !!item.label;
|
|
1311
|
+
const group = getDividerCollectionGroup(this._items, index);
|
|
1312
|
+
return html`
|
|
1313
|
+
<div class="collection-directory-divider">
|
|
1314
|
+
<div
|
|
1315
|
+
class="collection-directory-divider-row"
|
|
1316
|
+
aria-hidden=${hasLabel ? nothing : "true"}
|
|
1317
|
+
>
|
|
1318
|
+
${hasLabel
|
|
1319
|
+
? html`
|
|
1320
|
+
${group
|
|
1321
|
+
? html`
|
|
1322
|
+
<a
|
|
1323
|
+
href=${publicPath(
|
|
1324
|
+
getCollectionSelectionPath(group.slugExpression),
|
|
1325
|
+
)}
|
|
1326
|
+
class="collection-directory-divider-link collection-directory-divider-text"
|
|
1327
|
+
>
|
|
1328
|
+
${item.label}
|
|
1329
|
+
</a>
|
|
1330
|
+
`
|
|
1331
|
+
: html`
|
|
1332
|
+
<span class="collection-directory-divider-text">
|
|
1333
|
+
${item.label}
|
|
1334
|
+
</span>
|
|
1335
|
+
`}
|
|
1336
|
+
<hr class="collection-directory-divider-line" />
|
|
1337
|
+
`
|
|
1338
|
+
: html`<hr class="collection-directory-divider-line" />`}
|
|
1339
|
+
</div>
|
|
1340
|
+
</div>
|
|
1341
|
+
`;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
#renderCreateLinkForm() {
|
|
1345
|
+
if (!this._showLinkForm) return nothing;
|
|
1346
|
+
|
|
1347
|
+
return html`
|
|
1348
|
+
<div class="collections-link-create card">
|
|
1349
|
+
<form
|
|
1350
|
+
class="grid gap-4"
|
|
1351
|
+
@submit=${(e: Event) => {
|
|
1352
|
+
e.preventDefault();
|
|
1353
|
+
void this.#createLink();
|
|
1354
|
+
}}
|
|
1355
|
+
>
|
|
1356
|
+
<header class="grid gap-1">
|
|
1357
|
+
<h2 class="text-base font-semibold">${this.labels.newLink}</h2>
|
|
1358
|
+
<p class="text-sm text-muted-foreground">
|
|
1359
|
+
${this.labels.addLinkDescription}
|
|
1360
|
+
</p>
|
|
1361
|
+
</header>
|
|
1362
|
+
<div class="field">
|
|
1363
|
+
<label class="label" for="collections-new-link-label">
|
|
1364
|
+
${this.labels.label}
|
|
1365
|
+
</label>
|
|
1366
|
+
<input
|
|
1367
|
+
id="collections-new-link-label"
|
|
1368
|
+
type="text"
|
|
1369
|
+
class="input"
|
|
1370
|
+
data-link-form-input="label"
|
|
1371
|
+
placeholder=${this.labels.linkLabelPlaceholder}
|
|
1372
|
+
.value=${this._newLinkLabel}
|
|
1373
|
+
@input=${(e: Event) => {
|
|
1374
|
+
this._newLinkLabel = (
|
|
1375
|
+
e.currentTarget as HTMLInputElement
|
|
1376
|
+
).value;
|
|
1377
|
+
}}
|
|
1378
|
+
/>
|
|
1379
|
+
</div>
|
|
1380
|
+
<div class="field">
|
|
1381
|
+
<label class="label" for="collections-new-link-url">
|
|
1382
|
+
${this.labels.url}
|
|
1383
|
+
</label>
|
|
1384
|
+
<input
|
|
1385
|
+
id="collections-new-link-url"
|
|
1386
|
+
type="text"
|
|
1387
|
+
class="input"
|
|
1388
|
+
placeholder=${this.labels.linkUrlPlaceholder}
|
|
1389
|
+
.value=${this._newLinkUrl}
|
|
1390
|
+
@input=${(e: Event) => {
|
|
1391
|
+
this._newLinkUrl = (e.currentTarget as HTMLInputElement).value;
|
|
1392
|
+
}}
|
|
1393
|
+
/>
|
|
1394
|
+
</div>
|
|
1395
|
+
<div class="field">
|
|
1396
|
+
<label class="label"> ${this.labels.linkDescriptionLabel} </label>
|
|
1397
|
+
<div class="settings-tiptap-editor" data-new-link-desc-editor></div>
|
|
1398
|
+
</div>
|
|
1399
|
+
<div class="collections-link-edit-actions">
|
|
1400
|
+
<button
|
|
1401
|
+
type="button"
|
|
1402
|
+
class="btn-outline"
|
|
1403
|
+
@click=${() => {
|
|
1404
|
+
this._showLinkForm = false;
|
|
1405
|
+
this._newLinkLabel = "";
|
|
1406
|
+
this._newLinkUrl = "";
|
|
1407
|
+
this._newLinkDescription = "";
|
|
1408
|
+
this.#newLinkDescEditor?.destroy();
|
|
1409
|
+
this.#newLinkDescEditor = null;
|
|
1410
|
+
}}
|
|
1411
|
+
>
|
|
1412
|
+
${this.labels.cancel}
|
|
1413
|
+
</button>
|
|
1414
|
+
<button type="submit" class="btn-sm" ?disabled=${this._addingLink}>
|
|
1415
|
+
${this.labels.addLink}
|
|
1416
|
+
</button>
|
|
1417
|
+
</div>
|
|
1418
|
+
</form>
|
|
1419
|
+
</div>
|
|
1420
|
+
`;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
render() {
|
|
1424
|
+
return html`
|
|
1425
|
+
${this.#renderCreateLinkForm()}
|
|
1426
|
+
${this.#hasDirectoryContent()
|
|
1427
|
+
? html`
|
|
1428
|
+
<div id="collections-manager-list" class="collection-directory">
|
|
1429
|
+
${(() => {
|
|
1430
|
+
const labels = this.#computeSequenceLabels();
|
|
1431
|
+
return this._items.map((item, index) => {
|
|
1432
|
+
if (item.type === "collection") {
|
|
1433
|
+
return this.#renderCollectionItem(item, labels[index]);
|
|
1434
|
+
}
|
|
1435
|
+
if (item.type === "link") {
|
|
1436
|
+
return this.#renderLinkItem(item, labels[index]);
|
|
1437
|
+
}
|
|
1438
|
+
return this.#renderDividerItem(item, index);
|
|
1439
|
+
});
|
|
1440
|
+
})()}
|
|
1441
|
+
</div>
|
|
1442
|
+
`
|
|
1443
|
+
: html`<p class="text-muted-foreground">${this.labels.emptyState}</p>`}
|
|
1444
|
+
`;
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
customElements.define("jant-collections-manager", JantCollectionsManager);
|