doclific 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/dist/bin/doclific.js +36 -8
- package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/public/assets/Preview-NR2gYrSG.js +1 -0
- package/dist/public/assets/abap-BdImnpbu.js +1 -0
- package/dist/public/assets/actionscript-3-CfeIJUat.js +1 -0
- package/dist/public/assets/ada-bCR0ucgS.js +1 -0
- package/dist/public/assets/andromeeda-C-Jbm3Hp.js +1 -0
- package/dist/public/assets/angular-html-CU67Zn6k.js +1 -0
- package/dist/public/assets/angular-ts-BwZT4LLn.js +1 -0
- package/dist/public/assets/apache-Pmp26Uib.js +1 -0
- package/dist/public/assets/apex-DDbsPZ6N.js +1 -0
- package/dist/public/assets/apl-dKokRX4l.js +1 -0
- package/dist/public/assets/applescript-Co6uUVPk.js +1 -0
- package/dist/public/assets/ara-BRHolxvo.js +1 -0
- package/dist/public/assets/asciidoc-Dv7Oe6Be.js +1 -0
- package/dist/public/assets/asm-D_Q5rh1f.js +1 -0
- package/dist/public/assets/astro-CbQHKStN.js +1 -0
- package/dist/public/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/dist/public/assets/awk-DMzUqQB5.js +1 -0
- package/dist/public/assets/ayu-dark-Cv9koXgw.js +1 -0
- package/dist/public/assets/ballerina-BFfxhgS-.js +1 -0
- package/dist/public/assets/bat-BkioyH1T.js +1 -0
- package/dist/public/assets/beancount-k_qm7-4y.js +1 -0
- package/dist/public/assets/berry-uYugtg8r.js +1 -0
- package/dist/public/assets/bibtex-CHM0blh-.js +1 -0
- package/dist/public/assets/bicep-Bmn6On1c.js +1 -0
- package/dist/public/assets/blade-DVc8C-J4.js +1 -0
- package/dist/public/assets/bsl-BO_Y6i37.js +1 -0
- package/dist/public/assets/c-BIGW1oBm.js +1 -0
- package/dist/public/assets/cadence-Bv_4Rxtq.js +1 -0
- package/dist/public/assets/cairo-KRGpt6FW.js +1 -0
- package/dist/public/assets/catppuccin-frappe-DFWUc33u.js +1 -0
- package/dist/public/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
- package/dist/public/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
- package/dist/public/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
- package/dist/public/assets/clarity-D53aC0YG.js +1 -0
- package/dist/public/assets/clojure-P80f7IUj.js +1 -0
- package/dist/public/assets/cmake-D1j8_8rp.js +1 -0
- package/dist/public/assets/cobol-nwyudZeR.js +1 -0
- package/dist/public/assets/codeowners-Bp6g37R7.js +1 -0
- package/dist/public/assets/codeql-DsOJ9woJ.js +1 -0
- package/dist/public/assets/coffee-Ch7k5sss.js +1 -0
- package/dist/public/assets/common-lisp-Cg-RD9OK.js +1 -0
- package/dist/public/assets/coq-DkFqJrB1.js +1 -0
- package/dist/public/assets/cpp-CofmeUqb.js +1 -0
- package/dist/public/assets/crystal-tKQVLTB8.js +1 -0
- package/dist/public/assets/csharp-K5feNrxe.js +1 -0
- package/dist/public/assets/css-DPfMkruS.js +1 -0
- package/dist/public/assets/csv-fuZLfV_i.js +1 -0
- package/dist/public/assets/cue-D82EKSYY.js +1 -0
- package/dist/public/assets/custom-media-element-Ce0vsE-t.js +43 -0
- package/dist/public/assets/cypher-COkxafJQ.js +1 -0
- package/dist/public/assets/d-85-TOEBH.js +1 -0
- package/dist/public/assets/dark-plus-C3mMm8J8.js +1 -0
- package/dist/public/assets/dart-CF10PKvl.js +1 -0
- package/dist/public/assets/dash.all.min-Oikk9St1.js +21 -0
- package/dist/public/assets/dax-CEL-wOlO.js +1 -0
- package/dist/public/assets/desktop-BmXAJ9_W.js +1 -0
- package/dist/public/assets/diff-D97Zzqfu.js +1 -0
- package/dist/public/assets/docker-BcOcwvcX.js +1 -0
- package/dist/public/assets/dotenv-Da5cRb03.js +1 -0
- package/dist/public/assets/dracula-BzJJZx-M.js +1 -0
- package/dist/public/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/dist/public/assets/dream-maker-BtqSS_iP.js +1 -0
- package/dist/public/assets/edge-BkV0erSs.js +1 -0
- package/dist/public/assets/elixir-CDX3lj18.js +1 -0
- package/dist/public/assets/elm-DbKCFpqz.js +1 -0
- package/dist/public/assets/emacs-lisp-C9XAeP06.js +1 -0
- package/dist/public/assets/erb-BOJIQeun.js +1 -0
- package/dist/public/assets/erlang-DsQrWhSR.js +1 -0
- package/dist/public/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/dist/public/assets/everforest-light-C8M2exoo.js +1 -0
- package/dist/public/assets/fennel-BYunw83y.js +1 -0
- package/dist/public/assets/fish-BvzEVeQv.js +1 -0
- package/dist/public/assets/fluent-C4IJs8-o.js +1 -0
- package/dist/public/assets/fortran-fixed-form-BZjJHVRy.js +1 -0
- package/dist/public/assets/fortran-free-form-D22FLkUw.js +1 -0
- package/dist/public/assets/fsharp-CXgrBDvD.js +1 -0
- package/dist/public/assets/gdresource-B7Tvp0Sc.js +1 -0
- package/dist/public/assets/gdscript-DTMYz4Jt.js +1 -0
- package/dist/public/assets/gdshader-DkwncUOv.js +1 -0
- package/dist/public/assets/genie-D0YGMca9.js +1 -0
- package/dist/public/assets/gherkin-DyxjwDmM.js +1 -0
- package/dist/public/assets/git-commit-F4YmCXRG.js +1 -0
- package/dist/public/assets/git-rebase-r7XF79zn.js +1 -0
- package/dist/public/assets/github-dark-DHJKELXO.js +1 -0
- package/dist/public/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/dist/public/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/dist/public/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/dist/public/assets/github-light-DAi9KRSo.js +1 -0
- package/dist/public/assets/github-light-default-D7oLnXFd.js +1 -0
- package/dist/public/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/dist/public/assets/gleam-BspZqrRM.js +1 -0
- package/dist/public/assets/glimmer-js-Rg0-pVw9.js +1 -0
- package/dist/public/assets/glimmer-ts-U6CK756n.js +1 -0
- package/dist/public/assets/glsl-DplSGwfg.js +1 -0
- package/dist/public/assets/gnuplot-DdkO51Og.js +1 -0
- package/dist/public/assets/go-Dn2_MT6a.js +1 -0
- package/dist/public/assets/graphql-ChdNCCLP.js +1 -0
- package/dist/public/assets/groovy-gcz8RCvz.js +1 -0
- package/dist/public/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- package/dist/public/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
- package/dist/public/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
- package/dist/public/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
- package/dist/public/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
- package/dist/public/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
- package/dist/public/assets/hack-CaT9iCJl.js +1 -0
- package/dist/public/assets/haml-B8DHNrY2.js +1 -0
- package/dist/public/assets/handlebars-BL8al0AC.js +1 -0
- package/dist/public/assets/haskell-Df6bDoY_.js +1 -0
- package/dist/public/assets/haxe-CzTSHFRz.js +1 -0
- package/dist/public/assets/hcl-BWvSN4gD.js +1 -0
- package/dist/public/assets/hjson-D5-asLiD.js +1 -0
- package/dist/public/assets/hls-C_5si56p.js +40 -0
- package/dist/public/assets/hlsl-D3lLCCz7.js +1 -0
- package/dist/public/assets/houston-DnULxvSX.js +1 -0
- package/dist/public/assets/html-GMplVEZG.js +1 -0
- package/dist/public/assets/html-derivative-BFtXZ54Q.js +1 -0
- package/dist/public/assets/http-jrhK8wxY.js +1 -0
- package/dist/public/assets/hurl-irOxFIW8.js +1 -0
- package/dist/public/assets/hxml-Bvhsp5Yf.js +1 -0
- package/dist/public/assets/hy-DFXneXwc.js +1 -0
- package/dist/public/assets/imba-DGztddWO.js +1 -0
- package/dist/public/assets/index-7dkQZ452.js +3299 -0
- package/dist/public/assets/index-Ba4GJyLR.js +594 -0
- package/dist/public/assets/index-Cr3JJDAk.css +1 -0
- package/dist/public/assets/ini-BEwlwnbL.js +1 -0
- package/dist/public/assets/java-CylS5w8V.js +1 -0
- package/dist/public/assets/javascript-wDzz0qaB.js +1 -0
- package/dist/public/assets/jinja-4LBKfQ-Z.js +1 -0
- package/dist/public/assets/jison-wvAkD_A8.js +1 -0
- package/dist/public/assets/json-Cp-IABpG.js +1 -0
- package/dist/public/assets/json5-C9tS-k6U.js +1 -0
- package/dist/public/assets/jsonc-Des-eS-w.js +1 -0
- package/dist/public/assets/jsonl-DcaNXYhu.js +1 -0
- package/dist/public/assets/jsonnet-DFQXde-d.js +1 -0
- package/dist/public/assets/jssm-C2t-YnRu.js +1 -0
- package/dist/public/assets/jsx-g9-lgVsj.js +1 -0
- package/dist/public/assets/julia-C8NyazO9.js +1 -0
- package/dist/public/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- package/dist/public/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- package/dist/public/assets/kanagawa-wave-DWedfzmr.js +1 -0
- package/dist/public/assets/kdl-DV7GczEv.js +1 -0
- package/dist/public/assets/kotlin-BdnUsdx6.js +1 -0
- package/dist/public/assets/kusto-BvAqAH-y.js +1 -0
- package/dist/public/assets/laserwave-DUszq2jm.js +1 -0
- package/dist/public/assets/latex-BdAV_C_H.js +1 -0
- package/dist/public/assets/lean-Bc6EcWN3.js +1 -0
- package/dist/public/assets/less-B1dDrJ26.js +1 -0
- package/dist/public/assets/light-plus-B7mTdjB0.js +1 -0
- package/dist/public/assets/liquid-DYVedYrR.js +1 -0
- package/dist/public/assets/llvm-BtvRca6l.js +1 -0
- package/dist/public/assets/log-2UxHyX5q.js +1 -0
- package/dist/public/assets/logo-BtOb2qkB.js +1 -0
- package/dist/public/assets/lua-BbnMAYS6.js +1 -0
- package/dist/public/assets/luau-CXu1NL6O.js +1 -0
- package/dist/public/assets/make-CHLpvVh8.js +1 -0
- package/dist/public/assets/markdown-Cvjx9yec.js +1 -0
- package/dist/public/assets/marko-CPi9NSCl.js +1 -0
- package/dist/public/assets/material-theme-D5KoaKCx.js +1 -0
- package/dist/public/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/dist/public/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/dist/public/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/dist/public/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/dist/public/assets/matlab-D7o27uSR.js +1 -0
- package/dist/public/assets/mdc-DUICxH0z.js +1 -0
- package/dist/public/assets/mdx-Cmh6b_Ma.js +1 -0
- package/dist/public/assets/mermaid-DKYwYmdq.js +1 -0
- package/dist/public/assets/min-dark-CafNBF8u.js +1 -0
- package/dist/public/assets/min-light-CTRr51gU.js +1 -0
- package/dist/public/assets/mipsasm-CKIfxQSi.js +1 -0
- package/dist/public/assets/mojo-1DNp92w6.js +1 -0
- package/dist/public/assets/monokai-D4h5O-jR.js +1 -0
- package/dist/public/assets/move-Bu9oaDYs.js +1 -0
- package/dist/public/assets/narrat-DRg8JJMk.js +1 -0
- package/dist/public/assets/nextflow-BrzmwbiE.js +1 -0
- package/dist/public/assets/nginx-DknmC5AR.js +1 -0
- package/dist/public/assets/night-owl-C39BiMTA.js +1 -0
- package/dist/public/assets/nim-CVrawwO9.js +1 -0
- package/dist/public/assets/nix-c8nO5XWb.js +1 -0
- package/dist/public/assets/nord-Ddv68eIx.js +1 -0
- package/dist/public/assets/nushell-C-sUppwS.js +1 -0
- package/dist/public/assets/objective-c-DXmwc3jG.js +1 -0
- package/dist/public/assets/objective-cpp-CLxacb5B.js +1 -0
- package/dist/public/assets/ocaml-C0hk2d4L.js +1 -0
- package/dist/public/assets/one-dark-pro-DVMEJ2y_.js +1 -0
- package/dist/public/assets/one-light-PoHY5YXO.js +1 -0
- package/dist/public/assets/openscad-C4EeE6gA.js +1 -0
- package/dist/public/assets/pascal-D93ZcfNL.js +1 -0
- package/dist/public/assets/perl-C0TMdlhV.js +1 -0
- package/dist/public/assets/php-CDn_0X-4.js +1 -0
- package/dist/public/assets/pkl-u5AG7uiY.js +1 -0
- package/dist/public/assets/plastic-3e1v2bzS.js +1 -0
- package/dist/public/assets/plsql-ChMvpjG-.js +1 -0
- package/dist/public/assets/po-BTJTHyun.js +1 -0
- package/dist/public/assets/poimandres-CS3Unz2-.js +1 -0
- package/dist/public/assets/polar-C0HS_06l.js +1 -0
- package/dist/public/assets/postcss-CXtECtnM.js +1 -0
- package/dist/public/assets/powerquery-CEu0bR-o.js +1 -0
- package/dist/public/assets/powershell-Dpen1YoG.js +1 -0
- package/dist/public/assets/prisma-Dd19v3D-.js +1 -0
- package/dist/public/assets/prolog-CbFg5uaA.js +1 -0
- package/dist/public/assets/proto-DyJlTyXw.js +1 -0
- package/dist/public/assets/pug-CGlum2m_.js +1 -0
- package/dist/public/assets/puppet-BMWR74SV.js +1 -0
- package/dist/public/assets/purescript-CklMAg4u.js +1 -0
- package/dist/public/assets/python-B6aJPvgy.js +1 -0
- package/dist/public/assets/qml-3beO22l8.js +1 -0
- package/dist/public/assets/qmldir-C8lEn-DE.js +1 -0
- package/dist/public/assets/qss-IeuSbFQv.js +1 -0
- package/dist/public/assets/r-DiinP2Uv.js +1 -0
- package/dist/public/assets/racket-BqYA7rlc.js +1 -0
- package/dist/public/assets/raku-DXvB9xmW.js +1 -0
- package/dist/public/assets/razor-CE9lU5zL.js +1 -0
- package/dist/public/assets/react-5ZXevCLf.js +17 -0
- package/dist/public/assets/react-BEcdFE7q.js +22 -0
- package/dist/public/assets/react-D2EJnkVv.js +19 -0
- package/dist/public/assets/react-D7jI_eai.js +1 -0
- package/dist/public/assets/react-DJAU2yhQ.js +6 -0
- package/dist/public/assets/react-DOmflkoB.js +19 -0
- package/dist/public/assets/react-cRnw9P6y.js +21 -0
- package/dist/public/assets/react-juJrAyUY.js +34 -0
- package/dist/public/assets/red-bN70gL4F.js +1 -0
- package/dist/public/assets/reg-C-SQnVFl.js +1 -0
- package/dist/public/assets/regexp-CDVJQ6XC.js +1 -0
- package/dist/public/assets/rel-C3B-1QV4.js +1 -0
- package/dist/public/assets/riscv-BM1_JUlF.js +1 -0
- package/dist/public/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
- package/dist/public/assets/rose-pine-moon-D4_iv3hh.js +1 -0
- package/dist/public/assets/rose-pine-qdsjHGoJ.js +1 -0
- package/dist/public/assets/rosmsg-BJDFO7_C.js +1 -0
- package/dist/public/assets/rst-B0xPkSld.js +1 -0
- package/dist/public/assets/ruby-BvKwtOVI.js +1 -0
- package/dist/public/assets/rust-B1yitclQ.js +1 -0
- package/dist/public/assets/sas-cz2c8ADy.js +1 -0
- package/dist/public/assets/sass-Cj5Yp3dK.js +1 -0
- package/dist/public/assets/scala-C151Ov-r.js +1 -0
- package/dist/public/assets/scheme-C98Dy4si.js +1 -0
- package/dist/public/assets/scss-OYdSNvt2.js +1 -0
- package/dist/public/assets/sdbl-DVxCFoDh.js +1 -0
- package/dist/public/assets/shaderlab-Dg9Lc6iA.js +1 -0
- package/dist/public/assets/shellscript-Yzrsuije.js +1 -0
- package/dist/public/assets/shellsession-BADoaaVG.js +1 -0
- package/dist/public/assets/slack-dark-BthQWCQV.js +1 -0
- package/dist/public/assets/slack-ochin-DqwNpetd.js +1 -0
- package/dist/public/assets/smalltalk-BERRCDM3.js +1 -0
- package/dist/public/assets/snazzy-light-Bw305WKR.js +1 -0
- package/dist/public/assets/solarized-dark-DXbdFlpD.js +1 -0
- package/dist/public/assets/solarized-light-L9t79GZl.js +1 -0
- package/dist/public/assets/solidity-rGO070M0.js +1 -0
- package/dist/public/assets/soy-Brmx7dQM.js +1 -0
- package/dist/public/assets/sparql-rVzFXLq3.js +1 -0
- package/dist/public/assets/splunk-BtCnVYZw.js +1 -0
- package/dist/public/assets/sql-BLtJtn59.js +1 -0
- package/dist/public/assets/ssh-config-_ykCGR6B.js +1 -0
- package/dist/public/assets/stata-BH5u7GGu.js +1 -0
- package/dist/public/assets/stylus-BEDo0Tqx.js +1 -0
- package/dist/public/assets/svelte-3Dk4HxPD.js +1 -0
- package/dist/public/assets/swift-Dg5xB15N.js +1 -0
- package/dist/public/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/dist/public/assets/system-verilog-CnnmHF94.js +1 -0
- package/dist/public/assets/systemd-4A_iFExJ.js +1 -0
- package/dist/public/assets/talonscript-CkByrt1z.js +1 -0
- package/dist/public/assets/tasl-QIJgUcNo.js +1 -0
- package/dist/public/assets/tcl-dwOrl1Do.js +1 -0
- package/dist/public/assets/templ-W15q3VgB.js +1 -0
- package/dist/public/assets/terraform-BETggiCN.js +1 -0
- package/dist/public/assets/tex-CxkMU7Pf.js +1 -0
- package/dist/public/assets/tokyo-night-hegEt444.js +1 -0
- package/dist/public/assets/toml-vGWfd6FD.js +1 -0
- package/dist/public/assets/ts-tags-zn1MmPIZ.js +1 -0
- package/dist/public/assets/tsv-B_m7g4N7.js +1 -0
- package/dist/public/assets/tsx-COt5Ahok.js +1 -0
- package/dist/public/assets/turtle-BsS91CYL.js +1 -0
- package/dist/public/assets/twig-CO9l9SDP.js +1 -0
- package/dist/public/assets/typescript-BPQ3VLAy.js +1 -0
- package/dist/public/assets/typespec-BGHnOYBU.js +1 -0
- package/dist/public/assets/typst-DHCkPAjA.js +1 -0
- package/dist/public/assets/v-BcVCzyr7.js +1 -0
- package/dist/public/assets/vala-CsfeWuGM.js +1 -0
- package/dist/public/assets/vb-D17OF-Vu.js +1 -0
- package/dist/public/assets/verilog-BQ8w6xss.js +1 -0
- package/dist/public/assets/vesper-DU1UobuO.js +1 -0
- package/dist/public/assets/vhdl-CeAyd5Ju.js +1 -0
- package/dist/public/assets/viml-CJc9bBzg.js +1 -0
- package/dist/public/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/dist/public/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist/public/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/public/assets/vue-DnHKYNfI.js +1 -0
- package/dist/public/assets/vue-html-CChd_i61.js +1 -0
- package/dist/public/assets/vue-vine-8moa0y9V.js +1 -0
- package/dist/public/assets/vyper-CDx5xZoG.js +1 -0
- package/dist/public/assets/wasm-CG6Dc4jp.js +1 -0
- package/dist/public/assets/wasm-MzD3tlZU.js +1 -0
- package/dist/public/assets/wenyan-BV7otONQ.js +1 -0
- package/dist/public/assets/wgsl-Dx-B1_4e.js +1 -0
- package/dist/public/assets/wikitext-BhOHFoWU.js +1 -0
- package/dist/public/assets/wit-5i3qLPDT.js +1 -0
- package/dist/public/assets/wolfram-lXgVvXCa.js +1 -0
- package/dist/public/assets/xml-sdJ4AIDG.js +1 -0
- package/dist/public/assets/xsl-CtQFsRM5.js +1 -0
- package/dist/public/assets/yaml-Buea-lGh.js +1 -0
- package/dist/public/assets/zenscript-DVFEvuxE.js +1 -0
- package/dist/public/assets/zig-VOosw3JB.js +1 -0
- package/{frontend → dist/public}/index.html +2 -1
- package/dist/server/index.js +1 -1
- package/package.json +10 -3
- package/readme.md +77 -0
- package/.gitattributes +0 -2
- package/.prettierignore +0 -5
- package/.prettierrc +0 -9
- package/.vscode/settings.json +0 -13
- package/frontend/README.md +0 -73
- package/frontend/components.json +0 -24
- package/frontend/eslint.config.js +0 -23
- package/frontend/package-lock.json +0 -15754
- package/frontend/package.json +0 -122
- package/frontend/src/App.tsx +0 -21
- package/frontend/src/components/app-sidebar.tsx +0 -393
- package/frontend/src/components/editor/editor-base-kit.tsx +0 -43
- package/frontend/src/components/editor/editor-kit.tsx +0 -93
- package/frontend/src/components/editor/plugins/align-base-kit.tsx +0 -16
- package/frontend/src/components/editor/plugins/align-kit.tsx +0 -18
- package/frontend/src/components/editor/plugins/autoformat-kit.tsx +0 -236
- package/frontend/src/components/editor/plugins/basic-blocks-base-kit.tsx +0 -35
- package/frontend/src/components/editor/plugins/basic-blocks-kit.tsx +0 -88
- package/frontend/src/components/editor/plugins/basic-marks-base-kit.tsx +0 -27
- package/frontend/src/components/editor/plugins/basic-marks-kit.tsx +0 -41
- package/frontend/src/components/editor/plugins/basic-nodes-kit.tsx +0 -6
- package/frontend/src/components/editor/plugins/block-menu-kit.tsx +0 -14
- package/frontend/src/components/editor/plugins/block-placeholder-kit.tsx +0 -17
- package/frontend/src/components/editor/plugins/block-selection-kit.tsx +0 -32
- package/frontend/src/components/editor/plugins/callout-base-kit.tsx +0 -7
- package/frontend/src/components/editor/plugins/callout-kit.tsx +0 -7
- package/frontend/src/components/editor/plugins/code-block-base-kit.tsx +0 -23
- package/frontend/src/components/editor/plugins/code-block-kit.tsx +0 -26
- package/frontend/src/components/editor/plugins/codebase-kit.tsx +0 -23
- package/frontend/src/components/editor/plugins/column-base-kit.tsx +0 -11
- package/frontend/src/components/editor/plugins/column-kit.tsx +0 -10
- package/frontend/src/components/editor/plugins/comment-base-kit.tsx +0 -7
- package/frontend/src/components/editor/plugins/comment-kit.tsx +0 -97
- package/frontend/src/components/editor/plugins/cursor-overlay-kit.tsx +0 -13
- package/frontend/src/components/editor/plugins/date-base-kit.tsx +0 -5
- package/frontend/src/components/editor/plugins/date-kit.tsx +0 -7
- package/frontend/src/components/editor/plugins/discussion-kit.tsx +0 -148
- package/frontend/src/components/editor/plugins/dnd-kit.tsx +0 -28
- package/frontend/src/components/editor/plugins/docx-kit.tsx +0 -6
- package/frontend/src/components/editor/plugins/emoji-kit.tsx +0 -13
- package/frontend/src/components/editor/plugins/excalidraw-kit.tsx +0 -9
- package/frontend/src/components/editor/plugins/exit-break-kit.tsx +0 -12
- package/frontend/src/components/editor/plugins/floating-toolbar-kit.tsx +0 -19
- package/frontend/src/components/editor/plugins/font-base-kit.tsx +0 -20
- package/frontend/src/components/editor/plugins/font-kit.tsx +0 -29
- package/frontend/src/components/editor/plugins/indent-base-kit.tsx +0 -19
- package/frontend/src/components/editor/plugins/indent-kit.tsx +0 -22
- package/frontend/src/components/editor/plugins/line-height-base-kit.tsx +0 -14
- package/frontend/src/components/editor/plugins/line-height-kit.tsx +0 -16
- package/frontend/src/components/editor/plugins/link-base-kit.tsx +0 -5
- package/frontend/src/components/editor/plugins/link-kit.tsx +0 -15
- package/frontend/src/components/editor/plugins/list-base-kit.tsx +0 -23
- package/frontend/src/components/editor/plugins/list-kit.tsx +0 -26
- package/frontend/src/components/editor/plugins/markdown-kit.tsx +0 -46
- package/frontend/src/components/editor/plugins/math-base-kit.tsx +0 -11
- package/frontend/src/components/editor/plugins/math-kit.tsx +0 -13
- package/frontend/src/components/editor/plugins/media-base-kit.tsx +0 -31
- package/frontend/src/components/editor/plugins/media-kit.tsx +0 -43
- package/frontend/src/components/editor/plugins/mention-base-kit.tsx +0 -7
- package/frontend/src/components/editor/plugins/mention-kit.tsx +0 -15
- package/frontend/src/components/editor/plugins/slash-kit.tsx +0 -18
- package/frontend/src/components/editor/plugins/suggestion-base-kit.tsx +0 -7
- package/frontend/src/components/editor/plugins/suggestion-kit.tsx +0 -90
- package/frontend/src/components/editor/plugins/table-base-kit.tsx +0 -20
- package/frontend/src/components/editor/plugins/table-kit.tsx +0 -22
- package/frontend/src/components/editor/plugins/toc-base-kit.tsx +0 -5
- package/frontend/src/components/editor/plugins/toc-kit.tsx +0 -14
- package/frontend/src/components/editor/plugins/toggle-base-kit.tsx +0 -7
- package/frontend/src/components/editor/plugins/toggle-kit.tsx +0 -11
- package/frontend/src/components/editor/transforms.ts +0 -194
- package/frontend/src/components/markdown-to-slate-demo.tsx +0 -50
- package/frontend/src/components/mode-toggle.tsx +0 -15
- package/frontend/src/components/theme-provider.tsx +0 -73
- package/frontend/src/components/ui/alert-dialog.tsx +0 -155
- package/frontend/src/components/ui/align-toolbar-button.tsx +0 -84
- package/frontend/src/components/ui/avatar.tsx +0 -51
- package/frontend/src/components/ui/block-context-menu.tsx +0 -199
- package/frontend/src/components/ui/block-discussion.tsx +0 -365
- package/frontend/src/components/ui/block-draggable.tsx +0 -512
- package/frontend/src/components/ui/block-list-static.tsx +0 -80
- package/frontend/src/components/ui/block-list.tsx +0 -87
- package/frontend/src/components/ui/block-selection.tsx +0 -42
- package/frontend/src/components/ui/block-suggestion.tsx +0 -473
- package/frontend/src/components/ui/blockquote-node-static.tsx +0 -11
- package/frontend/src/components/ui/blockquote-node.tsx +0 -13
- package/frontend/src/components/ui/button.tsx +0 -62
- package/frontend/src/components/ui/calendar.tsx +0 -218
- package/frontend/src/components/ui/callout-node-static.tsx +0 -36
- package/frontend/src/components/ui/callout-node.tsx +0 -63
- package/frontend/src/components/ui/caption.tsx +0 -63
- package/frontend/src/components/ui/checkbox.tsx +0 -30
- package/frontend/src/components/ui/code-block-node-static.tsx +0 -35
- package/frontend/src/components/ui/code-block-node.tsx +0 -287
- package/frontend/src/components/ui/code-node-static.tsx +0 -15
- package/frontend/src/components/ui/code-node.tsx +0 -17
- package/frontend/src/components/ui/codebase-snippet-node.tsx +0 -237
- package/frontend/src/components/ui/column-node-static.tsx +0 -29
- package/frontend/src/components/ui/column-node.tsx +0 -317
- package/frontend/src/components/ui/command.tsx +0 -182
- package/frontend/src/components/ui/comment-node-static.tsx +0 -15
- package/frontend/src/components/ui/comment-node.tsx +0 -45
- package/frontend/src/components/ui/comment-toolbar-button.tsx +0 -24
- package/frontend/src/components/ui/comment.tsx +0 -618
- package/frontend/src/components/ui/context-menu.tsx +0 -250
- package/frontend/src/components/ui/cursor-overlay.tsx +0 -66
- package/frontend/src/components/ui/date-node-static.tsx +0 -45
- package/frontend/src/components/ui/date-node.tsx +0 -93
- package/frontend/src/components/ui/dialog.tsx +0 -143
- package/frontend/src/components/ui/dropdown-menu.tsx +0 -255
- package/frontend/src/components/ui/dynamic-icon.tsx +0 -12
- package/frontend/src/components/ui/editor-static.tsx +0 -53
- package/frontend/src/components/ui/editor.tsx +0 -130
- package/frontend/src/components/ui/emoji-node.tsx +0 -69
- package/frontend/src/components/ui/emoji-toolbar-button.tsx +0 -628
- package/frontend/src/components/ui/equation-node-static.tsx +0 -98
- package/frontend/src/components/ui/equation-node.tsx +0 -235
- package/frontend/src/components/ui/equation-toolbar-button.tsx +0 -25
- package/frontend/src/components/ui/excalidraw-node.tsx +0 -36
- package/frontend/src/components/ui/export-toolbar-button.tsx +0 -174
- package/frontend/src/components/ui/file-selector.tsx +0 -339
- package/frontend/src/components/ui/floating-toolbar-buttons.tsx +0 -73
- package/frontend/src/components/ui/floating-toolbar.tsx +0 -85
- package/frontend/src/components/ui/font-color-toolbar-button.tsx +0 -831
- package/frontend/src/components/ui/font-size-toolbar-button.tsx +0 -152
- package/frontend/src/components/ui/heading-node-static.tsx +0 -68
- package/frontend/src/components/ui/heading-node.tsx +0 -58
- package/frontend/src/components/ui/highlight-node-static.tsx +0 -11
- package/frontend/src/components/ui/highlight-node.tsx +0 -13
- package/frontend/src/components/ui/history-toolbar-button.tsx +0 -50
- package/frontend/src/components/ui/hr-node-static.tsx +0 -20
- package/frontend/src/components/ui/hr-node.tsx +0 -33
- package/frontend/src/components/ui/import-toolbar-button.tsx +0 -97
- package/frontend/src/components/ui/indent-toolbar-button.tsx +0 -30
- package/frontend/src/components/ui/inline-combobox.tsx +0 -414
- package/frontend/src/components/ui/input.tsx +0 -21
- package/frontend/src/components/ui/insert-toolbar-button.tsx +0 -254
- package/frontend/src/components/ui/kbd-node-static.tsx +0 -15
- package/frontend/src/components/ui/kbd-node.tsx +0 -17
- package/frontend/src/components/ui/layout-header.tsx +0 -35
- package/frontend/src/components/ui/line-height-toolbar-button.tsx +0 -68
- package/frontend/src/components/ui/link-node-static.tsx +0 -21
- package/frontend/src/components/ui/link-node.tsx +0 -39
- package/frontend/src/components/ui/link-toolbar-button.tsx +0 -22
- package/frontend/src/components/ui/link-toolbar.tsx +0 -206
- package/frontend/src/components/ui/list-toolbar-button.tsx +0 -204
- package/frontend/src/components/ui/mark-toolbar-button.tsx +0 -19
- package/frontend/src/components/ui/media-audio-node-static.tsx +0 -17
- package/frontend/src/components/ui/media-audio-node.tsx +0 -39
- package/frontend/src/components/ui/media-embed-node.tsx +0 -136
- package/frontend/src/components/ui/media-file-node-static.tsx +0 -29
- package/frontend/src/components/ui/media-file-node.tsx +0 -47
- package/frontend/src/components/ui/media-image-node-static.tsx +0 -39
- package/frontend/src/components/ui/media-image-node.tsx +0 -80
- package/frontend/src/components/ui/media-placeholder-node.tsx +0 -249
- package/frontend/src/components/ui/media-preview-dialog.tsx +0 -152
- package/frontend/src/components/ui/media-toolbar-button.tsx +0 -225
- package/frontend/src/components/ui/media-toolbar.tsx +0 -115
- package/frontend/src/components/ui/media-upload-toast.tsx +0 -66
- package/frontend/src/components/ui/media-video-node-static.tsx +0 -30
- package/frontend/src/components/ui/media-video-node.tsx +0 -121
- package/frontend/src/components/ui/mention-node-static.tsx +0 -36
- package/frontend/src/components/ui/mention-node.tsx +0 -194
- package/frontend/src/components/ui/mode-toolbar-button.tsx +0 -123
- package/frontend/src/components/ui/more-toolbar-button.tsx +0 -80
- package/frontend/src/components/ui/paragraph-node-static.tsx +0 -13
- package/frontend/src/components/ui/paragraph-node.tsx +0 -15
- package/frontend/src/components/ui/popover.tsx +0 -46
- package/frontend/src/components/ui/resize-handle.tsx +0 -87
- package/frontend/src/components/ui/separator.tsx +0 -28
- package/frontend/src/components/ui/sheet.tsx +0 -139
- package/frontend/src/components/ui/sidebar.tsx +0 -726
- package/frontend/src/components/ui/skeleton.tsx +0 -13
- package/frontend/src/components/ui/slash-node.tsx +0 -233
- package/frontend/src/components/ui/sonner.tsx +0 -38
- package/frontend/src/components/ui/suggestion-node-static.tsx +0 -35
- package/frontend/src/components/ui/suggestion-node.tsx +0 -162
- package/frontend/src/components/ui/suggestion-toolbar-button.tsx +0 -25
- package/frontend/src/components/ui/table-icons.tsx +0 -862
- package/frontend/src/components/ui/table-node-static.tsx +0 -98
- package/frontend/src/components/ui/table-node.tsx +0 -656
- package/frontend/src/components/ui/table-toolbar-button.tsx +0 -264
- package/frontend/src/components/ui/toc-node-static.tsx +0 -92
- package/frontend/src/components/ui/toc-node.tsx +0 -55
- package/frontend/src/components/ui/toggle-node-static.tsx +0 -18
- package/frontend/src/components/ui/toggle-node.tsx +0 -36
- package/frontend/src/components/ui/toggle-toolbar-button.tsx +0 -22
- package/frontend/src/components/ui/toolbar.tsx +0 -387
- package/frontend/src/components/ui/tooltip.tsx +0 -59
- package/frontend/src/components/ui/turn-into-toolbar-button.tsx +0 -188
- package/frontend/src/hooks/use-debounce.ts +0 -18
- package/frontend/src/hooks/use-is-touch-device.ts +0 -24
- package/frontend/src/hooks/use-mobile.ts +0 -19
- package/frontend/src/hooks/use-mounted.ts +0 -11
- package/frontend/src/hooks/use-upload-file.ts +0 -128
- package/frontend/src/index.css +0 -128
- package/frontend/src/layout.tsx +0 -42
- package/frontend/src/lib/markdown-joiner-transform.ts +0 -239
- package/frontend/src/lib/orpc.ts +0 -13
- package/frontend/src/lib/uploadthing.ts +0 -19
- package/frontend/src/lib/utils.ts +0 -6
- package/frontend/src/main.tsx +0 -13
- package/frontend/src/pages/editor.tsx +0 -44
- package/frontend/src/types/docs.d.ts +0 -6
- package/frontend/src/types/global.d.ts +0 -9
- package/frontend/src/types/router.d.ts +0 -4
- package/frontend/tsconfig.app.json +0 -33
- package/frontend/tsconfig.json +0 -10
- package/frontend/tsconfig.node.json +0 -26
- package/frontend/vite.config.ts +0 -14
- package/src/bin/doclific.ts +0 -47
- package/src/core/codebase.ts +0 -39
- package/src/core/docs.ts +0 -90
- package/src/core/git.ts +0 -48
- package/src/server/index.ts +0 -55
- package/src/server/router.ts +0 -65
- package/tsconfig.json +0 -15
- /package/{frontend → dist}/public/logo.svg +0 -0
package/frontend/package.json
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "frontend",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "vite",
|
|
8
|
-
"build": "tsc -b && vite build",
|
|
9
|
-
"lint": "eslint .",
|
|
10
|
-
"preview": "vite preview"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"@ai-sdk/react": "^2.0.28",
|
|
14
|
-
"@ariakit/react": "^0.4.20",
|
|
15
|
-
"@emoji-mart/data": "^1.2.1",
|
|
16
|
-
"@excalidraw/excalidraw": "^0.18.0",
|
|
17
|
-
"@faker-js/faker": "^10.1.0",
|
|
18
|
-
"@mdx-js/react": "^3.1.1",
|
|
19
|
-
"@mdxeditor/editor": "^3.52.1",
|
|
20
|
-
"@orpc/tanstack-query": "^1.12.2",
|
|
21
|
-
"@platejs/ai": "^52.0.11",
|
|
22
|
-
"@platejs/autoformat": "^52.0.11",
|
|
23
|
-
"@platejs/basic-nodes": "^52.0.11",
|
|
24
|
-
"@platejs/basic-styles": "^52.0.11",
|
|
25
|
-
"@platejs/callout": "^52.0.11",
|
|
26
|
-
"@platejs/caption": "^52.0.11",
|
|
27
|
-
"@platejs/code-block": "^52.0.11",
|
|
28
|
-
"@platejs/combobox": "^52.0.14",
|
|
29
|
-
"@platejs/comment": "^52.0.11",
|
|
30
|
-
"@platejs/date": "^52.0.11",
|
|
31
|
-
"@platejs/dnd": "^52.0.11",
|
|
32
|
-
"@platejs/docx": "^52.0.11",
|
|
33
|
-
"@platejs/emoji": "^52.0.14",
|
|
34
|
-
"@platejs/excalidraw": "^52.0.11",
|
|
35
|
-
"@platejs/floating": "^52.0.11",
|
|
36
|
-
"@platejs/indent": "^52.0.11",
|
|
37
|
-
"@platejs/juice": "^52.0.11",
|
|
38
|
-
"@platejs/layout": "^52.0.11",
|
|
39
|
-
"@platejs/link": "^52.0.11",
|
|
40
|
-
"@platejs/list": "^52.0.11",
|
|
41
|
-
"@platejs/markdown": "^52.0.11",
|
|
42
|
-
"@platejs/math": "^52.0.11",
|
|
43
|
-
"@platejs/media": "^52.0.11",
|
|
44
|
-
"@platejs/mention": "^52.0.14",
|
|
45
|
-
"@platejs/resizable": "^52.0.11",
|
|
46
|
-
"@platejs/selection": "^52.0.11",
|
|
47
|
-
"@platejs/slash-command": "^52.0.14",
|
|
48
|
-
"@platejs/suggestion": "^52.0.11",
|
|
49
|
-
"@platejs/table": "^52.0.11",
|
|
50
|
-
"@platejs/toc": "^52.0.11",
|
|
51
|
-
"@platejs/toggle": "^52.0.11",
|
|
52
|
-
"@platejs/yjs": "^52.0.13",
|
|
53
|
-
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
54
|
-
"@radix-ui/react-avatar": "^1.1.11",
|
|
55
|
-
"@radix-ui/react-checkbox": "^1.3.3",
|
|
56
|
-
"@radix-ui/react-context-menu": "^2.2.16",
|
|
57
|
-
"@radix-ui/react-dialog": "^1.1.15",
|
|
58
|
-
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
59
|
-
"@radix-ui/react-popover": "^1.1.15",
|
|
60
|
-
"@radix-ui/react-separator": "^1.1.8",
|
|
61
|
-
"@radix-ui/react-slot": "^1.2.4",
|
|
62
|
-
"@radix-ui/react-toolbar": "^1.1.11",
|
|
63
|
-
"@radix-ui/react-tooltip": "^1.2.8",
|
|
64
|
-
"@tailwindcss/vite": "^4.1.17",
|
|
65
|
-
"@tanstack/react-query": "^5.90.12",
|
|
66
|
-
"@udecode/cn": "^52.0.11",
|
|
67
|
-
"@udecode/plate-common": "^41.0.13",
|
|
68
|
-
"@uploadthing/react": "^7.3.3",
|
|
69
|
-
"ai": "^5.0.28",
|
|
70
|
-
"class-variance-authority": "^0.7.1",
|
|
71
|
-
"clsx": "^2.1.1",
|
|
72
|
-
"cmdk": "^1.1.1",
|
|
73
|
-
"date-fns": "^4.1.0",
|
|
74
|
-
"dedent": "^1.0.0",
|
|
75
|
-
"html2canvas-pro": "^1.5.13",
|
|
76
|
-
"lodash": "^4.17.21",
|
|
77
|
-
"lowlight": "^3.3.0",
|
|
78
|
-
"lucide-react": "^0.560.0",
|
|
79
|
-
"lucide-static": "^0.561.0",
|
|
80
|
-
"next-themes": "^0.4.6",
|
|
81
|
-
"pdf-lib": "^1.17.1",
|
|
82
|
-
"platejs": "^52.0.11",
|
|
83
|
-
"react": "^19.2.0",
|
|
84
|
-
"react-day-picker": "^9.12.0",
|
|
85
|
-
"react-dnd": "^16.0.1",
|
|
86
|
-
"react-dnd-html5-backend": "^16.0.1",
|
|
87
|
-
"react-dom": "^19.2.0",
|
|
88
|
-
"react-lite-youtube-embed": "^3.3.3",
|
|
89
|
-
"react-player": "^3.3.1",
|
|
90
|
-
"react-router": "^7.10.1",
|
|
91
|
-
"react-textarea-autosize": "^8.5.9",
|
|
92
|
-
"react-tweet": "^3.3.0",
|
|
93
|
-
"remark-emoji": "^5.0.2",
|
|
94
|
-
"remark-gfm": "^4.0.1",
|
|
95
|
-
"remark-math": "^6.0.0",
|
|
96
|
-
"shiki": "^3.20.0",
|
|
97
|
-
"slate-react": "^0.120.0",
|
|
98
|
-
"sonner": "^2.0.7",
|
|
99
|
-
"tailwind-merge": "^3.4.0",
|
|
100
|
-
"tailwind-scrollbar-hide": "^4.0.0",
|
|
101
|
-
"tailwindcss": "^4.1.17",
|
|
102
|
-
"uploadthing": "^7.7.4",
|
|
103
|
-
"use-file-picker": "^2.1.2",
|
|
104
|
-
"zod": "^4.1.13"
|
|
105
|
-
},
|
|
106
|
-
"devDependencies": {
|
|
107
|
-
"@eslint/js": "^9.39.1",
|
|
108
|
-
"@types/lodash": "^4.17.21",
|
|
109
|
-
"@types/node": "^24.10.3",
|
|
110
|
-
"@types/react": "^19.2.5",
|
|
111
|
-
"@types/react-dom": "^19.2.3",
|
|
112
|
-
"@vitejs/plugin-react-swc": "^4.2.2",
|
|
113
|
-
"eslint": "^9.39.1",
|
|
114
|
-
"eslint-plugin-react-hooks": "^7.0.1",
|
|
115
|
-
"eslint-plugin-react-refresh": "^0.4.24",
|
|
116
|
-
"globals": "^16.5.0",
|
|
117
|
-
"tw-animate-css": "^1.4.0",
|
|
118
|
-
"typescript": "~5.9.3",
|
|
119
|
-
"typescript-eslint": "^8.46.4",
|
|
120
|
-
"vite": "^7.2.4"
|
|
121
|
-
}
|
|
122
|
-
}
|
package/frontend/src/App.tsx
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ThemeProvider } from "./components/theme-provider"
|
|
2
|
-
import Layout from "./layout"
|
|
3
|
-
import { Routes, Route } from "react-router"
|
|
4
|
-
import { Toaster } from "sonner"
|
|
5
|
-
import Editor from "./pages/editor"
|
|
6
|
-
|
|
7
|
-
function App() {
|
|
8
|
-
return (
|
|
9
|
-
<ThemeProvider defaultTheme="system" storageKey="vite-ui-theme">
|
|
10
|
-
<Layout>
|
|
11
|
-
<Routes>
|
|
12
|
-
<Route path="/" element={<div></div>} />
|
|
13
|
-
<Route path="/*" element={<Editor />} />
|
|
14
|
-
</Routes>
|
|
15
|
-
</Layout>
|
|
16
|
-
<Toaster />
|
|
17
|
-
</ThemeProvider>
|
|
18
|
-
)
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export default App
|
|
@@ -1,393 +0,0 @@
|
|
|
1
|
-
import { ChevronRight, EllipsisVertical, FileIcon, Plus, UserCircle, Search, X } from "lucide-react";
|
|
2
|
-
import * as Icons from "lucide-react";
|
|
3
|
-
import {
|
|
4
|
-
Sidebar,
|
|
5
|
-
SidebarContent,
|
|
6
|
-
SidebarFooter,
|
|
7
|
-
SidebarGroup,
|
|
8
|
-
SidebarGroupContent,
|
|
9
|
-
SidebarGroupLabel,
|
|
10
|
-
SidebarMenu,
|
|
11
|
-
SidebarMenuButton,
|
|
12
|
-
SidebarMenuItem,
|
|
13
|
-
SidebarHeader,
|
|
14
|
-
SidebarMenuSub,
|
|
15
|
-
SidebarMenuSubItem,
|
|
16
|
-
SidebarMenuSubButton,
|
|
17
|
-
} from "@/components/ui/sidebar"
|
|
18
|
-
import { orpcTs } from "@/lib/orpc"
|
|
19
|
-
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"
|
|
20
|
-
import { useState, useRef, useEffect } from "react"
|
|
21
|
-
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, DropdownMenuGroup } from "@/components/ui/dropdown-menu"
|
|
22
|
-
import { Avatar, AvatarFallback } from "@/components/ui/avatar"
|
|
23
|
-
import { useSidebar } from "@/components/ui/sidebar"
|
|
24
|
-
import type { FolderStructure } from "@/types/docs"
|
|
25
|
-
import { DynamicIcon, type LucideIconName } from "./ui/dynamic-icon"
|
|
26
|
-
import { useNavigate } from "react-router"
|
|
27
|
-
import {
|
|
28
|
-
Dialog,
|
|
29
|
-
DialogContent,
|
|
30
|
-
DialogFooter,
|
|
31
|
-
DialogHeader,
|
|
32
|
-
DialogTitle,
|
|
33
|
-
DialogTrigger,
|
|
34
|
-
} from "@/components/ui/dialog"
|
|
35
|
-
import { Button } from "@/components/ui/button"
|
|
36
|
-
import { Input } from "@/components/ui/input"
|
|
37
|
-
import React from "react"
|
|
38
|
-
|
|
39
|
-
function CreateDocDialog({
|
|
40
|
-
parentPath,
|
|
41
|
-
isNested,
|
|
42
|
-
}: {
|
|
43
|
-
parentPath: string
|
|
44
|
-
isNested: boolean
|
|
45
|
-
}) {
|
|
46
|
-
const [open, setOpen] = useState(false)
|
|
47
|
-
const [title, setTitle] = useState("")
|
|
48
|
-
const [selectedIcon, setSelectedIcon] = useState<string>("")
|
|
49
|
-
const [iconSearch, setIconSearch] = useState("")
|
|
50
|
-
const [showIconPicker, setShowIconPicker] = useState(false)
|
|
51
|
-
const iconPickerRef = useRef<HTMLDivElement>(null)
|
|
52
|
-
const queryClient = useQueryClient()
|
|
53
|
-
|
|
54
|
-
// Close icon picker when clicking outside
|
|
55
|
-
useEffect(() => {
|
|
56
|
-
const handleClickOutside = (event: MouseEvent) => {
|
|
57
|
-
if (iconPickerRef.current && !iconPickerRef.current.contains(event.target as Node)) {
|
|
58
|
-
setShowIconPicker(false)
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
if (showIconPicker) {
|
|
62
|
-
document.addEventListener("mousedown", handleClickOutside)
|
|
63
|
-
return () => document.removeEventListener("mousedown", handleClickOutside)
|
|
64
|
-
}
|
|
65
|
-
}, [showIconPicker])
|
|
66
|
-
const createDocMutation = useMutation({
|
|
67
|
-
...orpcTs.docs.createDoc.mutationOptions(),
|
|
68
|
-
onSuccess: () => {
|
|
69
|
-
queryClient.invalidateQueries({ queryKey: orpcTs.docs.getDocs.queryKey() })
|
|
70
|
-
setOpen(false)
|
|
71
|
-
setTitle("")
|
|
72
|
-
setSelectedIcon("")
|
|
73
|
-
setIconSearch("")
|
|
74
|
-
setShowIconPicker(false)
|
|
75
|
-
},
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
const handleSubmit = (e: React.FormEvent) => {
|
|
79
|
-
e.preventDefault()
|
|
80
|
-
createDocMutation.mutate({
|
|
81
|
-
filePath: parentPath,
|
|
82
|
-
title,
|
|
83
|
-
icon: selectedIcon || undefined,
|
|
84
|
-
})
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
const iconNames = Object.keys(Icons).filter((iconName) => iconName.endsWith("Icon") && iconName !== "createLucideIcon").map((iconName) => iconName.replace("Icon", ""))
|
|
88
|
-
|
|
89
|
-
const IconComponent = selectedIcon ? <DynamicIcon name={selectedIcon as LucideIconName} /> : null
|
|
90
|
-
|
|
91
|
-
return (
|
|
92
|
-
<Dialog open={open} onOpenChange={setOpen}>
|
|
93
|
-
<DialogTrigger asChild>
|
|
94
|
-
{isNested ? (
|
|
95
|
-
<SidebarMenuSubButton className="text-muted-foreground hover:text-foreground">
|
|
96
|
-
<Plus className="size-4 !stroke-current" />
|
|
97
|
-
<span className="truncate">New doc</span>
|
|
98
|
-
</SidebarMenuSubButton>
|
|
99
|
-
) : (
|
|
100
|
-
<SidebarMenuButton className="text-muted-foreground stroke-muted-foreground hover:text-foreground hover:stroke-foreground">
|
|
101
|
-
<Plus className="size-4 !stroke-current" />
|
|
102
|
-
<span className="truncate">New doc</span>
|
|
103
|
-
</SidebarMenuButton>
|
|
104
|
-
)}
|
|
105
|
-
</DialogTrigger>
|
|
106
|
-
<DialogContent className="max-w-md">
|
|
107
|
-
<DialogHeader>
|
|
108
|
-
<DialogTitle>Create New Document</DialogTitle>
|
|
109
|
-
</DialogHeader>
|
|
110
|
-
<form onSubmit={handleSubmit}>
|
|
111
|
-
<div className="grid gap-4 py-4">
|
|
112
|
-
<div className="grid gap-2">
|
|
113
|
-
<label htmlFor="title" className="text-sm font-medium">
|
|
114
|
-
Title
|
|
115
|
-
</label>
|
|
116
|
-
<Input
|
|
117
|
-
id="title"
|
|
118
|
-
value={title}
|
|
119
|
-
onChange={(e) => setTitle(e.target.value)}
|
|
120
|
-
placeholder="Document title"
|
|
121
|
-
required
|
|
122
|
-
/>
|
|
123
|
-
</div>
|
|
124
|
-
<div className="grid gap-2">
|
|
125
|
-
<label className="text-sm font-medium">Icon (optional)</label>
|
|
126
|
-
<div className="relative">
|
|
127
|
-
<Button
|
|
128
|
-
type="button"
|
|
129
|
-
variant="outline"
|
|
130
|
-
className="w-full justify-start"
|
|
131
|
-
onClick={() => setShowIconPicker(!showIconPicker)}
|
|
132
|
-
>
|
|
133
|
-
{IconComponent ? (
|
|
134
|
-
<>
|
|
135
|
-
<DynamicIcon name={selectedIcon as LucideIconName} className="size-4 mr-2" />
|
|
136
|
-
<span>{selectedIcon}</span>
|
|
137
|
-
</>
|
|
138
|
-
) : (
|
|
139
|
-
<>
|
|
140
|
-
<FileIcon className="size-4 mr-2" />
|
|
141
|
-
<span>Select icon</span>
|
|
142
|
-
</>
|
|
143
|
-
)}
|
|
144
|
-
</Button>
|
|
145
|
-
{selectedIcon && (
|
|
146
|
-
<button
|
|
147
|
-
type="button"
|
|
148
|
-
onClick={(e) => {
|
|
149
|
-
e.stopPropagation()
|
|
150
|
-
setSelectedIcon("")
|
|
151
|
-
}}
|
|
152
|
-
className="absolute right-2 top-1/2 -translate-y-1/2 p-1 hover:bg-muted rounded"
|
|
153
|
-
>
|
|
154
|
-
<X className="size-3" />
|
|
155
|
-
</button>
|
|
156
|
-
)}
|
|
157
|
-
{showIconPicker && (
|
|
158
|
-
<div ref={iconPickerRef} className="absolute z-10 w-full mt-1 bg-background border rounded-lg shadow-lg p-2 overflow-hidden">
|
|
159
|
-
<div className="relative mb-2">
|
|
160
|
-
<Search className="absolute left-2 top-1/2 -translate-y-1/2 size-4 text-muted-foreground" />
|
|
161
|
-
<Input
|
|
162
|
-
placeholder="Search icons..."
|
|
163
|
-
value={iconSearch}
|
|
164
|
-
onChange={(e) => setIconSearch(e.target.value)}
|
|
165
|
-
className="pl-8"
|
|
166
|
-
/>
|
|
167
|
-
</div>
|
|
168
|
-
<div className="grid grid-cols-6 gap-2 max-h-64 h-full overflow-y-auto">
|
|
169
|
-
{iconNames.filter((iconName) => iconSearch === "" || iconName.toLowerCase().includes(iconSearch.toLowerCase())).map((iconName) => {
|
|
170
|
-
try {
|
|
171
|
-
return (
|
|
172
|
-
<button
|
|
173
|
-
key={iconName}
|
|
174
|
-
type="button"
|
|
175
|
-
onClick={() => {
|
|
176
|
-
setSelectedIcon(iconName)
|
|
177
|
-
setShowIconPicker(false)
|
|
178
|
-
setIconSearch("")
|
|
179
|
-
}}
|
|
180
|
-
className={`p-2 rounded hover:bg-muted transition-colors ${selectedIcon === iconName ? "bg-primary/10 border border-primary" : ""
|
|
181
|
-
}`}
|
|
182
|
-
title={iconName}
|
|
183
|
-
>
|
|
184
|
-
<DynamicIcon name={iconName as LucideIconName} className="size-4 mx-auto" />
|
|
185
|
-
</button>
|
|
186
|
-
)
|
|
187
|
-
} catch {
|
|
188
|
-
return <></>
|
|
189
|
-
}
|
|
190
|
-
})}
|
|
191
|
-
</div>
|
|
192
|
-
</div>
|
|
193
|
-
)}
|
|
194
|
-
</div>
|
|
195
|
-
</div>
|
|
196
|
-
</div>
|
|
197
|
-
<DialogFooter>
|
|
198
|
-
<Button type="button" variant="outline" onClick={() => setOpen(false)}>
|
|
199
|
-
Cancel
|
|
200
|
-
</Button>
|
|
201
|
-
<Button type="submit" disabled={createDocMutation.isPending}>
|
|
202
|
-
{createDocMutation.isPending ? "Creating..." : "Create"}
|
|
203
|
-
</Button>
|
|
204
|
-
</DialogFooter>
|
|
205
|
-
</form>
|
|
206
|
-
</DialogContent>
|
|
207
|
-
</Dialog>
|
|
208
|
-
)
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export function AppSidebar() {
|
|
212
|
-
const navigate = useNavigate()
|
|
213
|
-
const sidebarData = useQuery({
|
|
214
|
-
...orpcTs.git.getRepoInfo.queryOptions(),
|
|
215
|
-
enabled: true,
|
|
216
|
-
})
|
|
217
|
-
const { isMobile } = useSidebar()
|
|
218
|
-
const docsQuery = useQuery({
|
|
219
|
-
...orpcTs.docs.getDocs.queryOptions(),
|
|
220
|
-
enabled: true,
|
|
221
|
-
})
|
|
222
|
-
|
|
223
|
-
const [expandedItems, setExpandedItems] = useState<Set<string>>(new Set())
|
|
224
|
-
|
|
225
|
-
const toggleExpanded = (name: string) => {
|
|
226
|
-
setExpandedItems((prev) => {
|
|
227
|
-
const next = new Set(prev)
|
|
228
|
-
if (next.has(name)) {
|
|
229
|
-
next.delete(name)
|
|
230
|
-
} else {
|
|
231
|
-
next.add(name)
|
|
232
|
-
}
|
|
233
|
-
return next
|
|
234
|
-
})
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
const renderDocItem = (
|
|
238
|
-
doc: FolderStructure,
|
|
239
|
-
fullPath: string,
|
|
240
|
-
isNested: boolean = false,
|
|
241
|
-
index: number = 0,
|
|
242
|
-
totalSiblings: number = 0
|
|
243
|
-
) => {
|
|
244
|
-
const isExpanded = expandedItems.has(fullPath)
|
|
245
|
-
const isLast = index === totalSiblings - 1
|
|
246
|
-
|
|
247
|
-
if (isNested) {
|
|
248
|
-
return (
|
|
249
|
-
<>
|
|
250
|
-
<SidebarMenuSubItem key={fullPath}>
|
|
251
|
-
<SidebarMenuSubButton
|
|
252
|
-
className="group cursor-pointer"
|
|
253
|
-
onClick={() => navigate(`/${fullPath}`)}
|
|
254
|
-
>
|
|
255
|
-
<ChevronRight
|
|
256
|
-
onClick={(e) => {
|
|
257
|
-
e.stopPropagation()
|
|
258
|
-
toggleExpanded(fullPath)
|
|
259
|
-
}}
|
|
260
|
-
className={`size-4 transition-transform ${isExpanded ? "rotate-90" : ""}`}
|
|
261
|
-
/>
|
|
262
|
-
{doc.icon ? <DynamicIcon name={doc.icon as LucideIconName} /> : <FileIcon />}
|
|
263
|
-
<span className="truncate">{doc.title}</span>
|
|
264
|
-
</SidebarMenuSubButton>
|
|
265
|
-
{isExpanded && (
|
|
266
|
-
<SidebarMenuSub>
|
|
267
|
-
{doc.children.map((child, childIndex) => {
|
|
268
|
-
const childPath = `${fullPath}/${child.name}`
|
|
269
|
-
return renderDocItem(child, childPath, true, childIndex, doc.children.length)
|
|
270
|
-
})}
|
|
271
|
-
<SidebarMenuSubItem>
|
|
272
|
-
<CreateDocDialog parentPath={fullPath} isNested={true} />
|
|
273
|
-
</SidebarMenuSubItem>
|
|
274
|
-
</SidebarMenuSub>
|
|
275
|
-
)}
|
|
276
|
-
</SidebarMenuSubItem>
|
|
277
|
-
</>
|
|
278
|
-
)
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
return (
|
|
282
|
-
<React.Fragment key={fullPath}>
|
|
283
|
-
<SidebarMenuItem key={fullPath}>
|
|
284
|
-
<SidebarMenuButton
|
|
285
|
-
className="group cursor-pointer"
|
|
286
|
-
onClick={() => navigate(`/${fullPath}`)}
|
|
287
|
-
>
|
|
288
|
-
<ChevronRight
|
|
289
|
-
onClick={(e) => {
|
|
290
|
-
e.stopPropagation()
|
|
291
|
-
toggleExpanded(fullPath)
|
|
292
|
-
}}
|
|
293
|
-
className={`size-4 transition-transform ${isExpanded ? "rotate-90" : ""}`}
|
|
294
|
-
/>
|
|
295
|
-
{doc.icon ? <DynamicIcon name={doc.icon as LucideIconName} /> : <FileIcon />}
|
|
296
|
-
<span className="truncate font-medium">{doc.title}</span>
|
|
297
|
-
</SidebarMenuButton>
|
|
298
|
-
{isExpanded && (
|
|
299
|
-
<SidebarMenuSub>
|
|
300
|
-
{doc.children.map((child, childIndex) => {
|
|
301
|
-
const childPath = `${fullPath}/${child.name}`
|
|
302
|
-
return renderDocItem(child, childPath, true, childIndex, doc.children.length)
|
|
303
|
-
})}
|
|
304
|
-
<SidebarMenuSubItem>
|
|
305
|
-
<CreateDocDialog parentPath={fullPath} isNested={true} />
|
|
306
|
-
</SidebarMenuSubItem>
|
|
307
|
-
</SidebarMenuSub>
|
|
308
|
-
)}
|
|
309
|
-
</SidebarMenuItem>
|
|
310
|
-
{isLast && (
|
|
311
|
-
<SidebarMenuItem>
|
|
312
|
-
<CreateDocDialog parentPath="" isNested={false} />
|
|
313
|
-
</SidebarMenuItem>
|
|
314
|
-
)}
|
|
315
|
-
</React.Fragment>
|
|
316
|
-
)
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
const docsMenu = (docs: FolderStructure[]): React.ReactNode[] => {
|
|
320
|
-
return docs.map((doc, index) => renderDocItem(doc, doc.name, false, index, docs.length))
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
return (
|
|
325
|
-
<Sidebar variant="inset">
|
|
326
|
-
<SidebarHeader>
|
|
327
|
-
<span className="text-2xl font-extrabold italic" style={{ fontFamily: 'Google Sans Code' }}>Doclific</span>
|
|
328
|
-
</SidebarHeader>
|
|
329
|
-
<SidebarContent>
|
|
330
|
-
<SidebarGroup>
|
|
331
|
-
<SidebarGroupLabel>{sidebarData.data?.repositoryName} ({sidebarData.data?.repositoryBranch})</SidebarGroupLabel>
|
|
332
|
-
<SidebarGroupContent>
|
|
333
|
-
<SidebarMenu>
|
|
334
|
-
{docsMenu(docsQuery.data ?? [])}
|
|
335
|
-
</SidebarMenu>
|
|
336
|
-
</SidebarGroupContent>
|
|
337
|
-
</SidebarGroup>
|
|
338
|
-
</SidebarContent>
|
|
339
|
-
<SidebarFooter>
|
|
340
|
-
<SidebarMenu>
|
|
341
|
-
<SidebarMenuItem>
|
|
342
|
-
<DropdownMenu>
|
|
343
|
-
<DropdownMenuTrigger asChild>
|
|
344
|
-
<SidebarMenuButton
|
|
345
|
-
size="lg"
|
|
346
|
-
className="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground"
|
|
347
|
-
>
|
|
348
|
-
<Avatar className="h-8 w-8 rounded-lg grayscale">
|
|
349
|
-
<AvatarFallback className="rounded-lg">{sidebarData.data?.user?.charAt(0).toUpperCase()}</AvatarFallback>
|
|
350
|
-
</Avatar>
|
|
351
|
-
<div className="grid flex-1 text-left text-sm leading-tight">
|
|
352
|
-
<span className="truncate font-medium">{sidebarData.data?.user}</span>
|
|
353
|
-
<span className="text-muted-foreground truncate text-xs">
|
|
354
|
-
{sidebarData.data?.userEmail ?? sidebarData.data?.user}
|
|
355
|
-
</span>
|
|
356
|
-
</div>
|
|
357
|
-
<EllipsisVertical className="ml-auto size-4" />
|
|
358
|
-
</SidebarMenuButton>
|
|
359
|
-
</DropdownMenuTrigger>
|
|
360
|
-
<DropdownMenuContent
|
|
361
|
-
className="w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg"
|
|
362
|
-
side={isMobile ? "bottom" : "right"}
|
|
363
|
-
align="end"
|
|
364
|
-
sideOffset={4}
|
|
365
|
-
>
|
|
366
|
-
<DropdownMenuLabel className="p-0 font-normal">
|
|
367
|
-
<div className="flex items-center gap-2 px-1 py-1.5 text-left text-sm">
|
|
368
|
-
<Avatar className="h-8 w-8 rounded-lg">
|
|
369
|
-
<AvatarFallback className="rounded-lg">{sidebarData.data?.user?.charAt(0).toUpperCase()}</AvatarFallback>
|
|
370
|
-
</Avatar>
|
|
371
|
-
<div className="grid flex-1 text-left text-sm leading-tight">
|
|
372
|
-
<span className="truncate font-medium">{sidebarData.data?.user}</span>
|
|
373
|
-
<span className="text-muted-foreground truncate text-xs">
|
|
374
|
-
{sidebarData.data?.userEmail ?? sidebarData.data?.user}
|
|
375
|
-
</span>
|
|
376
|
-
</div>
|
|
377
|
-
</div>
|
|
378
|
-
</DropdownMenuLabel>
|
|
379
|
-
<DropdownMenuSeparator />
|
|
380
|
-
<DropdownMenuGroup>
|
|
381
|
-
<DropdownMenuItem>
|
|
382
|
-
<UserCircle className="mr-2 size-4" />
|
|
383
|
-
Account
|
|
384
|
-
</DropdownMenuItem>
|
|
385
|
-
</DropdownMenuGroup>
|
|
386
|
-
</DropdownMenuContent>
|
|
387
|
-
</DropdownMenu>
|
|
388
|
-
</SidebarMenuItem>
|
|
389
|
-
</SidebarMenu>
|
|
390
|
-
</SidebarFooter>
|
|
391
|
-
</Sidebar>
|
|
392
|
-
)
|
|
393
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { BaseAlignKit } from './plugins/align-base-kit';
|
|
2
|
-
import { BaseBasicBlocksKit } from './plugins/basic-blocks-base-kit';
|
|
3
|
-
import { BaseBasicMarksKit } from './plugins/basic-marks-base-kit';
|
|
4
|
-
import { BaseCalloutKit } from './plugins/callout-base-kit';
|
|
5
|
-
import { BaseCodeBlockKit } from './plugins/code-block-base-kit';
|
|
6
|
-
import { BaseColumnKit } from './plugins/column-base-kit';
|
|
7
|
-
import { BaseCommentKit } from './plugins/comment-base-kit';
|
|
8
|
-
import { BaseDateKit } from './plugins/date-base-kit';
|
|
9
|
-
import { BaseFontKit } from './plugins/font-base-kit';
|
|
10
|
-
import { BaseLineHeightKit } from './plugins/line-height-base-kit';
|
|
11
|
-
import { BaseLinkKit } from './plugins/link-base-kit';
|
|
12
|
-
import { BaseListKit } from './plugins/list-base-kit';
|
|
13
|
-
import { MarkdownKit } from './plugins/markdown-kit';
|
|
14
|
-
import { BaseMathKit } from './plugins/math-base-kit';
|
|
15
|
-
import { BaseMediaKit } from './plugins/media-base-kit';
|
|
16
|
-
import { BaseMentionKit } from './plugins/mention-base-kit';
|
|
17
|
-
import { BaseSuggestionKit } from './plugins/suggestion-base-kit';
|
|
18
|
-
import { BaseTableKit } from './plugins/table-base-kit';
|
|
19
|
-
import { BaseTocKit } from './plugins/toc-base-kit';
|
|
20
|
-
import { BaseToggleKit } from './plugins/toggle-base-kit';
|
|
21
|
-
|
|
22
|
-
export const BaseEditorKit = [
|
|
23
|
-
...BaseBasicBlocksKit,
|
|
24
|
-
...BaseCodeBlockKit,
|
|
25
|
-
...BaseTableKit,
|
|
26
|
-
...BaseToggleKit,
|
|
27
|
-
...BaseTocKit,
|
|
28
|
-
...BaseMediaKit,
|
|
29
|
-
...BaseCalloutKit,
|
|
30
|
-
...BaseColumnKit,
|
|
31
|
-
...BaseMathKit,
|
|
32
|
-
...BaseDateKit,
|
|
33
|
-
...BaseLinkKit,
|
|
34
|
-
...BaseMentionKit,
|
|
35
|
-
...BaseBasicMarksKit,
|
|
36
|
-
...BaseFontKit,
|
|
37
|
-
...BaseListKit,
|
|
38
|
-
...BaseAlignKit,
|
|
39
|
-
...BaseLineHeightKit,
|
|
40
|
-
...BaseCommentKit,
|
|
41
|
-
...BaseSuggestionKit,
|
|
42
|
-
...MarkdownKit,
|
|
43
|
-
];
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { type Value, TrailingBlockPlugin } from 'platejs';
|
|
4
|
-
import { type TPlateEditor, useEditorRef } from 'platejs/react';
|
|
5
|
-
|
|
6
|
-
import { AlignKit } from './plugins/align-kit';
|
|
7
|
-
import { AutoformatKit } from './plugins/autoformat-kit';
|
|
8
|
-
import { BasicBlocksKit } from './plugins/basic-blocks-kit';
|
|
9
|
-
import { BasicMarksKit } from './plugins/basic-marks-kit';
|
|
10
|
-
import { BlockMenuKit } from './plugins/block-menu-kit';
|
|
11
|
-
import { BlockPlaceholderKit } from './plugins/block-placeholder-kit';
|
|
12
|
-
import { CalloutKit } from './plugins/callout-kit';
|
|
13
|
-
import { CodeBlockKit } from './plugins/code-block-kit';
|
|
14
|
-
import { ColumnKit } from './plugins/column-kit';
|
|
15
|
-
import { CommentKit } from './plugins/comment-kit';
|
|
16
|
-
import { CursorOverlayKit } from './plugins/cursor-overlay-kit';
|
|
17
|
-
import { DateKit } from './plugins/date-kit';
|
|
18
|
-
import { DiscussionKit } from './plugins/discussion-kit';
|
|
19
|
-
import { DndKit } from './plugins/dnd-kit';
|
|
20
|
-
import { DocxKit } from './plugins/docx-kit';
|
|
21
|
-
import { EmojiKit } from './plugins/emoji-kit';
|
|
22
|
-
import { ExitBreakKit } from './plugins/exit-break-kit';
|
|
23
|
-
import { FloatingToolbarKit } from './plugins/floating-toolbar-kit';
|
|
24
|
-
import { FontKit } from './plugins/font-kit';
|
|
25
|
-
import { LineHeightKit } from './plugins/line-height-kit';
|
|
26
|
-
import { LinkKit } from './plugins/link-kit';
|
|
27
|
-
import { ListKit } from './plugins/list-kit';
|
|
28
|
-
import { MarkdownKit } from './plugins/markdown-kit';
|
|
29
|
-
import { MathKit } from './plugins/math-kit';
|
|
30
|
-
import { MediaKit } from './plugins/media-kit';
|
|
31
|
-
import { MentionKit } from './plugins/mention-kit';
|
|
32
|
-
import { SlashKit } from './plugins/slash-kit';
|
|
33
|
-
import { SuggestionKit } from './plugins/suggestion-kit';
|
|
34
|
-
import { TableKit } from './plugins/table-kit';
|
|
35
|
-
import { TocKit } from './plugins/toc-kit';
|
|
36
|
-
import { ToggleKit } from './plugins/toggle-kit';
|
|
37
|
-
import { CodebaseSnippetPlugin } from './plugins/codebase-kit';
|
|
38
|
-
|
|
39
|
-
export const EditorKit = [
|
|
40
|
-
...BlockMenuKit,
|
|
41
|
-
|
|
42
|
-
// Elements
|
|
43
|
-
...BasicBlocksKit,
|
|
44
|
-
...CodeBlockKit,
|
|
45
|
-
...TableKit,
|
|
46
|
-
...ToggleKit,
|
|
47
|
-
...TocKit,
|
|
48
|
-
...MediaKit,
|
|
49
|
-
...CalloutKit,
|
|
50
|
-
...ColumnKit,
|
|
51
|
-
...MathKit,
|
|
52
|
-
...DateKit,
|
|
53
|
-
...LinkKit,
|
|
54
|
-
...MentionKit,
|
|
55
|
-
|
|
56
|
-
// Marks
|
|
57
|
-
...BasicMarksKit,
|
|
58
|
-
...FontKit,
|
|
59
|
-
|
|
60
|
-
// Block Style
|
|
61
|
-
...ListKit,
|
|
62
|
-
...AlignKit,
|
|
63
|
-
...LineHeightKit,
|
|
64
|
-
|
|
65
|
-
// Collaboration
|
|
66
|
-
...DiscussionKit,
|
|
67
|
-
...CommentKit,
|
|
68
|
-
...SuggestionKit,
|
|
69
|
-
|
|
70
|
-
// Editing
|
|
71
|
-
...SlashKit,
|
|
72
|
-
...AutoformatKit,
|
|
73
|
-
...CursorOverlayKit,
|
|
74
|
-
...DndKit,
|
|
75
|
-
...EmojiKit,
|
|
76
|
-
...ExitBreakKit,
|
|
77
|
-
TrailingBlockPlugin,
|
|
78
|
-
|
|
79
|
-
// Parsers
|
|
80
|
-
...DocxKit,
|
|
81
|
-
...MarkdownKit,
|
|
82
|
-
|
|
83
|
-
// UI
|
|
84
|
-
...BlockPlaceholderKit,
|
|
85
|
-
...FloatingToolbarKit,
|
|
86
|
-
|
|
87
|
-
// Custom
|
|
88
|
-
CodebaseSnippetPlugin,
|
|
89
|
-
];
|
|
90
|
-
|
|
91
|
-
export type MyEditor = TPlateEditor<Value, (typeof EditorKit)[number]>;
|
|
92
|
-
|
|
93
|
-
export const useEditor = () => useEditorRef<MyEditor>();
|