@bud.sh/app 0.1.0 → 0.3.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/dist/client/assets/{index-sj6mWw9-.js → index-GPPa1XPO.js} +2 -2
- package/dist/client/assets/workspace-CznMN7F6.js +2 -0
- package/dist/client/index.html +1 -1
- package/dist/hosted/hosted.js +233 -38
- package/dist/node/index.js +95 -0
- package/dist/node-host/assets/abap-LtYK6g-v.js +3 -0
- package/dist/node-host/assets/actionscript-3-CfsDl31I.js +3 -0
- package/dist/node-host/assets/ada-CvTdxb4T.js +3 -0
- package/dist/node-host/assets/ahk-HN_I_y_3.js +3 -0
- package/dist/node-host/assets/ahk2-bJ5Wm9-K.js +3 -0
- package/dist/node-host/assets/andromeeda-BASpqCeJ.js +4 -0
- package/dist/node-host/assets/angular-html-C4SmZqv0.js +33 -0
- package/dist/node-host/assets/angular-ts-X1i_WOxI.js +27 -0
- package/dist/node-host/assets/apache-BIl2qPOf.js +3 -0
- package/dist/node-host/assets/apex-CybrBQ0z.js +3 -0
- package/dist/node-host/assets/api_vite-DSBC5Nzy.js +5 -0
- package/dist/node-host/assets/apl-CDTyNgE2.js +17 -0
- package/dist/node-host/assets/applescript-CJ80B5XJ.js +3 -0
- package/dist/node-host/assets/ara-IxnQjO6j.js +3 -0
- package/dist/node-host/assets/asciidoc-xKuVlNk6.js +3 -0
- package/dist/node-host/assets/asm-wBDSgBbA.js +3 -0
- package/dist/node-host/assets/astro-BiZFCPSt.js +19 -0
- package/dist/node-host/assets/aurora-x-DugsLcii.js +4 -0
- package/dist/node-host/assets/awk-D6dA05Ye.js +3 -0
- package/dist/node-host/assets/ayu-dark-BT3qdi3o.js +4 -0
- package/dist/node-host/assets/ayu-light-BVZyHoh9.js +4 -0
- package/dist/node-host/assets/ayu-mirage-XFwUVZQZ.js +4 -0
- package/dist/node-host/assets/ballerina-DIdXD2KH.js +3 -0
- package/dist/node-host/assets/bat-Dx8nnxXE.js +3 -0
- package/dist/node-host/assets/beancount-BG2UQN2D.js +3 -0
- package/dist/node-host/assets/berry-CgA2ea0_.js +3 -0
- package/dist/node-host/assets/bibtex-BzgdqG3s.js +3 -0
- package/dist/node-host/assets/bicep-CZ338dSk.js +3 -0
- package/dist/node-host/assets/bird2-BMprQDNV.js +3 -0
- package/dist/node-host/assets/blade-cZjv4Qad.js +21 -0
- package/dist/node-host/assets/bsl-Bh8bzcoy.js +6 -0
- package/dist/node-host/assets/build-Dn-L17Oj.js +5372 -0
- package/dist/node-host/assets/c-BXsbGxlp.js +6 -0
- package/dist/node-host/assets/c3-u0qNrniV.js +3 -0
- package/dist/node-host/assets/cadence-B1ELWULD.js +3 -0
- package/dist/node-host/assets/cairo-BsQhEq3R.js +6 -0
- package/dist/node-host/assets/canvas-BZhzizzt.js +1066 -0
- package/dist/node-host/assets/catppuccin-frappe-D20KODDN.js +4 -0
- package/dist/node-host/assets/catppuccin-latte-eGLVHIUJ.js +4 -0
- package/dist/node-host/assets/catppuccin-macchiato-bQGch4PY.js +4 -0
- package/dist/node-host/assets/catppuccin-mocha-Bes8-0Mr.js +4 -0
- package/dist/node-host/assets/chapel-cEZNBFmv.js +6 -0
- package/dist/node-host/assets/clarity-BkOxTQMf.js +3 -0
- package/dist/node-host/assets/clojure-DDsQ0FaV.js +3 -0
- package/dist/node-host/assets/cloneFileDiffMetadata-C1BcNpxN.js +3075 -0
- package/dist/node-host/assets/cmake-DPsCB_V6.js +3 -0
- package/dist/node-host/assets/cobol-BpMD18Rr.js +11 -0
- package/dist/node-host/assets/codeowners-CxEKPWu0.js +3 -0
- package/dist/node-host/assets/codeql-BwdvwJnv.js +3 -0
- package/dist/node-host/assets/coffee-BX_u-2R1.js +6 -0
- package/dist/node-host/assets/comment-data-nUlI0szN.js +92501 -0
- package/dist/node-host/assets/common-lisp-DJtwvW4V.js +3 -0
- package/dist/node-host/assets/coq-Byd42hNw.js +3 -0
- package/dist/node-host/assets/cpp-DjJRL98I.js +22 -0
- package/dist/node-host/assets/crystal-Cz-dKioR.js +19 -0
- package/dist/node-host/assets/csharp-Cx443ZdC.js +3 -0
- package/dist/node-host/assets/css-CWNyyZRg.js +6 -0
- package/dist/node-host/assets/csv-DqIVFkK7.js +3 -0
- package/dist/node-host/assets/cue-B5KneM5p.js +3 -0
- package/dist/node-host/assets/cypher-D8Bb8Cq2.js +3 -0
- package/dist/node-host/assets/d-BQY8TDgQ.js +3 -0
- package/dist/node-host/assets/dark-plus-BGuiqa1B.js +4 -0
- package/dist/node-host/assets/dart-BZ3YsgDB.js +3 -0
- package/dist/node-host/assets/dax-S-Noo-ku.js +3 -0
- package/dist/node-host/assets/desktop-BgOb7Aj4.js +3 -0
- package/dist/node-host/assets/diff-Blb4MjsC.js +3 -0
- package/dist/node-host/assets/dist-CVXhIZqO.js +6659 -0
- package/dist/node-host/assets/docker-PC1tuYpa.js +3 -0
- package/dist/node-host/assets/dotenv-BNWDqzYB.js +3 -0
- package/dist/node-host/assets/dracula-0CVA2XY5.js +4 -0
- package/dist/node-host/assets/dracula-soft-Dk9bpbVU.js +4 -0
- package/dist/node-host/assets/dream-maker-CngiPd8U.js +3 -0
- package/dist/node-host/assets/edge-D1_nghia.js +13 -0
- package/dist/node-host/assets/edit-DjpTbnEc.js +9788 -0
- package/dist/node-host/assets/elixir-x6BMZ6zW.js +6 -0
- package/dist/node-host/assets/elm-CiAjb3qf.js +6 -0
- package/dist/node-host/assets/emacs-lisp-DPCJASlD.js +3 -0
- package/dist/node-host/assets/erb-DzXTnEFa.js +11 -0
- package/dist/node-host/assets/erlang-DALBVNgL.js +6 -0
- package/dist/node-host/assets/everforest-dark-CRjTbhh5.js +4 -0
- package/dist/node-host/assets/everforest-light-CEeYFLn8.js +4 -0
- package/dist/node-host/assets/fennel-B3wtZRne.js +3 -0
- package/dist/node-host/assets/files-CTzcWGjb.js +3771 -0
- package/dist/node-host/assets/fish-D7qAeWQz.js +3 -0
- package/dist/node-host/assets/fluent-BjfpB34g.js +3 -0
- package/dist/node-host/assets/fortran-fixed-form-BbzsUHx4.js +6 -0
- package/dist/node-host/assets/fortran-free-form-yxJ7igsv.js +3 -0
- package/dist/node-host/assets/fsharp-D2o1Vyx0.js +6 -0
- package/dist/node-host/assets/gdresource-aTcOcjSd.js +11 -0
- package/dist/node-host/assets/gdscript-CSSSWtkL.js +3 -0
- package/dist/node-host/assets/gdshader-D7JfdFV3.js +3 -0
- package/dist/node-host/assets/genie-DnK2KWIP.js +3 -0
- package/dist/node-host/assets/gherkin-D6Lr12YQ.js +3 -0
- package/dist/node-host/assets/git-commit-BU1ZeqU-.js +6 -0
- package/dist/node-host/assets/git-rebase-BBwLmuqc.js +6 -0
- package/dist/node-host/assets/github-dark-BXgKmOw_.js +4 -0
- package/dist/node-host/assets/github-dark-default-DzJQXksd.js +4 -0
- package/dist/node-host/assets/github-dark-dimmed-B1pEmGtS.js +4 -0
- package/dist/node-host/assets/github-dark-high-contrast-BkHIa6jc.js +4 -0
- package/dist/node-host/assets/github-light-BKRlUbaB.js +4 -0
- package/dist/node-host/assets/github-light-default-BU3eYkzs.js +4 -0
- package/dist/node-host/assets/github-light-high-contrast-B3MumDcI.js +4 -0
- package/dist/node-host/assets/gleam-CTllUdfC.js +3 -0
- package/dist/node-host/assets/glimmer-js-Cr4KUylv.js +15 -0
- package/dist/node-host/assets/glimmer-ts-W_3bhuUU.js +15 -0
- package/dist/node-host/assets/glsl-CV8OarLe.js +8 -0
- package/dist/node-host/assets/gn-CpIn4Dcw.js +3 -0
- package/dist/node-host/assets/gnuplot-DgWvVXI8.js +3 -0
- package/dist/node-host/assets/go-aXtTCanQ.js +3 -0
- package/dist/node-host/assets/graphql-BzQEBhBd.js +17 -0
- package/dist/node-host/assets/groovy-Bw2Ku4bU.js +3 -0
- package/dist/node-host/assets/gruvbox-dark-hard-B0ecF443.js +4 -0
- package/dist/node-host/assets/gruvbox-dark-medium-BQnpC39k.js +4 -0
- package/dist/node-host/assets/gruvbox-dark-soft-DFZUgESr.js +4 -0
- package/dist/node-host/assets/gruvbox-light-hard-CuB_LOJr.js +4 -0
- package/dist/node-host/assets/gruvbox-light-medium-idDHgxjs.js +4 -0
- package/dist/node-host/assets/gruvbox-light-soft-CfWH49MY.js +4 -0
- package/dist/node-host/assets/hack-DhYZEMlu.js +11 -0
- package/dist/node-host/assets/haml-CRid5kR3.js +13 -0
- package/dist/node-host/assets/handlebars-Sm6kCGmL.js +15 -0
- package/dist/node-host/assets/haskell-CfGsE1Cf.js +3 -0
- package/dist/node-host/assets/haxe-QaqXWmIB.js +3 -0
- package/dist/node-host/assets/hcl-DHg_Osgo.js +3 -0
- package/dist/node-host/assets/hjson-Cuaphql8.js +3 -0
- package/dist/node-host/assets/hlsl-BJLUNfne.js +3 -0
- package/dist/node-host/assets/horizon-bright-Ba6M8QSV.js +4 -0
- package/dist/node-host/assets/horizon-h92C5OlZ.js +4 -0
- package/dist/node-host/assets/houston-EQnPegWq.js +4 -0
- package/dist/node-host/assets/html-derivative-Cm8plTfc.js +6 -0
- package/dist/node-host/assets/html-j1vihRKA.js +13 -0
- package/dist/node-host/assets/http-BZNc4yhO.js +15 -0
- package/dist/node-host/assets/hurl-O8ckTHPH.js +13 -0
- package/dist/node-host/assets/hxml-9hvSHCPQ.js +6 -0
- package/dist/node-host/assets/hy-CJKxDzbh.js +3 -0
- package/dist/node-host/assets/imba-96qKoJCa.js +3 -0
- package/dist/node-host/assets/ini-C24lZfdM.js +3 -0
- package/dist/node-host/assets/java-CFxSaKyu.js +6 -0
- package/dist/node-host/assets/javascript-D44WgUBn.js +6 -0
- package/dist/node-host/assets/jinja-BkVH86If.js +10 -0
- package/dist/node-host/assets/jison-DOInKsmT.js +6 -0
- package/dist/node-host/assets/jiti-CjBwKumX.js +5461 -0
- package/dist/node-host/assets/json-CnGl9idC.js +6 -0
- package/dist/node-host/assets/json5-xULSgPQI.js +3 -0
- package/dist/node-host/assets/jsonc-Cu6rqcrJ.js +3 -0
- package/dist/node-host/assets/jsonl-Bp0qqr10.js +3 -0
- package/dist/node-host/assets/jsonnet-BafgE6cE.js +3 -0
- package/dist/node-host/assets/jssm-Dx5A5sBR.js +3 -0
- package/dist/node-host/assets/jsx-Dv6553c2.js +6 -0
- package/dist/node-host/assets/julia-CnoY-eZu.js +17 -0
- package/dist/node-host/assets/just-rCgUmVkD.js +19 -0
- package/dist/node-host/assets/kanagawa-dragon-DgDvwi3B.js +4 -0
- package/dist/node-host/assets/kanagawa-lotus-BgoQro20.js +4 -0
- package/dist/node-host/assets/kanagawa-wave-DgXEowHs.js +4 -0
- package/dist/node-host/assets/kdl-DkTyxPcj.js +3 -0
- package/dist/node-host/assets/kotlin-BHE8CoV9.js +3 -0
- package/dist/node-host/assets/kusto-6FdaWTzR.js +3 -0
- package/dist/node-host/assets/laserwave-IxBH_3yW.js +4 -0
- package/dist/node-host/assets/latex-DTvJHHg_.js +6 -0
- package/dist/node-host/assets/lean-BwOKScIt.js +3 -0
- package/dist/node-host/assets/less-BzbdhFUi.js +3 -0
- package/dist/node-host/assets/lib-BzDu3tbz.js +17484 -0
- package/dist/node-host/assets/light-plus-S8JBx6is.js +4 -0
- package/dist/node-host/assets/liquid-praBF2DO.js +15 -0
- package/dist/node-host/assets/llvm-ZNG_yAr9.js +3 -0
- package/dist/node-host/assets/log-Dad54gsi.js +3 -0
- package/dist/node-host/assets/logo-DTXV8SKw.js +3 -0
- package/dist/node-host/assets/lru-C0_oUet4.js +134 -0
- package/dist/node-host/assets/lua-CiYoSQn2.js +8 -0
- package/dist/node-host/assets/luau-DlImmvOM.js +3 -0
- package/dist/node-host/assets/main-D0ab5M4V.js +2353 -0
- package/dist/node-host/assets/make-B2ukzWs3.js +3 -0
- package/dist/node-host/assets/markdown-CkmxmzqY.js +3 -0
- package/dist/node-host/assets/marko-Din1W3ot.js +15 -0
- package/dist/node-host/assets/material-theme-D1f3HBq-.js +4 -0
- package/dist/node-host/assets/material-theme-darker-ExzYhT0j.js +4 -0
- package/dist/node-host/assets/material-theme-lighter-D6gH9nnA.js +4 -0
- package/dist/node-host/assets/material-theme-ocean-D1w5BPAa.js +4 -0
- package/dist/node-host/assets/material-theme-palenight-CkqWmVpF.js +4 -0
- package/dist/node-host/assets/matlab-CfRK6IMC.js +3 -0
- package/dist/node-host/assets/mdc-DrUS0kOP.js +13 -0
- package/dist/node-host/assets/mdx-BK9ZufRc.js +3 -0
- package/dist/node-host/assets/mermaid-ItFqCK9s.js +3 -0
- package/dist/node-host/assets/min-dark-npsJH98j.js +4 -0
- package/dist/node-host/assets/min-light-DUk1XsVt.js +4 -0
- package/dist/node-host/assets/mipsasm-EL46Y4Xg.js +3 -0
- package/dist/node-host/assets/mojo-CsUSYzsu.js +3 -0
- package/dist/node-host/assets/monokai-CfFRWUNl.js +4 -0
- package/dist/node-host/assets/moonbit-BuY4M1CG.js +3 -0
- package/dist/node-host/assets/move-B-o8dn0N.js +3 -0
- package/dist/node-host/assets/narrat-D9rrR0H5.js +3 -0
- package/dist/node-host/assets/nextflow-ByPelpfh.js +6 -0
- package/dist/node-host/assets/nextflow-groovy-kiH-pxwE.js +3 -0
- package/dist/node-host/assets/nginx-CqxQjy7t.js +6 -0
- package/dist/node-host/assets/night-owl-BS7V-av_.js +4 -0
- package/dist/node-host/assets/night-owl-light-CZtRawYE.js +4 -0
- package/dist/node-host/assets/nim-BJfyW_Eo.js +21 -0
- package/dist/node-host/assets/nix-NHxlegoK.js +7 -0
- package/dist/node-host/assets/node-CaLaDAar.js +783 -0
- package/dist/node-host/assets/nord-BFh54Nqz.js +4 -0
- package/dist/node-host/assets/nsis-C3tUpeAt.js +3 -0
- package/dist/node-host/assets/nushell-Dx3871HW.js +3 -0
- package/dist/node-host/assets/objective-c-6dJF64Dt.js +3 -0
- package/dist/node-host/assets/objective-cpp-_ooRQ-PY.js +3 -0
- package/dist/node-host/assets/ocaml-vm1Y8An6.js +3 -0
- package/dist/node-host/assets/odin-vjOJSyfV.js +3 -0
- package/dist/node-host/assets/one-dark-pro-zDovGosB.js +4 -0
- package/dist/node-host/assets/one-light-gmHK3iK6.js +4 -0
- package/dist/node-host/assets/openscad-jn-f1Ocl.js +3 -0
- package/dist/node-host/assets/org-kbyZnkNe.js +101 -0
- package/dist/node-host/assets/pages-0aWH7z1j.js +578 -0
- package/dist/node-host/assets/pascal-D8-gNZ2I.js +3 -0
- package/dist/node-host/assets/perl-Ck21ZEIA.js +17 -0
- package/dist/node-host/assets/php-BI2xxNig.js +19 -0
- package/dist/node-host/assets/pierre-dark-DDWDl8g6.js +4 -0
- package/dist/node-host/assets/pierre-dark-protanopia-deuteranopia-C35UMuvO.js +4 -0
- package/dist/node-host/assets/pierre-dark-soft-Bb-4-biO.js +4 -0
- package/dist/node-host/assets/pierre-dark-tritanopia-CIJISGWF.js +4 -0
- package/dist/node-host/assets/pierre-dark-vibrant-8oZzB3gw.js +4 -0
- package/dist/node-host/assets/pierre-light-CWhW4NrH.js +4 -0
- package/dist/node-host/assets/pierre-light-protanopia-deuteranopia-u0U7N4Hn.js +4 -0
- package/dist/node-host/assets/pierre-light-soft-BCU6fuhO.js +4 -0
- package/dist/node-host/assets/pierre-light-tritanopia-3c8Yx3co.js +4 -0
- package/dist/node-host/assets/pierre-light-vibrant-Cwh332o_.js +4 -0
- package/dist/node-host/assets/pkl-C7lWzykI.js +3 -0
- package/dist/node-host/assets/plastic-DtdaCjub.js +4 -0
- package/dist/node-host/assets/plsql-DCNXypXO.js +3 -0
- package/dist/node-host/assets/po-IjpR1yHO.js +3 -0
- package/dist/node-host/assets/poimandres-Hdda6aHK.js +4 -0
- package/dist/node-host/assets/polar-4pN1JrJ8.js +3 -0
- package/dist/node-host/assets/postcss-0FnF2XR3.js +5833 -0
- package/dist/node-host/assets/postcss-D1gKt4z_.js +3 -0
- package/dist/node-host/assets/postcss-import-D5DErX4i.js +445 -0
- package/dist/node-host/assets/powerquery-SrvS_NBM.js +3 -0
- package/dist/node-host/assets/powershell-DvPkO2jl.js +3 -0
- package/dist/node-host/assets/prisma-4G_BaF_i.js +3 -0
- package/dist/node-host/assets/project-branches-1zs_0J_y.js +600 -0
- package/dist/node-host/assets/project-thread-links-LpUAGcDr.js +241 -0
- package/dist/node-host/assets/prolog-Bacii3Ue.js +3 -0
- package/dist/node-host/assets/prompt-CH6TK0bC-ZEO69UbU.js +885 -0
- package/dist/node-host/assets/proto-ClkOcAW0.js +3 -0
- package/dist/node-host/assets/pug-Du-dOfS3.js +13 -0
- package/dist/node-host/assets/puppet-CQlPp728.js +3 -0
- package/dist/node-host/assets/purescript-CLpaGMbw.js +3 -0
- package/dist/node-host/assets/python-BjnOIxPe.js +3 -0
- package/dist/node-host/assets/qml-BcFatdsQ.js +6 -0
- package/dist/node-host/assets/qmldir-Dz8ttxjf.js +3 -0
- package/dist/node-host/assets/qss-Iltvkn1C.js +3 -0
- package/dist/node-host/assets/r-DvDYa_8Q.js +6 -0
- package/dist/node-host/assets/racket-DRv7j6nv.js +3 -0
- package/dist/node-host/assets/raku-DI9yGpeW.js +3 -0
- package/dist/node-host/assets/razor-vGjCiVYw.js +11 -0
- package/dist/node-host/assets/rbs-D_4FkXDS.js +3 -0
- package/dist/node-host/assets/red-VqZFRByZ.js +4 -0
- package/dist/node-host/assets/reg-DpJf71oO.js +3 -0
- package/dist/node-host/assets/regexp-CE_3vZDh.js +6 -0
- package/dist/node-host/assets/rel-BT0iIKKw.js +3 -0
- package/dist/node-host/assets/riscv-CvzikGLb.js +3 -0
- package/dist/node-host/assets/rolldown-runtime-DktXgydw.js +35 -0
- package/dist/node-host/assets/ron-DzAo6FTJ.js +3 -0
- package/dist/node-host/assets/rose-pine-DiTkEueR.js +4 -0
- package/dist/node-host/assets/rose-pine-dawn-tfo5y2X0.js +4 -0
- package/dist/node-host/assets/rose-pine-moon-C0gON9XN.js +4 -0
- package/dist/node-host/assets/rosmsg-CyYq6XdT.js +3 -0
- package/dist/node-host/assets/rst-BqrTc4by.js +23 -0
- package/dist/node-host/assets/ruby-DLXfYriJ.js +31 -0
- package/dist/node-host/assets/rust-CaJo2YYS.js +3 -0
- package/dist/node-host/assets/sas-DJAJgMrq.js +6 -0
- package/dist/node-host/assets/sass-DI2zJwx7.js +3 -0
- package/dist/node-host/assets/scala-pMGZAs9j.js +3 -0
- package/dist/node-host/assets/scheme-D3A2QBtM.js +3 -0
- package/dist/node-host/assets/screen-DQoTOWYR.js +494 -0
- package/dist/node-host/assets/scss-n4nz8dJI.js +8 -0
- package/dist/node-host/assets/sdbl-CdQg5gu1.js +3 -0
- package/dist/node-host/assets/shaderlab-5KHT7nQ3.js +6 -0
- package/dist/node-host/assets/shellscript-BfuVOb-a.js +6 -0
- package/dist/node-host/assets/shellsession-hT9eQUDu.js +6 -0
- package/dist/node-host/assets/slack-dark-v8P_eXr6.js +4 -0
- package/dist/node-host/assets/slack-ochin-D8SyEdKz.js +4 -0
- package/dist/node-host/assets/smalltalk-D4IpSogw.js +3 -0
- package/dist/node-host/assets/smithy-BRyN83Yn.js +3 -0
- package/dist/node-host/assets/snazzy-light-BtkQkvXb.js +4 -0
- package/dist/node-host/assets/solarized-dark-B8nAdMfM.js +4 -0
- package/dist/node-host/assets/solarized-light-B-3F1INj.js +4 -0
- package/dist/node-host/assets/solidity-DPVu0wkJ.js +3 -0
- package/dist/node-host/assets/soy-Cbnz3v4z.js +6 -0
- package/dist/node-host/assets/sparql-cTZV4yOr.js +6 -0
- package/dist/node-host/assets/splunk-xP_ZjUH2.js +3 -0
- package/dist/node-host/assets/sql-DEvbt_rU.js +6 -0
- package/dist/node-host/assets/ssh-config-DXFPABYp.js +3 -0
- package/dist/node-host/assets/stata-0wnAnxv2.js +6 -0
- package/dist/node-host/assets/stylus-ZZDn1yUO.js +3 -0
- package/dist/node-host/assets/surrealql-70--UPGf.js +6 -0
- package/dist/node-host/assets/svelte-COI8WXVC.js +15 -0
- package/dist/node-host/assets/swift-DWmMn3lF.js +3 -0
- package/dist/node-host/assets/synthwave-84-DcsXCF_c.js +4 -0
- package/dist/node-host/assets/system-verilog-DW0KSMVO.js +3 -0
- package/dist/node-host/assets/systemd-DFbUltlW.js +3 -0
- package/dist/node-host/assets/talonscript-CLxaFu-b.js +3 -0
- package/dist/node-host/assets/tasks-C0WqnM7Q.js +644 -0
- package/dist/node-host/assets/tasks-request-Bwky5ORf.js +114 -0
- package/dist/node-host/assets/tasl-_AAbKiWM.js +3 -0
- package/dist/node-host/assets/tcl-DLe0Tsfm.js +3 -0
- package/dist/node-host/assets/templ-Bd0jzThC.js +13 -0
- package/dist/node-host/assets/terraform-v0KN9QQh.js +3 -0
- package/dist/node-host/assets/tex-C1Wtngrr.js +8 -0
- package/dist/node-host/assets/tokyo-night-Bvpqduda.js +4 -0
- package/dist/node-host/assets/toml-B7BHZIqX.js +3 -0
- package/dist/node-host/assets/ts-tags-BSGaPI18.js +59 -0
- package/dist/node-host/assets/tsv-BorGVq2Z.js +3 -0
- package/dist/node-host/assets/tsx-BxnCmyTp.js +6 -0
- package/dist/node-host/assets/turtle-BEG5g_eT.js +3 -0
- package/dist/node-host/assets/twig-BJG2k0MA.js +19 -0
- package/dist/node-host/assets/typescript-Cr5OHcug.js +6 -0
- package/dist/node-host/assets/typespec--jp0a8Qj.js +3 -0
- package/dist/node-host/assets/typst-BAvHLpwp.js +121 -0
- package/dist/node-host/assets/v-DBTjbKF9.js +3 -0
- package/dist/node-host/assets/vala-BnnASFsX.js +3 -0
- package/dist/node-host/assets/vb-eGVhCUXq.js +3 -0
- package/dist/node-host/assets/verilog-Ma7yBE30.js +3 -0
- package/dist/node-host/assets/vesper-CfxmMOy3.js +4 -0
- package/dist/node-host/assets/vhdl-Co2XFKY7.js +3 -0
- package/dist/node-host/assets/viml-BReTXeDA.js +3 -0
- package/dist/node-host/assets/vitesse-black-D9-_1mjV.js +4 -0
- package/dist/node-host/assets/vitesse-dark-DlSMLlr9.js +4 -0
- package/dist/node-host/assets/vitesse-light-KRWWWztf.js +4 -0
- package/dist/node-host/assets/vue-C3fWU2fi.js +31 -0
- package/dist/node-host/assets/vue-html-DxOM9wex.js +6 -0
- package/dist/node-host/assets/vue-vine-OKzSGBlX.js +19 -0
- package/dist/node-host/assets/vyper-C6KGx0YU.js +3 -0
- package/dist/node-host/assets/wasm-CvHAs-FG.js +7 -0
- package/dist/node-host/assets/wasm-gNIKwGlD.js +3 -0
- package/dist/node-host/assets/wenyan-BeysbCrW.js +3 -0
- package/dist/node-host/assets/wgsl-1s5rV5xS.js +3 -0
- package/dist/node-host/assets/wikitext-wjhjmmzD.js +3 -0
- package/dist/node-host/assets/wit-CeQiCbz_.js +3 -0
- package/dist/node-host/assets/wolfram-CcZPfnLd.js +3 -0
- package/dist/node-host/assets/worker-factory-C80HGMWf.js +14 -0
- package/dist/node-host/assets/xml-BsBjJrlv.js +8 -0
- package/dist/node-host/assets/xsl-BYwWzvT_.js +6 -0
- package/dist/node-host/assets/yaml-BRgACZP0.js +6 -0
- package/dist/node-host/assets/zenscript-BoijL7rl.js +3 -0
- package/dist/node-host/assets/zig-lTQvxhLD.js +3 -0
- package/dist/node-host/node-host.js +41511 -0
- package/dist/server/assets/{branch-previews-C_TVt_HQ.js → branch-previews-BryeA_kA.js} +112 -3
- package/dist/server/assets/{listener-BVbFsnmX.js → listener-oKd5ETMj.js} +3 -3
- package/dist/server/assets/{server-DUBjmaBw.js → server-DN5uwE4k.js} +1 -1
- package/dist/server/assets/{services-Og5rcF50.js → services-Ber8opFE.js} +2 -2
- package/dist/server/capture.js +1 -1
- package/dist/server/migration.js +3 -3
- package/dist/server/runtime.js +4 -4
- package/dist/server/server.js +3 -3
- package/dist/types/assets/{config-BzzRLcL-.d.ts → config-Cuauq8xY.d.ts} +24 -1
- package/dist/types/assets/contract-BsCQbbxD.d.ts +111 -0
- package/dist/types/companion.d.ts +1 -1
- package/dist/types/hosted.d.ts +3 -99
- package/dist/types/index.d.ts +1 -1
- package/dist/types/node-host.d.ts +46 -0
- package/dist/types/screen.d.ts +1 -1
- package/package.json +6 -2
- package/dist/client/assets/workspace-9KxFcfyV.js +0 -2
|
@@ -0,0 +1,578 @@
|
|
|
1
|
+
import { Kt as pageRoutes, Qt as Spinner, Sr as MAX_CANVAS_Y, Zt as Loader, _t as PagesWorkspace, dn as Text, in as IconButton, l as projectStore, ln as readPreference, rn as Select, un as writePreference } from "./comment-data-nUlI0szN.js";
|
|
2
|
+
import { n as createProjectComments, t as defineScreen } from "./screen-DQoTOWYR.js";
|
|
3
|
+
import { n as workspaceTab, t as followWorkspaceTab } from "../node-host.js";
|
|
4
|
+
import { n as createProjectPreviews, r as locatePreview, t as createProjectBranches } from "./project-branches-1zs_0J_y.js";
|
|
5
|
+
import { array, number, object, optional, parseSafe, string } from "remix/data-schema";
|
|
6
|
+
import { on, ref } from "remix/component";
|
|
7
|
+
import { Fragment, jsx, jsxs } from "remix/component/jsx-runtime";
|
|
8
|
+
//#region app/client/page-picture.tsx
|
|
9
|
+
/**
|
|
10
|
+
* A page as its latest captured picture, for Pages where there is no running site: its slices
|
|
11
|
+
* stacked at the capture's width, or the pane's when that is narrower, scrolled like the page.
|
|
12
|
+
* @param handle - The route, its theme and viewport, and the picking callback.
|
|
13
|
+
* @returns The picture render function.
|
|
14
|
+
*/
|
|
15
|
+
function PagePicture(handle) {
|
|
16
|
+
let wanted = "";
|
|
17
|
+
let shown = null;
|
|
18
|
+
let missing = false;
|
|
19
|
+
let revoke = () => {
|
|
20
|
+
for (let url of shown?.urls ?? []) URL.revokeObjectURL(url);
|
|
21
|
+
};
|
|
22
|
+
handle.signal.addEventListener("abort", revoke, { once: true });
|
|
23
|
+
async function load(key) {
|
|
24
|
+
let { previews, route, theme, size } = handle.props;
|
|
25
|
+
wanted = key;
|
|
26
|
+
missing = false;
|
|
27
|
+
let picture = await previews.picture(route.id, theme, size).catch(() => null);
|
|
28
|
+
if (wanted !== key || handle.signal.aborted) return;
|
|
29
|
+
revoke();
|
|
30
|
+
shown = picture ? {
|
|
31
|
+
key,
|
|
32
|
+
capture: picture.capture,
|
|
33
|
+
urls: picture.images.map((image) => URL.createObjectURL(image))
|
|
34
|
+
} : null;
|
|
35
|
+
missing = !picture;
|
|
36
|
+
handle.update();
|
|
37
|
+
}
|
|
38
|
+
return () => {
|
|
39
|
+
let { route, theme, size, picking, inline } = handle.props;
|
|
40
|
+
let key = `${route.id}\0${theme}\0${size.id}`;
|
|
41
|
+
if (key !== wanted) load(key);
|
|
42
|
+
let current = shown?.key === key ? shown : null;
|
|
43
|
+
return /* @__PURE__ */ jsx("div", {
|
|
44
|
+
class: inline ? "relative w-full" : "absolute inset-0 overflow-auto bg-board",
|
|
45
|
+
role: "img",
|
|
46
|
+
"aria-label": `${route.title} picture at ${size.width} pixels`,
|
|
47
|
+
children: current ? /* @__PURE__ */ jsx("div", {
|
|
48
|
+
class: `relative mx-auto ${picking ? "cursor-crosshair" : ""}`,
|
|
49
|
+
style: { width: `min(100%, ${current.capture.width}px)` },
|
|
50
|
+
mix: on("click", (event) => {
|
|
51
|
+
if (!picking) return;
|
|
52
|
+
let box = event.currentTarget.getBoundingClientRect();
|
|
53
|
+
let scale = current.capture.width / box.width;
|
|
54
|
+
picking.onPick({
|
|
55
|
+
path: route.path,
|
|
56
|
+
element: null,
|
|
57
|
+
point: {
|
|
58
|
+
x: (event.clientX - box.left) * scale,
|
|
59
|
+
y: (event.clientY - box.top) * scale,
|
|
60
|
+
width: current.capture.width
|
|
61
|
+
},
|
|
62
|
+
client: {
|
|
63
|
+
x: event.clientX,
|
|
64
|
+
y: event.clientY
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}),
|
|
68
|
+
children: current.urls.map((url, index) => /* @__PURE__ */ jsx("img", {
|
|
69
|
+
src: url,
|
|
70
|
+
alt: "",
|
|
71
|
+
draggable: false,
|
|
72
|
+
class: "block w-full select-none",
|
|
73
|
+
style: { aspectRatio: `${current.capture.width} / ${current.capture.tiles[index]?.height ?? 1}` }
|
|
74
|
+
}, url))
|
|
75
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
76
|
+
class: `grid place-items-center p-6 ${inline ? "min-h-40" : "size-full"}`,
|
|
77
|
+
children: missing ? /* @__PURE__ */ jsx(Text, {
|
|
78
|
+
as: "p",
|
|
79
|
+
variant: "ui",
|
|
80
|
+
tone: "muted",
|
|
81
|
+
class: "max-w-md text-center",
|
|
82
|
+
children: "This page has no picture at this viewport yet. It appears once its branch is captured."
|
|
83
|
+
}) : /* @__PURE__ */ jsx(Spinner, {
|
|
84
|
+
size: 18,
|
|
85
|
+
class: "text-muted"
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region app/client/project-pages.tsx
|
|
93
|
+
var BrowserStateSchema = object({
|
|
94
|
+
tabs: array(object({
|
|
95
|
+
id: string(),
|
|
96
|
+
src: string(),
|
|
97
|
+
path: string(),
|
|
98
|
+
title: string(),
|
|
99
|
+
load: number(),
|
|
100
|
+
branch: optional(string())
|
|
101
|
+
})),
|
|
102
|
+
active: string()
|
|
103
|
+
});
|
|
104
|
+
/** The working tree's section and compare choice, a name no branch can have. */
|
|
105
|
+
var workingTree = "Working tree";
|
|
106
|
+
/** The most browser tabs one workspace tab keeps. */
|
|
107
|
+
var maxBrowserTabs = 12;
|
|
108
|
+
/**
|
|
109
|
+
* The configured viewport closest to how wide a page was shown, whose captures a comment made
|
|
110
|
+
* on it is placed in.
|
|
111
|
+
* @param project - The project and its viewports.
|
|
112
|
+
* @param width - The page's width when it was picked, if known.
|
|
113
|
+
* @returns The viewport.
|
|
114
|
+
*/
|
|
115
|
+
function commentViewport(project, width) {
|
|
116
|
+
let [first, ...rest] = project.previews.viewports;
|
|
117
|
+
if (width === void 0) return first;
|
|
118
|
+
return rest.reduce((best, viewport) => Math.abs(viewport.width - width) < Math.abs(best.width - width) ? viewport : best, first);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* The configured route a page path shows, which a comment on it belongs to on the canvas.
|
|
122
|
+
* @param routes - The project's routes.
|
|
123
|
+
* @param path - The page's path, with any search and hash.
|
|
124
|
+
* @returns The route, or undefined for a page the canvas doesn't show.
|
|
125
|
+
*/
|
|
126
|
+
function pageRoute(routes, path) {
|
|
127
|
+
let bare = path.replace(/#.*$/, "");
|
|
128
|
+
let pathname = bare.replace(/\?.*$/, "");
|
|
129
|
+
return routes.find((route) => route.path === path) ?? routes.find((route) => route.path === bare) ?? routes.find((route) => route.path === pathname);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* The page a Pages URL shows: the rest of the path after the screen's own, with its query and
|
|
133
|
+
* hash, so `/pages/docs?tab=api` shows `/docs?tab=api` and `/pages/` the home page.
|
|
134
|
+
* @param href - The screen's URL.
|
|
135
|
+
* @param root - The screen's own path.
|
|
136
|
+
* @returns The page path, or null at the screen itself, which keeps the tab's page.
|
|
137
|
+
*/
|
|
138
|
+
function pagesPath(href, root) {
|
|
139
|
+
let url = new URL(href, "http://bud.local");
|
|
140
|
+
let base = root.replace(/\/$/, "");
|
|
141
|
+
if (!url.pathname.startsWith(`${base}/`)) return null;
|
|
142
|
+
return `${url.pathname.slice(base.length)}${url.search}${url.hash}`;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* The Pages URL for a page path.
|
|
146
|
+
* @param root - The screen's own path.
|
|
147
|
+
* @param path - The page path.
|
|
148
|
+
* @returns The URL, with the page's path after the screen's.
|
|
149
|
+
*/
|
|
150
|
+
function pagesHref(root, path) {
|
|
151
|
+
return `${root.replace(/\/$/, "")}${path}`;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Pages: the project's configured pages beside a browser of the live site. Each workspace tab
|
|
155
|
+
* keeps its own browser tabs, and the shown page travels in the URL, so a workspace tab's history
|
|
156
|
+
* follows the pages it showed. A Bud without a running site, such as a hosted one, shows each
|
|
157
|
+
* page's captured picture instead, at a viewport picked in the toolbar: of main, or of any captured
|
|
158
|
+
* branch from its section in the sidebar, or of several branches side by side to compare them.
|
|
159
|
+
* @param handle - The project, the screen's URL and path, and whether it shows.
|
|
160
|
+
* @returns The screen render function.
|
|
161
|
+
*/
|
|
162
|
+
function ProjectPages(handle) {
|
|
163
|
+
let project = handle.props.project;
|
|
164
|
+
let origin = project.targetOrigin;
|
|
165
|
+
let pictureMode = project.workingTree === false;
|
|
166
|
+
let home = pictureMode ? project.main ?? "main" : workingTree;
|
|
167
|
+
let branches = createProjectBranches({
|
|
168
|
+
project,
|
|
169
|
+
signal: handle.signal,
|
|
170
|
+
onChange: () => {
|
|
171
|
+
if (!handle.signal.aborted) handle.update();
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
let previewsByBranch = /* @__PURE__ */ new Map();
|
|
175
|
+
function previewsOf(branch) {
|
|
176
|
+
let previews = previewsByBranch.get(branch);
|
|
177
|
+
if (!previews) {
|
|
178
|
+
previews = createProjectPreviews({
|
|
179
|
+
project,
|
|
180
|
+
signal: handle.signal,
|
|
181
|
+
...branch === workingTree ? {} : { branch }
|
|
182
|
+
});
|
|
183
|
+
previewsByBranch.set(branch, previews);
|
|
184
|
+
}
|
|
185
|
+
return previews;
|
|
186
|
+
}
|
|
187
|
+
function captured() {
|
|
188
|
+
let pictured = branches.list.branches.flatMap((branch) => branch.active && branch.captured ? [{
|
|
189
|
+
name: branch.name,
|
|
190
|
+
caption: branch.captured.slice(0, 7)
|
|
191
|
+
}] : []);
|
|
192
|
+
return pictureMode ? pictured : [{
|
|
193
|
+
name: workingTree,
|
|
194
|
+
caption: "live"
|
|
195
|
+
}, ...pictured];
|
|
196
|
+
}
|
|
197
|
+
let comparing = null;
|
|
198
|
+
let pickedFrom;
|
|
199
|
+
let viewport = project.previews.viewports[0];
|
|
200
|
+
let tabId = "";
|
|
201
|
+
let state;
|
|
202
|
+
let renderedHref = handle.props.href;
|
|
203
|
+
let key = (id) => `bud:pages:${project.id}:${id}:v1`;
|
|
204
|
+
let comments = createProjectComments({
|
|
205
|
+
store: projectStore(project),
|
|
206
|
+
token: project.token,
|
|
207
|
+
signal: handle.signal,
|
|
208
|
+
onChange: () => {
|
|
209
|
+
if (!handle.signal.aborted) handle.update();
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
let draft;
|
|
213
|
+
function title(path) {
|
|
214
|
+
return pageRoute(project.routes, path)?.title ?? path.replace(/[?#].*$/, "");
|
|
215
|
+
}
|
|
216
|
+
function createTab(path, branch) {
|
|
217
|
+
return {
|
|
218
|
+
id: crypto.randomUUID(),
|
|
219
|
+
src: path,
|
|
220
|
+
path,
|
|
221
|
+
title: title(path),
|
|
222
|
+
load: 0,
|
|
223
|
+
...branch && branch !== home ? { branch } : {}
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
function fresh(path) {
|
|
227
|
+
let tab = createTab(path);
|
|
228
|
+
return {
|
|
229
|
+
tabs: [tab],
|
|
230
|
+
active: tab.id
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
function restore(id) {
|
|
234
|
+
let path = pagesPath(handle.props.href, handle.props.root);
|
|
235
|
+
let parsed = parseSafe(BrowserStateSchema, readPreference(key(id)));
|
|
236
|
+
let next = (parsed.success && parsed.value.tabs.length ? parsed.value : null) ?? fresh(path ?? project.routes[0]?.path ?? "/");
|
|
237
|
+
if (!next.tabs.some((tab) => tab.id === next.active)) next.active = next.tabs[0].id;
|
|
238
|
+
state = next;
|
|
239
|
+
if (path && activeTab().path !== path) navigate(activeTab().id, path, false);
|
|
240
|
+
}
|
|
241
|
+
function activeTab() {
|
|
242
|
+
return state.tabs.find((tab) => tab.id === state.active) ?? state.tabs[0];
|
|
243
|
+
}
|
|
244
|
+
function save() {
|
|
245
|
+
if (tabId) writePreference(key(tabId), state);
|
|
246
|
+
if (!handle.signal.aborted) handle.update();
|
|
247
|
+
}
|
|
248
|
+
function update(id, change) {
|
|
249
|
+
state = {
|
|
250
|
+
...state,
|
|
251
|
+
tabs: state.tabs.map((tab) => tab.id === id ? {
|
|
252
|
+
...tab,
|
|
253
|
+
...change
|
|
254
|
+
} : tab)
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
function sync(push) {
|
|
258
|
+
let { pathname, search, hash } = window.location;
|
|
259
|
+
let root = handle.props.root;
|
|
260
|
+
if (!handle.props.active || pathname !== root && !pathname.startsWith(`${root}/`)) return;
|
|
261
|
+
let href = pagesHref(root, activeTab().path);
|
|
262
|
+
if (`${pathname}${search}${hash}` === href) return;
|
|
263
|
+
renderedHref = new URL(href, window.location.origin).href;
|
|
264
|
+
window.history[push ? "pushState" : "replaceState"]({ ...window.history.state }, "", href);
|
|
265
|
+
}
|
|
266
|
+
function navigate(id, path, push = true, branch) {
|
|
267
|
+
let tab = state.tabs.find((item) => item.id === id);
|
|
268
|
+
if (!tab) return;
|
|
269
|
+
update(id, {
|
|
270
|
+
src: path,
|
|
271
|
+
path,
|
|
272
|
+
title: title(path),
|
|
273
|
+
load: tab.load + 1,
|
|
274
|
+
branch: branch === void 0 ? tab.branch : branch === home ? void 0 : branch
|
|
275
|
+
});
|
|
276
|
+
if (id === state.active) sync(push);
|
|
277
|
+
save();
|
|
278
|
+
}
|
|
279
|
+
function open(path, newTab, branch) {
|
|
280
|
+
if (!newTab || state.tabs.length >= maxBrowserTabs) return navigate(activeTab().id, path, true, branch);
|
|
281
|
+
let tab = createTab(path, branch ?? activeTab().branch);
|
|
282
|
+
let at = state.tabs.findIndex((item) => item.id === state.active) + 1;
|
|
283
|
+
state = {
|
|
284
|
+
tabs: [
|
|
285
|
+
...state.tabs.slice(0, at),
|
|
286
|
+
tab,
|
|
287
|
+
...state.tabs.slice(at)
|
|
288
|
+
],
|
|
289
|
+
active: tab.id
|
|
290
|
+
};
|
|
291
|
+
sync(true);
|
|
292
|
+
save();
|
|
293
|
+
}
|
|
294
|
+
function picked(pick, from) {
|
|
295
|
+
let route = pageRoute(project.routes, pick.path);
|
|
296
|
+
if (!route) return;
|
|
297
|
+
let element = pick.element;
|
|
298
|
+
let branch = from === void 0 ? activeTab().branch : from === home ? void 0 : from;
|
|
299
|
+
let shown = pictureMode || from !== void 0 || branch ? viewport : commentViewport(project, pick.point?.width);
|
|
300
|
+
draft = {
|
|
301
|
+
route,
|
|
302
|
+
pick,
|
|
303
|
+
viewport: shown,
|
|
304
|
+
...branch ? { branch } : {},
|
|
305
|
+
located: element === null ? Promise.resolve(pick.point && {
|
|
306
|
+
x: pick.point.x,
|
|
307
|
+
y: pick.point.y
|
|
308
|
+
}) : locatePreview(project.token, route.id, project.previews.themes[0], element, handle.signal, shown.id)
|
|
309
|
+
};
|
|
310
|
+
handle.update();
|
|
311
|
+
}
|
|
312
|
+
function pictureTheme() {
|
|
313
|
+
let themes = project.previews.themes;
|
|
314
|
+
let page = typeof document === "undefined" ? void 0 : document.documentElement.dataset.theme;
|
|
315
|
+
return themes.find((theme) => theme === page) ?? themes[0];
|
|
316
|
+
}
|
|
317
|
+
function toggleComparing() {
|
|
318
|
+
let names = captured().map((branch) => branch.name);
|
|
319
|
+
let shown = activeTab().branch ?? home;
|
|
320
|
+
let right = shown !== names[0] ? shown : names[1];
|
|
321
|
+
comparing = comparing ? null : [names[0], ...right ? [right] : []];
|
|
322
|
+
draft = void 0;
|
|
323
|
+
handle.update();
|
|
324
|
+
}
|
|
325
|
+
function pictures() {
|
|
326
|
+
let viewports = project.previews.viewports;
|
|
327
|
+
let options = captured();
|
|
328
|
+
if (!pictureMode && options.length < 2 && !project.routes.some((route) => route.flow)) return void 0;
|
|
329
|
+
let compared = comparing;
|
|
330
|
+
return {
|
|
331
|
+
source: compared ? `Comparing ${compared.join(", ")}` : `Pictures of ${activeTab().branch ?? home}`,
|
|
332
|
+
shows: (tab) => pictureMode || Boolean(tab.branch) || Boolean(compared) || Boolean(pageRoute(project.routes, tab.path)?.flow),
|
|
333
|
+
actions: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(IconButton, {
|
|
334
|
+
tooltip: true,
|
|
335
|
+
icon: "compare",
|
|
336
|
+
label: compared ? "Stop comparing" : "Compare branches side by side",
|
|
337
|
+
active: Boolean(compared),
|
|
338
|
+
disabled: !compared && options.length < 2,
|
|
339
|
+
mix: on("click", toggleComparing)
|
|
340
|
+
}), compared ? /* @__PURE__ */ jsx("div", {
|
|
341
|
+
role: "group",
|
|
342
|
+
"aria-label": "Branches compared",
|
|
343
|
+
class: "flex min-w-0 items-center gap-1.5",
|
|
344
|
+
children: compared.map((name, index) => /* @__PURE__ */ jsx(Select, {
|
|
345
|
+
label: `Compared branch ${index + 1}`,
|
|
346
|
+
value: name,
|
|
347
|
+
class: "max-w-52",
|
|
348
|
+
options: options.map((option) => ({
|
|
349
|
+
value: option.name,
|
|
350
|
+
label: option.name,
|
|
351
|
+
description: option.caption
|
|
352
|
+
})),
|
|
353
|
+
onChange: (value) => {
|
|
354
|
+
let next = [...compared];
|
|
355
|
+
next[index] = value;
|
|
356
|
+
comparing = next;
|
|
357
|
+
handle.update();
|
|
358
|
+
}
|
|
359
|
+
}, index))
|
|
360
|
+
}) : null] }),
|
|
361
|
+
toolbar: /* @__PURE__ */ jsx("div", {
|
|
362
|
+
class: "flex min-w-0 items-center gap-0.5",
|
|
363
|
+
children: viewports.length > 1 ? viewports.map((option) => /* @__PURE__ */ jsx(IconButton, {
|
|
364
|
+
tooltip: true,
|
|
365
|
+
icon: option.mobile ? "mobile" : "desktop",
|
|
366
|
+
label: `Show ${option.name} (${option.width})`,
|
|
367
|
+
active: option.id === viewport.id,
|
|
368
|
+
mix: on("click", () => {
|
|
369
|
+
viewport = option;
|
|
370
|
+
draft = void 0;
|
|
371
|
+
handle.update();
|
|
372
|
+
})
|
|
373
|
+
}, option.id)) : null
|
|
374
|
+
}),
|
|
375
|
+
render: (tab, picking) => {
|
|
376
|
+
let route = pageRoute(project.routes, tab.path);
|
|
377
|
+
if (!route) return /* @__PURE__ */ jsx("div", {
|
|
378
|
+
class: "grid h-full place-items-center p-6",
|
|
379
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
380
|
+
as: "p",
|
|
381
|
+
variant: "ui",
|
|
382
|
+
tone: "muted",
|
|
383
|
+
class: "max-w-md text-center",
|
|
384
|
+
children: "Only the pages in your routes have pictures."
|
|
385
|
+
})
|
|
386
|
+
});
|
|
387
|
+
if (compared) return /* @__PURE__ */ jsx("div", {
|
|
388
|
+
class: "absolute inset-0 overflow-auto bg-board",
|
|
389
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
390
|
+
class: "flex w-full items-start justify-center gap-4 p-4",
|
|
391
|
+
children: compared.map((branch) => /* @__PURE__ */ jsxs("section", {
|
|
392
|
+
"aria-label": `${branch} picture`,
|
|
393
|
+
class: "flex min-w-0 flex-1 flex-col gap-2",
|
|
394
|
+
style: { maxWidth: `${viewport.width}px` },
|
|
395
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
396
|
+
variant: "ui-caption",
|
|
397
|
+
tone: "muted",
|
|
398
|
+
class: "truncate",
|
|
399
|
+
children: branch
|
|
400
|
+
}), /* @__PURE__ */ jsx(PagePicture, {
|
|
401
|
+
previews: previewsOf(branch),
|
|
402
|
+
route,
|
|
403
|
+
theme: pictureTheme(),
|
|
404
|
+
size: viewport,
|
|
405
|
+
picking: picking && { onPick: (pick) => {
|
|
406
|
+
pickedFrom = branch;
|
|
407
|
+
picking.onPick(pick);
|
|
408
|
+
} },
|
|
409
|
+
inline: true
|
|
410
|
+
})]
|
|
411
|
+
}, branch))
|
|
412
|
+
})
|
|
413
|
+
});
|
|
414
|
+
return /* @__PURE__ */ jsx(PagePicture, {
|
|
415
|
+
previews: previewsOf(tab.branch ?? home),
|
|
416
|
+
route,
|
|
417
|
+
theme: pictureTheme(),
|
|
418
|
+
size: viewport,
|
|
419
|
+
picking
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
async function comment(body) {
|
|
425
|
+
let current = draft;
|
|
426
|
+
if (!current) return;
|
|
427
|
+
let located = await Promise.race([current.located, new Promise((resolve) => setTimeout(() => resolve(null), 15e3))]);
|
|
428
|
+
let captureWidth = current.viewport.width;
|
|
429
|
+
let point = located ?? (current.pick.point ? {
|
|
430
|
+
x: current.pick.point.x / current.pick.point.width * captureWidth,
|
|
431
|
+
y: current.pick.point.y
|
|
432
|
+
} : {
|
|
433
|
+
x: captureWidth / 2,
|
|
434
|
+
y: 0
|
|
435
|
+
});
|
|
436
|
+
await comments.write({
|
|
437
|
+
anchor: {
|
|
438
|
+
pageId: current.route.id,
|
|
439
|
+
pagePath: current.route.path,
|
|
440
|
+
viewport: captureWidth,
|
|
441
|
+
offsetX: Math.min(1, Math.max(0, point.x / captureWidth)),
|
|
442
|
+
offsetY: Math.min(MAX_CANVAS_Y, Math.max(0, point.y)),
|
|
443
|
+
element: current.pick.element,
|
|
444
|
+
...current.branch ? { branch: current.branch } : {}
|
|
445
|
+
},
|
|
446
|
+
itemIds: [],
|
|
447
|
+
body
|
|
448
|
+
});
|
|
449
|
+
if (draft === current) draft = void 0;
|
|
450
|
+
handle.update();
|
|
451
|
+
}
|
|
452
|
+
function unavailable(path) {
|
|
453
|
+
if (!comments.loaded) return "Loading comments…";
|
|
454
|
+
if (!comments.snapshot.capabilities.create) return "Comments here are read-only";
|
|
455
|
+
if (!pageRoute(project.routes, path)) return "Only pages in your routes take comments. Add this page to bud.config.";
|
|
456
|
+
return null;
|
|
457
|
+
}
|
|
458
|
+
tabId = workspaceTab();
|
|
459
|
+
restore(tabId);
|
|
460
|
+
let mount = ref((_node, signal) => {
|
|
461
|
+
if (!comments.loaded) comments.load();
|
|
462
|
+
if (!tabId) {
|
|
463
|
+
tabId = workspaceTab();
|
|
464
|
+
restore(tabId);
|
|
465
|
+
}
|
|
466
|
+
sync(false);
|
|
467
|
+
let stop = followWorkspaceTab(() => {
|
|
468
|
+
tabId = workspaceTab();
|
|
469
|
+
restore(tabId);
|
|
470
|
+
save();
|
|
471
|
+
});
|
|
472
|
+
signal.addEventListener("abort", stop, { once: true });
|
|
473
|
+
});
|
|
474
|
+
return () => {
|
|
475
|
+
if (renderedHref !== handle.props.href) {
|
|
476
|
+
renderedHref = handle.props.href;
|
|
477
|
+
let path = pagesPath(renderedHref, handle.props.root);
|
|
478
|
+
if (path && path !== activeTab().path) navigate(activeTab().id, path, false);
|
|
479
|
+
}
|
|
480
|
+
if (!branches.loaded && !branches.error) return /* @__PURE__ */ jsx("div", {
|
|
481
|
+
class: "h-full min-h-0",
|
|
482
|
+
mix: mount,
|
|
483
|
+
children: /* @__PURE__ */ jsx(Loader, { label: "Loading branches…" })
|
|
484
|
+
});
|
|
485
|
+
let current = activeTab();
|
|
486
|
+
if (!pictureMode && typeof window !== "undefined" && new URL(origin).origin === window.location.origin) return /* @__PURE__ */ jsx("div", {
|
|
487
|
+
class: "grid h-full place-items-center p-6",
|
|
488
|
+
mix: mount,
|
|
489
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
490
|
+
as: "p",
|
|
491
|
+
variant: "ui",
|
|
492
|
+
tone: "muted",
|
|
493
|
+
class: "max-w-md text-center",
|
|
494
|
+
children: "Your site is served from Bud's own address, so Pages can't show it. Serve it on its own port to browse it here."
|
|
495
|
+
})
|
|
496
|
+
});
|
|
497
|
+
return /* @__PURE__ */ jsx("div", {
|
|
498
|
+
class: "h-full min-h-0 min-w-0",
|
|
499
|
+
mix: mount,
|
|
500
|
+
children: /* @__PURE__ */ jsx(PagesWorkspace, {
|
|
501
|
+
pages: project.routes,
|
|
502
|
+
onOpen: (path, newTab, branch) => open(path, newTab, branch),
|
|
503
|
+
origin,
|
|
504
|
+
tabs: state.tabs,
|
|
505
|
+
active: state.active,
|
|
506
|
+
onSelect: (id) => {
|
|
507
|
+
state = {
|
|
508
|
+
...state,
|
|
509
|
+
active: id
|
|
510
|
+
};
|
|
511
|
+
sync(false);
|
|
512
|
+
save();
|
|
513
|
+
},
|
|
514
|
+
onClose: (id) => {
|
|
515
|
+
if (state.tabs.length === 1) return;
|
|
516
|
+
let index = state.tabs.findIndex((tab) => tab.id === id);
|
|
517
|
+
let tabs = state.tabs.filter((tab) => tab.id !== id);
|
|
518
|
+
state = {
|
|
519
|
+
tabs,
|
|
520
|
+
active: state.active === id ? tabs[Math.min(index, tabs.length - 1)].id : state.active
|
|
521
|
+
};
|
|
522
|
+
sync(false);
|
|
523
|
+
save();
|
|
524
|
+
},
|
|
525
|
+
onNew: () => open(project.routes[0]?.path ?? "/", true),
|
|
526
|
+
onNavigate: (id, path) => navigate(id, path),
|
|
527
|
+
commenting: (comments.loaded ? comments.ready : project.storage.threads?.state === "ready") ? {
|
|
528
|
+
unavailable: unavailable(current.path),
|
|
529
|
+
draft: draft ? {
|
|
530
|
+
path: draft.pick.path,
|
|
531
|
+
label: draft.pick.element?.label ?? "A spot on the page",
|
|
532
|
+
source: draft.pick.element?.source ?? null
|
|
533
|
+
} : null,
|
|
534
|
+
busy: comments.busy,
|
|
535
|
+
onPicked: (_id, pick) => {
|
|
536
|
+
let from = comparing ? pickedFrom : void 0;
|
|
537
|
+
pickedFrom = void 0;
|
|
538
|
+
picked(pick, from);
|
|
539
|
+
},
|
|
540
|
+
onSubmit: comment,
|
|
541
|
+
onCancel: () => {
|
|
542
|
+
draft = void 0;
|
|
543
|
+
handle.update();
|
|
544
|
+
}
|
|
545
|
+
} : void 0,
|
|
546
|
+
pictures: pictures(),
|
|
547
|
+
design: project.designs.pages,
|
|
548
|
+
sections: pictureMode || captured().length > 1 ? captured().map((branch) => ({
|
|
549
|
+
id: branch.name,
|
|
550
|
+
label: branch.name,
|
|
551
|
+
caption: branch.caption
|
|
552
|
+
})) : void 0,
|
|
553
|
+
section: current.branch ?? home,
|
|
554
|
+
onLocation: (id, location) => {
|
|
555
|
+
update(id, {
|
|
556
|
+
path: location.path,
|
|
557
|
+
title: location.title || title(location.path)
|
|
558
|
+
});
|
|
559
|
+
if (id === state.active) sync(false);
|
|
560
|
+
save();
|
|
561
|
+
}
|
|
562
|
+
})
|
|
563
|
+
});
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
//#endregion
|
|
567
|
+
//#region app/screens/pages.tsx
|
|
568
|
+
var pages_default = defineScreen({
|
|
569
|
+
routes: pageRoutes,
|
|
570
|
+
render: (_data, { project, url, active, path }) => /* @__PURE__ */ jsx(ProjectPages, {
|
|
571
|
+
project,
|
|
572
|
+
href: url.href,
|
|
573
|
+
root: path,
|
|
574
|
+
active
|
|
575
|
+
})
|
|
576
|
+
});
|
|
577
|
+
//#endregion
|
|
578
|
+
export { pages_default as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var pascal_default = [Object.freeze(JSON.parse("{\"displayName\":\"Pascal\",\"fileTypes\":[\"pas\",\"p\",\"pp\",\"dfm\",\"fmx\",\"dpr\",\"dpk\",\"lfm\",\"lpr\",\"ppr\"],\"name\":\"pascal\",\"patterns\":[{\"match\":\"\\\\b(?i:(absolute|abstract|add|all|and_then|array|asc??|asm|assembler|async|attribute|autoreleasepool|await|begin|bindable|block|by|case|cdecl|class|concat|const|constref|copy|cppdecl|contains|default|delegate|deprecated|desc|distinct|div|each|else|empty|end|ensure|enum|equals|event|except|exports??|extension|external|far|file|finalization|finalizer|finally|flags|forward|from|future|generic|goto|group|has|helper|if|implements|implies|import|in|index|inherited|initialization|inline|interrupt|into|invariants|is|iterator|label|library|join|lazy|lifetimestrategy|locked|locking|loop|mapped|matching|message|method|mod|module|name|namespace|near|nested|new|nostackframe|not|notify|nullable|object|of|old|oldfpccall|on|only|operator|optional|or_else|order|otherwise|out|override|package|packed|parallel|params|partial|pascal|pinned|platform|pow|private|program|protected|public|published|interface|implementation|qualified|queryable|raises|read|readonly|record|reference|register|remove|resident|requires??|resourcestring|restricted|result|reverse|safecall|sealed|segment|select|selector|sequence|set|shl|shr|skip|specialize|soft|static|stored|stdcall|step|strict|strong|take|then|threadvar|to|try|tuple|type|unconstrained|unit|unmanaged|unretained|unsafe|uses|using|var|view|virtual|volatile|weak|dynamic|overload|reintroduce|where|with|write|xor|yield))\\\\b\",\"name\":\"keyword.pascal\"},{\"captures\":{\"1\":{\"name\":\"storage.type.prototype.pascal\"},\"2\":{\"name\":\"entity.name.function.prototype.pascal\"}},\"match\":\"\\\\b(?i:(function|procedure|constructor|destructor))\\\\b\\\\s+(\\\\w+(\\\\.\\\\w+)?)(\\\\(.*?\\\\))?;\\\\s*(?=(?i:attribute|forward|external))\",\"name\":\"meta.function.prototype.pascal\"},{\"captures\":{\"1\":{\"name\":\"storage.type.function.pascal\"},\"2\":{\"name\":\"entity.name.function.pascal\"}},\"match\":\"\\\\b(?i:(function|procedure|constructor|destructor|property|read|write))\\\\b\\\\s+(\\\\w+(\\\\.\\\\w+)?)\",\"name\":\"meta.function.pascal\"},{\"match\":\"\\\\b(?i:(self|result))\\\\b\",\"name\":\"token.variable\"},{\"match\":\"\\\\b(?i:(and|or))\\\\b\",\"name\":\"keyword.operator.pascal\"},{\"match\":\"\\\\b(?i:(break|continue|exit|abort|while|do|downto|for|raise|repeat|until))\\\\b\",\"name\":\"keyword.control.pascal\"},{\"begin\":\"\\\\{\\\\$\",\"captures\":{\"0\":{\"name\":\"string.regexp\"}},\"end\":\"}\",\"name\":\"string.regexp\"},{\"match\":\"\\\\b(?i:(ansichar|ansistring|boolean|byte|cardinal|char|comp|currency|double|dword|extended|file|integer|int8|int16|int32|int64|longint|longword|nativeint|nativeuint|olevariant|pansichar|pchar|pwidechar|pointer|real|shortint|shortstring|single|smallint|string|uint8|uint16|uint32|uint64|variant|widechar|widestring|word|wordbool|uintptr|intptr))\\\\b\",\"name\":\"storage.support.type.pascal\"},{\"match\":\"\\\\b(\\\\d+)|(\\\\d*\\\\.\\\\d+([Ee][-+]?\\\\d+)?)\\\\b\",\"name\":\"constant.numeric.pascal\"},{\"match\":\"\\\\$\\\\h{1,16}\\\\b\",\"name\":\"constant.numeric.hex.pascal\"},{\"match\":\"\\\\b(?i:(true|false|nil))\\\\b\",\"name\":\"constant.language.pascal\"},{\"match\":\"\\\\b(?i:(Assert))\\\\b\",\"name\":\"keyword.control\"},{\"begin\":\"(^[\\\\t ]+)?(?=//)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.pascal\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"//\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.pascal\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.double-slash.pascal.two\"}]},{\"begin\":\"\\\\(\\\\*\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.pascal\"}},\"end\":\"\\\\*\\\\)\",\"name\":\"comment.block.pascal.one\"},{\"begin\":\"\\\\{(?!\\\\$)\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.pascal\"}},\"end\":\"}\",\"name\":\"comment.block.pascal.two\"},{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.pascal\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.pascal\"}},\"name\":\"string.quoted.single.pascal\",\"patterns\":[{\"match\":\"''\",\"name\":\"constant.character.escape.apostrophe.pascal\"}]},{\"match\":\"#\\\\d+\",\"name\":\"string.other.pascal\"}],\"scopeName\":\"source.pascal\"}"))];
|
|
2
|
+
//#endregion
|
|
3
|
+
export { pascal_default as default };
|