@saluzi/saluzi-edu 0.7.33 → 0.7.34
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/dist/cli.js +48 -48
- package/dist/rcs-web/assets/{AdminPanel-Cy_IOlVq.js → AdminPanel-gJWYsoQr.js} +1 -1
- package/dist/rcs-web/assets/{ArtifactView-CWcpapBR.js → ArtifactView-Dcn-Ytyf.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/ArtifactsGallery-aQHDXvPx.js → dist/rcs-web/assets/ArtifactsGallery-DTDBumAW.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/Claim-D2JC7Cot.js → dist/rcs-web/assets/Claim-B8s9SPXu.js} +1 -1
- package/dist/rcs-web/assets/{Dashboard-1xmM0x8n.js → Dashboard-aB82EvLp.js} +1 -1
- package/dist/rcs-web/assets/{Join-DL99sw6b.js → Join-Sn3AKhd-.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/Login-SXOK8YPu.js → dist/rcs-web/assets/Login-CezyYoqD.js} +1 -1
- package/dist/rcs-web/assets/{MemoriesPage-CJWRN6cn.js → MemoriesPage-Wz2xm_Sx.js} +1 -1
- package/dist/rcs-web/assets/{MemoryTypeChips-8BdYhLuK.js → MemoryTypeChips-DuOHvrLG.js} +1 -1
- package/dist/rcs-web/assets/{Register-BqsAwk5m.js → Register-DgD1eDUW.js} +1 -1
- package/dist/rcs-web/assets/{RegisterEmpty-BZFxOufU.js → RegisterEmpty-Bp4ijU6c.js} +1 -1
- package/dist/rcs-web/assets/{SessionDetail-BZ5k8go9.js → SessionDetail-D580xm-q.js} +1 -1
- package/dist/rcs-web/assets/{SessionVisibilityBadge-CUbNA6Zo.js → SessionVisibilityBadge-hjXhLkpx.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/Setup-MClEP7AM.js → dist/rcs-web/assets/Setup-PlsB2xkS.js} +1 -1
- package/dist/rcs-web/assets/{ShareLanding-fJdnKjcu.js → ShareLanding-CZcA2cNQ.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/TeamDetail-SlwXHwgP.js → dist/rcs-web/assets/TeamDetail-Dk_93Z0k.js} +1 -1
- package/dist/rcs-web/assets/{TeamList-9xR3NuaS.js → TeamList-CijY_W_f.js} +1 -1
- package/dist/rcs-web/assets/{TeamSettings-4g9AjWXU.js → TeamSettings-C3M-aGm0.js} +1 -1
- package/dist/rcs-web/assets/{UserSearchInput-ueJNOtXy.js → UserSearchInput-BHQO5MGU.js} +1 -1
- package/dist/rcs-web/assets/{UserSettings-CKx46qlF.js → UserSettings-DumkRY-s.js} +1 -1
- package/dist/rcs-web/assets/{arc-DQBjsQGi.js → arc-B_Bgarfu.js} +1 -1
- package/dist/rcs-web/assets/{architectureDiagram-3BPJPVTR-DMz-7qcf.js → architectureDiagram-3BPJPVTR-DfVLTz_r.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/blockDiagram-GPEHLZMM-CWHvAMOz.js → dist/rcs-web/assets/blockDiagram-GPEHLZMM-DDZ7y1j3.js} +1 -1
- package/dist/rcs-web/assets/{c4Diagram-AAUBKEIU-YuY-SmxS.js → c4Diagram-AAUBKEIU-CRCn_dZ4.js} +1 -1
- package/dist/rcs-web/assets/channel-Cl-DZrA-.js +1 -0
- package/dist/rcs-web/assets/{chunk-2J33WTMH-6Cp2gsye.js → chunk-2J33WTMH-CB7J33fu.js} +1 -1
- package/dist/rcs-web/assets/{chunk-4BX2VUAB-Bmk62yZH.js → chunk-4BX2VUAB-CsGAZA3y.js} +1 -1
- package/dist/rcs-web/assets/{chunk-55IACEB6-BKbUSDDf.js → chunk-55IACEB6-BMq3yddb.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/chunk-727SXJPM-BhW0G_xw.js → dist/rcs-web/assets/chunk-727SXJPM-BkZTIlHS.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/chunk-AQP2D5EJ-DVLIR5rw.js → dist/rcs-web/assets/chunk-AQP2D5EJ-CsiM2lma.js} +1 -1
- package/dist/rcs-web/assets/{chunk-FMBD7UC4-BrVHgRxK.js → chunk-FMBD7UC4-CMzmGgg8.js} +1 -1
- package/dist/rcs-web/assets/{chunk-ND2GUHAM-BpJKVAz9.js → chunk-ND2GUHAM-CvXQ2BBP.js} +1 -1
- package/dist/rcs-web/assets/{chunk-QZHKN3VN-DZjSzQfy.js → chunk-QZHKN3VN-De77sr34.js} +1 -1
- package/dist/rcs-web/assets/classDiagram-4FO5ZUOK-BiAxDlqk.js +1 -0
- package/dist/rcs-web/assets/classDiagram-v2-Q7XG4LA2-BiAxDlqk.js +1 -0
- package/dist/rcs-web/assets/{code-block-IT6T5CEO-DxsSqTdB.js → code-block-IT6T5CEO-BbUag7xL.js} +1 -1
- package/dist/rcs-web/assets/{copy-C953e1ss.js → copy-D0pf7ohg.js} +1 -1
- package/dist/rcs-web/assets/{cose-bilkent-S5V4N54A-B8gRxACa.js → cose-bilkent-S5V4N54A-cCqCJZ0k.js} +1 -1
- package/dist/rcs-web/assets/{dagre-BM42HDAG-DpFZaHUw.js → dagre-BM42HDAG-3e2AVH4q.js} +1 -1
- package/dist/rcs-web/assets/{diagram-2AECGRRQ-kF-4Bft7.js → diagram-2AECGRRQ-t5XWI3y7.js} +1 -1
- package/dist/rcs-web/assets/{diagram-5GNKFQAL-CtycTnaT.js → diagram-5GNKFQAL-Bomno2dS.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/diagram-KO2AKTUF-DCHASTXx.js → dist/rcs-web/assets/diagram-KO2AKTUF-C2hVUfj2.js} +1 -1
- package/dist/rcs-web/assets/{diagram-LMA3HP47-Bs8vwONf.js → diagram-LMA3HP47-COY_061g.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/diagram-OG6HWLK6-DyprXd-S.js → dist/rcs-web/assets/diagram-OG6HWLK6-Bau_gRm1.js} +1 -1
- package/dist/rcs-web/assets/{dialog-DRBVwDXT.js → dialog-1duL__fs.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/erDiagram-TEJ5UH35-CbNHbUtn.js → dist/rcs-web/assets/erDiagram-TEJ5UH35-B6o-4kpo.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/flowDiagram-I6XJVG4X-D56HQA3q.js → dist/rcs-web/assets/flowDiagram-I6XJVG4X-DAraOQo5.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/ganttDiagram-6RSMTGT7-DKJcFTLJ.js → dist/rcs-web/assets/ganttDiagram-6RSMTGT7-DYJx4lRc.js} +1 -1
- package/dist/rcs-web/assets/{gitGraphDiagram-PVQCEYII-CDhVukWF.js → gitGraphDiagram-PVQCEYII-o4bVF72x.js} +1 -1
- package/dist/rcs-web/assets/{infoDiagram-5YYISTIA-CvaBMrFB.js → infoDiagram-5YYISTIA-D2udf4lA.js} +1 -1
- package/dist/rcs-web/assets/{ishikawaDiagram-YF4QCWOH-BPZF4YCg.js → ishikawaDiagram-YF4QCWOH-B3mNkN5l.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/journeyDiagram-JHISSGLW-CBOfqGyS.js → dist/rcs-web/assets/journeyDiagram-JHISSGLW-Ry1Fr21k.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/kanban-definition-UN3LZRKU-YzEp89Qr.js → dist/rcs-web/assets/kanban-definition-UN3LZRKU-DvxHDfWf.js} +1 -1
- package/dist/rcs-web/assets/{linear-0lYH4uld.js → linear-s8jVu6QY.js} +1 -1
- package/dist/rcs-web/assets/{main-ChME3U1u.js → main-Mn7R0A18.js} +5 -5
- package/dist/rcs-web/assets/main-oFvzHCs3.css +1 -0
- package/{packages/remote-control-server/web/dist/assets/mermaid-VLURNSYL-CFYamsyZ.js → dist/rcs-web/assets/mermaid-VLURNSYL-z8qNKcJT.js} +4 -4
- package/dist/rcs-web/assets/{mermaid.core-BCbKSe43.js → mermaid.core-B98fAraT.js} +5 -5
- package/{packages/remote-control-server/web/dist/assets/mindmap-definition-RKZ34NQL-CgGSy-mM.js → dist/rcs-web/assets/mindmap-definition-RKZ34NQL-Cs7AOVl2.js} +1 -1
- package/dist/rcs-web/assets/{notifications-Dcwsqgaw.js → notifications-C2qTba5c.js} +1 -1
- package/dist/rcs-web/assets/{pieDiagram-4H26LBE5-CWA-NhAk.js → pieDiagram-4H26LBE5-BOSw3AKh.js} +1 -1
- package/dist/rcs-web/assets/{quadrantDiagram-W4KKPZXB-DcfcEOBd.js → quadrantDiagram-W4KKPZXB-Be8mhczt.js} +1 -1
- package/dist/rcs-web/assets/{refresh-cw-BMyfC-0s.js → refresh-cw-Bo4t-P1R.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/requirementDiagram-4Y6WPE33-BBpbCpO1.js → dist/rcs-web/assets/requirementDiagram-4Y6WPE33-CgI_5y27.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/sankeyDiagram-5OEKKPKP-CSveDfvg.js → dist/rcs-web/assets/sankeyDiagram-5OEKKPKP-2361M3Hs.js} +1 -1
- package/dist/rcs-web/assets/{sequenceDiagram-3UESZ5HK-DVziUGiX.js → sequenceDiagram-3UESZ5HK-liblY9ZR.js} +1 -1
- package/{packages/remote-control-server/web/dist/assets/stateDiagram-AJRCARHV-8dQP82aw.js → dist/rcs-web/assets/stateDiagram-AJRCARHV-ChgrbHxu.js} +1 -1
- package/dist/rcs-web/assets/{stateDiagram-v2-BHNVJYJU-BmbYycoo.js → stateDiagram-v2-BHNVJYJU-CVitJD-x.js} +1 -1
- package/dist/rcs-web/assets/{timeline-definition-PNZ67QCA-CPo56XHl.js → timeline-definition-PNZ67QCA-Cnh3IdcT.js} +1 -1
- package/dist/rcs-web/assets/{vennDiagram-CIIHVFJN-Bscr35xT.js → vennDiagram-CIIHVFJN-0W2x0guu.js} +1 -1
- package/dist/rcs-web/assets/{wardleyDiagram-YWT4CUSO-Cttmb5he.js → wardleyDiagram-YWT4CUSO-BJkcCRAQ.js} +1 -1
- package/dist/rcs-web/assets/{workerType-E3qcK8hS.js → workerType-BYUJv8QQ.js} +1 -1
- package/dist/rcs-web/assets/{xychartDiagram-2RQKCTM6-BKs5ml-T.js → xychartDiagram-2RQKCTM6-BeVIeL0V.js} +1 -1
- package/dist/rcs-web/index.html +2 -2
- package/package.json +1 -1
- package/packages/remote-control-server/web/dist/assets/{AdminPanel-Cy_IOlVq.js → AdminPanel-gJWYsoQr.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{ArtifactView-CWcpapBR.js → ArtifactView-Dcn-Ytyf.js} +1 -1
- package/{dist/rcs-web/assets/ArtifactsGallery-aQHDXvPx.js → packages/remote-control-server/web/dist/assets/ArtifactsGallery-DTDBumAW.js} +1 -1
- package/{dist/rcs-web/assets/Claim-D2JC7Cot.js → packages/remote-control-server/web/dist/assets/Claim-B8s9SPXu.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{Dashboard-1xmM0x8n.js → Dashboard-aB82EvLp.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{Join-DL99sw6b.js → Join-Sn3AKhd-.js} +1 -1
- package/{dist/rcs-web/assets/Login-SXOK8YPu.js → packages/remote-control-server/web/dist/assets/Login-CezyYoqD.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{MemoriesPage-CJWRN6cn.js → MemoriesPage-Wz2xm_Sx.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{MemoryTypeChips-8BdYhLuK.js → MemoryTypeChips-DuOHvrLG.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{Register-BqsAwk5m.js → Register-DgD1eDUW.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{RegisterEmpty-BZFxOufU.js → RegisterEmpty-Bp4ijU6c.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{SessionDetail-BZ5k8go9.js → SessionDetail-D580xm-q.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{SessionVisibilityBadge-CUbNA6Zo.js → SessionVisibilityBadge-hjXhLkpx.js} +1 -1
- package/{dist/rcs-web/assets/Setup-MClEP7AM.js → packages/remote-control-server/web/dist/assets/Setup-PlsB2xkS.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{ShareLanding-fJdnKjcu.js → ShareLanding-CZcA2cNQ.js} +1 -1
- package/{dist/rcs-web/assets/TeamDetail-SlwXHwgP.js → packages/remote-control-server/web/dist/assets/TeamDetail-Dk_93Z0k.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{TeamList-9xR3NuaS.js → TeamList-CijY_W_f.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{TeamSettings-4g9AjWXU.js → TeamSettings-C3M-aGm0.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{UserSearchInput-ueJNOtXy.js → UserSearchInput-BHQO5MGU.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{UserSettings-CKx46qlF.js → UserSettings-DumkRY-s.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{arc-DQBjsQGi.js → arc-B_Bgarfu.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{architectureDiagram-3BPJPVTR-DMz-7qcf.js → architectureDiagram-3BPJPVTR-DfVLTz_r.js} +1 -1
- package/{dist/rcs-web/assets/blockDiagram-GPEHLZMM-CWHvAMOz.js → packages/remote-control-server/web/dist/assets/blockDiagram-GPEHLZMM-DDZ7y1j3.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{c4Diagram-AAUBKEIU-YuY-SmxS.js → c4Diagram-AAUBKEIU-CRCn_dZ4.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/channel-Cl-DZrA-.js +1 -0
- package/packages/remote-control-server/web/dist/assets/{chunk-2J33WTMH-6Cp2gsye.js → chunk-2J33WTMH-CB7J33fu.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{chunk-4BX2VUAB-Bmk62yZH.js → chunk-4BX2VUAB-CsGAZA3y.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{chunk-55IACEB6-BKbUSDDf.js → chunk-55IACEB6-BMq3yddb.js} +1 -1
- package/{dist/rcs-web/assets/chunk-727SXJPM-BhW0G_xw.js → packages/remote-control-server/web/dist/assets/chunk-727SXJPM-BkZTIlHS.js} +1 -1
- package/{dist/rcs-web/assets/chunk-AQP2D5EJ-DVLIR5rw.js → packages/remote-control-server/web/dist/assets/chunk-AQP2D5EJ-CsiM2lma.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{chunk-FMBD7UC4-BrVHgRxK.js → chunk-FMBD7UC4-CMzmGgg8.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{chunk-ND2GUHAM-BpJKVAz9.js → chunk-ND2GUHAM-CvXQ2BBP.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{chunk-QZHKN3VN-DZjSzQfy.js → chunk-QZHKN3VN-De77sr34.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/classDiagram-4FO5ZUOK-BiAxDlqk.js +1 -0
- package/packages/remote-control-server/web/dist/assets/classDiagram-v2-Q7XG4LA2-BiAxDlqk.js +1 -0
- package/packages/remote-control-server/web/dist/assets/{code-block-IT6T5CEO-DxsSqTdB.js → code-block-IT6T5CEO-BbUag7xL.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{copy-C953e1ss.js → copy-D0pf7ohg.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{cose-bilkent-S5V4N54A-B8gRxACa.js → cose-bilkent-S5V4N54A-cCqCJZ0k.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{dagre-BM42HDAG-DpFZaHUw.js → dagre-BM42HDAG-3e2AVH4q.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{diagram-2AECGRRQ-kF-4Bft7.js → diagram-2AECGRRQ-t5XWI3y7.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{diagram-5GNKFQAL-CtycTnaT.js → diagram-5GNKFQAL-Bomno2dS.js} +1 -1
- package/{dist/rcs-web/assets/diagram-KO2AKTUF-DCHASTXx.js → packages/remote-control-server/web/dist/assets/diagram-KO2AKTUF-C2hVUfj2.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{diagram-LMA3HP47-Bs8vwONf.js → diagram-LMA3HP47-COY_061g.js} +1 -1
- package/{dist/rcs-web/assets/diagram-OG6HWLK6-DyprXd-S.js → packages/remote-control-server/web/dist/assets/diagram-OG6HWLK6-Bau_gRm1.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{dialog-DRBVwDXT.js → dialog-1duL__fs.js} +1 -1
- package/{dist/rcs-web/assets/erDiagram-TEJ5UH35-CbNHbUtn.js → packages/remote-control-server/web/dist/assets/erDiagram-TEJ5UH35-B6o-4kpo.js} +1 -1
- package/{dist/rcs-web/assets/flowDiagram-I6XJVG4X-D56HQA3q.js → packages/remote-control-server/web/dist/assets/flowDiagram-I6XJVG4X-DAraOQo5.js} +1 -1
- package/{dist/rcs-web/assets/ganttDiagram-6RSMTGT7-DKJcFTLJ.js → packages/remote-control-server/web/dist/assets/ganttDiagram-6RSMTGT7-DYJx4lRc.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{gitGraphDiagram-PVQCEYII-CDhVukWF.js → gitGraphDiagram-PVQCEYII-o4bVF72x.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{infoDiagram-5YYISTIA-CvaBMrFB.js → infoDiagram-5YYISTIA-D2udf4lA.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{ishikawaDiagram-YF4QCWOH-BPZF4YCg.js → ishikawaDiagram-YF4QCWOH-B3mNkN5l.js} +1 -1
- package/{dist/rcs-web/assets/journeyDiagram-JHISSGLW-CBOfqGyS.js → packages/remote-control-server/web/dist/assets/journeyDiagram-JHISSGLW-Ry1Fr21k.js} +1 -1
- package/{dist/rcs-web/assets/kanban-definition-UN3LZRKU-YzEp89Qr.js → packages/remote-control-server/web/dist/assets/kanban-definition-UN3LZRKU-DvxHDfWf.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{linear-0lYH4uld.js → linear-s8jVu6QY.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{main-ChME3U1u.js → main-Mn7R0A18.js} +5 -5
- package/packages/remote-control-server/web/dist/assets/main-oFvzHCs3.css +1 -0
- package/{dist/rcs-web/assets/mermaid-VLURNSYL-CFYamsyZ.js → packages/remote-control-server/web/dist/assets/mermaid-VLURNSYL-z8qNKcJT.js} +4 -4
- package/packages/remote-control-server/web/dist/assets/{mermaid.core-BCbKSe43.js → mermaid.core-B98fAraT.js} +5 -5
- package/{dist/rcs-web/assets/mindmap-definition-RKZ34NQL-CgGSy-mM.js → packages/remote-control-server/web/dist/assets/mindmap-definition-RKZ34NQL-Cs7AOVl2.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{notifications-Dcwsqgaw.js → notifications-C2qTba5c.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{pieDiagram-4H26LBE5-CWA-NhAk.js → pieDiagram-4H26LBE5-BOSw3AKh.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{quadrantDiagram-W4KKPZXB-DcfcEOBd.js → quadrantDiagram-W4KKPZXB-Be8mhczt.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{refresh-cw-BMyfC-0s.js → refresh-cw-Bo4t-P1R.js} +1 -1
- package/{dist/rcs-web/assets/requirementDiagram-4Y6WPE33-BBpbCpO1.js → packages/remote-control-server/web/dist/assets/requirementDiagram-4Y6WPE33-CgI_5y27.js} +1 -1
- package/{dist/rcs-web/assets/sankeyDiagram-5OEKKPKP-CSveDfvg.js → packages/remote-control-server/web/dist/assets/sankeyDiagram-5OEKKPKP-2361M3Hs.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{sequenceDiagram-3UESZ5HK-DVziUGiX.js → sequenceDiagram-3UESZ5HK-liblY9ZR.js} +1 -1
- package/{dist/rcs-web/assets/stateDiagram-AJRCARHV-8dQP82aw.js → packages/remote-control-server/web/dist/assets/stateDiagram-AJRCARHV-ChgrbHxu.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{stateDiagram-v2-BHNVJYJU-BmbYycoo.js → stateDiagram-v2-BHNVJYJU-CVitJD-x.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{timeline-definition-PNZ67QCA-CPo56XHl.js → timeline-definition-PNZ67QCA-Cnh3IdcT.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{vennDiagram-CIIHVFJN-Bscr35xT.js → vennDiagram-CIIHVFJN-0W2x0guu.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{wardleyDiagram-YWT4CUSO-Cttmb5he.js → wardleyDiagram-YWT4CUSO-BJkcCRAQ.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{workerType-E3qcK8hS.js → workerType-BYUJv8QQ.js} +1 -1
- package/packages/remote-control-server/web/dist/assets/{xychartDiagram-2RQKCTM6-BKs5ml-T.js → xychartDiagram-2RQKCTM6-BeVIeL0V.js} +1 -1
- package/packages/remote-control-server/web/dist/index.html +2 -2
- package/dist/rcs-web/assets/channel-DN5ZP-VQ.js +0 -1
- package/dist/rcs-web/assets/classDiagram-4FO5ZUOK-CFD597Oe.js +0 -1
- package/dist/rcs-web/assets/classDiagram-v2-Q7XG4LA2-CFD597Oe.js +0 -1
- package/dist/rcs-web/assets/main-jNWPmW7O.css +0 -1
- package/packages/remote-control-server/web/dist/assets/channel-DN5ZP-VQ.js +0 -1
- package/packages/remote-control-server/web/dist/assets/classDiagram-4FO5ZUOK-CFD597Oe.js +0 -1
- package/packages/remote-control-server/web/dist/assets/classDiagram-v2-Q7XG4LA2-CFD597Oe.js +0 -1
- package/packages/remote-control-server/web/dist/assets/main-jNWPmW7O.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as d,j as e}from"./vendor-DE_-CLIE.js";import{aW as x,aX as o,a5 as m,aO as s,aE as l,I as u}from"./main-
|
|
1
|
+
import{e as d,j as e}from"./vendor-DE_-CLIE.js";import{aW as x,aX as o,a5 as m,aO as s,aE as l,I as u}from"./main-Mn7R0A18.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function j(){x();const[a,i]=d.useState([]),{myTeams:r,isLoading:c}=o(),n=d.useCallback(async()=>{try{const t=await m();i(t||[])}catch(t){console.error("Admin: failed to load sessions",t)}},[]);return d.useEffect(()=>{n()},[n]),e.jsx("div",{className:"flex-1 overflow-y-auto",children:e.jsxs("div",{className:"mx-auto max-w-5xl px-4 py-8",children:[e.jsx("h1",{className:"mb-6 font-display text-2xl font-semibold text-text-primary",children:s("admin.title")}),e.jsxs("section",{className:"mb-10",children:[e.jsxs("h2",{className:"mb-4 font-display text-lg font-semibold text-text-primary",children:[s("admin.teams")," (",r.length,")"]}),c?e.jsx("div",{className:"rounded-xl border border-border bg-surface-1 p-4 text-center text-text-muted",children:s("common.loading")}):r.length===0?e.jsx("div",{className:"rounded-xl border border-border bg-surface-1 p-4 text-center text-text-muted",children:s("admin.noTeams")}):e.jsx("div",{className:"space-y-2",children:r.map(t=>e.jsxs("a",{href:`/teams/${t.slug}`,className:"flex items-center justify-between rounded-xl border border-border bg-surface-1 px-4 py-3 no-underline transition-colors hover:border-border-light hover:bg-surface-2",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"font-medium text-text-primary",children:t.name}),e.jsx("span",{className:"ml-2 text-xs text-text-muted",children:t.slug})]}),e.jsx("span",{className:"text-xs text-text-muted",children:l(new Date(t.created_at).getTime()/1e3)})]},t.id))})]}),e.jsxs("section",{children:[e.jsxs("h2",{className:"mb-4 font-display text-lg font-semibold text-text-primary",children:[s("admin.sessions")," (",a.length,")"]}),a.length===0?e.jsx("div",{className:"rounded-xl border border-border bg-surface-1 p-4 text-center text-text-muted",children:s("admin.noSessions")}):e.jsx("div",{className:"space-y-2",children:a.map(t=>e.jsxs("a",{href:`/code/${t.id}`,className:"flex items-center justify-between rounded-xl border border-border bg-surface-1 px-4 py-3 no-underline transition-colors hover:border-border-light hover:bg-surface-2",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"truncate font-medium text-text-primary",children:t.title||t.id}),e.jsx("span",{className:"rounded-full bg-surface-2 px-2 py-0.5 text-xs text-text-muted",children:t.source||"unknown"})]}),e.jsx("div",{className:"truncate text-xs text-text-muted",children:t.id})]}),e.jsxs("div",{className:"ml-4 flex items-center gap-3",children:[e.jsx(u,{status:t.status}),e.jsx("span",{className:"text-xs text-text-muted",children:l(t.updated_at||t.created_at)})]})]},t.id))})]})]})})}export{j as AdminPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a,j as t}from"./vendor-DE_-CLIE.js";import{aW as A,a6 as j,aO as r,a2 as q,az as O,P as R,N as U}from"./main-
|
|
1
|
+
import{e as a,j as t}from"./vendor-DE_-CLIE.js";import{aW as A,a6 as j,aO as r,a2 as q,az as O,P as R,N as U}from"./main-Mn7R0A18.js";import{S as F,E as G,C as K}from"./ArtifactsGallery-DTDBumAW.js";import{R as P}from"./refresh-cw-Bo4t-P1R.js";import{C as z}from"./copy-D0pf7ohg.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";import"./dialog-1duL__fs.js";let m=null;function J(n,c,e=0){b();const o=`/web/sessions/${n}/events`,l=new EventSource(o,{withCredentials:!0});m=l;let u=e;l.addEventListener("message",p=>{try{const x=JSON.parse(p.data);if(x.seqNum!==void 0&&x.seqNum<=u)return;x.seqNum!==void 0&&(u=x.seqNum),c(x)}catch{}}),l.addEventListener("error",()=>{console.warn("[SSE] error, readyState:",l.readyState),l.readyState===EventSource.CLOSED&&(l.close(),b())})}function b(){m&&(m.close(),m=null)}function M(n,c){const e=a.useRef(c);e.current=c;const o=a.useCallback(l=>{e.current(l)},[]);a.useEffect(()=>{if(n)return J(n,o),()=>{b()}},[n,o])}function I({artifactId:n,onBack:c}){A();const[e,o]=a.useState(null),[l,u]=a.useState(""),[p,x]=a.useState(!1),[S,f]=a.useState(0),[w,h]=a.useState(!1),[g,C]=a.useState(null),[E,k]=a.useState("template"),[d,y]=a.useState(!1);a.useEffect(()=>{let s=!1;return j(n).then(i=>{s||o(i)}).catch(i=>{s||u(i instanceof Error?i.message:r("artifacts.viewNotFound"))}),()=>{s=!0}},[n]);const v=a.useCallback(()=>{j(n).then(s=>o(s)).catch(()=>{})},[n]),_=a.useCallback(s=>{var i;s.type==="artifact_updated"&&((i=s.payload)!=null&&i.id&&s.payload.id!==n||(v(),f(D=>D+1),y(!0)))},[n,v]);M((e==null?void 0:e.session_id)??null,_),a.useEffect(()=>{if(!d)return;const s=setTimeout(()=>y(!1),2500);return()=>clearTimeout(s)},[d]);const N=a.useCallback(s=>{e&&(C(e),k(s),h(!0))},[e]),$=a.useCallback(s=>{h(!1),o(i=>i?{...i,...s}:s),f(i=>i+1)},[]),T=a.useCallback(async()=>{if(window.confirm(r("artifacts.delete")+" — "+n.slice(0,8)+"…?"))try{await q(n),c()}catch(s){alert(s instanceof Error?s.message:r("artifacts.deleteFailed"))}},[n,c]),L=a.useCallback(async()=>{if(!e)return;await O(`${window.location.origin}${e.url}`)&&(x(!0),setTimeout(()=>x(!1),1500))},[e]);return l?t.jsx("div",{className:"flex flex-1 items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("p",{className:"text-status-error",children:r("artifacts.viewNotFound")}),t.jsx("p",{className:"mt-1 text-xs text-text-muted",children:l}),t.jsx("button",{type:"button",onClick:c,className:"mt-4 rounded-md border border-border px-4 py-2 text-sm text-text-secondary hover:bg-surface-2",children:r("artifacts.backToGallery")})]})}):e?t.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-border bg-surface-1 px-4 py-2.5",children:[t.jsx("button",{type:"button",onClick:c,className:"text-sm text-text-muted hover:text-text-primary",children:r("artifacts.backToGallery")}),t.jsx("span",{className:"text-text-muted/40",children:"/"}),t.jsx("span",{className:"truncate font-medium text-text-primary",children:e.title||e.id.slice(0,12)}),t.jsx("span",{className:`rounded-full px-2 py-0.5 text-[10px] transition-colors ${d?"bg-status-active/15 text-status-active":"bg-surface-3 text-text-muted"}`,title:d?r("artifacts.view.liveUpdated"):void 0,children:d?`↻ v${e.version}`:`v${e.version}`}),e.session_id&&t.jsxs("a",{href:`/code/${e.session_id}`,className:"truncate font-mono text-[10px] text-text-muted hover:text-accent",title:e.session_id,children:[r("artifacts.session"),": ",e.session_id.slice(0,14),"…"]}),e.expires_at&&t.jsxs("span",{className:"text-[10px] text-text-muted",title:e.expires_at,children:[r("artifacts.expires"),": ",new Date(e.expires_at).toLocaleDateString()]}),t.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[t.jsx("button",{type:"button",onClick:()=>f(s=>s+1),className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:r("common.loading"),children:t.jsx(P,{className:"h-3.5 w-3.5"})}),t.jsx("button",{type:"button",onClick:()=>N("ai"),className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:r("artifacts.aiUpdate"),children:t.jsx(F,{className:"h-3.5 w-3.5"})}),e.can_manage&&t.jsx("button",{type:"button",onClick:()=>N("template"),className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:r("artifacts.edit"),children:t.jsx(R,{className:"h-3.5 w-3.5"})}),t.jsxs("button",{type:"button",onClick:L,className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:`${r("artifacts.copyLink")} · ${r("artifacts.linkNotice")}`,children:[t.jsx(z,{className:"h-3.5 w-3.5"}),p&&t.jsx("span",{className:"text-status-active",children:r("artifacts.copied")})]}),t.jsx("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-surface-2 hover:text-text-primary",title:r("artifacts.openInNewTab"),children:t.jsx(G,{className:"h-3.5 w-3.5"})}),t.jsx("button",{type:"button",onClick:T,className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-text-secondary hover:bg-status-error/10 hover:text-status-error",title:r("artifacts.delete"),children:t.jsx(U,{className:"h-3.5 w-3.5"})})]})]}),t.jsx("iframe",{src:`${e.url}${e.url.includes("?")?"&":"?"}_=${Date.now()}`,title:e.title||e.id,className:"min-h-0 w-full flex-1 border-0 bg-white",sandbox:"allow-scripts allow-popups allow-forms"},S),t.jsx(K,{open:w,onClose:()=>h(!1),onCreated:$,editArtifact:g,initialMode:E})]}):t.jsx("div",{className:"flex flex-1 items-center justify-center text-text-muted",children:r("common.loading")})}export{I as ArtifactView};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var pt=Object.defineProperty;var ht=(t,e,r)=>e in t?pt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var S=(t,e,r)=>ht(t,typeof e!="symbol"?e+"":e,r);import{e as k,j as o}from"./vendor-DE_-CLIE.js";import{aA as Te,aF as ut,aW as Qe,aX as ft,a7 as mt,aO as f,a2 as xt,az as gt,F as bt,i as kt,P as yt,N as wt,t as vt,a6 as St,ah as Rt,aJ as Tt,ag as $t,as as jt,at as Et,_ as Nt,b as Ct}from"./main-
|
|
1
|
+
var pt=Object.defineProperty;var ht=(t,e,r)=>e in t?pt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var S=(t,e,r)=>ht(t,typeof e!="symbol"?e+"":e,r);import{e as k,j as o}from"./vendor-DE_-CLIE.js";import{aA as Te,aF as ut,aW as Qe,aX as ft,a7 as mt,aO as f,a2 as xt,az as gt,F as bt,i as kt,P as yt,N as wt,t as vt,a6 as St,ah as Rt,aJ as Tt,ag as $t,as as jt,at as Et,_ as Nt,b as Ct}from"./main-Mn7R0A18.js";import{D as It,a as At,c as zt,d as Lt,b as _t}from"./dialog-1duL__fs.js";import{C as Dt}from"./copy-D0pf7ohg.js";/**
|
|
2
2
|
* @license lucide-react v0.555.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{Y as u,a5 as f}from"./main-
|
|
1
|
+
import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{Y as u,a5 as f}from"./main-Mn7R0A18.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";const v=2e3,N=3e4;function E(){const c=window.location.pathname.split("/"),i=c[c.length-1]||"",[s,n]=r.useState("idle"),[m,l]=r.useState(null),[a,d]=r.useState(null);return r.useEffect(()=>{if(!i||!i.startsWith("clm_")){l("Invalid claim token"),n("error");return}n("claiming"),u(i).then(t=>{d(t.environment_id),n("waiting")}).catch(t=>{l(t instanceof Error?t.message:"Claim failed"),n("error")})},[i]),r.useEffect(()=>{if(s!=="waiting"||!a)return;let t=!1;const x=Date.now(),o=setInterval(()=>{if(Date.now()-x>N){clearInterval(o),t||n("timeout");return}f().then(h=>{t||(h||[]).some(p=>p.environment_id===a)&&(clearInterval(o),window.location.href="/code/")}).catch(()=>{})},v);return()=>{t=!0,clearInterval(o)}},[s,a]),s==="claiming"?e.jsx("div",{className:"px-6 py-16 sm:px-10 sm:py-20",children:e.jsx("p",{className:"text-sm text-text-muted",children:"Claiming environment..."})}):s==="error"?e.jsxs("div",{className:"px-6 py-16 sm:px-10 sm:py-20",children:[e.jsx("p",{className:"text-sm text-destructive",children:m}),e.jsx("a",{href:"/code",className:"mt-4 inline-block text-accent hover:underline",children:"Back to dashboard"})]}):s==="waiting"||s==="timeout"?e.jsxs("div",{className:"px-6 py-16 sm:px-10 sm:py-20",children:[e.jsxs("header",{className:"mb-10",children:[e.jsx("h1",{className:"font-display text-2xl font-semibold tracking-tight text-text-primary",children:"Environment claimed"}),e.jsx("p",{className:"mt-2 text-sm text-text-muted",children:"You are now the owner of this environment."})]}),e.jsxs("div",{className:"space-y-4",children:[a&&e.jsx("p",{className:"font-mono text-xs text-text-muted",children:a}),s==="waiting"?e.jsxs("p",{className:"text-sm text-text-muted",children:["Waiting for the worker to create a session",e.jsx("span",{className:"animate-pulse",children:"…"})]}):e.jsx("p",{className:"text-sm text-text-muted",children:"The worker has not created a session yet — it may be offline or stopped. The session will appear on the dashboard once the worker connects."}),e.jsx("a",{href:"/code",className:"inline-block rounded-md bg-accent px-4 py-2 text-sm font-medium text-white hover:bg-accent/90 transition-colors",children:"Go to dashboard"})]})]}):e.jsx("div",{className:"px-6 py-16 sm:px-10 sm:py-20",children:e.jsx("p",{className:"text-sm text-text-muted",children:"Claiming environment..."})})}export{E as Claim};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,e as r}from"./vendor-DE_-CLIE.js";import{aA as Q,ay as E,aX as O,aV as I,aO as t,U as X,aE as $,aW as P,I as K,f as B,e as U,a0 as Z,ar as G,a5 as J,a8 as Y,a4 as ee,S as W,X as se,aP as ae}from"./main-
|
|
1
|
+
import{j as e,e as r}from"./vendor-DE_-CLIE.js";import{aA as Q,ay as E,aX as O,aV as I,aO as t,U as X,aE as $,aW as P,I as K,f as B,e as U,a0 as Z,ar as G,a5 as J,a8 as Y,a4 as ee,S as W,X as se,aP as ae}from"./main-Mn7R0A18.js";import{R as q,E as te}from"./RegisterEmpty-Bp4ijU6c.js";import{g as L}from"./workerType-BYUJv8QQ.js";import{S as ne}from"./SessionVisibilityBadge-hjXhLkpx.js";import{D as re,a as le,d as ce}from"./dialog-1duL__fs.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";/**
|
|
2
2
|
* @license lucide-react v0.555.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{aV as v,c as N,aO as t}from"./main-
|
|
1
|
+
import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{aV as v,c as N,aO as t}from"./main-Mn7R0A18.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function P({onSuccess:h,onInvalidInvite:i}){const{join:b}=v(),[l,f]=r.useState(""),[u,w]=r.useState(""),[o,j]=r.useState(""),[c,g]=r.useState(""),[m,n]=r.useState(""),[x,p]=r.useState(!1);r.useEffect(()=>{const a=new URLSearchParams(window.location.search).get("invite");a?f(a):i()},[i]);const y=async s=>{if(s.preventDefault(),n(""),o.length<8){n(t("auth.setup.passwordTooShort"));return}if(o!==c){n(t("auth.setup.passwordMismatch"));return}p(!0);try{await b(l,u,o),h()}catch(a){const d=a instanceof Error?a.message:"Join failed";if(d.includes("Invalid invitation")||d.includes("expired")||d.includes("already used")){i();return}n(d)}finally{p(!1)}};return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-surface-0 px-4",children:e.jsxs("div",{className:"hero-enter w-full max-w-sm space-y-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(N,{className:"mx-auto mb-5 h-10 w-10"}),e.jsx("h1",{className:"font-display text-3xl font-semibold tracking-tight text-text-primary",children:t("auth.join.title")}),e.jsx("p",{className:"mt-2 text-sm text-text-muted",children:t("auth.join.welcome")}),e.jsx("p",{className:"mt-1 text-sm text-text-muted",children:t("auth.join.description")})]}),e.jsxs("form",{onSubmit:y,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.join.username")}),e.jsx("input",{type:"text",value:u,onChange:s=>w(s.target.value),required:!0,autoComplete:"username",autoFocus:!0,className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.join.password")}),e.jsx("input",{type:"password",value:o,onChange:s=>j(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.join.confirmPassword")}),e.jsx("input",{type:"password",value:c,onChange:s=>g(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),m&&e.jsx("p",{className:"text-sm text-status-error",children:m}),e.jsx("button",{type:"submit",disabled:x||!l,className:"w-full rounded-lg bg-brand px-4 py-2.5 font-display text-sm font-medium text-white shadow-lg shadow-brand/25 transition-all hover:-translate-y-0.5 hover:bg-brand-light hover:shadow-brand/40 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 disabled:hover:shadow-none",children:x?t("common.loading"):t("auth.join.submit")})]})]})})}export{P as Join};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,j as e}from"./vendor-DE_-CLIE.js";import{aO as t,aP as y,aV as j,c as w}from"./main-
|
|
1
|
+
import{e as n,j as e}from"./vendor-DE_-CLIE.js";import{aO as t,aP as y,aV as j,c as w}from"./main-Mn7R0A18.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function v(r){if(!(r instanceof Error))return t("auth.login.failed");if(r instanceof TypeError)return t("auth.login.unreachable");const s=r.message;return/failed to fetch|network|load failed/i.test(s)?t("auth.login.unreachable"):/csrf/i.test(s)?t("auth.login.csrfBlocked"):/too many/i.test(s)?t("auth.login.rateLimited"):/invalid credentials/i.test(s)?t("auth.login.failed"):!s||/^login failed$/i.test(s)?t("auth.login.failed"):y("auth.login.failedWithReason",{message:s})}function C({onSuccess:r,onNavigateRegister:s}){const{login:m,registrationAllowed:x,singleUserMode:h}=j(),[o,f]=n.useState(""),[i,b]=n.useState(""),[l,d]=n.useState(""),[u,c]=n.useState(!1),g=async a=>{a.preventDefault(),d(""),c(!0);try{await m(o,i),r()}catch(p){d(v(p))}finally{c(!1)}};return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-surface-0 px-4",children:e.jsxs("div",{className:"hero-enter w-full max-w-sm space-y-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(w,{className:"mx-auto mb-5 h-10 w-10"}),e.jsx("h1",{className:"font-display text-3xl font-semibold tracking-tight text-text-primary",children:t("auth.login.title")}),e.jsx("p",{className:"mt-2 text-sm text-text-muted",children:t("auth.login.description")})]}),e.jsxs("form",{onSubmit:g,className:"space-y-4",children:[h&&e.jsxs("div",{className:"rounded-lg border border-border bg-surface-2 px-3 py-2 text-xs text-text-secondary",children:[e.jsx("p",{children:t("auth.login.singleUserHint")}),e.jsx("p",{className:"mt-1 font-mono text-text-primary",children:"admin / admin123"}),e.jsx("p",{className:"mt-1 text-text-muted",children:t("auth.login.singleUserHintFooter")})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.login.username")}),e.jsx("input",{type:"text",value:o,onChange:a=>f(a.target.value),required:!0,autoComplete:"username",autoFocus:!0,className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.login.password")}),e.jsx("input",{type:"password",value:i,onChange:a=>b(a.target.value),required:!0,autoComplete:"current-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),l&&e.jsx("p",{className:"text-sm text-status-error",children:l}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-lg bg-brand px-4 py-2.5 font-display text-sm font-medium text-white shadow-lg shadow-brand/25 transition-all hover:-translate-y-0.5 hover:bg-brand-light hover:shadow-brand/40 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 disabled:hover:shadow-none",children:u?t("common.loading"):t("auth.login.submit")})]}),x&&e.jsx("button",{type:"button",onClick:s,className:"w-full text-center text-sm text-text-muted hover:text-text-primary transition-colors",children:t("auth.login.register")})]})})}export{C as Login};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a,j as e}from"./vendor-DE_-CLIE.js";import{aW as B,aX as H,aO as s,$ as U,ad as W,ab as J,ac as V,aq as Z,t as ee,aP as L,X as te,S as se}from"./main-ChME3U1u.js";import{D,u as re,e as ae,d as ne,h as le,T as oe,c as ce,b as ie,a as me,F as de,M as xe}from"./MemoryTypeChips-8BdYhLuK.js";import{D as ue,a as pe,c as he,d as fe,b as be}from"./dialog-DRBVwDXT.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";const ye=["user","feedback","project","reference"];function je({open:l,mode:c,onClose:d,onCreated:x}){B();const{myTeams:o}=H(),[b,y]=a.useState(""),[h,N]=a.useState(""),[i,F]=a.useState("project"),[f,T]=a.useState(""),[n,m]=a.useState("personal"),[u,P]=a.useState(""),[C,j]=a.useState(!1),[S,g]=a.useState("");a.useEffect(()=>{var r;l&&(y(""),N(""),F("project"),T(""),m("personal"),P(((r=o[0])==null?void 0:r.id)??""),j(!1),g(""))},[l,o]);const w=b.trim().length>0&&f.trim().length>0&&!C&&(n==="personal"||c==="memdir"||!!u),O=async()=>{j(!0),g("");try{await U({scope:n,name:b.trim(),description:h.trim()||void 0,type:i,content:f,...c==="sqlite"&&n==="team"?{teamId:u}:{}}),x()}catch(r){g(r instanceof Error?r.message:s("memorySidebar.createFailed"))}finally{j(!1)}};return e.jsx(ue,{open:l,onOpenChange:r=>r?void 0:d(),children:e.jsxs(pe,{className:"max-h-[85vh] overflow-y-auto sm:max-w-2xl",children:[e.jsx(he,{children:e.jsx(fe,{children:s("memories.create.title")})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-name",children:s("memorySidebar.create.namePlaceholder")}),e.jsx("input",{id:"memory-create-name",type:"text",value:b,onChange:r=>y(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-description",children:s("memorySidebar.create.descriptionPlaceholder")}),e.jsx("input",{id:"memory-create-description",type:"text",value:h,onChange:r=>N(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none"})]}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-type",children:s("memories.create.type")}),e.jsx("select",{id:"memory-create-type",value:i,onChange:r=>F(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none",children:ye.map(r=>e.jsx("option",{value:r,children:s(`memories.type.${r}`)},r))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-scope",children:s("memories.create.scope")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("select",{id:"memory-create-scope",value:n,onChange:r=>m(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none",children:[e.jsx("option",{value:"personal",children:s("memories.create.scope.personal")}),e.jsx("option",{value:"team",children:s("memories.scope.team")})]}),c==="sqlite"&&n==="team"&&e.jsxs("select",{value:u,onChange:r=>P(r.target.value),"aria-label":s("memories.scope.team"),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none",children:[o.length===0&&e.jsx("option",{value:"",children:"—"}),o.map(r=>e.jsx("option",{value:r.id,children:r.name},r.id))]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-content",children:s("memories.create.content")}),e.jsx("textarea",{id:"memory-create-content",value:f,onChange:r=>T(r.target.value),placeholder:s("memorySidebar.create.contentPlaceholder"),rows:10,spellCheck:!1,className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 font-mono text-xs text-text-primary focus:border-accent focus:outline-none"})]}),S&&e.jsx("p",{className:"text-sm text-status-error",children:S})]}),e.jsxs(be,{children:[e.jsx("button",{type:"button",onClick:d,className:"rounded-md border border-border px-4 py-2 text-sm text-text-secondary hover:bg-surface-2",children:s("common.cancel")}),e.jsx("button",{type:"button",onClick:O,disabled:!w,className:"rounded-md bg-accent px-4 py-2 text-sm font-medium text-white hover:bg-accent/90 disabled:opacity-50",children:C?"…":s("memories.create.title")})]})]})})}function ge(){return e.jsx("div",{className:"space-y-3",children:[0,1,2].map(l=>e.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-surface-2"},l))})}function _({options:l,value:c,onChange:d,disabled:x=!1}){return e.jsx("div",{className:`flex rounded-md bg-surface-2 p-0.5 text-[11px] ${x?"pointer-events-none opacity-40":""}`,children:l.map(o=>e.jsx("button",{type:"button",onClick:()=>d(o.value),className:`rounded px-2 py-0.5 transition-colors ${c===o.value?"bg-brand-light text-white":"text-text-muted hover:text-text-secondary"}`,children:o.label},String(o.value)))})}function Ee(){B();const[l,c]=a.useState(null),[d,x]=a.useState(0);return a.useEffect(()=>{W().then(c).catch(()=>c({mode:"sqlite"}))},[]),a.useEffect(()=>{const o=()=>x(b=>b+1);return window.addEventListener("focus",o),()=>window.removeEventListener("focus",o)},[]),l===null?e.jsx("div",{className:"flex-1 overflow-y-auto",children:e.jsx("div",{className:"ds-page",children:e.jsx(ge,{})})}):e.jsx(ve,{mode:l.mode,status:l,refreshTick:d})}function ve({mode:l,status:c,refreshTick:d}){var K;const x=l==="sqlite",{myTeams:o}=H(),[b,y]=a.useState(!1),[h,N]=a.useState([]),[i,F]=a.useState("all"),[f,T]=a.useState("all"),[n,m]=a.useState(D),[u,P]=a.useState([]),[C,j]=a.useState(!0),[S,g]=a.useState(""),[w,O]=a.useState(""),[r,A]=a.useState(null),k=a.useRef(null),v=re(),$=a.useCallback(async()=>{j(!0),g("");try{const t=await J(f==="all"?void 0:f,i);P(t||[])}catch{g(s("memorySidebar.loadFailed"))}finally{j(!1)}},[i,f]);a.useEffect(()=>{V().then(N).catch(()=>N([]))},[d]),a.useEffect(()=>{$()},[$,d]),a.useEffect(()=>{k.current&&clearTimeout(k.current);const t=w.trim();if(!t){A(null);return}return k.current=setTimeout(()=>{Z(t,i).then(A).catch(()=>A([]))},300),()=>{k.current&&clearTimeout(k.current)}},[w,i]);const R=a.useMemo(()=>Object.fromEntries(h.map(t=>[t.key,t.shortName])),[h]),Y=a.useMemo(()=>ae(u),[u]),Q=(K=h.find(t=>t.isCurrent))==null?void 0:K.key,M=a.useMemo(()=>ne(u,n),[u,n]),q=a.useMemo(()=>new Set(M.map(t=>t.project).filter(Boolean)).size,[M]),E=r!==null,I=le(n),X=[{value:"all",label:s("memories.filter.scopeAll")},{value:"personal",label:s("memorySidebar.personal")},{value:"team",label:s("memorySidebar.team")}],z=oe.map(t=>({value:t.value,label:s(t.labelKey)}));return e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[e.jsxs("div",{className:"mx-auto flex min-h-0 w-full max-w-4xl flex-1 flex-col px-5 pt-7 pb-6 sm:px-8 sm:pt-9",children:[e.jsxs("header",{className:"ds-page-head",children:[e.jsxs("div",{className:"ds-page-titlerow",children:[e.jsx("h1",{className:"ds-page-title font-display font-semibold tracking-tight text-text-primary",children:s("memories.title")}),e.jsxs("button",{type:"button",onClick:()=>y(!0),className:"btn-ticket",children:[e.jsx(ee,{className:"h-3.5 w-3.5"}),s("memories.new")]})]}),e.jsx("p",{className:"ds-page-sub",children:x?s("memories.subtitle"):s("memories.subtitleMemdir")})]}),e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-xl border border-border bg-surface-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-border px-3 py-2",children:[h.length>0&&e.jsxs("select",{value:i,onChange:t=>F(t.target.value),className:"max-w-52 rounded-md border border-border bg-surface-2 px-2 py-1 text-xs text-text-primary focus:border-accent focus:outline-none",title:s("memories.filter.project"),"aria-label":s("memories.filter.project"),children:[e.jsx("option",{value:"all",children:s("memories.filter.projectAll")}),h.map(t=>e.jsxs("option",{value:t.key,children:[t.shortName,t.isCurrent?` · ${s("memories.filter.currentTag")}`:""]},t.key))]}),e.jsx(_,{options:X,value:f,onChange:T,disabled:E}),e.jsxs("span",{className:"ml-auto flex-shrink-0 font-mono text-[10px] text-text-muted",children:[L("memories.resultCount",{n:E?r.length:M.length}),i==="all"&&q>0?L("memories.resultProjects",{m:q}):""]})]}),e.jsxs("div",{className:`flex flex-wrap items-center gap-x-3 gap-y-1.5 border-b border-border px-3 py-1.5 ${E?"pointer-events-none opacity-40":""}`,children:[e.jsx(ce,{filters:n,onChange:m}),e.jsx(ie,{filters:n,onChange:m,counts:Y}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-[10px] text-text-muted",children:s("memories.filter.time")}),e.jsx(_,{options:z,value:n.days,onChange:t=>m(p=>({...p,days:t}))})]}),e.jsxs("div",{className:"flex min-w-32 flex-1 items-center gap-1.5",title:s("memories.filter.confidence"),children:[e.jsx("span",{className:"flex-shrink-0 text-[10px] text-text-muted",children:s("memories.filter.confidence")}),e.jsx("input",{type:"range",min:0,max:100,step:10,value:n.minConfidence*100,onChange:t=>m(p=>({...p,minConfidence:Number(t.target.value)/100})),className:"h-1 min-w-16 flex-1 accent-brand"}),e.jsx("span",{className:`flex-shrink-0 font-mono text-[10px] ${n.minConfidence>0?"text-brand-text":"text-text-muted"}`,children:L("memories.filter.minConfidence",{pct:n.minConfidence*100})})]}),e.jsxs("div",{className:"flex min-w-28 flex-1 items-center gap-1.5",title:s("memories.filter.access"),children:[e.jsx("span",{className:"flex-shrink-0 text-[10px] text-text-muted",children:s("memories.filter.access")}),e.jsx("input",{type:"range",min:0,max:10,step:1,value:n.minAccessCount,onChange:t=>m(p=>({...p,minAccessCount:Number(t.target.value)})),className:"h-1 min-w-12 flex-1 accent-brand"}),e.jsx("span",{className:`flex-shrink-0 font-mono text-[10px] ${n.minAccessCount>0?"text-brand-text":"text-text-muted"}`,children:L("memories.filter.minAccess",{n:n.minAccessCount})})]}),I&&e.jsxs("button",{type:"button",onClick:()=>m(D),className:"flex flex-shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 text-[10px] text-text-muted hover:bg-surface-2 hover:text-text-primary",title:s("memories.filter.clear"),children:[e.jsx(te,{className:"h-3 w-3"}),s("memories.filter.clear")]})]}),e.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-3 py-1.5",children:[e.jsx(se,{className:"h-3 w-3 flex-shrink-0 text-text-muted"}),e.jsx("input",{value:w,onChange:t=>O(t.target.value),placeholder:s("memorySidebar.searchPlaceholder"),title:s("memorySidebar.searchHint"),className:"w-full bg-transparent text-xs text-text-primary placeholder:text-text-muted focus:outline-none"})]}),S&&e.jsx("p",{className:"px-3 py-1 text-xs text-status-error",children:S}),E&&e.jsx("div",{className:"flex-1 overflow-y-auto p-3",children:r.length===0?e.jsx("p",{className:"py-8 text-center text-xs text-text-muted",children:s("memorySidebar.noResults")}):e.jsx("ul",{className:"space-y-1.5",children:r.map(t=>e.jsxs("li",{children:[e.jsxs("button",{type:"button",onClick:()=>void v.toggleExpand(t),className:"w-full rounded-md px-2 py-1.5 text-left hover:bg-surface-2",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"truncate text-xs font-medium text-text-primary",children:t.name}),e.jsx(me,{layer:t.layer}),t.project&&e.jsx("span",{className:"max-w-24 flex-shrink-0 truncate rounded-full bg-surface-3 px-1.5 py-0.5 text-[9px] font-medium text-text-muted",title:t.project,children:R[t.project]??t.project.split("-").pop()}),t.teamName&&e.jsx("span",{className:"max-w-24 flex-shrink-0 truncate rounded-full bg-surface-3 px-1.5 py-0.5 text-[9px] font-medium text-text-muted",title:t.teamName,children:t.teamName})]}),e.jsx("ul",{className:"mt-0.5 space-y-0.5",children:t.matches.map((p,G)=>e.jsxs("li",{className:"flex gap-1.5 text-[10px] leading-relaxed",children:[e.jsx("span",{className:"flex-shrink-0 font-mono text-text-muted",children:p.line===0?"file":`L${p.line}`}),e.jsx("span",{className:"truncate text-text-secondary",children:p.text})]},G))})]}),v.expandedKey===(t.project?`${t.project}::${t.path}`:t.path)&&e.jsx("pre",{className:"mx-2 mt-1 max-h-48 overflow-y-auto whitespace-pre-wrap rounded bg-surface-3 p-2 text-[10px] leading-relaxed text-text-secondary",children:v.fileContent[t.project?`${t.project}::${t.path}`:t.path]??"…"})]},`${t.project??""}::${t.path}`))})}),!E&&e.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:!C&&u.length>0&&M.length===0?e.jsxs("div",{className:"py-10 text-center",children:[e.jsx(de,{className:"mx-auto h-6 w-6 text-text-muted/40"}),e.jsx("p",{className:"mt-2 text-xs text-text-muted",children:s("memories.filter.empty")}),I?e.jsx("button",{type:"button",onClick:()=>m(D),className:"mt-2 rounded-md border border-border px-2.5 py-1 text-[11px] text-text-secondary hover:bg-surface-2",children:s("memories.filter.clear")}):e.jsx("p",{className:"mt-1 px-4 text-[10px] leading-relaxed text-text-muted",children:s("memories.filter.layersHidden")})]}):e.jsx(xe,{files:M,isLoading:C,canManage:t=>!t.project||t.project===Q,teamEnabled:x||c.teamEnabled===!0,teams:x?o:void 0,showProject:i==="all",projectNames:R,onChanged:$,expandedKey:v.expandedKey,fileContent:v.fileContent,onToggleExpand:v.toggleExpand})})]})]}),e.jsx(je,{open:b,mode:l,onClose:()=>y(!1),onCreated:()=>{y(!1),$()}})]})}export{Ee as MemoriesPage};
|
|
1
|
+
import{e as a,j as e}from"./vendor-DE_-CLIE.js";import{aW as B,aX as H,aO as s,$ as U,ad as W,ab as J,ac as V,aq as Z,t as ee,aP as L,X as te,S as se}from"./main-Mn7R0A18.js";import{D,u as re,e as ae,d as ne,h as le,T as oe,c as ce,b as ie,a as me,F as de,M as xe}from"./MemoryTypeChips-DuOHvrLG.js";import{D as ue,a as pe,c as he,d as fe,b as be}from"./dialog-1duL__fs.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";const ye=["user","feedback","project","reference"];function je({open:l,mode:c,onClose:d,onCreated:x}){B();const{myTeams:o}=H(),[b,y]=a.useState(""),[h,N]=a.useState(""),[i,F]=a.useState("project"),[f,T]=a.useState(""),[n,m]=a.useState("personal"),[u,P]=a.useState(""),[C,j]=a.useState(!1),[S,g]=a.useState("");a.useEffect(()=>{var r;l&&(y(""),N(""),F("project"),T(""),m("personal"),P(((r=o[0])==null?void 0:r.id)??""),j(!1),g(""))},[l,o]);const w=b.trim().length>0&&f.trim().length>0&&!C&&(n==="personal"||c==="memdir"||!!u),O=async()=>{j(!0),g("");try{await U({scope:n,name:b.trim(),description:h.trim()||void 0,type:i,content:f,...c==="sqlite"&&n==="team"?{teamId:u}:{}}),x()}catch(r){g(r instanceof Error?r.message:s("memorySidebar.createFailed"))}finally{j(!1)}};return e.jsx(ue,{open:l,onOpenChange:r=>r?void 0:d(),children:e.jsxs(pe,{className:"max-h-[85vh] overflow-y-auto sm:max-w-2xl",children:[e.jsx(he,{children:e.jsx(fe,{children:s("memories.create.title")})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-name",children:s("memorySidebar.create.namePlaceholder")}),e.jsx("input",{id:"memory-create-name",type:"text",value:b,onChange:r=>y(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-description",children:s("memorySidebar.create.descriptionPlaceholder")}),e.jsx("input",{id:"memory-create-description",type:"text",value:h,onChange:r=>N(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none"})]}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-type",children:s("memories.create.type")}),e.jsx("select",{id:"memory-create-type",value:i,onChange:r=>F(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none",children:ye.map(r=>e.jsx("option",{value:r,children:s(`memories.type.${r}`)},r))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-scope",children:s("memories.create.scope")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("select",{id:"memory-create-scope",value:n,onChange:r=>m(r.target.value),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none",children:[e.jsx("option",{value:"personal",children:s("memories.create.scope.personal")}),e.jsx("option",{value:"team",children:s("memories.scope.team")})]}),c==="sqlite"&&n==="team"&&e.jsxs("select",{value:u,onChange:r=>P(r.target.value),"aria-label":s("memories.scope.team"),className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none",children:[o.length===0&&e.jsx("option",{value:"",children:"—"}),o.map(r=>e.jsx("option",{value:r.id,children:r.name},r.id))]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-primary",htmlFor:"memory-create-content",children:s("memories.create.content")}),e.jsx("textarea",{id:"memory-create-content",value:f,onChange:r=>T(r.target.value),placeholder:s("memorySidebar.create.contentPlaceholder"),rows:10,spellCheck:!1,className:"w-full rounded-md border border-border bg-surface-1 px-3 py-2 font-mono text-xs text-text-primary focus:border-accent focus:outline-none"})]}),S&&e.jsx("p",{className:"text-sm text-status-error",children:S})]}),e.jsxs(be,{children:[e.jsx("button",{type:"button",onClick:d,className:"rounded-md border border-border px-4 py-2 text-sm text-text-secondary hover:bg-surface-2",children:s("common.cancel")}),e.jsx("button",{type:"button",onClick:O,disabled:!w,className:"rounded-md bg-accent px-4 py-2 text-sm font-medium text-white hover:bg-accent/90 disabled:opacity-50",children:C?"…":s("memories.create.title")})]})]})})}function ge(){return e.jsx("div",{className:"space-y-3",children:[0,1,2].map(l=>e.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-surface-2"},l))})}function _({options:l,value:c,onChange:d,disabled:x=!1}){return e.jsx("div",{className:`flex rounded-md bg-surface-2 p-0.5 text-[11px] ${x?"pointer-events-none opacity-40":""}`,children:l.map(o=>e.jsx("button",{type:"button",onClick:()=>d(o.value),className:`rounded px-2 py-0.5 transition-colors ${c===o.value?"bg-brand-light text-white":"text-text-muted hover:text-text-secondary"}`,children:o.label},String(o.value)))})}function Ee(){B();const[l,c]=a.useState(null),[d,x]=a.useState(0);return a.useEffect(()=>{W().then(c).catch(()=>c({mode:"sqlite"}))},[]),a.useEffect(()=>{const o=()=>x(b=>b+1);return window.addEventListener("focus",o),()=>window.removeEventListener("focus",o)},[]),l===null?e.jsx("div",{className:"flex-1 overflow-y-auto",children:e.jsx("div",{className:"ds-page",children:e.jsx(ge,{})})}):e.jsx(ve,{mode:l.mode,status:l,refreshTick:d})}function ve({mode:l,status:c,refreshTick:d}){var K;const x=l==="sqlite",{myTeams:o}=H(),[b,y]=a.useState(!1),[h,N]=a.useState([]),[i,F]=a.useState("all"),[f,T]=a.useState("all"),[n,m]=a.useState(D),[u,P]=a.useState([]),[C,j]=a.useState(!0),[S,g]=a.useState(""),[w,O]=a.useState(""),[r,A]=a.useState(null),k=a.useRef(null),v=re(),$=a.useCallback(async()=>{j(!0),g("");try{const t=await J(f==="all"?void 0:f,i);P(t||[])}catch{g(s("memorySidebar.loadFailed"))}finally{j(!1)}},[i,f]);a.useEffect(()=>{V().then(N).catch(()=>N([]))},[d]),a.useEffect(()=>{$()},[$,d]),a.useEffect(()=>{k.current&&clearTimeout(k.current);const t=w.trim();if(!t){A(null);return}return k.current=setTimeout(()=>{Z(t,i).then(A).catch(()=>A([]))},300),()=>{k.current&&clearTimeout(k.current)}},[w,i]);const R=a.useMemo(()=>Object.fromEntries(h.map(t=>[t.key,t.shortName])),[h]),Y=a.useMemo(()=>ae(u),[u]),Q=(K=h.find(t=>t.isCurrent))==null?void 0:K.key,M=a.useMemo(()=>ne(u,n),[u,n]),q=a.useMemo(()=>new Set(M.map(t=>t.project).filter(Boolean)).size,[M]),E=r!==null,I=le(n),X=[{value:"all",label:s("memories.filter.scopeAll")},{value:"personal",label:s("memorySidebar.personal")},{value:"team",label:s("memorySidebar.team")}],z=oe.map(t=>({value:t.value,label:s(t.labelKey)}));return e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[e.jsxs("div",{className:"mx-auto flex min-h-0 w-full max-w-4xl flex-1 flex-col px-5 pt-7 pb-6 sm:px-8 sm:pt-9",children:[e.jsxs("header",{className:"ds-page-head",children:[e.jsxs("div",{className:"ds-page-titlerow",children:[e.jsx("h1",{className:"ds-page-title font-display font-semibold tracking-tight text-text-primary",children:s("memories.title")}),e.jsxs("button",{type:"button",onClick:()=>y(!0),className:"btn-ticket",children:[e.jsx(ee,{className:"h-3.5 w-3.5"}),s("memories.new")]})]}),e.jsx("p",{className:"ds-page-sub",children:x?s("memories.subtitle"):s("memories.subtitleMemdir")})]}),e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-xl border border-border bg-surface-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-border px-3 py-2",children:[h.length>0&&e.jsxs("select",{value:i,onChange:t=>F(t.target.value),className:"max-w-52 rounded-md border border-border bg-surface-2 px-2 py-1 text-xs text-text-primary focus:border-accent focus:outline-none",title:s("memories.filter.project"),"aria-label":s("memories.filter.project"),children:[e.jsx("option",{value:"all",children:s("memories.filter.projectAll")}),h.map(t=>e.jsxs("option",{value:t.key,children:[t.shortName,t.isCurrent?` · ${s("memories.filter.currentTag")}`:""]},t.key))]}),e.jsx(_,{options:X,value:f,onChange:T,disabled:E}),e.jsxs("span",{className:"ml-auto flex-shrink-0 font-mono text-[10px] text-text-muted",children:[L("memories.resultCount",{n:E?r.length:M.length}),i==="all"&&q>0?L("memories.resultProjects",{m:q}):""]})]}),e.jsxs("div",{className:`flex flex-wrap items-center gap-x-3 gap-y-1.5 border-b border-border px-3 py-1.5 ${E?"pointer-events-none opacity-40":""}`,children:[e.jsx(ce,{filters:n,onChange:m}),e.jsx(ie,{filters:n,onChange:m,counts:Y}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-[10px] text-text-muted",children:s("memories.filter.time")}),e.jsx(_,{options:z,value:n.days,onChange:t=>m(p=>({...p,days:t}))})]}),e.jsxs("div",{className:"flex min-w-32 flex-1 items-center gap-1.5",title:s("memories.filter.confidence"),children:[e.jsx("span",{className:"flex-shrink-0 text-[10px] text-text-muted",children:s("memories.filter.confidence")}),e.jsx("input",{type:"range",min:0,max:100,step:10,value:n.minConfidence*100,onChange:t=>m(p=>({...p,minConfidence:Number(t.target.value)/100})),className:"h-1 min-w-16 flex-1 accent-brand"}),e.jsx("span",{className:`flex-shrink-0 font-mono text-[10px] ${n.minConfidence>0?"text-brand-text":"text-text-muted"}`,children:L("memories.filter.minConfidence",{pct:n.minConfidence*100})})]}),e.jsxs("div",{className:"flex min-w-28 flex-1 items-center gap-1.5",title:s("memories.filter.access"),children:[e.jsx("span",{className:"flex-shrink-0 text-[10px] text-text-muted",children:s("memories.filter.access")}),e.jsx("input",{type:"range",min:0,max:10,step:1,value:n.minAccessCount,onChange:t=>m(p=>({...p,minAccessCount:Number(t.target.value)})),className:"h-1 min-w-12 flex-1 accent-brand"}),e.jsx("span",{className:`flex-shrink-0 font-mono text-[10px] ${n.minAccessCount>0?"text-brand-text":"text-text-muted"}`,children:L("memories.filter.minAccess",{n:n.minAccessCount})})]}),I&&e.jsxs("button",{type:"button",onClick:()=>m(D),className:"flex flex-shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 text-[10px] text-text-muted hover:bg-surface-2 hover:text-text-primary",title:s("memories.filter.clear"),children:[e.jsx(te,{className:"h-3 w-3"}),s("memories.filter.clear")]})]}),e.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-3 py-1.5",children:[e.jsx(se,{className:"h-3 w-3 flex-shrink-0 text-text-muted"}),e.jsx("input",{value:w,onChange:t=>O(t.target.value),placeholder:s("memorySidebar.searchPlaceholder"),title:s("memorySidebar.searchHint"),className:"w-full bg-transparent text-xs text-text-primary placeholder:text-text-muted focus:outline-none"})]}),S&&e.jsx("p",{className:"px-3 py-1 text-xs text-status-error",children:S}),E&&e.jsx("div",{className:"flex-1 overflow-y-auto p-3",children:r.length===0?e.jsx("p",{className:"py-8 text-center text-xs text-text-muted",children:s("memorySidebar.noResults")}):e.jsx("ul",{className:"space-y-1.5",children:r.map(t=>e.jsxs("li",{children:[e.jsxs("button",{type:"button",onClick:()=>void v.toggleExpand(t),className:"w-full rounded-md px-2 py-1.5 text-left hover:bg-surface-2",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"truncate text-xs font-medium text-text-primary",children:t.name}),e.jsx(me,{layer:t.layer}),t.project&&e.jsx("span",{className:"max-w-24 flex-shrink-0 truncate rounded-full bg-surface-3 px-1.5 py-0.5 text-[9px] font-medium text-text-muted",title:t.project,children:R[t.project]??t.project.split("-").pop()}),t.teamName&&e.jsx("span",{className:"max-w-24 flex-shrink-0 truncate rounded-full bg-surface-3 px-1.5 py-0.5 text-[9px] font-medium text-text-muted",title:t.teamName,children:t.teamName})]}),e.jsx("ul",{className:"mt-0.5 space-y-0.5",children:t.matches.map((p,G)=>e.jsxs("li",{className:"flex gap-1.5 text-[10px] leading-relaxed",children:[e.jsx("span",{className:"flex-shrink-0 font-mono text-text-muted",children:p.line===0?"file":`L${p.line}`}),e.jsx("span",{className:"truncate text-text-secondary",children:p.text})]},G))})]}),v.expandedKey===(t.project?`${t.project}::${t.path}`:t.path)&&e.jsx("pre",{className:"mx-2 mt-1 max-h-48 overflow-y-auto whitespace-pre-wrap rounded bg-surface-3 p-2 text-[10px] leading-relaxed text-text-secondary",children:v.fileContent[t.project?`${t.project}::${t.path}`:t.path]??"…"})]},`${t.project??""}::${t.path}`))})}),!E&&e.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:!C&&u.length>0&&M.length===0?e.jsxs("div",{className:"py-10 text-center",children:[e.jsx(de,{className:"mx-auto h-6 w-6 text-text-muted/40"}),e.jsx("p",{className:"mt-2 text-xs text-text-muted",children:s("memories.filter.empty")}),I?e.jsx("button",{type:"button",onClick:()=>m(D),className:"mt-2 rounded-md border border-border px-2.5 py-1 text-[11px] text-text-secondary hover:bg-surface-2",children:s("memories.filter.clear")}):e.jsx("p",{className:"mt-1 px-4 text-[10px] leading-relaxed text-text-muted",children:s("memories.filter.layersHidden")})]}):e.jsx(xe,{files:M,isLoading:C,canManage:t=>!t.project||t.project===Q,teamEnabled:x||c.teamEnabled===!0,teams:x?o:void 0,showProject:i==="all",projectNames:R,onChanged:$,expandedKey:v.expandedKey,fileContent:v.fileContent,onToggleExpand:v.toggleExpand})})]})]}),e.jsx(je,{open:b,mode:l,onClose:()=>y(!1),onCreated:()=>{y(!1),$()}})]})}export{Ee as MemoriesPage};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aA as Y,aa as L,aO as c,aW as B,ak as D,B as z,P as H,V,N as U,a3 as q,aw as W}from"./main-
|
|
1
|
+
import{aA as Y,aa as L,aO as c,aW as B,ak as D,B as z,P as H,V,N as U,a3 as q,aw as W}from"./main-Mn7R0A18.js";import{e as d,j as e}from"./vendor-DE_-CLIE.js";import{D as G,a as J,c as Q,d as X,b as Z}from"./dialog-1duL__fs.js";/**
|
|
2
2
|
* @license lucide-react v0.555.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{aV as w,c as y,aO as t}from"./main-
|
|
1
|
+
import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{aV as w,c as y,aO as t}from"./main-Mn7R0A18.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function C({onSuccess:m,onBack:x}){const{register:h}=w(),[n,p]=r.useState(""),[a,b]=r.useState(""),[l,f]=r.useState(""),[d,o]=r.useState(""),[i,u]=r.useState(!1),g=async s=>{if(s.preventDefault(),o(""),a.length<8){o(t("auth.setup.passwordTooShort"));return}if(a!==l){o(t("auth.setup.passwordMismatch"));return}u(!0);try{await h(n,a),m()}catch(c){o(c instanceof Error?c.message:t("auth.register.failed"))}finally{u(!1)}};return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-surface-0 px-4",children:e.jsxs("div",{className:"hero-enter w-full max-w-sm space-y-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(y,{className:"mx-auto mb-5 h-10 w-10"}),e.jsx("h1",{className:"font-display text-3xl font-semibold tracking-tight text-text-primary",children:t("auth.register.title")}),e.jsx("p",{className:"mt-2 text-sm text-text-muted",children:t("auth.register.description")})]}),e.jsxs("form",{onSubmit:g,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.login.username")}),e.jsx("input",{type:"text",value:n,onChange:s=>p(s.target.value),required:!0,autoComplete:"username",autoFocus:!0,className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.login.password")}),e.jsx("input",{type:"password",value:a,onChange:s=>b(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.join.confirmPassword")}),e.jsx("input",{type:"password",value:l,onChange:s=>f(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),d&&e.jsx("p",{className:"text-sm text-status-error",children:d}),e.jsx("button",{type:"submit",disabled:i,className:"w-full rounded-lg bg-brand px-4 py-2.5 font-display text-sm font-medium text-white shadow-lg shadow-brand/25 transition-all hover:-translate-y-0.5 hover:bg-brand-light hover:shadow-brand/40 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 disabled:hover:shadow-none",children:i?t("common.loading"):t("auth.register.submit")})]}),e.jsx("button",{type:"button",onClick:x,className:"w-full text-center text-sm text-text-muted hover:text-text-primary transition-colors",children:t("auth.register.backToLogin")})]})})}export{C as Register};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./vendor-DE_-CLIE.js";import{aA as a,i as d,h as l,ay as p,aO as h}from"./main-
|
|
1
|
+
import{j as e}from"./vendor-DE_-CLIE.js";import{aA as a,i as d,h as l,ay as p,aO as h}from"./main-Mn7R0A18.js";import{A as y}from"./workerType-BYUJv8QQ.js";/**
|
|
2
2
|
* @license lucide-react v0.555.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var vn=Object.defineProperty;var Nn=(r,t,s)=>t in r?vn(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s;var I=(r,t,s)=>Nn(r,typeof t!="symbol"?t+"":t,s);import{j as e,e as l}from"./vendor-DE_-CLIE.js";import{aA as Y,af as kn,aI as ts,aH as ss,aO as i,aK as Sn,aJ as mt,aP as U,aF as je,at as _n,as as X,ai as Cn,ap as Tn,aT as En,aW as se,T as Mn,Q as Rn,X as Ps,L as Ye,H as An,I as In,i as ns,aE as $n,N as Dn,aB as pt,e as ht,S as ft,M as qn,y as Pn,aC as Z,ay as xe,aD as On,aQ as Fn,G as Kn,D as Ln,aR as rs,aj as Un,a1 as Bn,ao as Hn,aX as Qn,ad as Os,ab as Wn,a9 as Gn,aq as zn,al as Yn,P as Vn,t as Jn,B as Fs,$ as Xn,A as Zn,aG as er,aL as tr,aM as sr,Z as as,a0 as nr,aS as rr,b as ar,a4 as os,am as or,K as Ks,F as ir,d as lr,C as cr,ae as is,l as dr,a as ur,u as Mt,w as Rt,E as mr,g as At,f as It,v as $t,s as xr}from"./main-
|
|
1
|
+
var vn=Object.defineProperty;var Nn=(r,t,s)=>t in r?vn(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s;var I=(r,t,s)=>Nn(r,typeof t!="symbol"?t+"":t,s);import{j as e,e as l}from"./vendor-DE_-CLIE.js";import{aA as Y,af as kn,aI as ts,aH as ss,aO as i,aK as Sn,aJ as mt,aP as U,aF as je,at as _n,as as X,ai as Cn,ap as Tn,aT as En,aW as se,T as Mn,Q as Rn,X as Ps,L as Ye,H as An,I as In,i as ns,aE as $n,N as Dn,aB as pt,e as ht,S as ft,M as qn,y as Pn,aC as Z,ay as xe,aD as On,aQ as Fn,G as Kn,D as Ln,aR as rs,aj as Un,a1 as Bn,ao as Hn,aX as Qn,ad as Os,ab as Wn,a9 as Gn,aq as zn,al as Yn,P as Vn,t as Jn,B as Fs,$ as Xn,A as Zn,aG as er,aL as tr,aM as sr,Z as as,a0 as nr,aS as rr,b as ar,a4 as os,am as or,K as Ks,F as ir,d as lr,C as cr,ae as is,l as dr,a as ur,u as Mt,w as Rt,E as mr,g as At,f as It,v as $t,s as xr}from"./main-Mn7R0A18.js";import{A as pr,g as Ls}from"./workerType-BYUJv8QQ.js";import{D as we,a as ve,c as Ae,d as Ne,b as fr}from"./dialog-1duL__fs.js";import{R as hr}from"./refresh-cw-Bo4t-P1R.js";import{A as yr,U as gr}from"./UserSearchInput-BHQO5MGU.js";import{C as br}from"./copy-D0pf7ohg.js";import{E as jr,S as wr,A as vr}from"./ArtifactsGallery-DTDBumAW.js";import{S as Nr}from"./SessionVisibilityBadge-hjXhLkpx.js";import{D as St,u as kr,d as Sr,e as _r,i as Cr,F as ls,c as Tr,b as Er,T as Mr,h as cs,a as Rr,M as Ar}from"./MemoryTypeChips-DuOHvrLG.js";import{S as Ir,b as $r}from"./notifications-C2qTba5c.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";/**
|
|
2
2
|
* @license lucide-react v0.555.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./vendor-DE_-CLIE.js";import{aA as c,V as n,ay as i}from"./main-
|
|
1
|
+
import{j as e}from"./vendor-DE_-CLIE.js";import{aA as c,V as n,ay as i}from"./main-Mn7R0A18.js";/**
|
|
2
2
|
* @license lucide-react v0.555.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{aV as v,c as N,aO as t}from"./main-
|
|
1
|
+
import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{aV as v,c as N,aO as t}from"./main-Mn7R0A18.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function E({onSuccess:p,onAlreadyDone:b}){const{setup:h}=v(),[d,f]=r.useState(""),[l,y]=r.useState(""),[a,g]=r.useState(""),[u,w]=r.useState(""),[i,o]=r.useState(""),[c,m]=r.useState(!1),j=async s=>{if(s.preventDefault(),o(""),a.length<8){o(t("auth.setup.passwordTooShort"));return}if(a!==u){o(t("auth.setup.passwordMismatch"));return}m(!0);try{await h(d,l,a),p()}catch(x){const n=x instanceof Error?x.message:"Setup failed";if(n.includes("already")||n.includes("409")){b();return}o(n)}finally{m(!1)}};return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-surface-0 px-4",children:e.jsxs("div",{className:"hero-enter w-full max-w-sm space-y-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(N,{className:"mx-auto mb-5 h-10 w-10"}),e.jsx("h1",{className:"font-display text-3xl font-semibold tracking-tight text-text-primary",children:t("auth.setup.title")}),e.jsx("p",{className:"mt-2 text-sm text-text-muted",children:t("auth.setup.description")})]}),e.jsxs("form",{onSubmit:j,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.setup.apiKey")}),e.jsx("input",{type:"password",value:d,onChange:s=>f(s.target.value),required:!0,autoComplete:"off",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.setup.username")}),e.jsx("input",{type:"text",value:l,onChange:s=>y(s.target.value),required:!0,autoComplete:"username",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.setup.password")}),e.jsx("input",{type:"password",value:a,onChange:s=>g(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-text-secondary",children:t("auth.setup.confirmPassword")}),e.jsx("input",{type:"password",value:u,onChange:s=>w(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:border-brand focus:outline-none"})]}),i&&e.jsx("p",{className:"text-sm text-status-error",children:i}),e.jsx("button",{type:"submit",disabled:c,className:"w-full rounded-lg bg-brand px-4 py-2.5 font-display text-sm font-medium text-white shadow-lg shadow-brand/25 transition-all hover:-translate-y-0.5 hover:bg-brand-light hover:shadow-brand/40 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 disabled:hover:shadow-none",children:c?t("common.loading"):t("auth.setup.submit")})]})]})})}export{E as Setup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as d,j as e}from"./vendor-DE_-CLIE.js";import{an as m,b as h}from"./main-
|
|
1
|
+
import{e as d,j as e}from"./vendor-DE_-CLIE.js";import{an as m,b as h}from"./main-Mn7R0A18.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function j(){const[t,r]=d.useState("loading"),[i,a]=d.useState(""),l=(typeof window<"u"?window.location.pathname:"").match(/\/code\/s\/([^/?]+)/),o=l?l[1]:null;return d.useEffect(()=>{if(!o){r("invalid"),a("Share link is invalid — no token found.");return}if(!o.startsWith("shr_")){r("invalid"),a("Invalid share token format.");return}let n=!1;async function c(){try{const s=await m(o);if(n)return;window.location.href=`/code/${s.id}`}catch(s){if(n)return;s instanceof h?s.status===401&&s.message.toLowerCase().includes("expired")?(r("expired"),a("This share has expired.")):s.status===404?s.message.toLowerCase().includes("session")?(r("not_found"),a("Session not found.")):(r("invalid"),a("Share not found or has been revoked.")):s.status===403?(r("invalid"),a("You do not have permission to access this share.")):(r("error"),a(s.message||"Failed to resolve share.")):(r("error"),a(s instanceof Error?s.message:"Failed to resolve share."))}}return c(),()=>{n=!0}},[o]),d.useEffect(()=>{if(t!=="loading"&&t!=="error"){const n=setTimeout(()=>{window.location.href="/code"},3e3);return()=>clearTimeout(n)}},[t]),t==="loading"?e.jsx("div",{className:"flex h-screen items-center justify-center bg-surface-0 text-text-muted",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"animate-spin h-8 w-8 border-2 border-brand border-t-transparent rounded-full mx-auto mb-3"}),e.jsx("p",{children:"Resolving share link..."})]})}):e.jsx("div",{className:"flex h-screen items-center justify-center bg-surface-0 text-text-primary",children:e.jsxs("div",{className:"text-center max-w-md px-4",children:[t==="expired"&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"font-display text-xl font-semibold mb-2",children:"Share Expired"}),e.jsx("p",{className:"text-text-muted mb-4",children:i||"This share has expired."})]}),t==="invalid"&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"font-display text-xl font-semibold mb-2",children:"Invalid Share"}),e.jsx("p",{className:"text-text-muted mb-4",children:i||"This share link is invalid or has been revoked."})]}),t==="not_found"&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"font-display text-xl font-semibold mb-2",children:"Not Found"}),e.jsx("p",{className:"text-text-muted mb-4",children:i||"The session could not be found."})]}),t==="error"&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"font-display text-xl font-semibold mb-2",children:"Error"}),e.jsx("p",{className:"text-status-error mb-4",children:i})]}),e.jsx("a",{href:"/code",className:"text-brand-text hover:underline",children:"← Back to Dashboard"})]})})}export{j as ShareLanding};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{aA as q,W as T,aW as M,aO as t,e as B,X as F,aP as W,ay as G,U as V,aE as X,a8 as Y,av as J,au as K,aV as Q,z as Z,m as ee,r as te,P as se,n as ae,p as ne,o as H,q as re,N as ie}from"./main-
|
|
1
|
+
import{e as r,j as e}from"./vendor-DE_-CLIE.js";import{aA as q,W as T,aW as M,aO as t,e as B,X as F,aP as W,ay as G,U as V,aE as X,a8 as Y,av as J,au as K,aV as Q,z as Z,m as ee,r as te,P as se,n as ae,p as ne,o as H,q as re,N as ie}from"./main-Mn7R0A18.js";import{R as U,E as oe}from"./RegisterEmpty-Bp4ijU6c.js";import{U as le,A as O}from"./UserSearchInput-BHQO5MGU.js";import{C as D}from"./copy-D0pf7ohg.js";import{g as ce}from"./workerType-BYUJv8QQ.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";/**
|
|
2
2
|
* @license lucide-react v0.555.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as d,j as e}from"./vendor-DE_-CLIE.js";import{aW as b,aX as v,aO as a,aV as C,aP as f,N as D,W as S}from"./main-
|
|
1
|
+
import{e as d,j as e}from"./vendor-DE_-CLIE.js";import{aW as b,aX as v,aO as a,aV as C,aP as f,N as D,W as S}from"./main-Mn7R0A18.js";import{D as E,a as T,d as k}from"./dialog-1duL__fs.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function L({open:c,onClose:n,onCreated:m}){b();const{createTeam:N}=v(),[l,h]=d.useState(""),[i,o]=d.useState(""),[x,p]=d.useState(""),[s,r]=d.useState(""),[u,j]=d.useState(!1);d.useEffect(()=>{c&&(h(""),o(""),p(""),r(""),j(!1))},[c]);const w=t=>{h(t),i||o(t.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-"))},y=async t=>{t.preventDefault(),r(""),j(!0);try{const g=await N({name:l,slug:i,description:x||void 0});m(g)}catch(g){r(g instanceof Error?g.message:a("team.create.failed"))}finally{j(!1)}};return e.jsx(E,{open:c,onOpenChange:t=>{t||n()},children:e.jsx(T,{className:"nsd-shell max-w-md",children:e.jsxs("form",{className:"nsd-box nsd-box--single",onSubmit:y,children:[e.jsx(k,{className:"nsd-h",children:a("team.create.title")}),e.jsxs("label",{className:"nsd-field",children:[e.jsx("span",{className:"nsd-lab",children:a("team.create.name")}),e.jsx("input",{type:"text",required:!0,value:l,onChange:t=>w(t.target.value),placeholder:"Engineering",className:"nsd-title"}),e.jsx("span",{className:"text-xs text-text-muted",children:a("team.create.nameHint")})]}),e.jsxs("label",{className:"nsd-field",children:[e.jsx("span",{className:"nsd-lab",children:a("team.create.slug")}),e.jsx("input",{type:"text",required:!0,value:i,onChange:t=>o(t.target.value),pattern:"^[a-z0-9-]{3,32}$",placeholder:"engineering",className:"nsd-title"}),e.jsx("span",{className:"text-xs text-text-muted",children:a("team.create.slugHint")})]}),e.jsxs("label",{className:"nsd-field",children:[e.jsx("span",{className:"nsd-lab",children:a("team.create.description")}),e.jsx("textarea",{value:x,onChange:t=>p(t.target.value),rows:3,className:"nsd-title nsd-area"})]}),s&&e.jsx("p",{className:"nsd-error",children:s}),e.jsxs("div",{className:"nsd-foot",children:[e.jsx("button",{type:"button",onClick:n,className:"nsd-cancel",children:a("common.cancel")}),e.jsx("button",{type:"submit",disabled:u||!l||!i,className:"btn-ticket nsd-create",children:u?a("common.creating"):a("team.create.submit")})]})]})})})}function z(c,n){const m=new Date(c);return Number.isNaN(m.getTime())?"":new Intl.DateTimeFormat(n==="zh"?"zh-CN":"en-US",{year:"numeric",month:"short"}).format(m)}function I(){const c=b(),{myTeams:n,isLoading:m,refetch:N}=v(),{user:l}=C(),[h,i]=d.useState(!1),o=s=>{i(!1),window.history.pushState(null,"",`/teams/${s.slug}`),window.dispatchEvent(new PopStateEvent("popstate"))},x=s=>(l==null?void 0:l.role)==="admin"||s.created_by===(l==null?void 0:l.userId),p=async s=>{if(window.confirm(f("team.list.deleteConfirm",{name:s.name})))try{await S("DELETE",`/web/teams/${s.id}`),await N()}catch(r){alert(r instanceof Error?r.message:a("team.list.deleteFailed"))}};return m?e.jsxs("div",{className:"ds-page",children:[e.jsxs("header",{className:"ds-page-head",children:[e.jsx("div",{className:"ds-page-runhead",children:e.jsx("div",{className:"h-2.5 w-20 animate-pulse rounded bg-surface-2"})}),e.jsxs("div",{className:"ds-page-titlerow",children:[e.jsx("div",{className:"h-12 w-44 animate-pulse rounded bg-surface-2"}),e.jsxs("div",{className:"ds-page-titlerow-end",children:[e.jsx("div",{className:"h-2.5 w-14 animate-pulse rounded bg-surface-2"}),e.jsx("div",{className:"h-7 w-24 animate-pulse rounded-sm bg-surface-2"})]})]}),e.jsx("div",{className:"h-4 w-72 animate-pulse rounded bg-surface-2"})]}),e.jsx("div",{className:"space-y-10",children:[0,1,2].map(s=>e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"h-6 w-48 animate-pulse rounded bg-surface-2"}),e.jsx("div",{className:"h-4 w-32 animate-pulse rounded bg-surface-2"})]},s))})]}):e.jsxs("div",{className:"ds-page",children:[e.jsxs("header",{className:"ds-page-head",children:[e.jsx("div",{className:"ds-page-runhead",children:e.jsx("span",{className:"ds-page-runhead-label",children:a("team.list.kicker")})}),e.jsxs("div",{className:"ds-page-titlerow",children:[e.jsx("h1",{className:"ds-page-title font-display font-semibold tracking-tight text-text-primary",children:a("team.list.title")}),e.jsxs("div",{className:"ds-page-titlerow-end",children:[n.length>0&&e.jsx("span",{className:"ds-page-count",children:f("team.list.count",{n:n.length})}),e.jsx("button",{type:"button",onClick:()=>i(!0),className:"btn-ticket",children:a("team.list.create")})]})]}),e.jsx("p",{className:"ds-page-lede",children:n.length===0?a("team.list.empty"):a("team.list.lede")})]}),n.length>0&&e.jsx("ul",{className:"space-y-10",children:n.map((s,r)=>{const u=z(s.created_at,c);return e.jsxs("li",{className:"ds-team-item group",children:[e.jsxs("a",{href:`/teams/${s.slug}`,className:"ds-team-link",children:[e.jsxs("div",{className:"ds-team-name",children:[e.jsx("span",{className:"ds-team-idx","aria-hidden":"true",children:String(r+1).padStart(2,"0")}),e.jsx("h2",{className:"font-display text-lg font-medium tracking-tight text-text-primary transition-colors group-hover:text-accent",children:s.name}),e.jsxs("span",{className:"font-mono text-xs text-text-muted",children:["/",s.slug]})]}),s.description?e.jsx("p",{className:"mt-2 max-w-2xl text-sm leading-relaxed text-text-muted",children:s.description}):e.jsx("p",{className:"mt-2 text-sm italic text-text-muted/60",children:a("team.list.noDescription")})]}),e.jsxs("div",{className:"ds-team-aside",children:[u&&e.jsxs("span",{className:"ds-team-date",children:[a("team.list.founded")," ",u]}),x(s)&&e.jsx("button",{type:"button",onClick:()=>p(s),className:"ds-team-delete rounded p-1 text-text-muted opacity-0 transition-all hover:text-status-error group-hover:opacity-100 focus-visible:opacity-100",title:a("team.list.delete"),"aria-label":a("team.list.delete"),children:e.jsx(D,{className:"h-4 w-4"})})]})]},s.id)})}),e.jsx(L,{open:h,onClose:()=>i(!1),onCreated:o})]})}export{I as TeamList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,j as e}from"./vendor-DE_-CLIE.js";import{W as c}from"./main-
|
|
1
|
+
import{e as n,j as e}from"./vendor-DE_-CLIE.js";import{W as c}from"./main-Mn7R0A18.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";async function j(s){try{const r=s.startsWith("team_")?`/web/teams/${s}`:`/web/teams/by-slug/${s}`;return await c("GET",r)}catch{return null}}async function w(s,r){await c("PATCH",`/web/teams/${s}`,r)}async function N(s){await c("DELETE",`/web/teams/${s}`)}function k(){const s=window.location.pathname.split("/"),r=s[s.length-2]||"",[a,f]=n.useState(null),[b,g]=n.useState(!0),[i,m]=n.useState(""),[d,l]=n.useState(""),[u,o]=n.useState(null),[x,h]=n.useState(!1);n.useEffect(()=>{r&&j(r).then(t=>{t&&(f(t),m(t.name),l(t.description||"")),g(!1)})},[r]);const v=async t=>{if(t.preventDefault(),!!a){o(null),h(!0);try{await w(a.id,{name:i,description:d}),window.location.href=`/teams/${a.slug}`}catch(p){o(p instanceof Error?p.message:"Failed to update")}finally{h(!1)}}},y=async()=>{if(a&&window.confirm("Delete this team? Environments must be transferred first."))try{await N(a.id),window.location.href="/teams"}catch(t){o(t instanceof Error?t.message:"Failed to delete")}};return b?e.jsx("div",{className:"ds-page text-text-muted",children:"Loading..."}):a?e.jsx("div",{className:"ds-page",children:e.jsxs("div",{children:[e.jsxs("header",{className:"mb-12",children:[e.jsx("h1",{className:"font-display text-2xl font-semibold tracking-tight text-text-primary",children:a.name}),e.jsxs("p",{className:"mt-1 font-mono text-xs text-text-muted",children:["/",a.slug]})]}),e.jsxs("form",{onSubmit:v,className:"mb-16 max-w-md space-y-8",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-text-primary mb-2",children:"Team Name"}),e.jsx("input",{id:"name",type:"text",required:!0,value:i,onChange:t=>m(t.target.value),className:"w-full rounded-md border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"description",className:"block text-sm font-medium text-text-primary mb-2",children:"Description"}),e.jsx("textarea",{id:"description",value:d,onChange:t=>l(t.target.value),className:"w-full rounded-md border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary focus:border-accent focus:outline-none",rows:3})]}),u&&e.jsx("p",{className:"text-sm text-destructive",children:u}),e.jsxs("div",{className:"flex gap-3 pt-2",children:[e.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"rounded-md border border-border px-4 py-2 text-sm text-text-primary hover:bg-surface-2 transition-colors",children:"Cancel"}),e.jsx("button",{type:"submit",disabled:x||!i,className:"rounded-md bg-accent px-4 py-2 text-sm font-medium text-white hover:bg-accent/90 disabled:opacity-50 transition-colors",children:x?"Saving...":"Save Changes"})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"mb-3 text-sm font-medium text-destructive",children:"Delete team"}),e.jsx("p",{className:"mb-4 text-sm text-text-muted",children:"Deleting a team requires all environments to be transferred first."}),e.jsx("button",{type:"button",onClick:y,className:"rounded-md border border-destructive/60 px-4 py-2 text-sm font-medium text-destructive hover:bg-destructive/10 transition-colors",children:"Delete Team"})]})]})}):e.jsx("div",{className:"ds-page",children:e.jsxs("div",{className:"max-w-lg",children:[e.jsx("p",{className:"text-text-muted",children:"Team not found."}),e.jsx("a",{href:"/teams",className:"text-accent hover:underline",children:"Back to teams"})]})})}export{k as TeamSettings};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aA as v,aW as w,aO as o,W as S}from"./main-
|
|
1
|
+
import{aA as v,aW as w,aO as o,W as S}from"./main-Mn7R0A18.js";import{e as a,j as t}from"./vendor-DE_-CLIE.js";/**
|
|
2
2
|
* @license lucide-react v0.555.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,j as e}from"./vendor-DE_-CLIE.js";import{aV as U,aW as X,aO as s,f as v,aN as W}from"./main-
|
|
1
|
+
import{e as n,j as e}from"./vendor-DE_-CLIE.js";import{aV as U,aW as X,aO as s,f as v,aN as W}from"./main-Mn7R0A18.js";import{a as H,i as z,s as y}from"./notifications-C2qTba5c.js";import{C as J}from"./copy-D0pf7ohg.js";import"./preload-helper-BiaRt2Oj.js";import"./motion-BILbV7YQ.js";function Z(){const{user:r,logout:C}=U(),S=X(),[h,m]=n.useState(""),[o,p]=n.useState(""),[x,N]=n.useState(""),[g,f]=n.useState(""),[j,i]=n.useState(""),[P,c]=n.useState(!1),w=H(),[l,b]=n.useState(()=>z()),[E,k]=n.useState(()=>w&&Notification.permission==="denied"),[d,q]=n.useState(!1),D=async()=>{if(l){y(!1),b(!1);return}let t=!0;try{Notification.permission==="default"?t=await Notification.requestPermission()==="granted":t=Notification.permission==="granted"}catch{t=!1}k(!t),t&&(y(!0),b(!0))};if(!r)return null;const O=async()=>{const t=r.userId;try{if(navigator.clipboard&&window.isSecureContext){await navigator.clipboard.writeText(t),c(!0),setTimeout(()=>c(!1),2e3);return}}catch{}const a=document.createElement("textarea");a.value=t,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select();try{document.execCommand("copy"),c(!0),setTimeout(()=>c(!1),2e3)}catch{}document.body.removeChild(a)},T=async t=>{if(t.preventDefault(),i(""),f(""),o.length<8){i(s("auth.setup.passwordTooShort"));return}if(o!==x){i(s("auth.setup.passwordMismatch"));return}try{const a=await fetch("/web/auth/change-password",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({currentPassword:h,newPassword:o})});if(!a.ok){const u=await a.json();throw new Error(u.error||s("user.settings.changeFailed"))}f(s("user.settings.passwordChanged")),m(""),p(""),N("")}catch(a){const u=a instanceof Error?a.message:s("user.settings.changeFailed");i(u)}},L=async()=>{try{if(!(await fetch("/web/auth/logout-all",{method:"POST",credentials:"include",headers:{"X-Requested-With":"XMLHttpRequest"}})).ok){i(s("common.error"));return}await C()}catch{i(s("common.error"))}},R=()=>e.jsxs(e.Fragment,{children:[e.jsx("code",{className:"uset-uid",children:r.userId}),e.jsx("button",{type:"button",onClick:O,className:"uset-ghost","aria-label":"Copy user ID",children:e.jsx(J,{className:"h-3.5 w-3.5"})}),P&&e.jsx("span",{className:"uset-copied",children:s("share.copied")})]}),F=()=>w?e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",onClick:D,className:"uset-ctl","aria-pressed":l,children:l?s("user.settings.notificationsOn"):s("user.settings.notificationsOff")}),e.jsx("p",{className:"uset-hint",children:s("user.settings.notificationsDesc")}),E&&e.jsx("p",{className:"uset-warn",children:s("user.settings.notificationsDenied")})]}):e.jsx("p",{className:"uset-hint",children:s("user.settings.notificationsUnsupported")}),I=()=>e.jsxs("span",{className:"uset-select",children:[e.jsxs("select",{value:S,onChange:t=>W(t.target.value),className:"uset-ctl uset-ctl--select",children:[e.jsx("option",{value:"zh",children:"中文"}),e.jsx("option",{value:"en",children:"English"})]}),e.jsx(v,{className:"uset-select-ico","aria-hidden":!0})]}),A=()=>e.jsxs("form",{onSubmit:T,className:"uset-form",children:[e.jsxs("label",{className:"uset-field",children:[e.jsx("span",{className:"uset-lab",children:s("user.settings.currentPassword")}),e.jsx("input",{type:"password",value:h,onChange:t=>m(t.target.value),required:!0,autoComplete:"current-password",className:"uset-in"})]}),e.jsxs("label",{className:"uset-field",children:[e.jsx("span",{className:"uset-lab",children:s("user.settings.newPassword")}),e.jsx("input",{type:"password",value:o,onChange:t=>p(t.target.value),required:!0,autoComplete:"new-password",className:"uset-in"})]}),e.jsxs("label",{className:"uset-field",children:[e.jsx("span",{className:"uset-lab",children:s("user.settings.confirmNewPassword")}),e.jsx("input",{type:"password",value:x,onChange:t=>N(t.target.value),required:!0,autoComplete:"new-password",className:"uset-in"})]}),j&&e.jsx("p",{className:"uset-err",children:j}),g&&e.jsx("p",{className:"uset-ok",children:g}),e.jsx("div",{className:"uset-actions",children:e.jsx("button",{type:"submit",className:"btn-ticket",children:s("user.settings.submit")})})]}),M=()=>e.jsx("button",{onClick:L,className:"uset-danger",children:s("user.settings.logoutAll")});return e.jsxs("div",{className:"uset",children:[e.jsxs("header",{className:"uset-head",children:[e.jsx("h1",{className:"uset-name",children:r.username}),e.jsxs("div",{className:"uset-meta",children:[R(),e.jsx("span",{className:"uset-role",children:r.role})]})]}),e.jsxs("div",{className:"uset-body",children:[e.jsxs("section",{className:"uset-sec",children:[e.jsx("div",{className:"uset-seclab",children:e.jsx("h2",{className:"uset-h",children:s("user.settings.notifications")})}),e.jsx("div",{className:"uset-secctl",children:F()})]}),e.jsxs("section",{className:"uset-sec",children:[e.jsx("div",{className:"uset-seclab",children:e.jsx("h2",{className:"uset-h",children:s("user.settings.language")})}),e.jsx("div",{className:"uset-secctl",children:I()})]}),e.jsxs("section",{className:"uset-sec uset-sec--wide",children:[e.jsx("h2",{className:"uset-h",children:e.jsxs("button",{type:"button",className:"uset-disclosure","aria-expanded":d,"aria-controls":"uset-password",onClick:()=>q(t=>!t),children:[e.jsx("span",{children:s("user.settings.changePassword")}),e.jsx(v,{className:"uset-chev","aria-hidden":!0})]})}),e.jsx("div",{id:"uset-password",className:"uset-reveal","data-open":d,children:e.jsx("div",{className:"uset-reveal-clip",inert:!d,children:e.jsx("div",{className:"uset-secctl",children:A()})})})]})]}),e.jsxs("footer",{className:"uset-foot",children:[e.jsxs("div",{className:"uset-footlab",children:[e.jsx("h2",{className:"uset-dangerh",children:s("user.settings.logoutAll")}),e.jsx("p",{className:"uset-hint",children:"Revoke sessions on all devices."})]}),M()]})]})}export{Z as UserSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bl as ln,aO as an,H as z,b8 as w,F as G,ah as un,W as y,bd as tn,b9 as J,aI as _,c as rn,m as o,aG as on,j as sn,d as fn}from"./mermaid.core-
|
|
1
|
+
import{bl as ln,aO as an,H as z,b8 as w,F as G,ah as un,W as y,bd as tn,b9 as J,aI as _,c as rn,m as o,aG as on,j as sn,d as fn}from"./mermaid.core-B98fAraT.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,j,I,v,A,H,a){var q=j-l,i=I-h,n=H-v,d=a-A,u=d*q-n*i;if(!(u*u<y))return u=(n*(h-A)-d*(l-v))/u,[l+u*q,h+u*i]}function U(l,h,j,I,v,A,H){var a=l-j,q=h-I,i=(H?A:-A)/J(a*a+q*q),n=i*q,d=-i*a,u=l+n,s=h+d,f=j+n,c=I+d,S=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,R=m*m+g*g,T=v-A,P=u*c-f*s,D=(g<0?-1:1)*J(on(0,T*T*R-P*P)),E=(P*g-m*D)/R,F=(-P*m-g*D)/R,b=(P*g+m*D)/R,p=(-P*m+g*D)/R,x=E-S,e=F-t,r=b-S,W=p-t;return x*x+e*e>r*r+W*W&&(E=b,F=p),{cx:E,cy:F,x01:-n,y01:-d,x11:E*(v/T-1),y11:F*(v/T-1)}}function hn(){var l=cn,h=yn,j=G(0),I=null,v=gn,A=dn,H=mn,a=null,q=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,S=rn(c-f),t=c>f;if(a||(a=n=q()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(S>tn-y)a.moveTo(s*z(f),s*w(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*z(c),u*w(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=S,D=S,E=H.apply(this,arguments)/2,F=E>y&&(I?+I.apply(this,arguments):J(u*u+s*s)),b=_(rn(s-u)/2,+j.apply(this,arguments)),p=b,x=b,e,r;if(F>y){var W=sn(F/u*w(E)),K=sn(F/s*w(E));(P-=W*2)>y?(W*=t?1:-1,R+=W,T-=W):(P=0,R=T=(f+c)/2),(D-=K*2)>y?(K*=t?1:-1,m+=K,g-=K):(D=0,m=g=(f+c)/2)}var B=s*z(m),C=s*w(m),L=u*z(T),M=u*w(T);if(b>y){var N=s*z(g),Q=s*w(g),V=u*z(R),X=u*w(R),O;if(S<an)if(O=pn(B,C,V,X,N,Q,L,M)){var Y=B-O[0],Z=C-O[1],$=N-O[0],k=Q-O[1],nn=1/w(fn((Y*$+Z*k)/(J(Y*Y+Z*Z)*J($*$+k*k)))/2),en=J(O[0]*O[0]+O[1]*O[1]);p=_(b,(u-en)/(nn-1)),x=_(b,(s-en)/(nn+1))}else p=x=0}D>y?x>y?(e=U(V,X,B,C,s,x,t),r=U(N,Q,L,M,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<b?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(B,C),a.arc(0,0,s,m,g,!t)):a.moveTo(B,C),!(u>y)||!(P>y)?a.lineTo(L,M):p>y?(e=U(L,M,N,Q,u,-p,t),r=U(B,C,V,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<b?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[z(d)*n,w(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:G(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:G(+n),i):h},i.cornerRadius=function(n){return arguments.length?(j=typeof n=="function"?n:G(+n),i):j},i.padRadius=function(n){return arguments.length?(I=n==null?null:typeof n=="function"?n:G(+n),i):I},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:G(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:G(+n),i):A},i.padAngle=function(n){return arguments.length?(H=typeof n=="function"?n:G(+n),i):H},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
|