texlite 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESIGN.md +155 -17
- package/NPM_TESTING.md +46 -2
- package/OPERATIONS.md +136 -6
- package/README.md +1 -2
- package/README.zh-CN.md +2 -2
- package/THIRD_PARTY_NOTICES.md +12 -0
- package/dist/client/assets/AdminUsers-D4ljqr_D.js +1 -0
- package/dist/client/assets/AdminUsers-D4ljqr_D.js.br +0 -0
- package/dist/client/assets/AdminUsers-D4ljqr_D.js.gz +0 -0
- package/dist/client/assets/{AgentIcon-DJGGRJnV.css → AgentIcon-_B7xXJpJ.css} +1 -1
- package/dist/client/assets/AgentIcon-_B7xXJpJ.css.br +0 -0
- package/dist/client/assets/AgentIcon-_B7xXJpJ.css.gz +0 -0
- package/dist/client/assets/AgentManagement-DwRMP_nD.js +1 -0
- package/dist/client/assets/AgentManagement-DwRMP_nD.js.br +0 -0
- package/dist/client/assets/AgentManagement-DwRMP_nD.js.gz +0 -0
- package/dist/client/assets/AgentTerminal-CSsr21PC.js +2 -0
- package/dist/client/assets/AgentTerminal-CSsr21PC.js.br +0 -0
- package/dist/client/assets/AgentTerminal-CSsr21PC.js.gz +0 -0
- package/dist/client/assets/AgentTerminalSurface-BLroKMGe.js +16 -0
- package/dist/client/assets/AgentTerminalSurface-BLroKMGe.js.br +0 -0
- package/dist/client/assets/AgentTerminalSurface-BLroKMGe.js.gz +0 -0
- package/dist/client/assets/{AvatarSettingsDialog-ChKrdDqp.js → AvatarSettingsDialog-BgVGfSzn.js} +1 -1
- package/dist/client/assets/AvatarSettingsDialog-BgVGfSzn.js.br +0 -0
- package/dist/client/assets/AvatarSettingsDialog-BgVGfSzn.js.gz +0 -0
- package/dist/client/assets/CitationBibtexEditor-DLPom-qx.js +1 -0
- package/dist/client/assets/CitationLibraryDialog-Cn-kFi8E.js +3 -0
- package/dist/client/assets/CitationLibraryDialog-Cn-kFi8E.js.br +0 -0
- package/dist/client/assets/CitationLibraryDialog-Cn-kFi8E.js.gz +0 -0
- package/dist/client/assets/Dashboard-7JrR0t6C.js +5 -0
- package/dist/client/assets/Dashboard-7JrR0t6C.js.br +0 -0
- package/dist/client/assets/Dashboard-7JrR0t6C.js.gz +0 -0
- package/dist/client/assets/DrawioEditor-CYQnzKDd.js +1 -0
- package/dist/client/assets/DrawioEditor-CYQnzKDd.js.br +0 -0
- package/dist/client/assets/DrawioEditor-CYQnzKDd.js.gz +0 -0
- package/dist/client/assets/GitDialog-DMCVR8QK.js +4 -0
- package/dist/client/assets/GitDialog-DMCVR8QK.js.br +0 -0
- package/dist/client/assets/GitDialog-DMCVR8QK.js.gz +0 -0
- package/dist/client/assets/GitHubAccountDialog-BbJpR9Vq.js +1 -0
- package/dist/client/assets/GitHubAccountDialog-BbJpR9Vq.js.br +0 -0
- package/dist/client/assets/GitHubAccountDialog-BbJpR9Vq.js.gz +0 -0
- package/dist/client/assets/HistoryDialog-CcPWpTLn.js +8 -0
- package/dist/client/assets/HistoryDialog-CcPWpTLn.js.br +0 -0
- package/dist/client/assets/HistoryDialog-CcPWpTLn.js.gz +0 -0
- package/dist/client/assets/LatexEditor-D7C9jpJO.js +25 -0
- package/dist/client/assets/LatexEditor-D7C9jpJO.js.br +0 -0
- package/dist/client/assets/LatexEditor-D7C9jpJO.js.gz +0 -0
- package/dist/client/assets/{MarkdownPreview-BJPqGTcw.js → MarkdownPreview-Txs5upCY.js} +1 -1
- package/dist/client/assets/MarkdownPreview-Txs5upCY.js.br +0 -0
- package/dist/client/assets/MarkdownPreview-Txs5upCY.js.gz +0 -0
- package/dist/client/assets/{ProjectIconPickerDialog-ChiEUQ0g.js → ProjectIconPickerDialog-CUlPlfmL.js} +1 -1
- package/dist/client/assets/ProjectIconPickerDialog-CUlPlfmL.js.br +0 -0
- package/dist/client/assets/ProjectIconPickerDialog-CUlPlfmL.js.gz +0 -0
- package/dist/client/assets/ProjectSearchDialog-Bt6NyHIJ.js +1 -0
- package/dist/client/assets/ProjectSearchDialog-Bt6NyHIJ.js.br +0 -0
- package/dist/client/assets/ProjectSearchDialog-Bt6NyHIJ.js.gz +0 -0
- package/dist/client/assets/ProjectSettings-B6e7EAxq.js +4 -0
- package/dist/client/assets/ProjectSettings-B6e7EAxq.js.br +0 -0
- package/dist/client/assets/ProjectSettings-B6e7EAxq.js.gz +0 -0
- package/dist/client/assets/ProjectWorkspace-D0EMITec.js +25 -0
- package/dist/client/assets/ProjectWorkspace-D0EMITec.js.br +0 -0
- package/dist/client/assets/ProjectWorkspace-D0EMITec.js.gz +0 -0
- package/dist/client/assets/{QuickOpenDialog-B7NTqOpu.js → QuickOpenDialog-D6yjnquG.js} +1 -1
- package/dist/client/assets/QuickOpenDialog-D6yjnquG.js.br +0 -0
- package/dist/client/assets/QuickOpenDialog-D6yjnquG.js.gz +0 -0
- package/dist/client/assets/ReadOnlySource-BOAnB5L0.js +2 -0
- package/dist/client/assets/SelectionHistoryDialog-D6ql9E0j.js +3 -0
- package/dist/client/assets/SelectionHistoryDialog-D6ql9E0j.js.br +0 -0
- package/dist/client/assets/SelectionHistoryDialog-D6ql9E0j.js.gz +0 -0
- package/dist/client/assets/SharedProjectPage-DuscqDx5.js +2 -0
- package/dist/client/assets/SharedProjectPage-DuscqDx5.js.br +0 -0
- package/dist/client/assets/SharedProjectPage-DuscqDx5.js.gz +0 -0
- package/dist/client/assets/SystemMetricsDialog-KiKZOF2N.js +1 -0
- package/dist/client/assets/SystemMetricsDialog-KiKZOF2N.js.br +0 -0
- package/dist/client/assets/SystemMetricsDialog-KiKZOF2N.js.gz +0 -0
- package/dist/client/assets/TagManagementDialog-BHbqvu3K.js +1 -0
- package/dist/client/assets/TagManagementDialog-BHbqvu3K.js.br +0 -0
- package/dist/client/assets/TagManagementDialog-BHbqvu3K.js.gz +0 -0
- package/dist/client/assets/ThemeSwitcher-5cgNbWiG.js +1 -0
- package/dist/client/assets/{TikzGalleryDialog-CLAmKmS6.js → TikzGalleryDialog-CFbLjNTt.js} +1 -1
- package/dist/client/assets/TikzGalleryDialog-CFbLjNTt.js.br +0 -0
- package/dist/client/assets/TikzGalleryDialog-CFbLjNTt.js.gz +0 -0
- package/dist/client/assets/{WordCountDialog-ByxE-RUs.js → WordCountDialog-hXC-cpPs.js} +1 -1
- package/dist/client/assets/WordCountDialog-hXC-cpPs.js.br +0 -0
- package/dist/client/assets/WordCountDialog-hXC-cpPs.js.gz +0 -0
- package/dist/client/assets/{chktex-22lKGvKa.js → chktex-CLzMD_9a.js} +1 -1
- package/dist/client/assets/{citationLibrary-DxGdbZEQ.js → citationLibrary-BJRzAgaV.js} +1 -1
- package/dist/client/assets/citationLibrary-BJRzAgaV.js.br +0 -0
- package/dist/client/assets/citationLibrary-BJRzAgaV.js.gz +0 -0
- package/dist/client/assets/editor-CSq7NymY.js +14 -0
- package/dist/client/assets/editor-CSq7NymY.js.br +0 -0
- package/dist/client/assets/editor-CSq7NymY.js.gz +0 -0
- package/dist/client/assets/editor-languages-CKP1xVf6.js +36 -0
- package/dist/client/assets/editor-languages-CKP1xVf6.js.br +0 -0
- package/dist/client/assets/editor-languages-CKP1xVf6.js.gz +0 -0
- package/dist/client/assets/editorThemeExtension-CjBD77yn.js +1 -0
- package/dist/client/assets/editorThemeExtension-CjBD77yn.js.br +0 -0
- package/dist/client/assets/editorThemeExtension-CjBD77yn.js.gz +0 -0
- package/dist/client/assets/file-cog-D_mhAnBe.js +1 -0
- package/dist/client/assets/file-down-DA4jGFrF.js +1 -0
- package/dist/client/assets/{generatedParser-CZa2vsK6.js → generatedParser-2izSCuvk.js} +1 -1
- package/dist/client/assets/generatedParser-2izSCuvk.js.br +0 -0
- package/dist/client/assets/generatedParser-2izSCuvk.js.gz +0 -0
- package/dist/client/assets/i18n-B8sR-BXw.js +13 -0
- package/dist/client/assets/i18n-B8sR-BXw.js.br +0 -0
- package/dist/client/assets/i18n-B8sR-BXw.js.gz +0 -0
- package/dist/client/assets/index-D6faTuJe.css +1 -0
- package/dist/client/assets/index-D6faTuJe.css.br +0 -0
- package/dist/client/assets/index-D6faTuJe.css.gz +0 -0
- package/dist/client/assets/index-dScQ5LCu.js +2 -0
- package/dist/client/assets/index-dScQ5LCu.js.br +0 -0
- package/dist/client/assets/index-dScQ5LCu.js.gz +0 -0
- package/dist/client/assets/relativeTime-zIVNCN0k.js +1 -0
- package/dist/client/assets/relativeTime-zIVNCN0k.js.br +0 -0
- package/dist/client/assets/relativeTime-zIVNCN0k.js.gz +0 -0
- package/dist/client/assets/sourceCursorStore-DWCXVKvp.js +2 -0
- package/dist/client/assets/sourceCursorStore-DWCXVKvp.js.br +0 -0
- package/dist/client/assets/sourceCursorStore-DWCXVKvp.js.gz +0 -0
- package/dist/client/assets/{spellCheck-kxvnxrvw.js → spellCheck-DpyzDbmq.js} +1 -1
- package/dist/client/assets/spellCheck-DpyzDbmq.js.br +0 -0
- package/dist/client/assets/spellCheck-DpyzDbmq.js.gz +0 -0
- package/dist/client/assets/textLanguageSupport-tGXUsMU9.js +1 -0
- package/dist/client/assets/textLanguages-BpqiXyQi.js +78 -0
- package/dist/client/assets/textLanguages-BpqiXyQi.js.br +0 -0
- package/dist/client/assets/textLanguages-BpqiXyQi.js.gz +0 -0
- package/dist/client/assets/useDeletionTransitions-Bm4I5qej.js +1 -0
- package/dist/client/assets/useDeletionTransitions-Bm4I5qej.js.br +0 -0
- package/dist/client/assets/useDeletionTransitions-Bm4I5qej.js.gz +0 -0
- package/dist/client/assets/{vimSupport-C-WiMLjc.js → vimSupport-DMVGjr9R.js} +6 -6
- package/dist/client/assets/vimSupport-DMVGjr9R.js.br +0 -0
- package/dist/client/assets/vimSupport-DMVGjr9R.js.gz +0 -0
- package/dist/client/index.html +3 -4
- package/dist/server/agentChanges.js +95 -7
- package/dist/server/agents/adapters/claude.js +5 -2
- package/dist/server/agents/adapters/common.js +18 -5
- package/dist/server/agents/execution.js +25 -4
- package/dist/server/agents/launcher.js +5 -2
- package/dist/server/agents/outputBuffer.js +105 -0
- package/dist/server/agents/processIdentity.js +1 -1
- package/dist/server/agents/sessions.js +33 -16
- package/dist/server/agents/terminal.js +5 -2
- package/dist/server/agents/windowsJob.js +141 -0
- package/dist/server/app.js +24 -6
- package/dist/server/auth.js +3 -2
- package/dist/server/browserOrigin.js +15 -0
- package/dist/server/chktex.js +23 -11
- package/dist/server/collaboration.js +11 -1
- package/dist/server/compileDiagnostics.js +13 -9
- package/dist/server/compiler.js +70 -25
- package/dist/server/config.js +5 -1
- package/dist/server/db.js +68 -0
- package/dist/server/drawioLocks.js +114 -0
- package/dist/server/drawioOwnedBrowser.js +122 -0
- package/dist/server/drawioPdf.js +182 -0
- package/dist/server/editHistory.js +68 -20
- package/dist/server/environment.js +17 -8
- package/dist/server/files.js +86 -20
- package/dist/server/git.js +29 -23
- package/dist/server/harper.js +29 -10
- package/dist/server/history.js +220 -82
- package/dist/server/i18n.js +17 -0
- package/dist/server/index.js +15 -8
- package/dist/server/locales/zh-Hant.js +10 -0
- package/dist/server/pdfFonts.js +78 -0
- package/dist/server/pm2.js +2 -1
- package/dist/server/processTree.js +128 -7
- package/dist/server/projectDeletionCleanup.js +62 -0
- package/dist/server/projectMutations.js +7 -0
- package/dist/server/projectReplace.js +2 -2
- package/dist/server/projectSearch.js +2 -1
- package/dist/server/projectTemplateCache.js +94 -0
- package/dist/server/projectTemplateDownload.js +75 -0
- package/dist/server/projectTextSave.js +56 -0
- package/dist/server/routes/agents.js +2 -15
- package/dist/server/routes/comments.js +7 -2
- package/dist/server/routes/compile.js +67 -9
- package/dist/server/routes/drawio.js +192 -0
- package/dist/server/routes/projectFiles.js +160 -20
- package/dist/server/routes/projectGit.js +1 -1
- package/dist/server/routes/projectHistory.js +19 -5
- package/dist/server/routes/projects.js +81 -20
- package/dist/server/routes/users.js +10 -14
- package/dist/server/synctex.js +20 -3
- package/dist/server/texcount.js +27 -23
- package/dist/server/zip.js +37 -11
- package/dist/shared/agentMessages.js +3 -0
- package/dist/shared/drawio.js +79 -0
- package/dist/shared/fileTypes.js +1 -1
- package/dist/shared/pdfFonts.js +14 -0
- package/dist/shared/projectImport.js +21 -0
- package/package.json +3 -1
- package/dist/client/assets/AdminUsers-xuVuiwoh.js +0 -1
- package/dist/client/assets/AdminUsers-xuVuiwoh.js.br +0 -0
- package/dist/client/assets/AdminUsers-xuVuiwoh.js.gz +0 -0
- package/dist/client/assets/AgentIcon-DJGGRJnV.css.br +0 -0
- package/dist/client/assets/AgentIcon-DJGGRJnV.css.gz +0 -0
- package/dist/client/assets/AgentManagement-D-0hrv6f.js +0 -1
- package/dist/client/assets/AgentManagement-D-0hrv6f.js.br +0 -0
- package/dist/client/assets/AgentManagement-D-0hrv6f.js.gz +0 -0
- package/dist/client/assets/AgentTerminal-DZo-22RN.js +0 -2
- package/dist/client/assets/AgentTerminal-DZo-22RN.js.br +0 -0
- package/dist/client/assets/AgentTerminal-DZo-22RN.js.gz +0 -0
- package/dist/client/assets/AgentTerminalSurface-CcC17_CY.js +0 -16
- package/dist/client/assets/AgentTerminalSurface-CcC17_CY.js.br +0 -0
- package/dist/client/assets/AgentTerminalSurface-CcC17_CY.js.gz +0 -0
- package/dist/client/assets/AvatarSettingsDialog-ChKrdDqp.js.br +0 -0
- package/dist/client/assets/AvatarSettingsDialog-ChKrdDqp.js.gz +0 -0
- package/dist/client/assets/CitationBibtexEditor-BZIU4Lif.js +0 -1
- package/dist/client/assets/CitationLibraryDialog-DqO9e0GV.js +0 -3
- package/dist/client/assets/CitationLibraryDialog-DqO9e0GV.js.br +0 -0
- package/dist/client/assets/CitationLibraryDialog-DqO9e0GV.js.gz +0 -0
- package/dist/client/assets/Dashboard-BYgqCgBM.js +0 -5
- package/dist/client/assets/Dashboard-BYgqCgBM.js.br +0 -0
- package/dist/client/assets/Dashboard-BYgqCgBM.js.gz +0 -0
- package/dist/client/assets/GitDialog-CA68baSd.js +0 -4
- package/dist/client/assets/GitDialog-CA68baSd.js.br +0 -0
- package/dist/client/assets/GitDialog-CA68baSd.js.gz +0 -0
- package/dist/client/assets/GitHubAccountDialog-CnxfR0JD.js +0 -1
- package/dist/client/assets/GitHubAccountDialog-CnxfR0JD.js.br +0 -0
- package/dist/client/assets/GitHubAccountDialog-CnxfR0JD.js.gz +0 -0
- package/dist/client/assets/HistoryDialog-c2EEaFsl.js +0 -8
- package/dist/client/assets/HistoryDialog-c2EEaFsl.js.br +0 -0
- package/dist/client/assets/HistoryDialog-c2EEaFsl.js.gz +0 -0
- package/dist/client/assets/InfoPopover-BJYnFn1P.js +0 -1
- package/dist/client/assets/LatexEditor-vNOVTIl7.js +0 -25
- package/dist/client/assets/LatexEditor-vNOVTIl7.js.br +0 -0
- package/dist/client/assets/LatexEditor-vNOVTIl7.js.gz +0 -0
- package/dist/client/assets/MarkdownPreview-BJPqGTcw.js.br +0 -0
- package/dist/client/assets/MarkdownPreview-BJPqGTcw.js.gz +0 -0
- package/dist/client/assets/ProjectIconPickerDialog-ChiEUQ0g.js.br +0 -0
- package/dist/client/assets/ProjectIconPickerDialog-ChiEUQ0g.js.gz +0 -0
- package/dist/client/assets/ProjectSearchDialog-DxgjbnmY.js +0 -1
- package/dist/client/assets/ProjectSearchDialog-DxgjbnmY.js.br +0 -0
- package/dist/client/assets/ProjectSearchDialog-DxgjbnmY.js.gz +0 -0
- package/dist/client/assets/ProjectSettings-BwQTbXhh.js +0 -4
- package/dist/client/assets/ProjectSettings-BwQTbXhh.js.br +0 -0
- package/dist/client/assets/ProjectSettings-BwQTbXhh.js.gz +0 -0
- package/dist/client/assets/ProjectWorkspace-C2QAb-Fc.js +0 -25
- package/dist/client/assets/ProjectWorkspace-C2QAb-Fc.js.br +0 -0
- package/dist/client/assets/ProjectWorkspace-C2QAb-Fc.js.gz +0 -0
- package/dist/client/assets/QuickOpenDialog-B7NTqOpu.js.br +0 -0
- package/dist/client/assets/QuickOpenDialog-B7NTqOpu.js.gz +0 -0
- package/dist/client/assets/ReadOnlySource-DIalHHvP.js +0 -2
- package/dist/client/assets/SelectionHistoryDialog-BhOyneNx.js +0 -3
- package/dist/client/assets/SelectionHistoryDialog-BhOyneNx.js.br +0 -0
- package/dist/client/assets/SelectionHistoryDialog-BhOyneNx.js.gz +0 -0
- package/dist/client/assets/SharedProjectPage-s-khOyvB.js +0 -2
- package/dist/client/assets/SharedProjectPage-s-khOyvB.js.br +0 -0
- package/dist/client/assets/SharedProjectPage-s-khOyvB.js.gz +0 -0
- package/dist/client/assets/SystemMetricsDialog-Bycm88U1.js +0 -1
- package/dist/client/assets/SystemMetricsDialog-Bycm88U1.js.br +0 -0
- package/dist/client/assets/SystemMetricsDialog-Bycm88U1.js.gz +0 -0
- package/dist/client/assets/TagManagementDialog-DwUAA8uC.js +0 -1
- package/dist/client/assets/TagManagementDialog-DwUAA8uC.js.br +0 -0
- package/dist/client/assets/TagManagementDialog-DwUAA8uC.js.gz +0 -0
- package/dist/client/assets/ThemeSwitcher-RSqZi7kx.js +0 -1
- package/dist/client/assets/TikzGalleryDialog-CLAmKmS6.js.br +0 -0
- package/dist/client/assets/TikzGalleryDialog-CLAmKmS6.js.gz +0 -0
- package/dist/client/assets/WordCountDialog-ByxE-RUs.js.br +0 -0
- package/dist/client/assets/WordCountDialog-ByxE-RUs.js.gz +0 -0
- package/dist/client/assets/citationLibrary-DxGdbZEQ.js.br +0 -0
- package/dist/client/assets/citationLibrary-DxGdbZEQ.js.gz +0 -0
- package/dist/client/assets/dist-DdUqlCPw.js +0 -1
- package/dist/client/assets/dist-DdUqlCPw.js.br +0 -0
- package/dist/client/assets/dist-DdUqlCPw.js.gz +0 -0
- package/dist/client/assets/editor-CkUEg2La.js +0 -14
- package/dist/client/assets/editor-CkUEg2La.js.br +0 -0
- package/dist/client/assets/editor-CkUEg2La.js.gz +0 -0
- package/dist/client/assets/editor-languages-kcWr1Z3Q.js +0 -36
- package/dist/client/assets/editor-languages-kcWr1Z3Q.js.br +0 -0
- package/dist/client/assets/editor-languages-kcWr1Z3Q.js.gz +0 -0
- package/dist/client/assets/editorThemeExtension-BWtZV1Af.js +0 -1
- package/dist/client/assets/editorThemeExtension-BWtZV1Af.js.br +0 -0
- package/dist/client/assets/editorThemeExtension-BWtZV1Af.js.gz +0 -0
- package/dist/client/assets/generatedParser-CZa2vsK6.js.br +0 -0
- package/dist/client/assets/generatedParser-CZa2vsK6.js.gz +0 -0
- package/dist/client/assets/i18n-Wn96VbWM.js +0 -13
- package/dist/client/assets/i18n-Wn96VbWM.js.br +0 -0
- package/dist/client/assets/i18n-Wn96VbWM.js.gz +0 -0
- package/dist/client/assets/index-CemLYDYL.js +0 -2
- package/dist/client/assets/index-CemLYDYL.js.br +0 -0
- package/dist/client/assets/index-CemLYDYL.js.gz +0 -0
- package/dist/client/assets/index-DSF5eT29.css +0 -1
- package/dist/client/assets/index-DSF5eT29.css.br +0 -0
- package/dist/client/assets/index-DSF5eT29.css.gz +0 -0
- package/dist/client/assets/relativeTime-C-GTw3lA.js +0 -1
- package/dist/client/assets/relativeTime-C-GTw3lA.js.br +0 -0
- package/dist/client/assets/relativeTime-C-GTw3lA.js.gz +0 -0
- package/dist/client/assets/sourceCursorStore-Dpoi7PAL.js +0 -1
- package/dist/client/assets/sourceCursorStore-Dpoi7PAL.js.br +0 -0
- package/dist/client/assets/sourceCursorStore-Dpoi7PAL.js.gz +0 -0
- package/dist/client/assets/spellCheck-kxvnxrvw.js.br +0 -0
- package/dist/client/assets/spellCheck-kxvnxrvw.js.gz +0 -0
- package/dist/client/assets/textLanguageSupport-Ck8lMOWz.js +0 -1
- package/dist/client/assets/textLanguages-CwWstpJ5.js +0 -78
- package/dist/client/assets/textLanguages-CwWstpJ5.js.br +0 -0
- package/dist/client/assets/textLanguages-CwWstpJ5.js.gz +0 -0
- package/dist/client/assets/useDeletionTransitions-Xlq7HabP.js +0 -1
- package/dist/client/assets/useDeletionTransitions-Xlq7HabP.js.br +0 -0
- package/dist/client/assets/useDeletionTransitions-Xlq7HabP.js.gz +0 -0
- package/dist/client/assets/vimSupport-C-WiMLjc.js.br +0 -0
- package/dist/client/assets/vimSupport-C-WiMLjc.js.gz +0 -0
- /package/dist/client/assets/{AgentIcon-qmglBc3M.js → AgentIcon-CjaO3WzI.js} +0 -0
- /package/dist/client/assets/{AgentIcon-qmglBc3M.js.br → AgentIcon-CjaO3WzI.js.br} +0 -0
- /package/dist/client/assets/{AgentIcon-qmglBc3M.js.gz → AgentIcon-CjaO3WzI.js.gz} +0 -0
package/DESIGN.md
CHANGED
|
@@ -330,7 +330,9 @@ listener. Validation covers paths, limits, engines, timeout/queue settings,
|
|
|
330
330
|
URLs, and cross-field constraints such as the default engine being present in
|
|
331
331
|
the allowed-engine list.
|
|
332
332
|
|
|
333
|
-
Startup
|
|
333
|
+
Startup requires Node.js, `latexmk`, and every engine in
|
|
334
|
+
`latex.allowedEngines`. The same list controls API validation and editor
|
|
335
|
+
choices. Removing an engine does not silently change existing projects.
|
|
334
336
|
`texlite requirements` performs a configuration-free preflight over the
|
|
335
337
|
default host commands, requiring Node.js, `latexmk`, and at least one supported
|
|
336
338
|
LaTeX engine. `texlite doctor` also reports optional host tools in a
|
|
@@ -471,8 +473,11 @@ subscription cleanup without changing or deleting the draft.
|
|
|
471
473
|
|
|
472
474
|
Read permission is intentionally different from edit permission: read-only
|
|
473
475
|
members cannot modify source files, but can view the project and add or reply
|
|
474
|
-
to source comments.
|
|
475
|
-
|
|
476
|
+
to source comments. Only owners and edit members can resolve or reopen a
|
|
477
|
+
discussion, including one a read-only member started; the server refuses the
|
|
478
|
+
change with `COMMENT_RESOLVE_FORBIDDEN` and the workspace hides the button.
|
|
479
|
+
Authors edit and delete their own comments. Comments are anchored to source
|
|
480
|
+
offsets and selected text. If an author is removed,
|
|
476
481
|
the record remains visible as “Deleted User”.
|
|
477
482
|
|
|
478
483
|
The workspace Share button shows a superscript count of explicitly shared
|
|
@@ -889,8 +894,21 @@ as one token, allowing coarser but lossless comparisons of unusually large files
|
|
|
889
894
|
Recovery snapshots are created only for actual file additions, changes, or
|
|
890
895
|
deletions. Settings-only changes update the persistence baseline without adding
|
|
891
896
|
a timeline entry; effective compiler settings are captured with the next file
|
|
892
|
-
change.
|
|
893
|
-
|
|
897
|
+
change. The one exception is the safety checkpoint of a whole-project restore:
|
|
898
|
+
the restore replaces the settings, so the checkpoint is recorded, and shown,
|
|
899
|
+
when only the settings differ from the newest snapshot. Older zero-file-change
|
|
900
|
+
entries are excluded from timeline pagination and previous-version comparisons,
|
|
901
|
+
but are not automatically purged.
|
|
902
|
+
|
|
903
|
+
A version lists the files changed since the newest version that still exists,
|
|
904
|
+
not since the internal persistence baseline. The two differ after an owner
|
|
905
|
+
deletes the newest version; reporting against the remaining version keeps the
|
|
906
|
+
timeline and the pre-restore checkpoint from missing work saved since then.
|
|
907
|
+
When versions are deleted or thinned by retention, the next remaining version
|
|
908
|
+
takes over their changed paths, keeping only files that still differ from its
|
|
909
|
+
new predecessor. An autosave run reports its net change against the version
|
|
910
|
+
before the run, and a run that ends where it started is removed rather than
|
|
911
|
+
kept as an identical restore point. New snapshots
|
|
894
912
|
record UTF-8 text by default; PDFs, images, archives, fonts and other binary
|
|
895
913
|
attachments are excluded. Known resource types are skipped without reading their
|
|
896
914
|
contents; other files must pass the existing UTF-8/text-content check. Writers
|
|
@@ -901,8 +919,8 @@ a file does not create a deletion entry or remove existing recovery data.
|
|
|
901
919
|
Missing paths with overrides remain visible so their choices can be reset.
|
|
902
920
|
|
|
903
921
|
Each new manifest captures its tracking policy. Whole-project restoration keeps
|
|
904
|
-
current files outside that snapshot's scope
|
|
905
|
-
removes managed files created later. The replacement tree is fully staged before
|
|
922
|
+
current files outside that snapshot's scope and currently empty folders,
|
|
923
|
+
restores its managed files and removes managed files created later. The replacement tree is fully staged before
|
|
906
924
|
the live source tree is swapped. Legacy manifests without a tracking policy
|
|
907
925
|
retain their full-tree restoration behavior and historical binary contents;
|
|
908
926
|
upgrading does not rewrite or discard old snapshots. Before a restore, its safety
|
|
@@ -938,7 +956,13 @@ the requested display windows are complete, rather than loading all retained
|
|
|
938
956
|
payloads at once. This budget never shares or
|
|
939
957
|
reduces the 128 MB recovery-snapshot budget. A too-large individual edit burst
|
|
940
958
|
is omitted, and retention removes the oldest records; both deliberately create
|
|
941
|
-
a visible history boundary rather than presenting an unsafe attribution.
|
|
959
|
+
a visible history boundary rather than presenting an unsafe attribution.
|
|
960
|
+
Retention runs with every saved edit batch, so it first compares the project's
|
|
961
|
+
record count and payload total with the limits and, only when one is exceeded,
|
|
962
|
+
reads the oldest records in age order (migration 24 indexes
|
|
963
|
+
`project_edit_segments(project_id, updated_at)`) and removes them until both
|
|
964
|
+
limits hold. That leaves the same newest contiguous suffix as a newest-first
|
|
965
|
+
scan without sorting the whole retained history. When selection history is viewed,
|
|
942
966
|
adjacent records affecting the selection are consolidated into one editing
|
|
943
967
|
session while no pause between them exceeds five minutes, up to a 30-minute
|
|
944
968
|
span; a longer continuous session is split so earlier states stay visible.
|
|
@@ -1033,6 +1057,20 @@ The uploaded compressed ZIP remains in memory, while expanded files go directly
|
|
|
1033
1057
|
to disk. Exports exclude `.git`, preserve empty folders, and finish in a private
|
|
1034
1058
|
temporary ZIP under the consistent-read barrier before the HTTP download starts.
|
|
1035
1059
|
|
|
1060
|
+
New projects can also import an HTTP(S) ZIP URL without sign-in credentials.
|
|
1061
|
+
DNS resolution and destination reachability follow the host network policy;
|
|
1062
|
+
TexLite does not restrict destination IP ranges. Deployers control network
|
|
1063
|
+
access, including access to internal services, for users allowed to create
|
|
1064
|
+
projects. Downloads have a 30-second overall deadline, a five-redirect limit
|
|
1065
|
+
and the configured upload-size limit.
|
|
1066
|
+
Downloaded archives pass through the same ZIP import checks; project latexmkrc
|
|
1067
|
+
remains disabled. Successfully imported archives are cached by normalized URL
|
|
1068
|
+
under `tmp/template-cache` for seven days, with content hashes checked on reuse.
|
|
1069
|
+
Cache reads do not extend expiry or check the remote URL for changes. Expired
|
|
1070
|
+
entries are cleaned lazily during subsequent imports, at most once per hour.
|
|
1071
|
+
Cache publication failures do not prevent project creation, and existing
|
|
1072
|
+
projects never share writable source files with the cache.
|
|
1073
|
+
|
|
1036
1074
|
## Editor, files, and navigation
|
|
1037
1075
|
|
|
1038
1076
|
The file-tree overflow menu opens project-wide search in a lazy-loaded modal.
|
|
@@ -1412,8 +1450,21 @@ force either mode without changing project compiler settings. The threshold is
|
|
|
1412
1450
|
a size-based heuristic, not a universal latency optimum. Range mode allows
|
|
1413
1451
|
PDF.js to combine streaming and ranged requests; it does not guarantee that
|
|
1414
1452
|
only the visible page's bytes are downloaded. The output panel groups the PDF,
|
|
1415
|
-
log, warnings, errors, generated artifacts, and recovery actions; clean-cache
|
|
1453
|
+
log, warnings, errors, generated artifacts, PDF fonts, and recovery actions; clean-cache
|
|
1416
1454
|
and clean-artifact actions are for recovery rather than routine compilation.
|
|
1455
|
+
The Fonts tab invokes optional host `pdffonts` on demand, with bounded runtime
|
|
1456
|
+
and output and cancellation when the panel closes. The authenticated read
|
|
1457
|
+
endpoint validates the project, main document and successful PDF run together;
|
|
1458
|
+
it never substitutes the latest log's run. Raw tool errors and host paths stay
|
|
1459
|
+
out of responses. Font types, embedding, subsetting and ToUnicode presence are
|
|
1460
|
+
reported separately: missing ToUnicode is not proof that text cannot be copied,
|
|
1461
|
+
and a font-free PDF may contain outlines or rasterized text.
|
|
1462
|
+
PDF files in the source tree expose the same diagnostics in a named modal via
|
|
1463
|
+
their row menu. The file endpoint validates read access and source paths, copies
|
|
1464
|
+
the PDF under a short filesystem read barrier, then runs the shared inspector on
|
|
1465
|
+
the temporary copy outside the project queue. Cancellation, failures and success
|
|
1466
|
+
all remove the copy; access is rechecked before returning results.
|
|
1467
|
+
|
|
1417
1468
|
The Vite build publishes the installed PDF.js version's predefined Adobe CMaps
|
|
1418
1469
|
and their license under a versioned asset directory. The development server
|
|
1419
1470
|
serves the same resources. PDF.js resolves this URL against the runtime base
|
|
@@ -1497,6 +1548,60 @@ TexLite does not keep an unlimited browsable compile history: old unsuccessful
|
|
|
1497
1548
|
run rows and unreferenced bundles are pruned, while the latest successful
|
|
1498
1549
|
result for each root is retained.
|
|
1499
1550
|
|
|
1551
|
+
## draw.io diagrams
|
|
1552
|
+
|
|
1553
|
+
`.drawio` files are XML text, shared with normal file classification and snapshot
|
|
1554
|
+
tracking, but opened in the editor pane using a lazy-loaded official diagrams.net
|
|
1555
|
+
iframe. The parent checks both message origin and source window. Only diagram
|
|
1556
|
+
XML is exchanged; project URLs and session cookies are not handed to the editor.
|
|
1557
|
+
Diagrams are excluded from Yjs text hydration/mutations and global text
|
|
1558
|
+
search/replace. Explicit saves check source revisions under the project mutation
|
|
1559
|
+
lock, send file notifications, and record the saving user. Snapshot tracking
|
|
1560
|
+
still uses the shared text classification. Conflicts preserve the local editor
|
|
1561
|
+
rather than overwriting newer source.
|
|
1562
|
+
|
|
1563
|
+
`DrawioLocks` grants one runtime-only lease per project/path to a dedicated
|
|
1564
|
+
authenticated, same-origin WebSocket. HTTP saves and PDF export validate its
|
|
1565
|
+
unpredictable token against the owning user and live connection; an account's
|
|
1566
|
+
other tabs do not share ownership. Native ping/pong renews a 60-second lease at
|
|
1567
|
+
20-second intervals. Explicit release, socket close/error, timeout, revoked
|
|
1568
|
+
authentication/permissions and app shutdown clear the lease. Object identity
|
|
1569
|
+
fences late close/pong events so they cannot affect a successor. Source-tree
|
|
1570
|
+
maintenance revokes project leases before restore/deletion; generic file
|
|
1571
|
+
move/delete/overwrite also checks active source/PDF locks. Host tools can bypass
|
|
1572
|
+
an application lock, so content/output revisions remain independently checked.
|
|
1573
|
+
|
|
1574
|
+
The browser opens viewers read-only, freezes rather than reloads a writable
|
|
1575
|
+
frame after loss of ownership, and retains its unsaved XML until the user
|
|
1576
|
+
explicitly discards it. Lock reconnection is explicit. Effect cleanup closes
|
|
1577
|
+
the exact connection, `pagehide` releases even before React unmounts, and
|
|
1578
|
+
StrictMode's probe mount does not open a socket. A clean stale viewer is refreshed
|
|
1579
|
+
against the source revision supplied when ownership is granted; an existing
|
|
1580
|
+
local draft is never automatically replaced.
|
|
1581
|
+
|
|
1582
|
+
PDF export saves the source and obtains a current-page SVG from the iframe,
|
|
1583
|
+
then sends it to an authenticated write-only project endpoint. A split export
|
|
1584
|
+
button defaults to the current page, optionally exports selected content, and
|
|
1585
|
+
sets a 0–100 px margin (default 0 for a tight bounding box). Both scopes crop to content. Selection uses
|
|
1586
|
+
an on-open metadata-only query to disable the selection option when nothing is
|
|
1587
|
+
selected. Menu queries have independent request identities and are cancelled
|
|
1588
|
+
on close/unmount; late results cannot change a reopened menu. Settings remain
|
|
1589
|
+
local to the open editor and never save source or initiate PDF export.
|
|
1590
|
+
Selection export uses
|
|
1591
|
+
the native lossless JSON/XML selection export, rejecting an empty selection;
|
|
1592
|
+
the complete document is captured separately for saving. A disposable read-only
|
|
1593
|
+
offscreen iframe renders that subset so the live editor and undo history are
|
|
1594
|
+
never replaced. PDF capture freezes live input until finished/cancelled; the
|
|
1595
|
+
temporary frame is removed on success, failure, timeout or cancellation.
|
|
1596
|
+
The server checks
|
|
1597
|
+
ownership and source/output revisions before rendering and again before an atomic write next
|
|
1598
|
+
to the `.drawio` file. Headless `puppeteer-core` drives host Chromium/Chrome/Edge
|
|
1599
|
+
without downloading a browser, using an isolated temporary profile with scripts
|
|
1600
|
+
disabled and outbound/file requests blocked. Rendering never holds the source
|
|
1601
|
+
mutation lock. Each app owns bounded export jobs and aborts them on disconnect
|
|
1602
|
+
or shutdown. Read-only members can view diagrams, but neither they nor anonymous
|
|
1603
|
+
view-link visitors can save diagrams or invoke the host export process.
|
|
1604
|
+
|
|
1500
1605
|
## History and recovery
|
|
1501
1606
|
|
|
1502
1607
|
Selection-history requests bind their offsets to a SHA-256 hash of the
|
|
@@ -1505,7 +1610,14 @@ with a retryable conflict instead of inspecting a different passage. The
|
|
|
1505
1610
|
dialog keeps its inspected selection fixed while collaborators keep editing.
|
|
1506
1611
|
Responses include the earliest reconstructed baseline for diffing, and an
|
|
1507
1612
|
explicit `hasMore` flag when the 60-window display limit is reached. This
|
|
1508
|
-
display limit is separate from missing or pruned history boundaries.
|
|
1613
|
+
display limit is separate from missing or pruned history boundaries. "Load
|
|
1614
|
+
older edits" asks for the next 60 windows with an `offset` of the windows
|
|
1615
|
+
already shown. A passage can only be reconstructed by walking back from the
|
|
1616
|
+
current source, so the server walks again and returns the windows after that
|
|
1617
|
+
offset; the pages join, and the new response's baseline replaces the old one.
|
|
1618
|
+
The dialog retries once, after a short pause, when its first or a later request
|
|
1619
|
+
meets the source-changed conflict, because edits typed just before opening may
|
|
1620
|
+
still be reaching the server; a second conflict is reported.
|
|
1509
1621
|
|
|
1510
1622
|
Project snapshots record initial state, acknowledged collaborative saves,
|
|
1511
1623
|
file/source operations, compiler settings, Git operations, checkpoints, and
|
|
@@ -1546,7 +1658,18 @@ directly. Because coalescing never crosses the flag, a flagged snapshot holds
|
|
|
1546
1658
|
agent changes; it can still include human text the agent sync merged. Rows
|
|
1547
1659
|
written before the migration cannot be classified and stay unflagged. File
|
|
1548
1660
|
contents are complete SHA-256-addressed objects; unchanged files are reused
|
|
1549
|
-
across manifests.
|
|
1661
|
+
across manifests. Migration 23 indexes which objects each version uses
|
|
1662
|
+
(`project_history_version_objects`) and how many versions use each object
|
|
1663
|
+
(`project_history_objects`). Database triggers on version inserts, manifest
|
|
1664
|
+
updates and cascading deletes keep both in step, so storage statistics,
|
|
1665
|
+
retention and object clean-up aggregate them instead of parsing every
|
|
1666
|
+
manifest; metadata size comes from SQLite's `octet_length` of the stored text.
|
|
1667
|
+
Migration 25 completes that index and recounts references on databases that
|
|
1668
|
+
ran an unreleased development draft of migration 23 without the counts.
|
|
1669
|
+
The snapshot dialog reloads its first page every 15 seconds while it is open
|
|
1670
|
+
and visible, so collaborators' saves and agent writes appear. The refreshed
|
|
1671
|
+
page replaces the versions it covers and keeps older pages already loaded; a
|
|
1672
|
+
selected snapshot whose manifest changed reloads its details. Under the storage budget nothing is removed. Over it,
|
|
1550
1673
|
retention first thins older history so the budget covers a longer period:
|
|
1551
1674
|
every version from the last 24 hours is kept, then the newest version of each
|
|
1552
1675
|
server-local hour for the last week, then the newest of each server-local day;
|
|
@@ -1860,12 +1983,18 @@ reviewed" and "Mark all reviewed"; previous/next scrolls the editor without
|
|
|
1860
1983
|
taking keyboard focus, and "Open in editor" moves focus there. Where the agent
|
|
1861
1984
|
panel is available, a small agent button after each highlighted change opens
|
|
1862
1985
|
the panel (if needed) and selects that change in the review without moving the
|
|
1863
|
-
editor. The editor
|
|
1864
|
-
unreviewed agent
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1986
|
+
editor. The editor places
|
|
1987
|
+
unreviewed agent ranges only on the exact source revision they were computed
|
|
1988
|
+
for. Once the text has moved on, marks already placed follow the edits and can
|
|
1989
|
+
still be hidden or activated, and a fresh result is requested at a limited rate.
|
|
1990
|
+
The request first pulls a running agent's newest disk write into the edit chain,
|
|
1991
|
+
so its file does not briefly look as if it had no changes. Which changes were
|
|
1992
|
+
reviewed is kept per user and project in browser storage, bounded in size and
|
|
1993
|
+
never dropped because a change is missing from one result. Text that still
|
|
1994
|
+
stands as written is highlighted in whole words, and results are expressed in
|
|
1995
|
+
the editor's `\n` line endings whatever the file has on disk. A rename or move
|
|
1996
|
+
carries the file's edit chain with it. The list refreshes on task events and every few seconds while one of the user's tasks runs.
|
|
1997
|
+
Reviewing never changes source.
|
|
1869
1998
|
|
|
1870
1999
|
Task context JSON and a compile log are exposed through `TEXLITE_PROJECT_CONTEXT`
|
|
1871
2000
|
and `TEXLITE_COMPILE_LOG`; compile API completion refreshes this context. A CLI
|
|
@@ -1897,6 +2026,15 @@ display replay is bounded, slow sockets disconnect without stopping the task,
|
|
|
1897
2026
|
and full transcripts are not persisted by TexLite. Native CLI history can still
|
|
1898
2027
|
exist in task-local or shared host state. Raw terminal replay is a bounded recent stream, not a
|
|
1899
2028
|
complete saved terminal screen; very long full-screen sessions may need a redraw.
|
|
2029
|
+
Replay uses bounded chunks and separately retains common input modes (including
|
|
2030
|
+
bracketed paste and mouse reporting) across truncation. Project permissions are
|
|
2031
|
+
rechecked at most once per second of output and immediately by mutation-driven
|
|
2032
|
+
reconciliation; terminal input and attachment session validity remain checked
|
|
2033
|
+
on each message. View-only attachments follow the PTY's authoritative dimensions
|
|
2034
|
+
instead of fitting to their own panel; narrower panels can scroll horizontally.
|
|
2035
|
+
Git backup status, working diffs, UI commits and ordinary discard exclude the
|
|
2036
|
+
local `.texlite-agent-conflicts/` recovery directory, even if a CLI stages its
|
|
2037
|
+
files. Explicit forced checkout still discards untracked files as documented.
|
|
1900
2038
|
|
|
1901
2039
|
xterm clears its selection on input, and a CLI with mouse reporting receives
|
|
1902
2040
|
clicks and pointer movement as input. While text is selected, the surface
|
package/NPM_TESTING.md
CHANGED
|
@@ -19,6 +19,50 @@ The dry run lists the files that would be published. Check that it contains the
|
|
|
19
19
|
compiled server and `dist/client`, and does not contain local databases,
|
|
20
20
|
projects, credentials, or development-only files.
|
|
21
21
|
|
|
22
|
+
After building, run the same automated package smoke test as Windows CI:
|
|
23
|
+
|
|
24
|
+
~~~text
|
|
25
|
+
npm run test:package-smoke
|
|
26
|
+
~~~
|
|
27
|
+
|
|
28
|
+
It packs the existing build, installs it into a temporary npm prefix, checks
|
|
29
|
+
the installed command, then verifies initialization, HTTP health, login and
|
|
30
|
+
clean shutdown on a temporary loopback port and data directory. It uses local
|
|
31
|
+
TeX version fixtures and checks that the server reports the configured engine
|
|
32
|
+
list. This does not test real TeX compilation or PM2.
|
|
33
|
+
|
|
34
|
+
Windows CI separately exercises real optional host tools: Harper on a LaTeX
|
|
35
|
+
file and Poppler on a PDF generated by the runner's Chromium-family browser.
|
|
36
|
+
To repeat those checks with the required executables available locally, run
|
|
37
|
+
the following in PowerShell:
|
|
38
|
+
|
|
39
|
+
~~~powershell
|
|
40
|
+
$env:TEXLITE_TEST_NATIVE_HOST_TOOLS = '1'
|
|
41
|
+
npm test -- tests/nativeHostTools.test.ts
|
|
42
|
+
Remove-Item Env:TEXLITE_TEST_NATIVE_HOST_TOOLS
|
|
43
|
+
~~~
|
|
44
|
+
|
|
45
|
+
## Verify native TeX Live compilation
|
|
46
|
+
|
|
47
|
+
On a host with `latexmk`, `pdflatex`, `xelatex`, `lualatex` and `synctex` on
|
|
48
|
+
`PATH`, run the opt-in compilation tests. They use temporary projects with
|
|
49
|
+
spaces and non-ASCII names and verify cache reuse, SyncTeX in both directions,
|
|
50
|
+
error locations, and cancellation. Standard CI still does not install TeX Live.
|
|
51
|
+
|
|
52
|
+
PowerShell:
|
|
53
|
+
|
|
54
|
+
~~~powershell
|
|
55
|
+
$env:TEXLITE_TEST_NATIVE_TEXLIVE = '1'
|
|
56
|
+
npm test -- tests/nativeTexLive.test.ts
|
|
57
|
+
Remove-Item Env:TEXLITE_TEST_NATIVE_TEXLIVE
|
|
58
|
+
~~~
|
|
59
|
+
|
|
60
|
+
POSIX shell:
|
|
61
|
+
|
|
62
|
+
~~~bash
|
|
63
|
+
TEXLITE_TEST_NATIVE_TEXLIVE=1 npm test -- tests/nativeTexLive.test.ts
|
|
64
|
+
~~~
|
|
65
|
+
|
|
22
66
|
## Install the tarball into an isolated prefix
|
|
23
67
|
|
|
24
68
|
Create a temporary directory, pack the current version, and install it without
|
|
@@ -109,8 +153,8 @@ Open <http://127.0.0.1:3000> in a browser and exercise login, project
|
|
|
109
153
|
creation, editing, compilation, file upload, comments, and PDF preview. Press
|
|
110
154
|
Ctrl+C to stop the server.
|
|
111
155
|
|
|
112
|
-
The package requires Node.js 24 or newer and
|
|
113
|
-
|
|
156
|
+
The package requires Node.js 24 or newer, `latexmk`, and each engine in
|
|
157
|
+
`latex.allowedEngines`.
|
|
114
158
|
|
|
115
159
|
## Test optional external agent terminals
|
|
116
160
|
|
package/OPERATIONS.md
CHANGED
|
@@ -12,6 +12,55 @@ For the product's intended use and editor comparison, start with the
|
|
|
12
12
|
- At least one configured engine: `pdflatex`, `xelatex`, or `lualatex`
|
|
13
13
|
- `git` only when a project owner uses the optional Git/GitHub integration
|
|
14
14
|
|
|
15
|
+
Native Windows x64 compatibility is still being verified. The Windows Agent
|
|
16
|
+
terminal uses Windows PowerShell, CIM and a Windows Job Object to track each
|
|
17
|
+
TexLite-launched process tree. It will not start a CLI if Windows policy blocks
|
|
18
|
+
job assignment. Stop all TexLite Agent tasks before upgrading an experimental
|
|
19
|
+
Windows deployment: older running records without job ownership cannot be
|
|
20
|
+
recovered automatically. TexLite keeps those projects reserved instead of
|
|
21
|
+
starting another task on top of a potentially surviving process.
|
|
22
|
+
|
|
23
|
+
Native Windows compilation, Git pushes, and draw.io exports also use a Job Object. If policy
|
|
24
|
+
blocks job assignment, TexLite reports a failure before running the command.
|
|
25
|
+
draw.io exports use a separate browser profile and a DevTools pipe, not a
|
|
26
|
+
debugging port. TexLite waits for the browser job to stop before removing that
|
|
27
|
+
profile.
|
|
28
|
+
Local Git reads and short host-tool probes do not use this launcher. Windows
|
|
29
|
+
sandboxing and real CLI compatibility still need deployment verification.
|
|
30
|
+
|
|
31
|
+
ZIP imports on Windows reject conflicting or invalid paths. For example, an
|
|
32
|
+
archive cannot contain both `Main.tex` and `main.tex`, or a filename with a
|
|
33
|
+
trailing dot or a reserved device name. Use the exact casing shown in the file
|
|
34
|
+
tree. A rename can change only the case of a name. If a viewer or another
|
|
35
|
+
program blocks a rename or deletion, close it and retry; TexLite does not copy
|
|
36
|
+
over or recursively delete the live path as a fallback on Windows.
|
|
37
|
+
|
|
38
|
+
For native Windows x64, put the Windows executables on the `PATH` of the
|
|
39
|
+
account that runs TexLite, then restart TexLite if that environment changes.
|
|
40
|
+
Use `texlite requirements` to check the tools:
|
|
41
|
+
|
|
42
|
+
- **TeX Live:** use the [native Windows distribution](https://tug.org/texlive/).
|
|
43
|
+
Install the relevant TeX Live packages for optional TeXcount, ChkTeX, BibTeX,
|
|
44
|
+
Biber and MakeIndex support. SyncTeX also comes from the TeX toolchain.
|
|
45
|
+
- **Harper:** use `harper-cli-x86_64-pc-windows-msvc.zip` from the
|
|
46
|
+
[Harper releases](https://github.com/Automattic/harper/releases).
|
|
47
|
+
TexLite needs `harper-cli.exe`, not the Harper desktop app or language server.
|
|
48
|
+
- **PDF fonts:** use a [Windows Poppler build](https://github.com/oschwartz10612/poppler-windows/releases)
|
|
49
|
+
and add the directory containing `pdffonts.exe` to `PATH`. Keep its
|
|
50
|
+
accompanying DLLs in place. This is an optional host tool, not an npm package.
|
|
51
|
+
- **Diagram export and Git:** use a native Chromium, Chrome, or Edge
|
|
52
|
+
executable for diagram PDF export, and [Git for Windows](https://gitforwindows.org/)
|
|
53
|
+
for Git/GitHub backup. These tools do not require WSL.
|
|
54
|
+
- **Agent terminals:** install the native CLI, not just the vendor's desktop
|
|
55
|
+
app. Claude Code can use PowerShell; if you configure a custom Git Bash path
|
|
56
|
+
on the TexLite host, TexLite forwards `CLAUDE_CODE_GIT_BASH_PATH`.
|
|
57
|
+
Agent terminals also need the optional npm module `node-pty`.
|
|
58
|
+
|
|
59
|
+
The npm package and Agent PTY are exercised on the Windows CI runner. CI also
|
|
60
|
+
runs the native Harper CLI and exports a diagram PDF for inspection with
|
|
61
|
+
Poppler. Real TeX compilation and authenticated Agent sessions are separate
|
|
62
|
+
deployment checks.
|
|
63
|
+
|
|
15
64
|
Check a host before initialization:
|
|
16
65
|
|
|
17
66
|
~~~bash
|
|
@@ -29,11 +78,18 @@ harper-cli --version
|
|
|
29
78
|
harper-ls --version
|
|
30
79
|
~~~
|
|
31
80
|
|
|
32
|
-
`texlite init` and `texlite
|
|
33
|
-
engine
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
`
|
|
81
|
+
`texlite init`, `texlite start`, and `texlite serve` require Node.js,
|
|
82
|
+
`latexmk`, and every engine in `latex.allowedEngines`. The project engine
|
|
83
|
+
selector uses that exact list. By default it includes `pdflatex`, `xelatex`,
|
|
84
|
+
and `lualatex`. If only XeLaTeX is installed, set `latex.allowedEngines`
|
|
85
|
+
to `["xelatex"]`. The configured `latex.defaultEngine` (normally `xelatex`)
|
|
86
|
+
must appear in the list. If an existing project uses an engine removed from
|
|
87
|
+
the list, select a different engine in the project settings before compiling.
|
|
88
|
+
|
|
89
|
+
`texlite requirements` can be run before initialization: it checks commands
|
|
90
|
+
on `PATH` without reading a configuration file or any TexLite data. It
|
|
91
|
+
requires Node.js, `latexmk`, and at least one supported LaTeX engine. It
|
|
92
|
+
does not verify the engine list in your configuration.
|
|
37
93
|
`texlite doctor` presents the configured deployment checks and optional host
|
|
38
94
|
tools in a table with their requirement level, installation state, and
|
|
39
95
|
detected version. Missing optional tools never stop the editor:
|
|
@@ -42,6 +98,65 @@ Git enables GitHub backup, TeXcount enables document statistics, and
|
|
|
42
98
|
for host diagnosis and external editor integrations; TexLite itself invokes
|
|
43
99
|
`harper-cli`.
|
|
44
100
|
|
|
101
|
+
PDF font inspection is optional. Install Poppler's `pdffonts` command on the
|
|
102
|
+
server and make it available on `PATH` to use **Compile output → Fonts** or
|
|
103
|
+
**PDF file menu → Inspect fonts** in the file tree.
|
|
104
|
+
TexLite runs it on demand, against the selected PDF run or a source PDF copy;
|
|
105
|
+
missing tools do not prevent startup or compilation. Type 3 and non-embedded
|
|
106
|
+
fonts are highlighted for review, not automatically repaired.
|
|
107
|
+
|
|
108
|
+
### draw.io diagrams
|
|
109
|
+
|
|
110
|
+
Use **Files → ⋯ → draw.io diagram**, then open the `.drawio` file to edit
|
|
111
|
+
it in the editor pane with an embedded diagrams.net editor. The browser needs access to
|
|
112
|
+
`https://embed.diagrams.net`; the editor is not bundled with TexLite. Diagram
|
|
113
|
+
data is passed directly to the iframe, not placed in its URL. Save explicitly
|
|
114
|
+
before closing or switching files. Unsaved changes require confirmation before
|
|
115
|
+
leaving the diagram. Each file allows one editing browser tab at a time, even
|
|
116
|
+
for the same account. Other tabs are read-only and can use **Try editing** once
|
|
117
|
+
the owner closes the diagram. Different diagram files are independent.
|
|
118
|
+
|
|
119
|
+
Closing, switching files or leaving the page releases ownership. The server
|
|
120
|
+
sends WebSocket pings every 20 seconds; the browser's native pong renews a
|
|
121
|
+
60-second lease without
|
|
122
|
+
depending on background-tab JavaScript timers. Disconnects, revoked access,
|
|
123
|
+
project restore/deletion, and server shutdown release the lock. A restart never
|
|
124
|
+
restores locks, and old connection tokens cannot save or export. On connection
|
|
125
|
+
loss, the editor freezes but retains its local draft. Reacquiring a lock does
|
|
126
|
+
not bypass the source-version check: external host edits can still cause a save
|
|
127
|
+
conflict. Locked diagrams and their PDFs cannot be moved, deleted or replaced
|
|
128
|
+
through generic file operations until the editing tab is closed.
|
|
129
|
+
|
|
130
|
+
Diagrams use explicit saves, not Yjs real-time text editing, and are excluded
|
|
131
|
+
from global text search/replace. They remain tracked as text in project snapshots.
|
|
132
|
+
|
|
133
|
+
**Export PDF** saves the current diagram page beside the source file by default.
|
|
134
|
+
The attached export options switch between **Current page** and **Selected
|
|
135
|
+
content**, with **Content margin** from 0 to 100 px (default 0 for a tight bounding box). The menu checks
|
|
136
|
+
the current selection on opening and disables **Selected content** when empty.
|
|
137
|
+
Settings take effect immediately, remain when the menu is closed/reopened, and
|
|
138
|
+
never initiate an export; use the main **Export PDF** button to run it.
|
|
139
|
+
Output is always cropped
|
|
140
|
+
to content, not the drawing's paper size. Empty selections are rejected rather
|
|
141
|
+
than exporting the whole page. The full `.drawio` document is saved regardless
|
|
142
|
+
of export scope; selection export never replaces it with a subset. Existing PDFs
|
|
143
|
+
are replaced only after confirmation. It uses a host-installed Chromium,
|
|
144
|
+
Chrome or Edge, in that order; Firefox and Safari are not export backends.
|
|
145
|
+
Missing browsers do not prevent diagram editing, server startup or compilation.
|
|
146
|
+
Set optional `drawio.browserPath` in `texlite.config.json` to an explicit browser
|
|
147
|
+
executable (relative paths resolve from that configuration file). No browser is
|
|
148
|
+
automatically downloaded. In Docker the browser and fonts must be installed
|
|
149
|
+
inside the container. Chromium's sandbox stays enabled.
|
|
150
|
+
|
|
151
|
+
Export runs with an isolated temporary browser profile, scripts disabled and
|
|
152
|
+
network/file requests blocked. Images and custom fonts must be embedded in the
|
|
153
|
+
SVG. Use fonts installed on the host for consistent output. New shapes default
|
|
154
|
+
to plain text labels. This reduces formatting differences but does not guarantee
|
|
155
|
+
font embedding or the absence of Type 3 fonts; inspect the resulting document in
|
|
156
|
+
**Compile output → Fonts** when needed. Exports are limited to two simultaneous
|
|
157
|
+
jobs per instance and 30 seconds per job, and are cancelled when the request
|
|
158
|
+
ends or the server shuts down.
|
|
159
|
+
|
|
45
160
|
Formatting does not require a host binary. The browser uses bundled `tex-fmt`
|
|
46
161
|
WASM for `.tex`, `.cls`, and `.sty`, and browser-side `bibtex-tidy` for `.bib`.
|
|
47
162
|
|
|
@@ -234,6 +349,7 @@ preferred.
|
|
|
234
349
|
| `siteName` | `TexLite` | Site title. |
|
|
235
350
|
| `adminEmail` | empty | Optional administrator contact address. |
|
|
236
351
|
| `tikzGallery.enabled` / `tikzGallery.path` | `false` / `addon/texlite-tikz` | Optional figure gallery. A relative path is resolved from the configuration file. |
|
|
352
|
+
| `drawio.browserPath` | automatic detection | Optional Chromium-family executable for diagram PDF export. Relative paths resolve from the configuration file. |
|
|
237
353
|
| `server.host` / `server.port` | `127.0.0.1` / `3000` | Use `0.0.0.0` to serve a trusted local network; keep localhost behind a tunnel or reverse proxy. |
|
|
238
354
|
| `server.basePath` | `/` | Public URL mount point, such as `/texlite` or `/tools/texlite`. |
|
|
239
355
|
| `storage.dataDir` | XDG data directory | Stores all persistent project data. |
|
|
@@ -246,7 +362,7 @@ preferred.
|
|
|
246
362
|
| `latex.latexmk` | `latexmk` | Host command. |
|
|
247
363
|
| `latex.defaultEngine` | `xelatex` | Must appear in the allowed list. |
|
|
248
364
|
| `updates.enabled` | `true` | Background release checks and administrator dashboard reminders. Set to `false` for offline deployments. |
|
|
249
|
-
| `latex.allowedEngines` | `pdflatex`, `xelatex`, `lualatex` | Engines
|
|
365
|
+
| `latex.allowedEngines` | `pdflatex`, `xelatex`, `lualatex` | Engines offered in the editor. All entries must be installed. |
|
|
250
366
|
| `latex.extraArgs` | `[]` | Additional configured compiler arguments. |
|
|
251
367
|
| `latex.compileTimeoutSeconds` | `600` | Per-job time limit. |
|
|
252
368
|
| `latex.maxCompileJobs` | `10` | Global concurrent LaTeX-process limit. |
|
|
@@ -618,6 +734,20 @@ but the owner must delete the link and create a new one to regain copying.
|
|
|
618
734
|
For an online copy of SQLite, include WAL files or use a SQLite-aware backup
|
|
619
735
|
method.
|
|
620
736
|
|
|
737
|
+
If old files cannot be cleaned up after a successful snapshot restore, TexLite
|
|
738
|
+
keeps the restored project live and retries cleanup of `.history-cleanup-*`
|
|
739
|
+
directories at startup. Do not automatically delete `.history-backup-*`
|
|
740
|
+
directories; they may contain the original files from an interrupted restore.
|
|
741
|
+
|
|
742
|
+
When an administrator deletes a user and their projects, a directory that
|
|
743
|
+
cannot be removed (for example, because another Windows process holds it open)
|
|
744
|
+
stays queued in SQLite. TexLite retries at startup and every minute and logs
|
|
745
|
+
the project ID on failure. The user and projects remain deleted in TexLite.
|
|
746
|
+
|
|
747
|
+
An HTTP source save that cannot restore the old file after a failed SQLite
|
|
748
|
+
commit logs the source path and recovery directory. Keep the `previous` file
|
|
749
|
+
in that directory until the source has been recovered.
|
|
750
|
+
|
|
621
751
|
TexLite is designed for trusted users on localhost. Shell escape is disabled by
|
|
622
752
|
default and compile jobs have timeouts and concurrency limits, but LaTeX itself
|
|
623
753
|
is not a security boundary. Before exposing it to an untrusted network, add an
|
package/README.md
CHANGED
|
@@ -161,8 +161,7 @@ its own login still protects every project.
|
|
|
161
161
|
<details>
|
|
162
162
|
<summary><b>TexLite Share</b>: the simplest HTTPS link for TexLite</summary>
|
|
163
163
|
|
|
164
|
-
[TexLite Share](https://share.zhongpu.info/) is currently hosted in
|
|
165
|
-
so access from mainland China or regions outside Southeast Asia may be slower.
|
|
164
|
+
[TexLite Share](https://share.zhongpu.info/) is currently hosted in New York State, USA.
|
|
166
165
|
With TexLite running locally on its default port, install and launch the tunnel
|
|
167
166
|
client:
|
|
168
167
|
|
package/README.zh-CN.md
CHANGED
|
@@ -144,8 +144,8 @@ TexLite 是面向小型可信团队的单宿主机应用。账号由管理员创
|
|
|
144
144
|
<details>
|
|
145
145
|
<summary><b>TexLite Share</b>:为 TexLite 提供最简单的 HTTPS 链接</summary>
|
|
146
146
|
|
|
147
|
-
[TexLite Share](https://share.zhongpu.info/)
|
|
148
|
-
|
|
147
|
+
[TexLite Share](https://share.zhongpu.info/) 目前部署在美国纽约州。
|
|
148
|
+
确保 TexLite 已在默认端口启动,然后安装并运行隧道客户端:
|
|
149
149
|
|
|
150
150
|
```bash
|
|
151
151
|
curl -fsSL https://raw.githubusercontent.com/ChenZhongPu/TexLite-Share/main/install-client.sh | bash
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
|
+
## draw.io integration and Puppeteer
|
|
4
|
+
|
|
5
|
+
The diagram editor is loaded from the external diagrams.net iframe; TexLite
|
|
6
|
+
does not redistribute draw.io. The draw.io and diagrams.net names belong to
|
|
7
|
+
their respective owners and do not imply endorsement.
|
|
8
|
+
|
|
9
|
+
Server-side PDF export uses the separately installed `puppeteer-core` package,
|
|
10
|
+
licensed under Apache-2.0, copyright Google Inc. and Puppeteer contributors.
|
|
11
|
+
Its upstream license and notices are available in the
|
|
12
|
+
[Puppeteer repository](https://github.com/puppeteer/puppeteer/blob/main/LICENSE).
|
|
13
|
+
No Chromium, Chrome or Edge binary is bundled or downloaded by TexLite.
|
|
14
|
+
|
|
3
15
|
## Coding agent brand icons
|
|
4
16
|
|
|
5
17
|
The inline SVG paths in `src/client/agents/AgentIcon.tsx` come from theSVG:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t,t as n}from"./react-DUEFWlB7.js";import{S as r,v as i}from"./relativeTime-zIVNCN0k.js";import{t as a}from"./useTranslation-DwkoADSz.js";import{t as o}from"./createLucideIcon-CDYIzuiB.js";import{C as ee,E as te,G as ne,V as re,f as ie,u as ae,x as s}from"./useDeletionTransitions-Bm4I5qej.js";import{t as oe}from"./circle-check-CunlnBPw.js";import{t as c}from"./loader-circle-DKGyi5EK.js";import{t as l}from"./lock-keyhole-aC_QjKDi.js";import{t as se}from"./search-DjOWqLig.js";import{t as u}from"./user-plus-NNBQOWDP.js";import{A as d,T as f,_ as p,g as ce}from"./index-dScQ5LCu.js";import{t as le}from"./SuccessNotice-ubBtzzi_.js";var m={name:`dices`,size:24,node:[[`rect`,{width:`12`,height:`12`,x:`2`,y:`10`,rx:`2`,ry:`2`,key:`6agr2n`}],[`path`,{d:`m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6`,key:`1o487t`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M10 14h.01`,key:`ssrbsk`}],[`path`,{d:`M15 6h.01`,key:`cblpky`}],[`path`,{d:`M18 9h.01`,key:`2061c0`}]]};m.node;var ue=o(m),h={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};h.node;var g=o(h),_=e(t(),1),v=n();function y(e=10){let t=crypto.getRandomValues(new Uint8Array(e));return Array.from(t,e=>`ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789!@#$%`[e%62]).join(``)}function b({currentUser:e,minPasswordLength:t,onBack:n}){let{t:o}=a(),[m,h]=(0,_.useState)([]),[b,de]=(0,_.useState)(null),[x,S]=(0,_.useState)(``),[C,w]=(0,_.useState)(1),[T,fe]=(0,_.useState)({page:1,pageSize:20,total:0,totalPages:0}),[E,pe]=(0,_.useState)(!0),[D,me]=(0,_.useState)(!1),[he,ge]=(0,_.useState)(0),[_e,O]=(0,_.useState)(``),k=le(),[A,j]=(0,_.useState)(!1),[M,N]=(0,_.useState)(``),[ve,P]=(0,_.useState)(!1),[F,I]=(0,_.useState)({username:``,displayName:``,password:``,role:`user`,canCreateProjects:!1}),[L,R]=(0,_.useState)(null),[z,B]=(0,_.useState)(``),[ye,V]=(0,_.useState)(null),[H,U]=(0,_.useState)(null),[W,G]=(0,_.useState)(!1),[K,be]=(0,_.useState)(!1),[xe,q]=(0,_.useState)(``),[J,Y]=(0,_.useState)(null),[X,Se]=(0,_.useState)(!1),[Ce,Z]=(0,_.useState)(``),Q=x.trim(),$=()=>ge(e=>e+1);(0,_.useEffect)(()=>{let e=new AbortController;V(null),pe(!0),me(!1),O(``);let t=window.setTimeout(()=>{let t=new URLSearchParams({page:String(C)});Q&&t.set(`q`,Q),d(`/api/admin/users?${t}`,{signal:e.signal}).then(t=>{e.signal.aborted||(h(t.users),de(t.summary),fe(t.pagination),w(t.pagination.page))}).catch(t=>{e.signal.aborted||(O(f(t)),me(!0))}).finally(()=>{e.signal.aborted||pe(!1)})},Q?200:0);return()=>{window.clearTimeout(t),e.abort()}},[Q,C,he]);let we=async()=>{if(!A){if(F.password.length<t)return N(o(`auth.passwordMinimum`,{count:t}));j(!0),N(``),k.clear();try{await d(`/api/admin/users`,{method:`POST`,body:JSON.stringify({username:F.username,displayName:F.displayName||F.username,password:F.password,role:F.role,canCreateProjects:F.canCreateProjects})}),P(!1),I({username:``,displayName:``,password:``,role:`user`,canCreateProjects:!1}),$(),k.show(`create`)}catch(e){N(f(e))}finally{j(!1)}}},Te=async e=>{Y({target:e,setting:e.role===`admin`?`demote`:`promote`}),Z(``)},Ee=async e=>{Y({target:e,setting:e.canCreateProjects?`denyProjectCreation`:`allowProjectCreation`}),Z(``)},De=async()=>{if(!J||X)return;let{target:e,setting:t}=J,n=t===`demote`?{role:`user`}:t===`promote`?{role:`admin`}:{canCreateProjects:t===`allowProjectCreation`};Se(!0),Z(``);try{await d(`/api/admin/users/${e.id}`,{method:`PATCH`,body:JSON.stringify(n)}),$(),Y(null)}catch(e){Z(f(e))}finally{Se(!1)}},Oe=async()=>{if(L&&z&&!A){if(z.length<t)return N(o(`auth.passwordMinimum`,{count:t}));j(!0),N(``),k.clear();try{await d(`/api/admin/users/${L.id}`,{method:`PATCH`,body:JSON.stringify({password:z})}),k.show(`reset:${L.id}`),R(null),B(``)}catch(e){N(f(e))}finally{j(!1)}}},ke=async()=>{if(H&&!K){be(!0),q(``);try{await d(`/api/admin/users/${H.id}`,{method:`DELETE`,body:JSON.stringify({deleteProjects:W})}),U(null),G(!1),$()}catch(e){q(f(e))}finally{be(!1)}}},Ae=[{key:`totalUsers`,detail:b?o(`users.summary.administrators`,{count:b.administrators}):``},{key:`projectCreators`,detail:b?o(`users.summary.ofUsers`,{count:b.totalUsers}):``},{key:`totalProjects`,detail:b?o(`users.summary.projectOwners`,{count:b.projectOwners}):``}];return(0,v.jsxs)(`section`,{className:`admin-users-page management-page`,children:[(0,v.jsxs)(`div`,{className:`section-title`,children:[(0,v.jsxs)(`div`,{children:[(0,v.jsxs)(`h1`,{children:[(0,v.jsx)(ee,{"aria-hidden":!0,size:25}),o(`users.manage`)]}),(0,v.jsx)(`p`,{className:`muted`,children:o(`users.onlyAdmin`)})]}),(0,v.jsxs)(`button`,{type:`button`,className:`dashboard-back-button`,onClick:n,children:[(0,v.jsx)(r,{size:14}),o(`navigation.backToProjects`)]})]}),(0,v.jsxs)(`div`,{className:`admin-user-layout`,children:[(0,v.jsx)(`dl`,{className:`admin-user-summary`,"aria-label":o(`users.overview`),children:Ae.map(({key:e,detail:t})=>(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`dt`,{children:o(`users.summary.${e}`)}),(0,v.jsxs)(`dd`,{className:b?.[e]===0?`admin-user-zero`:void 0,children:[(0,v.jsx)(`strong`,{children:b?.[e]??`—`}),t&&(0,v.jsx)(`span`,{children:t})]})]},e))}),(0,v.jsxs)(`div`,{className:`admin-user-content`,children:[(0,v.jsxs)(`div`,{className:`admin-user-toolbar`,children:[(0,v.jsxs)(`div`,{className:`admin-user-filters`,children:[(0,v.jsxs)(`div`,{className:`admin-user-search`,role:`search`,children:[(0,v.jsx)(se,{"aria-hidden":!0,size:16}),(0,v.jsx)(`input`,{role:`searchbox`,"aria-label":o(`users.searchPlaceholder`),placeholder:o(`users.searchPlaceholder`),value:x,onChange:e=>{S(e.target.value),w(1)}}),x&&(0,v.jsx)(`button`,{type:`button`,"aria-label":o(`users.clearSearch`),title:o(`users.clearSearch`),onClick:()=>{S(``),w(1)},children:(0,v.jsx)(s,{"aria-hidden":!0,size:14})})]}),Q&&!E&&!D&&(0,v.jsx)(`span`,{className:`admin-user-count`,role:`status`,children:o(`users.total`,{count:T.total})})]}),(0,v.jsxs)(`button`,{className:`primary icon-button admin-user-add`,onClick:()=>{k.clear(),N(``),P(!0)},children:[(0,v.jsx)(u,{"aria-hidden":!0,size:15}),(0,v.jsx)(`span`,{role:`status`,children:o(k.message===`create`?`common.done`:`users.add`)})]})]}),_e&&(0,v.jsx)(`p`,{className:`error`,role:`alert`,children:_e}),(0,v.jsx)(`div`,{className:`table-card admin-user-table`,"aria-busy":E,children:(0,v.jsxs)(`table`,{children:[(0,v.jsx)(`thead`,{children:(0,v.jsxs)(`tr`,{children:[(0,v.jsx)(`th`,{children:o(`common.user`)}),(0,v.jsx)(`th`,{children:o(`users.role`)}),(0,v.jsx)(`th`,{children:o(`users.createProjects`)}),(0,v.jsx)(`th`,{children:o(`users.ownedProjects`)}),(0,v.jsx)(`th`,{children:o(`users.actions`)})]})}),(0,v.jsx)(`tbody`,{children:E?(0,v.jsx)(`tr`,{children:(0,v.jsx)(`td`,{colSpan:5,className:`admin-user-list-state`,children:(0,v.jsxs)(`span`,{role:`status`,children:[(0,v.jsx)(c,{className:`spin`,size:16}),o(`common.loading`)]})})}):D?(0,v.jsx)(`tr`,{children:(0,v.jsxs)(`td`,{colSpan:5,className:`admin-user-list-state`,children:[(0,v.jsx)(`span`,{children:o(`users.loadFailed`)}),(0,v.jsx)(`button`,{type:`button`,onClick:$,children:o(`common.retry`)})]})}):m.length===0?(0,v.jsx)(`tr`,{children:(0,v.jsx)(`td`,{colSpan:5,className:`admin-user-list-state`,children:o(Q?`users.noMatches`:`users.empty`)})}):m.map(t=>{let n=t.id===e.id,r=A||X,i=ye===t.id,a=k.message===`reset:${t.id}`;return(0,v.jsxs)(`tr`,{children:[(0,v.jsx)(`td`,{children:(0,v.jsxs)(`div`,{className:`admin-user-identity`,children:[(0,v.jsx)(ie,{userId:t.id,name:t.displayName,username:t.username,avatarStyle:t.avatarStyle,className:`admin-user-avatar`}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`strong`,{children:t.displayName}),(0,v.jsxs)(`small`,{children:[`@`,t.username]})]})]})}),(0,v.jsx)(`td`,{children:n?(0,v.jsxs)(`span`,{className:`admin-user-badge`,title:o(`users.selfProtected`),children:[(0,v.jsx)(l,{size:12,"aria-hidden":!0}),o(`common.admin`)]}):(0,v.jsxs)(`select`,{className:`admin-user-role`,"aria-label":o(`users.roleFor`,{username:t.username}),value:t.role,disabled:r,onChange:()=>void Te(t),children:[(0,v.jsx)(`option`,{value:`user`,children:o(`common.user`)}),(0,v.jsx)(`option`,{value:`admin`,children:o(`common.admin`)})]})}),(0,v.jsx)(`td`,{children:t.role===`admin`?(0,v.jsxs)(`span`,{className:`admin-user-locked`,title:o(`users.adminCreation`),children:[(0,v.jsx)(l,{size:12,"aria-hidden":!0}),o(`users.alwaysAllowed`)]}):(0,v.jsx)(`button`,{type:`button`,className:`admin-user-switch`,role:`switch`,"aria-checked":t.canCreateProjects,"aria-label":o(`users.creationFor`,{username:t.username}),disabled:r,onClick:()=>void Ee(t),children:(0,v.jsx)(`span`,{})})}),(0,v.jsx)(`td`,{className:t.ownedProjects?void 0:`admin-user-zero`,children:t.ownedProjects??0}),(0,v.jsx)(`td`,{children:(0,v.jsxs)(`div`,{className:`admin-user-actions`,children:[(0,v.jsxs)(`div`,{className:`admin-user-action-items`,id:`user-actions-${t.id}`,hidden:!i,children:[(0,v.jsxs)(`button`,{type:`button`,className:`icon-button`,disabled:r,title:o(a?`common.done`:`users.resetPassword`),"aria-label":o(`users.resetPassword`),onClick:()=>{k.clear(),R(t),B(``),N(``)},children:[a?(0,v.jsx)(oe,{className:`admin-user-action-confirmation`,"aria-hidden":!0,size:15}):(0,v.jsx)(g,{"aria-hidden":!0,size:15}),(0,v.jsx)(`span`,{className:`sr-only`,role:`status`,children:a?o(`common.done`):``})]}),!n&&(0,v.jsx)(`button`,{type:`button`,className:`icon-button danger-text`,disabled:r,title:o(`users.deleteTitle`),"aria-label":o(`users.deleteTitle`),onClick:()=>{U(t),G(!1),q(``)},children:(0,v.jsx)(te,{size:15,"aria-hidden":!0})})]}),(0,v.jsx)(`button`,{type:`button`,className:`icon-button admin-user-action-toggle`,disabled:r,"aria-label":o(`users.actionsFor`,{username:t.username}),"aria-expanded":i,"aria-controls":`user-actions-${t.id}`,onClick:()=>V(i?null:t.id),children:(0,v.jsx)(re,{size:17,"aria-hidden":!0})})]})})]},t.id)})})]})}),T.totalPages>1&&(0,v.jsxs)(`nav`,{className:`project-pagination admin-user-pagination`,"aria-label":o(`users.pagination`),children:[(0,v.jsxs)(`button`,{type:`button`,disabled:E||D||T.page<=1,onClick:()=>w(T.page-1),children:[(0,v.jsx)(i,{size:15}),o(`users.previousPage`)]}),(0,v.jsx)(`span`,{children:o(`users.pageOf`,{page:T.page,totalPages:T.totalPages})}),(0,v.jsxs)(`button`,{type:`button`,disabled:E||D||T.page>=T.totalPages,onClick:()=>w(T.page+1),children:[o(`users.nextPage`),(0,v.jsx)(ne,{size:15})]})]})]})]}),(0,v.jsxs)(p,{className:`management-dialog`,open:ve,title:o(`users.add`),onOpenChange:e=>{A||P(e)},footer:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(`button`,{className:`icon-button`,disabled:A,onClick:()=>P(!1),children:[(0,v.jsx)(s,{"aria-hidden":!0,size:14}),o(`common.cancel`)]}),(0,v.jsxs)(`button`,{className:`primary icon-button`,disabled:A||!F.username.trim()||F.password.length<t,onClick:()=>void we(),children:[(0,v.jsx)(u,{"aria-hidden":!0,size:14}),o(`users.createUser`)]})]}),children:[M&&(0,v.jsx)(`p`,{className:`error`,role:`alert`,children:M}),(0,v.jsxs)(`fieldset`,{className:`admin-user-form form-stack`,disabled:A,children:[(0,v.jsxs)(`label`,{className:`form-field`,children:[o(`auth.username`),(0,v.jsx)(`input`,{value:F.username,onChange:e=>I({...F,username:e.target.value})})]}),(0,v.jsxs)(`label`,{className:`form-field`,children:[o(`users.displayName`),(0,v.jsx)(`input`,{value:F.displayName,onChange:e=>I({...F,displayName:e.target.value})})]}),(0,v.jsxs)(`div`,{className:`form-field`,children:[(0,v.jsxs)(`div`,{className:`user-password-heading`,children:[(0,v.jsx)(`label`,{htmlFor:`new-user-password`,children:o(`users.initialPassword`)}),(0,v.jsx)(ae,{content:o(`users.addDescription`)})]}),(0,v.jsxs)(`span`,{className:`password-generator`,children:[(0,v.jsx)(`input`,{id:`new-user-password`,minLength:t,autoComplete:`new-password`,value:F.password,onChange:e=>I({...F,password:e.target.value})}),(0,v.jsxs)(`button`,{type:`button`,title:o(`users.generatePassword`),onClick:()=>I({...F,password:y()}),children:[(0,v.jsx)(ue,{size:15}),o(`users.randomPassword`)]})]}),(0,v.jsx)(`small`,{className:`field-hint`,children:o(`auth.passwordMinimum`,{count:t})})]}),(0,v.jsxs)(`label`,{className:`form-field`,children:[o(`users.role`),(0,v.jsxs)(`select`,{value:F.role,onChange:e=>I({...F,role:e.target.value}),children:[(0,v.jsx)(`option`,{value:`user`,children:o(`common.user`)}),(0,v.jsx)(`option`,{value:`admin`,children:o(`common.admin`)})]})]}),(0,v.jsxs)(`label`,{className:`checkbox-field`,children:[(0,v.jsx)(`input`,{type:`checkbox`,checked:F.canCreateProjects||F.role===`admin`,disabled:F.role===`admin`,onChange:e=>I({...F,canCreateProjects:e.target.checked})}),` `,o(`users.allowCreate`)]})]})]}),(0,v.jsxs)(p,{className:`management-dialog`,open:!!L,title:o(`users.resetPassword`),description:o(`users.resetDescription`,{username:L?.username??``}),onOpenChange:e=>{!e&&!A&&R(null)},footer:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(`button`,{className:`icon-button`,disabled:A,onClick:()=>R(null),children:[(0,v.jsx)(s,{"aria-hidden":!0,size:14}),o(`common.cancel`)]}),(0,v.jsxs)(`button`,{className:`primary icon-button`,disabled:A||z.length<t,onClick:()=>void Oe(),children:[(0,v.jsx)(g,{"aria-hidden":!0,size:14}),o(`users.reset`)]})]}),children:[M&&(0,v.jsx)(`p`,{className:`error`,role:`alert`,children:M}),(0,v.jsxs)(`label`,{className:`form-field`,children:[o(`auth.newPassword`),(0,v.jsxs)(`span`,{className:`password-generator`,children:[(0,v.jsx)(`input`,{disabled:A,autoFocus:!0,minLength:t,autoComplete:`new-password`,value:z,onChange:e=>B(e.target.value)}),(0,v.jsxs)(`button`,{type:`button`,disabled:A,onClick:()=>B(y()),children:[(0,v.jsx)(ue,{size:15}),o(`users.randomPassword`)]})]}),(0,v.jsx)(`small`,{className:`field-hint`,children:o(`auth.passwordMinimum`,{count:t})})]})]}),(0,v.jsx)(p,{className:`management-dialog`,open:!!H,title:o(`users.deleteTitle`),description:o(`users.deleteDescription`,{username:H?.username??``}),onOpenChange:e=>{!e&&!K&&(U(null),q(``))},footer:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(`button`,{className:`icon-button`,disabled:K,onClick:()=>{U(null),q(``)},children:[(0,v.jsx)(s,{"aria-hidden":!0,size:14}),o(`common.cancel`)]}),(0,v.jsxs)(`button`,{className:`danger icon-button`,disabled:K,"aria-busy":K,onClick:()=>void ke(),children:[K?(0,v.jsx)(c,{className:`spin`,"aria-hidden":!0,size:14}):(0,v.jsx)(te,{"aria-hidden":!0,size:14}),o(K?`common.loading`:`users.deleteTitle`)]})]}),children:(0,v.jsxs)(v.Fragment,{children:[xe&&(0,v.jsx)(`p`,{className:`error dialog-error`,children:xe}),(0,v.jsxs)(`fieldset`,{className:`choice-group`,disabled:K,children:[(0,v.jsx)(`legend`,{children:o(`users.ownedChoice`,{count:H?.ownedProjects??0})}),(0,v.jsxs)(`label`,{children:[(0,v.jsx)(`input`,{type:`radio`,checked:!W,onChange:()=>G(!1)}),` `,o(`users.transferProjects`)]}),(0,v.jsxs)(`label`,{children:[(0,v.jsx)(`input`,{type:`radio`,checked:W,onChange:()=>G(!0)}),` `,o(`users.deleteProjects`)]})]})]})}),(0,v.jsx)(ce,{open:!!J,title:o(`userConfirmations.${J?.setting??`demote`}Title`),description:o(`userConfirmations.${J?.setting??`demote`}Description`,{username:J?.target.username??``}),confirmLabel:o(`userConfirmations.${J?.setting??`demote`}Confirm`),danger:J?.setting!==`promote`&&J?.setting!==`allowProjectCreation`,busy:X,error:Ce,onCancel:()=>{X||(Y(null),Z(``))},onConfirm:()=>void De()})]})}export{b as AdminUsers};
|
|
Binary file
|
|
Binary file
|