astro 4.4.14 → 4.5.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/components/Code.astro +15 -12
- package/dist/@types/astro.d.ts +95 -18
- package/dist/assets/utils/getAssetsPrefix.d.ts +2 -0
- package/dist/assets/utils/getAssetsPrefix.js +14 -0
- package/dist/assets/vite-plugin-assets.js +10 -3
- package/dist/cli/add/index.js +76 -28
- package/dist/cli/install-package.js +2 -2
- package/dist/content/types-generator.js +56 -7
- package/dist/content/vite-plugin-content-assets.js +11 -3
- package/dist/core/app/common.js +2 -0
- package/dist/core/app/index.js +10 -2
- package/dist/core/app/types.d.ts +7 -2
- package/dist/core/base-pipeline.d.ts +2 -1
- package/dist/core/base-pipeline.js +2 -1
- package/dist/core/build/generate.js +1 -0
- package/dist/core/build/internal.d.ts +6 -0
- package/dist/core/build/internal.js +1 -0
- package/dist/core/build/plugins/index.js +6 -1
- package/dist/core/build/plugins/plugin-analyzer.js +10 -98
- package/dist/core/build/plugins/plugin-css.js +27 -1
- package/dist/core/build/plugins/plugin-manifest.js +5 -2
- package/dist/core/build/plugins/plugin-scripts.d.ts +8 -0
- package/dist/core/build/plugins/plugin-scripts.js +34 -0
- package/dist/core/compile/compile.d.ts +1 -7
- package/dist/core/compile/compile.js +5 -4
- package/dist/core/compile/style.d.ts +4 -3
- package/dist/core/compile/style.js +5 -4
- package/dist/core/compile/types.d.ts +11 -0
- package/dist/core/config/schema.d.ts +177 -113
- package/dist/core/config/schema.js +42 -9
- package/dist/core/config/vite-load.js +1 -0
- package/dist/core/constants.d.ts +1 -0
- package/dist/core/constants.js +3 -1
- package/dist/core/create-vite.js +5 -3
- package/dist/core/dev/dev.js +1 -1
- package/dist/core/errors/dev/vite.js +1 -1
- package/dist/core/messages.js +2 -2
- package/dist/core/render/params-and-props.js +2 -1
- package/dist/core/render/ssr-element.d.ts +8 -8
- package/dist/core/render/ssr-element.js +4 -2
- package/dist/core/render-context.js +3 -1
- package/dist/core/routing/astro-designed-error-pages.d.ts +2 -0
- package/dist/core/routing/astro-designed-error-pages.js +21 -0
- package/dist/runtime/client/dev-toolbar/apps/audit/index.d.ts +8 -15
- package/dist/runtime/client/dev-toolbar/apps/audit/index.js +130 -249
- package/dist/runtime/client/dev-toolbar/apps/audit/{a11y.js → rules/a11y.js} +4 -2
- package/dist/runtime/client/dev-toolbar/apps/audit/rules/index.d.ts +35 -0
- package/dist/runtime/client/dev-toolbar/apps/audit/rules/index.js +40 -0
- package/dist/runtime/client/dev-toolbar/apps/audit/{perf.js → rules/perf.js} +2 -2
- package/dist/runtime/client/dev-toolbar/apps/audit/ui/audit-list-item.d.ts +7 -0
- package/dist/runtime/client/dev-toolbar/apps/audit/ui/audit-list-item.js +137 -0
- package/dist/runtime/client/dev-toolbar/apps/audit/ui/audit-list-window.d.ts +23 -0
- package/dist/runtime/client/dev-toolbar/apps/audit/ui/audit-list-window.js +384 -0
- package/dist/runtime/client/dev-toolbar/apps/audit/ui/audit-ui.d.ts +6 -0
- package/dist/runtime/client/dev-toolbar/apps/audit/ui/audit-ui.js +126 -0
- package/dist/runtime/client/dev-toolbar/apps/utils/window.d.ts +1 -1
- package/dist/runtime/client/dev-toolbar/apps/utils/window.js +3 -1
- package/dist/runtime/client/dev-toolbar/entrypoint.js +43 -15
- package/dist/runtime/client/dev-toolbar/settings.d.ts +3 -1
- package/dist/runtime/client/dev-toolbar/settings.js +8 -2
- package/dist/runtime/client/dev-toolbar/toolbar.d.ts +1 -0
- package/dist/runtime/client/dev-toolbar/toolbar.js +10 -8
- package/dist/runtime/client/dev-toolbar/ui-library/badge.d.ts +14 -4
- package/dist/runtime/client/dev-toolbar/ui-library/badge.js +72 -33
- package/dist/runtime/client/dev-toolbar/ui-library/button.d.ts +14 -4
- package/dist/runtime/client/dev-toolbar/ui-library/button.js +100 -47
- package/dist/runtime/client/dev-toolbar/ui-library/card.d.ts +9 -0
- package/dist/runtime/client/dev-toolbar/ui-library/card.js +57 -2
- package/dist/runtime/client/dev-toolbar/ui-library/highlight.d.ts +9 -0
- package/dist/runtime/client/dev-toolbar/ui-library/highlight.js +54 -2
- package/dist/runtime/client/dev-toolbar/ui-library/icons.d.ts +4 -0
- package/dist/runtime/client/dev-toolbar/ui-library/icons.js +5 -1
- package/dist/runtime/client/dev-toolbar/ui-library/toggle.d.ts +9 -0
- package/dist/runtime/client/dev-toolbar/ui-library/toggle.js +64 -5
- package/dist/runtime/compiler/index.d.ts +1 -1
- package/dist/runtime/compiler/index.js +2 -0
- package/dist/runtime/server/hydration.js +3 -2
- package/dist/runtime/server/index.d.ts +1 -1
- package/dist/runtime/server/index.js +2 -0
- package/dist/runtime/server/render/astro/factory.d.ts +1 -1
- package/dist/runtime/server/render/component.js +4 -5
- package/dist/runtime/server/render/index.d.ts +1 -0
- package/dist/runtime/server/render/index.js +2 -0
- package/dist/runtime/server/render/script.d.ts +6 -0
- package/dist/runtime/server/render/script.js +15 -0
- package/dist/transitions/router.js +12 -3
- package/dist/vite-plugin-astro/index.d.ts +2 -2
- package/dist/vite-plugin-astro/index.js +12 -1
- package/dist/vite-plugin-astro/types.d.ts +21 -1
- package/dist/vite-plugin-astro-server/pipeline.js +6 -2
- package/dist/vite-plugin-astro-server/plugin.js +6 -2
- package/dist/vite-plugin-astro-server/response.d.ts +6 -0
- package/dist/vite-plugin-astro-server/response.js +13 -0
- package/dist/vite-plugin-astro-server/route.js +18 -2
- package/package.json +8 -9
- package/tsconfigs/base.json +3 -1
- /package/dist/runtime/client/dev-toolbar/apps/audit/{a11y.d.ts → rules/a11y.d.ts} +0 -0
- /package/dist/runtime/client/dev-toolbar/apps/audit/{perf.d.ts → rules/perf.d.ts} +0 -0
|
@@ -27,5 +27,9 @@ declare const icons: {
|
|
|
27
27
|
readonly image: "<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 33 32\"><path fill=\"currentColor\" d=\"M26 2.67H7.33a4 4 0 0 0-4 4v18.66a4 4 0 0 0 4 4H26c.22 0 .44-.02.65-.06l.4-.1h.16l.5-.18.17-.1c.13-.08.28-.14.41-.24.18-.13.35-.27.5-.42l.1-.12c.13-.14.25-.28.36-.43l.12-.17c.1-.15.18-.3.24-.47l.1-.2.16-.5v-.2c.07-.27.12-.54.13-.8V6.66a4 4 0 0 0-4-4Zm-18.67 24A1.33 1.33 0 0 1 6 25.33V19.6l4.39-4.4a1.33 1.33 0 0 1 1.89 0l11.47 11.48H7.33Zm20-1.34c0 .17-.03.33-.1.48a1.33 1.33 0 0 1-.22.35l-7.13-7.13 1.17-1.18a1.33 1.33 0 0 1 1.9 0l4.38 4.4v3.08Zm0-6.85L24.83 16a4.1 4.1 0 0 0-5.66 0L18 17.17l-3.84-3.84a4.1 4.1 0 0 0-5.65 0L6 15.81V6.67a1.33 1.33 0 0 1 1.33-1.34H26a1.33 1.33 0 0 1 1.33 1.34v11.81Z\"/></svg>";
|
|
28
28
|
readonly robot: "<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 33 32\"><path fill=\"currentColor\" d=\"M12.67 20a1.33 1.33 0 1 0 0 2.67 1.33 1.33 0 0 0 0-2.67Zm-9.34-1.33A1.33 1.33 0 0 0 2 20v2.67a1.33 1.33 0 1 0 2.67 0V20a1.33 1.33 0 0 0-1.34-1.33Zm26.67 0A1.33 1.33 0 0 0 28.67 20v2.67a1.33 1.33 0 1 0 2.66 0V20A1.33 1.33 0 0 0 30 18.67Zm-6.67-9.34H18v-1.7a2.67 2.67 0 0 0 .55-4.18 2.67 2.67 0 0 0-4.19 3.2c.24.41.57.74.97.98v1.7H10a4 4 0 0 0-4 4v12a4 4 0 0 0 4 4h13.33a4 4 0 0 0 4-4v-12a4 4 0 0 0-4-4ZM18.96 12l-.67 2.67h-3.25L14.37 12h4.59Zm5.7 13.33a1.33 1.33 0 0 1-1.33 1.34H10a1.33 1.33 0 0 1-1.33-1.34v-12A1.33 1.33 0 0 1 10 12h1.63l1.04 4.32A1.33 1.33 0 0 0 14 17.33h5.33a1.33 1.33 0 0 0 1.34-1.01L21.7 12h1.62a1.33 1.33 0 0 1 1.34 1.33v12Zm-4-5.33a1.33 1.33 0 1 0 0 2.67 1.33 1.33 0 0 0 0-2.67Z\"/></svg>";
|
|
29
29
|
readonly sitemap: "<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 33 32\"><path fill=\"currentColor\" d=\"M29.67 20H27v-4a1.33 1.33 0 0 0-1.33-1.33h-8V12h2.66a1.33 1.33 0 0 0 1.34-1.33v-8a1.33 1.33 0 0 0-1.34-1.34h-8A1.33 1.33 0 0 0 11 2.67v8A1.33 1.33 0 0 0 12.33 12H15v2.67H7A1.33 1.33 0 0 0 5.67 16v4H3a1.33 1.33 0 0 0-1.33 1.33v8A1.33 1.33 0 0 0 3 30.67h8a1.33 1.33 0 0 0 1.33-1.34v-8A1.33 1.33 0 0 0 11 20H8.33v-2.67h16V20h-2.66a1.33 1.33 0 0 0-1.34 1.33v8a1.33 1.33 0 0 0 1.34 1.34h8A1.33 1.33 0 0 0 31 29.33v-8A1.33 1.33 0 0 0 29.67 20Zm-20 2.67V28H4.33v-5.33h5.34Zm4-13.34V4H19v5.33h-5.33ZM28.33 28H23v-5.33h5.33V28Z\"/></svg>";
|
|
30
|
+
readonly gauge: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\"><path fill=\"currentColor\" d=\"M207 80.7A111.2 111.2 0 0 0 128 48h-.4C66.1 48.2 16 99 16 161.1V184a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-24a111.3 111.3 0 0 0-33-79.3ZM224 184H119.7l54.8-75.3a8 8 0 0 0-13-9.4L100 184H32v-22.9c0-3 .1-6 .4-9.1H56a8 8 0 0 0 0-16H35.3A96.7 96.7 0 0 1 120 64.3V88a8 8 0 0 0 16 0V64.3a96.1 96.1 0 0 1 85 71.7h-21a8 8 0 0 0 0 16h23.7c.2 2.6.3 5.3.3 8Z\"/></svg>";
|
|
31
|
+
readonly 'person-arms-spread': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\"><path fill=\"currentColor\" d=\"M160 40a32 32 0 1 0-32 32 32 32 0 0 0 32-32Zm-32 16a16 16 0 1 1 16-16 16 16 0 0 1-16 16Zm103.5 31.7A19.6 19.6 0 0 0 212 72H44a20 20 0 0 0-8.4 38.2h.1l50.8 22.3-21 79.7a20 20 0 0 0 36.5 16.6l26-44.9 26 44.9a20 20 0 0 0 36.4-16.5l-21-79.7 50.8-22.4a19.6 19.6 0 0 0 11.3-22.5Zm-17.8 8-57 25a8 8 0 0 0-4.4 9.3l22.8 87a7 7 0 0 0 .5 1.4 4 4 0 0 1-5 5.4 4 4 0 0 1-2.2-2 6.3 6.3 0 0 0-.4-.7L135 164a8 8 0 0 0-14 0l-33 57a6.3 6.3 0 0 0-.3.7 4 4 0 0 1-2.3 2 4 4 0 0 1-5-5.4 7 7 0 0 0 .5-1.4l22.8-86.9a8 8 0 0 0-4.5-9.4l-56.9-25A4 4 0 0 1 44 88h168a4 4 0 0 1 1.7 7.6Z\"/></svg>";
|
|
32
|
+
readonly 'arrow-left': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\"><path d=\"M224 128a8 8 0 0 1-8 8H59.31l58.35 58.34a8 8 0 0 1-11.32 11.32l-72-72a8 8 0 0 1 0-11.32l72-72a8 8 0 0 1 11.32 11.32L59.31 120H216a8 8 0 0 1 8 8Z\"/></svg>";
|
|
33
|
+
readonly 'houston-detective': "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80.73885\" height=\"73.61774\" fill=\"none\"><path fill=\"url(#a)\" d=\"M4.36139 21.7987c0-4.93847 4.00624-8.9419 8.94818-8.9419h49.21475c4.9424 0 8.9486 4.00343 8.9486 8.9419v32.4145c0 4.93841-4.0062 8.94186-8.9486 8.94186H13.30957c-4.94194 0-8.94818-4.00345-8.94818-8.94187z\"/><path fill=\"url(#b)\" d=\"M6.98283 22.62008c0-3.94523 3.2151-7.14348 7.18112-7.14348h47.50578c3.9662 0 7.18144 3.19825 7.18144 7.14348V53.3917c0 3.94545-3.21523 7.14387-7.18144 7.14387H14.16395c-3.96602 0-7.18112-3.19842-7.18112-7.14387z\"/><path fill=\"#fff\" d=\"M25.47554 43.24548c0 3.0745-2.4941 5.56686-5.57076 5.56686-3.0766 0-5.57077-2.49236-5.57077-5.56686s2.49416-5.56686 5.57077-5.56686c3.07666 0 5.57076 2.49236 5.57076 5.56686zm12.25545 3.34c1.84596 0 3.34243-1.49538 3.34243-3.3401h2.22833c0 3.0745-2.49415 5.56686-5.57076 5.56686-3.07666 0-5.57077-2.49236-5.57077-5.56686h2.22828c0 1.84472 1.49647 3.3401 3.34249 3.3401zm23.39735-3.34c0 3.0745-2.49419 5.56686-5.57082 5.56686-3.07658 0-5.57064-2.49236-5.57064-5.56686s2.49406-5.56686 5.57064-5.56686c3.07664 0 5.57082 2.49236 5.57082 5.56686z\"/><g filter=\"url(#c)\" opacity=\".5\" transform=\"matrix(.5 0 0 .5 0 .1236)\"><path fill=\"#000\" d=\"M104.83 26.2341c3.182 2.7053-1.591 12.5125-28.6385 12.5125-27.0471 0-31.8199-9.807-28.6381-12.5125 3.1818-2.7056 12.8217 1.6907 28.6381 1.6907 15.8164 0 25.4555-4.3961 28.6385-1.6907z\"/></g><g filter=\"url(#d)\" transform=\"matrix(.5 0 0 .5 0 .1236)\"><path fill=\"#663c0d\" d=\"M79.1496 5.30492c-.7721.51031-1.7701.50914-2.5512.01272-4.5064-2.86385-11.2943-6.50075-14.3451-2.91332-4.1955 4.93349-6.3656 17.86268-6.3656 20.24438 0 1.9053 14.7566 5.784 21.9902 7.4852 7.2336-1.7012 21.9902-5.5799 21.9902-7.4852 0-2.3817-3.3275-15.31089-7.523-20.24438-3.0463-3.58212-8.8653.03873-13.1955 2.9006z\"/></g><g filter=\"url(#e)\" transform=\"matrix(.5 0 0 .5 0 .1236)\"><path fill=\"#421913\" d=\"M56.4531 17.9819h42.5617l2.5902 11.2845H54.1523Z\"/></g><g filter=\"url(#f)\" transform=\"matrix(.5 0 0 .5 0 .1236)\"><path fill=\"#663c0d\" fill-rule=\"evenodd\" d=\"M51.2044 21.7432c-16.6972 0-13.3879 5.5266-6.2519 8.7939-.0399.0582-.0601.117-.0601.1761 0 1.598 14.768 2.8934 32.9853 2.8934 18.2172 0 32.9853-1.2954 32.9853-2.8934 0-.0479-.013-.0955-.04-.1429 7.075-3.2629 10.412-8.8271-6.083-8.8271-11.1883 0-20.1017 1.3613-26.5593 2.8804-6.559-1.5191-15.6124-2.8804-26.9763-2.8804z\" clip-rule=\"evenodd\"/></g><g filter=\"url(#g)\" transform=\"matrix(.5 0 0 .5 0 .1236)\"><path fill=\"#d2a460\" d=\"M11.479 82.4367c2.6687 3.4228 6.7106 11.7506 9.859 13.5839 15.5288 9.0424 37.7225 24.2464 56.4741 24.5724 18.7516-.326 36.9159-14.482 52.4449-23.5245 3.148-1.8333 7.19-7.0175 9.859-10.4403 1.45-1.8596 2.77-3.1993 2.77-3.1993s6.091 36.1791-1.328 39.8061c-28.151 13.763-103.3705 13.763-131.5215 0-7.41893-3.627-2.11069-40.854-1.32762-45.0455.27567 0 2.30452 3.65 2.77012 4.2472z\"/></g><g filter=\"url(#h)\" transform=\"matrix(.5 0 0 .5 0 .1236)\"><path fill=\"#d2a460\" d=\"m142.911 68.731-65.1786 51.865v9.447c21.7262-9.397 66.3766-34.1088 71.1716-39.8496 4.795-9.6363 1.249-21.4624-5.993-21.4624z\"/></g><g filter=\"url(#i)\" transform=\"matrix(.5 0 0 .5 0 .1236)\"><path fill=\"#d2a460\" d=\"m8.67377 68.731 69.05863 51.865v9.447C54.7129 120.646 7.40376 95.9342 2.32368 90.1934-2.75639 80.5571 1.00072 68.731 8.67377 68.731Z\"/></g><g filter=\"url(#j)\" transform=\"matrix(.5 0 0 .5 0 .1236)\"><path fill=\"#421913\" d=\"m127.123 109.203 7.779 1.798-5.636 33.161c-.657 2.993-12.371.06-11.121-2.774z\"/></g><g filter=\"url(#k)\" transform=\"matrix(.5 0 0 .5 0 .1236)\"><rect width=\"10.9039\" height=\"5.2351\" x=\"126.291\" y=\"106.322\" fill=\"url(#l)\" rx=\".52395\" transform=\"rotate(13 126.291 106.322)\"/></g><g filter=\"url(#m)\" transform=\"matrix(.5 0 0 .5 0 .1236)\"><circle cx=\"135.744\" cy=\"88.0296\" r=\"22.2183\" fill=\"url(#n)\" transform=\"rotate(43 135.744 88.0296)\"/></g><ellipse cx=\"79.76932\" cy=\"-14.01218\" fill=\"url(#o)\" rx=\"9.16844\" ry=\"9.16799\" transform=\"rotate(42.97994) skewX(-.04011)\"/><defs><filter id=\"c\" width=\"80.5643\" height=\"34.955\" x=\"35.9092\" y=\"14.5728\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_847_1831\" stdDeviation=\"5.3906\"/></filter><filter id=\"d\" width=\"46.8739\" height=\"31.8277\" x=\"54.1516\" y=\"-.24722\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dx=\"-1.73607\" dy=\"-1.15738\"/><feGaussianBlur stdDeviation=\"1.15738\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0\"/><feBlend in2=\"shape\" result=\"effect1_innerShadow_847_1831\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dx=\"1.15738\" dy=\"1.44672\"/><feGaussianBlur stdDeviation=\"1.15738\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0.579167 0 0 0 0 0.436815 0 0 0 0 0.277517 0 0 0 0.8 0\"/><feBlend in2=\"effect1_innerShadow_847_1831\" result=\"effect2_innerShadow_847_1831\"/></filter><filter id=\"e\" width=\"49.0455\" height=\"13.9403\" x=\"52.559\" y=\"17.9819\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dx=\"-1.59338\" dy=\"2.65563\"/><feGaussianBlur stdDeviation=\"1.59338\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0\"/><feBlend in2=\"shape\" result=\"effect1_innerShadow_847_1831\"/></filter><filter id=\"f\" width=\"80.4374\" height=\"14.4674\" x=\"37.3704\" y=\"20.5858\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dx=\"-1.73607\" dy=\"-1.15738\"/><feGaussianBlur stdDeviation=\"1.15738\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0\"/><feBlend in2=\"shape\" result=\"effect1_innerShadow_847_1831\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dx=\"1.15738\" dy=\"1.44672\"/><feGaussianBlur stdDeviation=\"1.15738\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0.579167 0 0 0 0 0.436815 0 0 0 0 0.277517 0 0 0 0.8 0\"/><feBlend in2=\"effect1_innerShadow_847_1831\" result=\"effect2_innerShadow_847_1831\"/></filter><filter id=\"g\" width=\"139.101\" height=\"61.6551\" x=\"6.13867\" y=\"76.0937\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\"-4.19159\"/><feGaussianBlur stdDeviation=\"1.0479\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0\"/><feBlend in2=\"shape\" result=\"effect1_innerShadow_847_1831\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\"-2.09579\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0\"/><feBlend in2=\"effect1_innerShadow_847_1831\" result=\"effect2_innerShadow_847_1831\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\"4.19159\"/><feGaussianBlur stdDeviation=\"4.19159\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0\"/><feBlend in2=\"effect2_innerShadow_847_1831\" result=\"effect3_innerShadow_847_1831\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\"1.0479\"/><feGaussianBlur stdDeviation=\"1.0479\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0\"/><feBlend in2=\"effect3_innerShadow_847_1831\" mode=\"overlay\" result=\"effect4_innerShadow_847_1831\"/></filter><filter id=\"h\" width=\"73.3652\" height=\"67.5994\" x=\"77.7324\" y=\"66.6352\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\"-4.19159\"/><feGaussianBlur stdDeviation=\"1.0479\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0\"/><feBlend in2=\"shape\" result=\"effect1_innerShadow_847_1831\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\"-2.09579\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0\"/><feBlend in2=\"effect1_innerShadow_847_1831\" result=\"effect2_innerShadow_847_1831\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\"4.19159\"/><feGaussianBlur stdDeviation=\"4.19159\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0\"/><feBlend in2=\"effect2_innerShadow_847_1831\" result=\"effect3_innerShadow_847_1831\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\"1.0479\"/><feGaussianBlur stdDeviation=\"1.0479\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0\"/><feBlend in2=\"effect3_innerShadow_847_1831\" mode=\"overlay\" result=\"effect4_innerShadow_847_1831\"/></filter><filter id=\"i\" width=\"77.7324\" height=\"67.5994\" x=\"0\" y=\"66.6352\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\"-4.19159\"/><feGaussianBlur stdDeviation=\"1.0479\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0\"/><feBlend in2=\"shape\" result=\"effect1_innerShadow_847_1831\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\"-2.09579\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0\"/><feBlend in2=\"effect1_innerShadow_847_1831\" result=\"effect2_innerShadow_847_1831\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\"4.19159\"/><feGaussianBlur stdDeviation=\"4.19159\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0\"/><feBlend in2=\"effect2_innerShadow_847_1831\" result=\"effect3_innerShadow_847_1831\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\"1.0479\"/><feGaussianBlur stdDeviation=\"1.0479\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0\"/><feBlend in2=\"effect3_innerShadow_847_1831\" mode=\"overlay\" result=\"effect4_innerShadow_847_1831\"/></filter><filter id=\"j\" width=\"18.4224\" height=\"37.7877\" x=\"116.48\" y=\"109.203\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dx=\"-2.6407\" dy=\"3.69907\"/><feGaussianBlur stdDeviation=\".78592\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0\"/><feBlend in2=\"shape\" result=\"effect1_innerShadow_847_1831\"/></filter><filter id=\"k\" width=\"18.4043\" height=\"14.1577\" x=\"121.811\" y=\"103.873\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\".8512\"/><feGaussianBlur stdDeviation=\"1.70239\"/><feComposite in2=\"hardAlpha\" operator=\"out\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0\"/><feBlend in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_847_1831\"/><feBlend in=\"SourceGraphic\" in2=\"effect1_dropShadow_847_1831\" result=\"shape\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dx=\".8512\" dy=\"-2.55359\"/><feGaussianBlur stdDeviation=\"1.70239\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0\"/><feBlend in2=\"shape\" result=\"effect2_innerShadow_847_1831\"/></filter><filter id=\"m\" width=\"51.2461\" height=\"51.2466\" x=\"110.121\" y=\"63.2574\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dy=\".8512\"/><feGaussianBlur stdDeviation=\"1.70239\"/><feComposite in2=\"hardAlpha\" operator=\"out\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0\"/><feBlend in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_847_1831\"/><feBlend in=\"SourceGraphic\" in2=\"effect1_dropShadow_847_1831\" result=\"shape\"/><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"/><feOffset dx=\".8512\" dy=\"-2.55359\"/><feGaussianBlur stdDeviation=\"1.70239\"/><feComposite in2=\"hardAlpha\" k2=\"-1\" k3=\"1\" operator=\"arithmetic\"/><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0\"/><feBlend in2=\"shape\" result=\"effect2_innerShadow_847_1831\"/></filter><radialGradient id=\"a\" cx=\"0\" cy=\"0\" r=\"1\" gradientTransform=\"matrix(0 -25.15 33.555 0 37.91706 38.00588)\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#3245FF\"/><stop offset=\".28646\" stop-color=\"#BC52EE\"/><stop offset=\".41434\" stop-color=\"#4AF2C8\"/><stop offset=\".55466\" stop-color=\"#4AF2C8\"/><stop offset=\"1\" stop-color=\"#3245FF\"/></radialGradient><radialGradient id=\"b\" cx=\"0\" cy=\"0\" r=\"1\" gradientTransform=\"matrix(0 36.673 -50.354 0 37.91691 32.37368)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\".36659\" stop-color=\"#191C24\"/><stop offset=\".66145\" stop-color=\"#111218\"/><stop offset=\"1\" stop-color=\"#040506\"/></radialGradient><radialGradient id=\"l\" cx=\"0\" cy=\"0\" r=\"1\" gradientTransform=\"matrix(6.044 5.658 -9.328 9.963 130.134 106.85)\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#D5D7DB\"/><stop offset=\".17494\" stop-color=\"#BABFCF\"/><stop offset=\".32731\" stop-color=\"#A7AAB6\"/><stop offset=\".45345\" stop-color=\"#9CA0AE\"/><stop offset=\".60938\" stop-color=\"#7F818A\"/><stop offset=\".79688\" stop-color=\"#636673\"/><stop offset=\"1\" stop-color=\"#47474A\"/></radialGradient><radialGradient id=\"n\" cx=\"0\" cy=\"0\" r=\"1\" gradientTransform=\"matrix(24.63 48.03 -64.437 33.045 129.187 70.2917)\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#D5D7DB\"/><stop offset=\".17494\" stop-color=\"#BABFCF\"/><stop offset=\".32731\" stop-color=\"#A7AAB6\"/><stop offset=\".45345\" stop-color=\"#9CA0AE\"/><stop offset=\".60938\" stop-color=\"#7F818A\"/><stop offset=\".79688\" stop-color=\"#636673\"/><stop offset=\"1\" stop-color=\"#47474A\"/></radialGradient><linearGradient id=\"o\" x1=\"154.075\" x2=\"109.822\" y1=\"69.6993\" y2=\"88.276\" gradientTransform=\"matrix(.5 0 0 .5 11.87299 -58.04057)\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#4AF2C8\"/><stop offset=\"1\" stop-color=\"#2F4CB3\"/></linearGradient></defs></svg>";
|
|
30
34
|
};
|
|
31
35
|
export {};
|
|
@@ -33,7 +33,11 @@ const icons = {
|
|
|
33
33
|
searchFile: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 32 32"><path fill="currentColor" d="M16 26.67H6.67a1.33 1.33 0 0 1-1.34-1.34V6.67a1.33 1.33 0 0 1 1.34-1.34h6.66v4a4 4 0 0 0 4 4h4v1.34a1.33 1.33 0 0 0 2.67 0v-2.75a1.75 1.75 0 0 0-.08-.36v-.12a1.43 1.43 0 0 0-.25-.37l-8-8c-.11-.1-.24-.2-.38-.26h-.12a1.17 1.17 0 0 0-.44-.14H6.67a4 4 0 0 0-4 4v18.66a4 4 0 0 0 4 4H16a1.33 1.33 0 0 0 0-2.66ZM16 7.2l3.45 3.46h-2.12A1.33 1.33 0 0 1 16 9.33V7.21Zm-6.67 3.46a1.33 1.33 0 0 0 0 2.66h1.34a1.33 1.33 0 0 0 0-2.66H9.33Zm19.62 16.38-1.56-1.54a4.59 4.59 0 0 0-.72-5.51 4.65 4.65 0 0 0-8 3.32 4.61 4.61 0 0 0 6.84 4.07l1.54 1.56a1.33 1.33 0 0 0 2.19-.44 1.33 1.33 0 0 0-.3-1.46Zm-4.23-2.33a2.05 2.05 0 0 1-2.81 0 2 2 0 0 1 0-2.81 2 2 0 0 1 1.34-.58 1.96 1.96 0 0 1 1.47 3.39ZM17.33 16h-8a1.33 1.33 0 0 0 0 2.67h8a1.33 1.33 0 1 0 0-2.67Zm-2.66 8a1.33 1.33 0 0 0 0-2.67H9.33a1.33 1.33 0 0 0 0 2.67h5.34Z"/></svg>',
|
|
34
34
|
image: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 33 32"><path fill="currentColor" d="M26 2.67H7.33a4 4 0 0 0-4 4v18.66a4 4 0 0 0 4 4H26c.22 0 .44-.02.65-.06l.4-.1h.16l.5-.18.17-.1c.13-.08.28-.14.41-.24.18-.13.35-.27.5-.42l.1-.12c.13-.14.25-.28.36-.43l.12-.17c.1-.15.18-.3.24-.47l.1-.2.16-.5v-.2c.07-.27.12-.54.13-.8V6.66a4 4 0 0 0-4-4Zm-18.67 24A1.33 1.33 0 0 1 6 25.33V19.6l4.39-4.4a1.33 1.33 0 0 1 1.89 0l11.47 11.48H7.33Zm20-1.34c0 .17-.03.33-.1.48a1.33 1.33 0 0 1-.22.35l-7.13-7.13 1.17-1.18a1.33 1.33 0 0 1 1.9 0l4.38 4.4v3.08Zm0-6.85L24.83 16a4.1 4.1 0 0 0-5.66 0L18 17.17l-3.84-3.84a4.1 4.1 0 0 0-5.65 0L6 15.81V6.67a1.33 1.33 0 0 1 1.33-1.34H26a1.33 1.33 0 0 1 1.33 1.34v11.81Z"/></svg>',
|
|
35
35
|
robot: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 33 32"><path fill="currentColor" d="M12.67 20a1.33 1.33 0 1 0 0 2.67 1.33 1.33 0 0 0 0-2.67Zm-9.34-1.33A1.33 1.33 0 0 0 2 20v2.67a1.33 1.33 0 1 0 2.67 0V20a1.33 1.33 0 0 0-1.34-1.33Zm26.67 0A1.33 1.33 0 0 0 28.67 20v2.67a1.33 1.33 0 1 0 2.66 0V20A1.33 1.33 0 0 0 30 18.67Zm-6.67-9.34H18v-1.7a2.67 2.67 0 0 0 .55-4.18 2.67 2.67 0 0 0-4.19 3.2c.24.41.57.74.97.98v1.7H10a4 4 0 0 0-4 4v12a4 4 0 0 0 4 4h13.33a4 4 0 0 0 4-4v-12a4 4 0 0 0-4-4ZM18.96 12l-.67 2.67h-3.25L14.37 12h4.59Zm5.7 13.33a1.33 1.33 0 0 1-1.33 1.34H10a1.33 1.33 0 0 1-1.33-1.34v-12A1.33 1.33 0 0 1 10 12h1.63l1.04 4.32A1.33 1.33 0 0 0 14 17.33h5.33a1.33 1.33 0 0 0 1.34-1.01L21.7 12h1.62a1.33 1.33 0 0 1 1.34 1.33v12Zm-4-5.33a1.33 1.33 0 1 0 0 2.67 1.33 1.33 0 0 0 0-2.67Z"/></svg>',
|
|
36
|
-
sitemap: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 33 32"><path fill="currentColor" d="M29.67 20H27v-4a1.33 1.33 0 0 0-1.33-1.33h-8V12h2.66a1.33 1.33 0 0 0 1.34-1.33v-8a1.33 1.33 0 0 0-1.34-1.34h-8A1.33 1.33 0 0 0 11 2.67v8A1.33 1.33 0 0 0 12.33 12H15v2.67H7A1.33 1.33 0 0 0 5.67 16v4H3a1.33 1.33 0 0 0-1.33 1.33v8A1.33 1.33 0 0 0 3 30.67h8a1.33 1.33 0 0 0 1.33-1.34v-8A1.33 1.33 0 0 0 11 20H8.33v-2.67h16V20h-2.66a1.33 1.33 0 0 0-1.34 1.33v8a1.33 1.33 0 0 0 1.34 1.34h8A1.33 1.33 0 0 0 31 29.33v-8A1.33 1.33 0 0 0 29.67 20Zm-20 2.67V28H4.33v-5.33h5.34Zm4-13.34V4H19v5.33h-5.33ZM28.33 28H23v-5.33h5.33V28Z"/></svg>'
|
|
36
|
+
sitemap: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 33 32"><path fill="currentColor" d="M29.67 20H27v-4a1.33 1.33 0 0 0-1.33-1.33h-8V12h2.66a1.33 1.33 0 0 0 1.34-1.33v-8a1.33 1.33 0 0 0-1.34-1.34h-8A1.33 1.33 0 0 0 11 2.67v8A1.33 1.33 0 0 0 12.33 12H15v2.67H7A1.33 1.33 0 0 0 5.67 16v4H3a1.33 1.33 0 0 0-1.33 1.33v8A1.33 1.33 0 0 0 3 30.67h8a1.33 1.33 0 0 0 1.33-1.34v-8A1.33 1.33 0 0 0 11 20H8.33v-2.67h16V20h-2.66a1.33 1.33 0 0 0-1.34 1.33v8a1.33 1.33 0 0 0 1.34 1.34h8A1.33 1.33 0 0 0 31 29.33v-8A1.33 1.33 0 0 0 29.67 20Zm-20 2.67V28H4.33v-5.33h5.34Zm4-13.34V4H19v5.33h-5.33ZM28.33 28H23v-5.33h5.33V28Z"/></svg>',
|
|
37
|
+
gauge: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M207 80.7A111.2 111.2 0 0 0 128 48h-.4C66.1 48.2 16 99 16 161.1V184a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-24a111.3 111.3 0 0 0-33-79.3ZM224 184H119.7l54.8-75.3a8 8 0 0 0-13-9.4L100 184H32v-22.9c0-3 .1-6 .4-9.1H56a8 8 0 0 0 0-16H35.3A96.7 96.7 0 0 1 120 64.3V88a8 8 0 0 0 16 0V64.3a96.1 96.1 0 0 1 85 71.7h-21a8 8 0 0 0 0 16h23.7c.2 2.6.3 5.3.3 8Z"/></svg>',
|
|
38
|
+
"person-arms-spread": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M160 40a32 32 0 1 0-32 32 32 32 0 0 0 32-32Zm-32 16a16 16 0 1 1 16-16 16 16 0 0 1-16 16Zm103.5 31.7A19.6 19.6 0 0 0 212 72H44a20 20 0 0 0-8.4 38.2h.1l50.8 22.3-21 79.7a20 20 0 0 0 36.5 16.6l26-44.9 26 44.9a20 20 0 0 0 36.4-16.5l-21-79.7 50.8-22.4a19.6 19.6 0 0 0 11.3-22.5Zm-17.8 8-57 25a8 8 0 0 0-4.4 9.3l22.8 87a7 7 0 0 0 .5 1.4 4 4 0 0 1-5 5.4 4 4 0 0 1-2.2-2 6.3 6.3 0 0 0-.4-.7L135 164a8 8 0 0 0-14 0l-33 57a6.3 6.3 0 0 0-.3.7 4 4 0 0 1-2.3 2 4 4 0 0 1-5-5.4 7 7 0 0 0 .5-1.4l22.8-86.9a8 8 0 0 0-4.5-9.4l-56.9-25A4 4 0 0 1 44 88h168a4 4 0 0 1 1.7 7.6Z"/></svg>',
|
|
39
|
+
"arrow-left": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path d="M224 128a8 8 0 0 1-8 8H59.31l58.35 58.34a8 8 0 0 1-11.32 11.32l-72-72a8 8 0 0 1 0-11.32l72-72a8 8 0 0 1 11.32 11.32L59.31 120H216a8 8 0 0 1 8 8Z"/></svg>',
|
|
40
|
+
"houston-detective": '<svg xmlns="http://www.w3.org/2000/svg" width="80.73885" height="73.61774" fill="none"><path fill="url(#a)" d="M4.36139 21.7987c0-4.93847 4.00624-8.9419 8.94818-8.9419h49.21475c4.9424 0 8.9486 4.00343 8.9486 8.9419v32.4145c0 4.93841-4.0062 8.94186-8.9486 8.94186H13.30957c-4.94194 0-8.94818-4.00345-8.94818-8.94187z"/><path fill="url(#b)" d="M6.98283 22.62008c0-3.94523 3.2151-7.14348 7.18112-7.14348h47.50578c3.9662 0 7.18144 3.19825 7.18144 7.14348V53.3917c0 3.94545-3.21523 7.14387-7.18144 7.14387H14.16395c-3.96602 0-7.18112-3.19842-7.18112-7.14387z"/><path fill="#fff" d="M25.47554 43.24548c0 3.0745-2.4941 5.56686-5.57076 5.56686-3.0766 0-5.57077-2.49236-5.57077-5.56686s2.49416-5.56686 5.57077-5.56686c3.07666 0 5.57076 2.49236 5.57076 5.56686zm12.25545 3.34c1.84596 0 3.34243-1.49538 3.34243-3.3401h2.22833c0 3.0745-2.49415 5.56686-5.57076 5.56686-3.07666 0-5.57077-2.49236-5.57077-5.56686h2.22828c0 1.84472 1.49647 3.3401 3.34249 3.3401zm23.39735-3.34c0 3.0745-2.49419 5.56686-5.57082 5.56686-3.07658 0-5.57064-2.49236-5.57064-5.56686s2.49406-5.56686 5.57064-5.56686c3.07664 0 5.57082 2.49236 5.57082 5.56686z"/><g filter="url(#c)" opacity=".5" transform="matrix(.5 0 0 .5 0 .1236)"><path fill="#000" d="M104.83 26.2341c3.182 2.7053-1.591 12.5125-28.6385 12.5125-27.0471 0-31.8199-9.807-28.6381-12.5125 3.1818-2.7056 12.8217 1.6907 28.6381 1.6907 15.8164 0 25.4555-4.3961 28.6385-1.6907z"/></g><g filter="url(#d)" transform="matrix(.5 0 0 .5 0 .1236)"><path fill="#663c0d" d="M79.1496 5.30492c-.7721.51031-1.7701.50914-2.5512.01272-4.5064-2.86385-11.2943-6.50075-14.3451-2.91332-4.1955 4.93349-6.3656 17.86268-6.3656 20.24438 0 1.9053 14.7566 5.784 21.9902 7.4852 7.2336-1.7012 21.9902-5.5799 21.9902-7.4852 0-2.3817-3.3275-15.31089-7.523-20.24438-3.0463-3.58212-8.8653.03873-13.1955 2.9006z"/></g><g filter="url(#e)" transform="matrix(.5 0 0 .5 0 .1236)"><path fill="#421913" d="M56.4531 17.9819h42.5617l2.5902 11.2845H54.1523Z"/></g><g filter="url(#f)" transform="matrix(.5 0 0 .5 0 .1236)"><path fill="#663c0d" fill-rule="evenodd" d="M51.2044 21.7432c-16.6972 0-13.3879 5.5266-6.2519 8.7939-.0399.0582-.0601.117-.0601.1761 0 1.598 14.768 2.8934 32.9853 2.8934 18.2172 0 32.9853-1.2954 32.9853-2.8934 0-.0479-.013-.0955-.04-.1429 7.075-3.2629 10.412-8.8271-6.083-8.8271-11.1883 0-20.1017 1.3613-26.5593 2.8804-6.559-1.5191-15.6124-2.8804-26.9763-2.8804z" clip-rule="evenodd"/></g><g filter="url(#g)" transform="matrix(.5 0 0 .5 0 .1236)"><path fill="#d2a460" d="M11.479 82.4367c2.6687 3.4228 6.7106 11.7506 9.859 13.5839 15.5288 9.0424 37.7225 24.2464 56.4741 24.5724 18.7516-.326 36.9159-14.482 52.4449-23.5245 3.148-1.8333 7.19-7.0175 9.859-10.4403 1.45-1.8596 2.77-3.1993 2.77-3.1993s6.091 36.1791-1.328 39.8061c-28.151 13.763-103.3705 13.763-131.5215 0-7.41893-3.627-2.11069-40.854-1.32762-45.0455.27567 0 2.30452 3.65 2.77012 4.2472z"/></g><g filter="url(#h)" transform="matrix(.5 0 0 .5 0 .1236)"><path fill="#d2a460" d="m142.911 68.731-65.1786 51.865v9.447c21.7262-9.397 66.3766-34.1088 71.1716-39.8496 4.795-9.6363 1.249-21.4624-5.993-21.4624z"/></g><g filter="url(#i)" transform="matrix(.5 0 0 .5 0 .1236)"><path fill="#d2a460" d="m8.67377 68.731 69.05863 51.865v9.447C54.7129 120.646 7.40376 95.9342 2.32368 90.1934-2.75639 80.5571 1.00072 68.731 8.67377 68.731Z"/></g><g filter="url(#j)" transform="matrix(.5 0 0 .5 0 .1236)"><path fill="#421913" d="m127.123 109.203 7.779 1.798-5.636 33.161c-.657 2.993-12.371.06-11.121-2.774z"/></g><g filter="url(#k)" transform="matrix(.5 0 0 .5 0 .1236)"><rect width="10.9039" height="5.2351" x="126.291" y="106.322" fill="url(#l)" rx=".52395" transform="rotate(13 126.291 106.322)"/></g><g filter="url(#m)" transform="matrix(.5 0 0 .5 0 .1236)"><circle cx="135.744" cy="88.0296" r="22.2183" fill="url(#n)" transform="rotate(43 135.744 88.0296)"/></g><ellipse cx="79.76932" cy="-14.01218" fill="url(#o)" rx="9.16844" ry="9.16799" transform="rotate(42.97994) skewX(-.04011)"/><defs><filter id="c" width="80.5643" height="34.955" x="35.9092" y="14.5728" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_847_1831" stdDeviation="5.3906"/></filter><filter id="d" width="46.8739" height="31.8277" x="54.1516" y="-.24722" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dx="-1.73607" dy="-1.15738"/><feGaussianBlur stdDeviation="1.15738"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0"/><feBlend in2="shape" result="effect1_innerShadow_847_1831"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dx="1.15738" dy="1.44672"/><feGaussianBlur stdDeviation="1.15738"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0.579167 0 0 0 0 0.436815 0 0 0 0 0.277517 0 0 0 0.8 0"/><feBlend in2="effect1_innerShadow_847_1831" result="effect2_innerShadow_847_1831"/></filter><filter id="e" width="49.0455" height="13.9403" x="52.559" y="17.9819" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dx="-1.59338" dy="2.65563"/><feGaussianBlur stdDeviation="1.59338"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend in2="shape" result="effect1_innerShadow_847_1831"/></filter><filter id="f" width="80.4374" height="14.4674" x="37.3704" y="20.5858" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dx="-1.73607" dy="-1.15738"/><feGaussianBlur stdDeviation="1.15738"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0"/><feBlend in2="shape" result="effect1_innerShadow_847_1831"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dx="1.15738" dy="1.44672"/><feGaussianBlur stdDeviation="1.15738"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0.579167 0 0 0 0 0.436815 0 0 0 0 0.277517 0 0 0 0.8 0"/><feBlend in2="effect1_innerShadow_847_1831" result="effect2_innerShadow_847_1831"/></filter><filter id="g" width="139.101" height="61.6551" x="6.13867" y="76.0937" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="-4.19159"/><feGaussianBlur stdDeviation="1.0479"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend in2="shape" result="effect1_innerShadow_847_1831"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="-2.09579"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"/><feBlend in2="effect1_innerShadow_847_1831" result="effect2_innerShadow_847_1831"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="4.19159"/><feGaussianBlur stdDeviation="4.19159"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"/><feBlend in2="effect2_innerShadow_847_1831" result="effect3_innerShadow_847_1831"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="1.0479"/><feGaussianBlur stdDeviation="1.0479"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="effect3_innerShadow_847_1831" mode="overlay" result="effect4_innerShadow_847_1831"/></filter><filter id="h" width="73.3652" height="67.5994" x="77.7324" y="66.6352" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="-4.19159"/><feGaussianBlur stdDeviation="1.0479"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend in2="shape" result="effect1_innerShadow_847_1831"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="-2.09579"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"/><feBlend in2="effect1_innerShadow_847_1831" result="effect2_innerShadow_847_1831"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="4.19159"/><feGaussianBlur stdDeviation="4.19159"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"/><feBlend in2="effect2_innerShadow_847_1831" result="effect3_innerShadow_847_1831"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="1.0479"/><feGaussianBlur stdDeviation="1.0479"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="effect3_innerShadow_847_1831" mode="overlay" result="effect4_innerShadow_847_1831"/></filter><filter id="i" width="77.7324" height="67.5994" x="0" y="66.6352" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="-4.19159"/><feGaussianBlur stdDeviation="1.0479"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend in2="shape" result="effect1_innerShadow_847_1831"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="-2.09579"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"/><feBlend in2="effect1_innerShadow_847_1831" result="effect2_innerShadow_847_1831"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="4.19159"/><feGaussianBlur stdDeviation="4.19159"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"/><feBlend in2="effect2_innerShadow_847_1831" result="effect3_innerShadow_847_1831"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="1.0479"/><feGaussianBlur stdDeviation="1.0479"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/><feBlend in2="effect3_innerShadow_847_1831" mode="overlay" result="effect4_innerShadow_847_1831"/></filter><filter id="j" width="18.4224" height="37.7877" x="116.48" y="109.203" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dx="-2.6407" dy="3.69907"/><feGaussianBlur stdDeviation=".78592"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend in2="shape" result="effect1_innerShadow_847_1831"/></filter><filter id="k" width="18.4043" height="14.1577" x="121.811" y="103.873" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy=".8512"/><feGaussianBlur stdDeviation="1.70239"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_847_1831"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_847_1831" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dx=".8512" dy="-2.55359"/><feGaussianBlur stdDeviation="1.70239"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend in2="shape" result="effect2_innerShadow_847_1831"/></filter><filter id="m" width="51.2461" height="51.2466" x="110.121" y="63.2574" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy=".8512"/><feGaussianBlur stdDeviation="1.70239"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_847_1831"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_847_1831" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dx=".8512" dy="-2.55359"/><feGaussianBlur stdDeviation="1.70239"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend in2="shape" result="effect2_innerShadow_847_1831"/></filter><radialGradient id="a" cx="0" cy="0" r="1" gradientTransform="matrix(0 -25.15 33.555 0 37.91706 38.00588)" gradientUnits="userSpaceOnUse"><stop stop-color="#3245FF"/><stop offset=".28646" stop-color="#BC52EE"/><stop offset=".41434" stop-color="#4AF2C8"/><stop offset=".55466" stop-color="#4AF2C8"/><stop offset="1" stop-color="#3245FF"/></radialGradient><radialGradient id="b" cx="0" cy="0" r="1" gradientTransform="matrix(0 36.673 -50.354 0 37.91691 32.37368)" gradientUnits="userSpaceOnUse"><stop offset=".36659" stop-color="#191C24"/><stop offset=".66145" stop-color="#111218"/><stop offset="1" stop-color="#040506"/></radialGradient><radialGradient id="l" cx="0" cy="0" r="1" gradientTransform="matrix(6.044 5.658 -9.328 9.963 130.134 106.85)" gradientUnits="userSpaceOnUse"><stop stop-color="#D5D7DB"/><stop offset=".17494" stop-color="#BABFCF"/><stop offset=".32731" stop-color="#A7AAB6"/><stop offset=".45345" stop-color="#9CA0AE"/><stop offset=".60938" stop-color="#7F818A"/><stop offset=".79688" stop-color="#636673"/><stop offset="1" stop-color="#47474A"/></radialGradient><radialGradient id="n" cx="0" cy="0" r="1" gradientTransform="matrix(24.63 48.03 -64.437 33.045 129.187 70.2917)" gradientUnits="userSpaceOnUse"><stop stop-color="#D5D7DB"/><stop offset=".17494" stop-color="#BABFCF"/><stop offset=".32731" stop-color="#A7AAB6"/><stop offset=".45345" stop-color="#9CA0AE"/><stop offset=".60938" stop-color="#7F818A"/><stop offset=".79688" stop-color="#636673"/><stop offset="1" stop-color="#47474A"/></radialGradient><linearGradient id="o" x1="154.075" x2="109.822" y1="69.6993" y2="88.276" gradientTransform="matrix(.5 0 0 .5 11.87299 -58.04057)" gradientUnits="userSpaceOnUse"><stop stop-color="#4AF2C8"/><stop offset="1" stop-color="#2F4CB3"/></linearGradient></defs></svg>'
|
|
37
41
|
};
|
|
38
42
|
export {
|
|
39
43
|
getIconElement,
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
declare const styles: readonly ["purple", "gray", "red", "green", "yellow", "blue"];
|
|
2
|
+
type ToggleStyle = (typeof styles)[number];
|
|
1
3
|
export declare class DevToolbarToggle extends HTMLElement {
|
|
2
4
|
shadowRoot: ShadowRoot;
|
|
3
5
|
input: HTMLInputElement;
|
|
6
|
+
_toggleStyle: ToggleStyle;
|
|
7
|
+
get toggleStyle(): "red" | "purple" | "gray" | "green" | "yellow" | "blue";
|
|
8
|
+
set toggleStyle(value: "red" | "purple" | "gray" | "green" | "yellow" | "blue");
|
|
9
|
+
static observedAttributes: string[];
|
|
4
10
|
constructor();
|
|
11
|
+
attributeChangedCallback(): void;
|
|
12
|
+
updateStyle(): void;
|
|
5
13
|
connectedCallback(): void;
|
|
6
14
|
get value(): string;
|
|
7
15
|
set value(val: string);
|
|
8
16
|
}
|
|
17
|
+
export {};
|
|
@@ -1,16 +1,57 @@
|
|
|
1
|
+
import { settings } from "../settings.js";
|
|
2
|
+
const styles = ["purple", "gray", "red", "green", "yellow", "blue"];
|
|
1
3
|
class DevToolbarToggle extends HTMLElement {
|
|
2
4
|
shadowRoot;
|
|
3
5
|
input;
|
|
6
|
+
_toggleStyle = "gray";
|
|
7
|
+
get toggleStyle() {
|
|
8
|
+
return this._toggleStyle;
|
|
9
|
+
}
|
|
10
|
+
set toggleStyle(value) {
|
|
11
|
+
if (!styles.includes(value)) {
|
|
12
|
+
settings.logger.error(`Invalid style: ${value}, expected one of ${styles.join(", ")}.`);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
this._toggleStyle = value;
|
|
16
|
+
this.updateStyle();
|
|
17
|
+
}
|
|
18
|
+
static observedAttributes = ["toggle-style"];
|
|
4
19
|
constructor() {
|
|
5
20
|
super();
|
|
6
21
|
this.shadowRoot = this.attachShadow({ mode: "open" });
|
|
7
22
|
this.shadowRoot.innerHTML = `
|
|
8
23
|
<style>
|
|
24
|
+
:host {
|
|
25
|
+
--purple-bg-on: rgba(113, 24, 226, 1);
|
|
26
|
+
--purple-border-off: rgba(113, 24, 226, 1);
|
|
27
|
+
--purple-border-on: rgba(224, 204, 250, 1);
|
|
28
|
+
|
|
29
|
+
--gray-bg-on: rgba(61, 125, 31, 1);
|
|
30
|
+
--gray-border-off: rgba(145, 152, 173, 1);
|
|
31
|
+
--gray-border-on: rgba(213, 249, 196, 1);
|
|
32
|
+
|
|
33
|
+
--red-bg-on: rgba(179, 62, 102, 1);
|
|
34
|
+
--red-border-off: rgba(179, 62, 102, 1);
|
|
35
|
+
--red-border-on: rgba(249, 196, 215, 1);
|
|
36
|
+
|
|
37
|
+
--green-bg-on: rgba(61, 125, 31, 1);
|
|
38
|
+
--green-border-off: rgba(61, 125, 31, 1);
|
|
39
|
+
--green-border-on: rgba(213, 249, 196, 1);
|
|
40
|
+
|
|
41
|
+
--yellow-bg-on: rgba(181, 138, 45, 1);
|
|
42
|
+
--yellow-border-off: rgba(181, 138, 45, 1);
|
|
43
|
+
--yellow-border-on: rgba(255, 236, 179, 1);
|
|
44
|
+
|
|
45
|
+
--blue-bg-on: rgba(54, 69, 217, 1);
|
|
46
|
+
--blue-border-off: rgba(54, 69, 217, 1);
|
|
47
|
+
--blue-border-on: rgba(189, 195, 255, 1);
|
|
48
|
+
}
|
|
49
|
+
|
|
9
50
|
input {
|
|
10
51
|
appearance: none;
|
|
11
52
|
width: 32px;
|
|
12
53
|
height: 20px;
|
|
13
|
-
border: 1px solid
|
|
54
|
+
border: 1px solid var(--border-off);
|
|
14
55
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
15
56
|
border-radius: 9999px;
|
|
16
57
|
}
|
|
@@ -20,7 +61,7 @@ class DevToolbarToggle extends HTMLElement {
|
|
|
20
61
|
width: 16px;
|
|
21
62
|
display: inline-block;
|
|
22
63
|
height: 16px;
|
|
23
|
-
background-color:
|
|
64
|
+
background-color: var(--border-off);
|
|
24
65
|
border-radius: 9999px;
|
|
25
66
|
transition: transform 0.2s ease, background-color 0.2s ease;
|
|
26
67
|
top: 1px;
|
|
@@ -37,21 +78,39 @@ class DevToolbarToggle extends HTMLElement {
|
|
|
37
78
|
}
|
|
38
79
|
|
|
39
80
|
input:checked {
|
|
40
|
-
border: 1px solid
|
|
41
|
-
background-color:
|
|
81
|
+
border: 1px solid var(--border-on);
|
|
82
|
+
background-color: var(--bg-on);
|
|
42
83
|
}
|
|
43
84
|
|
|
44
85
|
input:checked::after {
|
|
45
86
|
transform: translateX(12px);
|
|
46
|
-
background:
|
|
87
|
+
background: var(--border-on);
|
|
47
88
|
}
|
|
48
89
|
</style>
|
|
90
|
+
<style id="selected-style"></style>
|
|
49
91
|
`;
|
|
50
92
|
this.input = document.createElement("input");
|
|
51
93
|
}
|
|
94
|
+
attributeChangedCallback() {
|
|
95
|
+
if (this.hasAttribute("toggle-style"))
|
|
96
|
+
this.toggleStyle = this.getAttribute("toggle-style");
|
|
97
|
+
}
|
|
98
|
+
updateStyle() {
|
|
99
|
+
const style = this.shadowRoot.querySelector("#selected-style");
|
|
100
|
+
if (style) {
|
|
101
|
+
style.innerHTML = `
|
|
102
|
+
:host {
|
|
103
|
+
--bg-on: var(--${this.toggleStyle}-bg-on);
|
|
104
|
+
--border-off: var(--${this.toggleStyle}-border-off);
|
|
105
|
+
--border-on: var(--${this.toggleStyle}-border-on);
|
|
106
|
+
}
|
|
107
|
+
`;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
52
110
|
connectedCallback() {
|
|
53
111
|
this.input.type = "checkbox";
|
|
54
112
|
this.shadowRoot.append(this.input);
|
|
113
|
+
this.updateStyle();
|
|
55
114
|
}
|
|
56
115
|
get value() {
|
|
57
116
|
return this.input.value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Fragment, addAttribute, createAstro, createComponent, createTransitionScope, defineScriptVars, defineStyleVars, maybeRenderHead, mergeSlots, render, renderComponent, renderHead, renderSlot, renderTransition, spreadAttributes, unescapeHTML, } from '../server/index.js';
|
|
1
|
+
export { Fragment, addAttribute, createAstro, createComponent, createTransitionScope, defineScriptVars, defineStyleVars, maybeRenderHead, mergeSlots, render, renderComponent, renderHead, renderScript, renderSlot, renderTransition, spreadAttributes, unescapeHTML, } from '../server/index.js';
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
render,
|
|
12
12
|
renderComponent,
|
|
13
13
|
renderHead,
|
|
14
|
+
renderScript,
|
|
14
15
|
renderSlot,
|
|
15
16
|
renderTransition,
|
|
16
17
|
spreadAttributes,
|
|
@@ -29,6 +30,7 @@ export {
|
|
|
29
30
|
render,
|
|
30
31
|
renderComponent,
|
|
31
32
|
renderHead,
|
|
33
|
+
renderScript,
|
|
32
34
|
renderSlot,
|
|
33
35
|
renderTransition,
|
|
34
36
|
spreadAttributes,
|
|
@@ -3,7 +3,8 @@ import { escapeHTML } from "./escape.js";
|
|
|
3
3
|
import { serializeProps } from "./serialize.js";
|
|
4
4
|
const transitionDirectivesToCopyOnIsland = Object.freeze([
|
|
5
5
|
"data-astro-transition-scope",
|
|
6
|
-
"data-astro-transition-persist"
|
|
6
|
+
"data-astro-transition-persist",
|
|
7
|
+
"data-astro-transition-persist-props"
|
|
7
8
|
]);
|
|
8
9
|
function extractDirectives(inputProps, clientDirectives) {
|
|
9
10
|
let extracted = {
|
|
@@ -110,7 +111,7 @@ async function generateHydrateScript(scriptOptions, metadata) {
|
|
|
110
111
|
})
|
|
111
112
|
);
|
|
112
113
|
transitionDirectivesToCopyOnIsland.forEach((name) => {
|
|
113
|
-
if (props[name]) {
|
|
114
|
+
if (typeof props[name] !== "undefined") {
|
|
114
115
|
island.props[name] = props[name];
|
|
115
116
|
}
|
|
116
117
|
});
|
|
@@ -3,7 +3,7 @@ export { createAstro } from './astro-global.js';
|
|
|
3
3
|
export { renderEndpoint } from './endpoint.js';
|
|
4
4
|
export { escapeHTML, HTMLBytes, HTMLString, isHTMLString, markHTMLString, unescapeHTML, } from './escape.js';
|
|
5
5
|
export { renderJSX } from './jsx.js';
|
|
6
|
-
export { addAttribute, createHeadAndContent, defineScriptVars, Fragment, maybeRenderHead, renderTemplate as render, renderComponent, Renderer as Renderer, renderHead, renderHTMLElement, renderPage, renderScriptElement, renderSlot, renderSlotToString, renderTemplate, renderToString, renderUniqueStylesheet, voidElementNames, } from './render/index.js';
|
|
6
|
+
export { addAttribute, createHeadAndContent, defineScriptVars, Fragment, maybeRenderHead, renderTemplate as render, renderComponent, Renderer as Renderer, renderHead, renderHTMLElement, renderPage, renderScript, renderScriptElement, renderSlot, renderSlotToString, renderTemplate, renderToString, renderUniqueStylesheet, voidElementNames, } from './render/index.js';
|
|
7
7
|
export type { AstroComponentFactory, AstroComponentInstance, ComponentSlots, RenderInstruction, } from './render/index.js';
|
|
8
8
|
export { createTransitionScope, renderTransition } from './transition.js';
|
|
9
9
|
export declare function mergeSlots(...slotted: unknown[]): Record<string, () => any>;
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
renderHead,
|
|
23
23
|
renderHTMLElement,
|
|
24
24
|
renderPage,
|
|
25
|
+
renderScript,
|
|
25
26
|
renderScriptElement,
|
|
26
27
|
renderSlot,
|
|
27
28
|
renderSlotToString,
|
|
@@ -110,6 +111,7 @@ export {
|
|
|
110
111
|
renderHead,
|
|
111
112
|
renderJSX,
|
|
112
113
|
renderPage,
|
|
114
|
+
renderScript,
|
|
113
115
|
renderScriptElement,
|
|
114
116
|
renderSlot,
|
|
115
117
|
renderSlotToString,
|
|
@@ -3,7 +3,7 @@ import type { HeadAndContent } from './head-and-content.js';
|
|
|
3
3
|
import type { RenderTemplateResult } from './render-template.js';
|
|
4
4
|
export type AstroFactoryReturnValue = RenderTemplateResult | Response | HeadAndContent;
|
|
5
5
|
export interface AstroComponentFactory {
|
|
6
|
-
(result: any, props: any, slots: any): AstroFactoryReturnValue
|
|
6
|
+
(result: any, props: any, slots: any): AstroFactoryReturnValue | Promise<AstroFactoryReturnValue>;
|
|
7
7
|
isAstroComponentFactory?: boolean;
|
|
8
8
|
moduleId?: string | undefined;
|
|
9
9
|
propagation?: PropagationHint;
|
|
@@ -49,7 +49,7 @@ function isHTMLComponent(Component) {
|
|
|
49
49
|
}
|
|
50
50
|
const ASTRO_SLOT_EXP = /<\/?astro-slot\b[^>]*>/g;
|
|
51
51
|
const ASTRO_STATIC_SLOT_EXP = /<\/?astro-static-slot\b[^>]*>/g;
|
|
52
|
-
function removeStaticAstroSlot(html, supportsAstroStaticSlot) {
|
|
52
|
+
function removeStaticAstroSlot(html, supportsAstroStaticSlot = true) {
|
|
53
53
|
const exp = supportsAstroStaticSlot ? ASTRO_STATIC_SLOT_EXP : ASTRO_SLOT_EXP;
|
|
54
54
|
return html.replace(exp, "");
|
|
55
55
|
}
|
|
@@ -245,9 +245,7 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr
|
|
|
245
245
|
destination.write(html);
|
|
246
246
|
} else if (html && html.length > 0) {
|
|
247
247
|
destination.write(
|
|
248
|
-
markHTMLString(
|
|
249
|
-
removeStaticAstroSlot(html, renderer?.ssr?.supportsAstroStaticSlot ?? false)
|
|
250
|
-
)
|
|
248
|
+
markHTMLString(removeStaticAstroSlot(html, renderer?.ssr?.supportsAstroStaticSlot))
|
|
251
249
|
);
|
|
252
250
|
}
|
|
253
251
|
}
|
|
@@ -306,7 +304,8 @@ ${serializeProps(
|
|
|
306
304
|
})
|
|
307
305
|
);
|
|
308
306
|
}
|
|
309
|
-
|
|
307
|
+
const renderedElement = renderElement("astro-island", island, false);
|
|
308
|
+
destination.write(markHTMLString(renderedElement));
|
|
310
309
|
}
|
|
311
310
|
};
|
|
312
311
|
}
|
|
@@ -2,6 +2,7 @@ export { createHeadAndContent, renderTemplate, renderToString } from './astro/in
|
|
|
2
2
|
export type { AstroComponentFactory, AstroComponentInstance } from './astro/index.js';
|
|
3
3
|
export { Fragment, Renderer, chunkToByteArray, chunkToString } from './common.js';
|
|
4
4
|
export { renderComponent, renderComponentToString } from './component.js';
|
|
5
|
+
export { renderScript } from './script.js';
|
|
5
6
|
export { renderHTMLElement } from './dom.js';
|
|
6
7
|
export { maybeRenderHead, renderHead } from './head.js';
|
|
7
8
|
export type { RenderInstruction } from './instruction.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createHeadAndContent, renderTemplate, renderToString } from "./astro/index.js";
|
|
2
2
|
import { Fragment, Renderer, chunkToByteArray, chunkToString } from "./common.js";
|
|
3
3
|
import { renderComponent, renderComponentToString } from "./component.js";
|
|
4
|
+
import { renderScript } from "./script.js";
|
|
4
5
|
import { renderHTMLElement } from "./dom.js";
|
|
5
6
|
import { maybeRenderHead, renderHead } from "./head.js";
|
|
6
7
|
import { renderPage } from "./page.js";
|
|
@@ -21,6 +22,7 @@ export {
|
|
|
21
22
|
renderHTMLElement,
|
|
22
23
|
renderHead,
|
|
23
24
|
renderPage,
|
|
25
|
+
renderScript,
|
|
24
26
|
renderScriptElement,
|
|
25
27
|
renderSlot,
|
|
26
28
|
renderSlotToString,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { markHTMLString } from "../escape.js";
|
|
2
|
+
async function renderScript(result, id) {
|
|
3
|
+
if (result._metadata.renderedScripts.has(id))
|
|
4
|
+
return;
|
|
5
|
+
result._metadata.renderedScripts.add(id);
|
|
6
|
+
const inlined = result.inlinedScripts.get(id);
|
|
7
|
+
if (inlined) {
|
|
8
|
+
return markHTMLString(`<script type="module">${inlined}</script>`);
|
|
9
|
+
}
|
|
10
|
+
const resolved = await result.resolve(id);
|
|
11
|
+
return markHTMLString(`<script type="module" src="${resolved}"></script>`);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
renderScript
|
|
15
|
+
};
|
|
@@ -203,6 +203,10 @@ async function updateDOM(preparationEvent, options, historyState, fallback) {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
|
+
const shouldCopyProps = (el) => {
|
|
207
|
+
const persistProps = el.dataset.astroTransitionPersistProps;
|
|
208
|
+
return persistProps == null || persistProps === "false";
|
|
209
|
+
};
|
|
206
210
|
const defaultSwap = (beforeSwapEvent) => {
|
|
207
211
|
const html = document.documentElement;
|
|
208
212
|
const astroAttributes = [...html.attributes].filter(
|
|
@@ -214,9 +218,10 @@ async function updateDOM(preparationEvent, options, historyState, fallback) {
|
|
|
214
218
|
for (const s1 of document.scripts) {
|
|
215
219
|
for (const s2 of beforeSwapEvent.newDocument.scripts) {
|
|
216
220
|
if (
|
|
217
|
-
//
|
|
218
|
-
!
|
|
219
|
-
s1.src && s1.
|
|
221
|
+
// Check if the script should be rerun regardless of it being the same
|
|
222
|
+
!s2.hasAttribute("data-astro-rerun") && // Inline
|
|
223
|
+
(!s1.src && s1.textContent === s2.textContent || // External
|
|
224
|
+
s1.src && s1.type === s2.type && s1.src === s2.src)
|
|
220
225
|
) {
|
|
221
226
|
s2.dataset.astroExec = "";
|
|
222
227
|
break;
|
|
@@ -240,6 +245,10 @@ async function updateDOM(preparationEvent, options, historyState, fallback) {
|
|
|
240
245
|
const newEl = document.querySelector(`[${PERSIST_ATTR}="${id}"]`);
|
|
241
246
|
if (newEl) {
|
|
242
247
|
newEl.replaceWith(el);
|
|
248
|
+
if (newEl.localName === "astro-island" && shouldCopyProps(el)) {
|
|
249
|
+
el.setAttribute("ssr", "");
|
|
250
|
+
el.setAttribute("props", newEl.getAttribute("props"));
|
|
251
|
+
}
|
|
243
252
|
}
|
|
244
253
|
}
|
|
245
254
|
restoreFocus(savedFocus);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as vite from 'vite';
|
|
2
2
|
import type { AstroSettings } from '../@types/astro.js';
|
|
3
3
|
import type { Logger } from '../core/logger/core.js';
|
|
4
|
-
import type { PluginMetadata as AstroPluginMetadata } from './types.js';
|
|
4
|
+
import type { PluginCssMetadata as AstroPluginCssMetadata, PluginMetadata as AstroPluginMetadata } from './types.js';
|
|
5
5
|
export { getAstroMetadata } from './metadata.js';
|
|
6
|
-
export type { AstroPluginMetadata };
|
|
6
|
+
export type { AstroPluginMetadata, AstroPluginCssMetadata };
|
|
7
7
|
interface AstroPluginOptions {
|
|
8
8
|
settings: AstroSettings;
|
|
9
9
|
logger: Logger;
|
|
@@ -75,7 +75,18 @@ function astro({ settings, logger }) {
|
|
|
75
75
|
throw new Error(`No Astro CSS at index ${query.index}`);
|
|
76
76
|
}
|
|
77
77
|
result.dependencies?.forEach((dep) => this.addWatchFile(dep));
|
|
78
|
-
return {
|
|
78
|
+
return {
|
|
79
|
+
code: result.code,
|
|
80
|
+
// This metadata is used by `cssScopeToPlugin` to remove this module from the bundle
|
|
81
|
+
// if the `filename` default export (the Astro component) is unused.
|
|
82
|
+
meta: result.isGlobal ? void 0 : {
|
|
83
|
+
astroCss: {
|
|
84
|
+
cssScopeTo: {
|
|
85
|
+
[filename]: ["default"]
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
79
90
|
}
|
|
80
91
|
case "script": {
|
|
81
92
|
if (typeof query.index === "undefined") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HoistedScript, TransformResult } from '@astrojs/compiler';
|
|
2
2
|
import type { PropagationHint } from '../@types/astro.js';
|
|
3
|
-
import type { CompileCssResult } from '../core/compile/
|
|
3
|
+
import type { CompileCssResult } from '../core/compile/types.js';
|
|
4
4
|
export interface PageOptions {
|
|
5
5
|
prerender?: boolean;
|
|
6
6
|
}
|
|
@@ -14,6 +14,26 @@ export interface PluginMetadata {
|
|
|
14
14
|
pageOptions: PageOptions;
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
+
export interface PluginCssMetadata {
|
|
18
|
+
astroCss: {
|
|
19
|
+
/**
|
|
20
|
+
* For Astro CSS virtual modules, it can scope to the main Astro module's default export
|
|
21
|
+
* so that if those exports are treeshaken away, the CSS module will also be treeshaken.
|
|
22
|
+
*
|
|
23
|
+
* Example config if the CSS id is `/src/Foo.astro?astro&type=style&lang.css`:
|
|
24
|
+
* ```js
|
|
25
|
+
* cssScopeTo: {
|
|
26
|
+
* '/src/Foo.astro': ['default']
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* The above is the only config we use today, but we're exposing as a `Record` to follow the
|
|
31
|
+
* upstream Vite implementation: https://github.com/vitejs/vite/pull/16058. When/If that lands,
|
|
32
|
+
* we can also remove our custom implementation.
|
|
33
|
+
*/
|
|
34
|
+
cssScopeTo: Record<string, string[]>;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
17
37
|
export interface CompileMetadata {
|
|
18
38
|
/** Used for HMR to compare code changes */
|
|
19
39
|
originalCode: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import url from "node:url";
|
|
2
2
|
import { getInfoOutput } from "../cli/info/index.js";
|
|
3
|
-
import { ASTRO_VERSION } from "../core/constants.js";
|
|
3
|
+
import { ASTRO_VERSION, DEFAULT_404_COMPONENT } from "../core/constants.js";
|
|
4
4
|
import { enhanceViteSSRError } from "../core/errors/dev/index.js";
|
|
5
5
|
import { AggregateError, CSSError, MarkdownError } from "../core/errors/index.js";
|
|
6
6
|
import { Pipeline, loadRenderer } from "../core/render/index.js";
|
|
@@ -10,6 +10,7 @@ import { PAGE_SCRIPT_ID } from "../vite-plugin-scripts/index.js";
|
|
|
10
10
|
import { getStylesForURL } from "./css.js";
|
|
11
11
|
import { getComponentMetadata } from "./metadata.js";
|
|
12
12
|
import { createResolve } from "./resolve.js";
|
|
13
|
+
import { default404Page } from "./response.js";
|
|
13
14
|
import { getScriptsForURL } from "./scripts.js";
|
|
14
15
|
class DevPipeline extends Pipeline {
|
|
15
16
|
constructor(loader, logger, manifest, settings, config = settings.config) {
|
|
@@ -43,7 +44,7 @@ class DevPipeline extends Pipeline {
|
|
|
43
44
|
settings
|
|
44
45
|
} = this;
|
|
45
46
|
const filePath = new URL(`./${routeData.component}`, root);
|
|
46
|
-
const { scripts } = await getScriptsForURL(filePath, root, loader);
|
|
47
|
+
const { scripts } = settings.config.experimental.directRenderScript ? { scripts: /* @__PURE__ */ new Set() } : await getScriptsForURL(filePath, settings.config.root, loader);
|
|
47
48
|
if (isPage(filePath, settings) && mode === "development") {
|
|
48
49
|
scripts.add({
|
|
49
50
|
props: { type: "module", src: "/@vite/client" },
|
|
@@ -96,6 +97,9 @@ class DevPipeline extends Pipeline {
|
|
|
96
97
|
}
|
|
97
98
|
async preload(filePath) {
|
|
98
99
|
const { loader } = this;
|
|
100
|
+
if (filePath.href === new URL(DEFAULT_404_COMPONENT, this.config.root).href) {
|
|
101
|
+
return { default: default404Page };
|
|
102
|
+
}
|
|
99
103
|
const renderers__ = this.settings.renderers.map((r) => loadRenderer(r, loader));
|
|
100
104
|
const renderers_ = await Promise.all(renderers__);
|
|
101
105
|
this.renderers = renderers_.filter((r) => Boolean(r));
|
|
@@ -4,6 +4,7 @@ import { getViteErrorPayload } from "../core/errors/dev/index.js";
|
|
|
4
4
|
import { AstroError, AstroErrorData } from "../core/errors/index.js";
|
|
5
5
|
import { patchOverlay } from "../core/errors/overlay.js";
|
|
6
6
|
import { createViteLoader } from "../core/module-loader/index.js";
|
|
7
|
+
import { ensure404Route } from "../core/routing/astro-designed-error-pages.js";
|
|
7
8
|
import { createRouteManifest } from "../core/routing/index.js";
|
|
8
9
|
import { toRoutingStrategy } from "../i18n/utils.js";
|
|
9
10
|
import { baseMiddleware } from "./base.js";
|
|
@@ -23,13 +24,15 @@ function createVitePluginAstroServer({
|
|
|
23
24
|
const loader = createViteLoader(viteServer);
|
|
24
25
|
const manifest = createDevelopmentManifest(settings);
|
|
25
26
|
const pipeline = DevPipeline.create({ loader, logger, manifest, settings });
|
|
26
|
-
let manifestData =
|
|
27
|
+
let manifestData = ensure404Route(
|
|
28
|
+
createRouteManifest({ settings, fsMod }, logger)
|
|
29
|
+
);
|
|
27
30
|
const controller = createController({ loader });
|
|
28
31
|
const localStorage = new AsyncLocalStorage();
|
|
29
32
|
function rebuildManifest(needsManifestRebuild) {
|
|
30
33
|
pipeline.clearRouteCache();
|
|
31
34
|
if (needsManifestRebuild) {
|
|
32
|
-
manifestData = createRouteManifest({ settings }, logger);
|
|
35
|
+
manifestData = ensure404Route(createRouteManifest({ settings }, logger));
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
viteServer.watcher.on("add", rebuildManifest.bind(null, true));
|
|
@@ -109,6 +112,7 @@ function createDevelopmentManifest(settings) {
|
|
|
109
112
|
assetsPrefix: settings.config.build.assetsPrefix,
|
|
110
113
|
site: settings.config.site,
|
|
111
114
|
componentMetadata: /* @__PURE__ */ new Map(),
|
|
115
|
+
inlinedScripts: /* @__PURE__ */ new Map(),
|
|
112
116
|
i18n: i18nManifest,
|
|
113
117
|
middleware(_, next) {
|
|
114
118
|
return next();
|
|
@@ -3,6 +3,12 @@ import type http from 'node:http';
|
|
|
3
3
|
import type { ErrorWithMetadata } from '../core/errors/index.js';
|
|
4
4
|
import type { ModuleLoader } from '../core/module-loader/index.js';
|
|
5
5
|
export declare function handle404Response(origin: string, req: http.IncomingMessage, res: http.ServerResponse): Promise<void>;
|
|
6
|
+
export declare function default404Page({ pathname }: {
|
|
7
|
+
pathname: string;
|
|
8
|
+
}): Promise<Response>;
|
|
9
|
+
export declare namespace default404Page {
|
|
10
|
+
var isAstroComponentFactory: boolean;
|
|
11
|
+
}
|
|
6
12
|
export declare function handle500Response(loader: ModuleLoader, res: http.ServerResponse, err: ErrorWithMetadata): Promise<void>;
|
|
7
13
|
export declare function writeHtmlResponse(res: http.ServerResponse, statusCode: number, html: string): void;
|
|
8
14
|
export declare function writeWebResponse(res: http.ServerResponse, webResponse: Response): Promise<void>;
|