diff --git a/site/astro.config.mjs b/site/astro.config.mjs index 7dfbb59..be1b384 100644 --- a/site/astro.config.mjs +++ b/site/astro.config.mjs @@ -5,11 +5,6 @@ import sitemap from "@astrojs/sitemap"; export default defineConfig({ site: "https://termscp.rs", - i18n: { - defaultLocale: "en", - locales: ["en", "zh-CN", "it", "fr", "es"], - routing: { prefixDefaultLocale: false }, - }, integrations: [sitemap()], vite: { plugins: [tailwindcss()] }, }); diff --git a/site/package-lock.json b/site/package-lock.json index 9e76afa..1a587ce 100644 --- a/site/package-lock.json +++ b/site/package-lock.json @@ -14,8 +14,7 @@ "devDependencies": { "@tailwindcss/vite": "^4.0.0", "tailwindcss": "^4.0.0", - "typescript": "^5.6.0", - "vitest": "^2.1.0" + "typescript": "^5.6.0" } }, "node_modules/@astrojs/compiler": { @@ -2027,119 +2026,6 @@ "integrity": "sha512-mUFwbeTqrVgDQxFveS+df2yfap6iuP20NAKAsBt5jDEoOTDew+zwLAOilHCeQJOVSvmgCX4ogqIrA0mnyr08yQ==", "license": "ISC" }, - "node_modules/@vitest/expect": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.9.tgz", - "integrity": "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/spy": "2.1.9", - "@vitest/utils": "2.1.9", - "chai": "^5.1.2", - "tinyrainbow": "^1.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/mocker": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.9.tgz", - "integrity": "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/spy": "2.1.9", - "estree-walker": "^3.0.3", - "magic-string": "^0.30.12" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "msw": "^2.4.9", - "vite": "^5.0.0" - }, - "peerDependenciesMeta": { - "msw": { - "optional": true - }, - "vite": { - "optional": true - } - } - }, - "node_modules/@vitest/pretty-format": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.9.tgz", - "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "tinyrainbow": "^1.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/runner": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.9.tgz", - "integrity": "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/utils": "2.1.9", - "pathe": "^1.1.2" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/snapshot": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.9.tgz", - "integrity": "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "2.1.9", - "magic-string": "^0.30.12", - "pathe": "^1.1.2" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/spy": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.9.tgz", - "integrity": "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "tinyspy": "^3.0.2" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/utils": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.9.tgz", - "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "2.1.9", - "loupe": "^3.1.2", - "tinyrainbow": "^1.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, "node_modules/acorn": { "version": "8.16.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", @@ -2282,16 +2168,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/assertion-error": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", - "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } - }, "node_modules/astro": { "version": "5.18.2", "resolved": "https://registry.npmjs.org/astro/-/astro-5.18.2.tgz", @@ -2980,16 +2856,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/cac": { - "version": "6.7.14", - "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", - "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/camelcase": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-8.0.0.tgz", @@ -3012,23 +2878,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/chai": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz", - "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==", - "dev": true, - "license": "MIT", - "dependencies": { - "assertion-error": "^2.0.1", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "loupe": "^3.1.0", - "pathval": "^2.0.0" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/chalk": { "version": "5.6.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz", @@ -3071,16 +2920,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/check-error": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz", - "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 16" - } - }, "node_modules/chokidar": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", @@ -3301,16 +3140,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/deep-eql": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", - "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/defu": { "version": "6.1.7", "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.7.tgz", @@ -3570,16 +3399,6 @@ "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", "license": "MIT" }, - "node_modules/expect-type": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz", - "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", @@ -4289,13 +4108,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/loupe": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz", - "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==", - "dev": true, - "license": "MIT" - }, "node_modules/lru-cache": { "version": "11.5.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.1.tgz", @@ -5330,23 +5142,6 @@ "url": "https://github.com/inikulin/parse5?sponsor=1" } }, - "node_modules/pathe": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", - "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/pathval": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz", - "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14.16" - } - }, "node_modules/piccolore": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/piccolore/-/piccolore-0.1.3.tgz", @@ -5803,13 +5598,6 @@ "@types/hast": "^3.0.4" } }, - "node_modules/siginfo": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", - "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", - "dev": true, - "license": "ISC" - }, "node_modules/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", @@ -5866,20 +5654,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/stackback": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", - "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", - "dev": true, - "license": "MIT" - }, - "node_modules/std-env": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz", - "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==", - "dev": true, - "license": "MIT" - }, "node_modules/stream-replace-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/stream-replace-string/-/stream-replace-string-2.0.0.tgz", @@ -5984,13 +5758,6 @@ "integrity": "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==", "license": "MIT" }, - "node_modules/tinybench": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", - "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", - "dev": true, - "license": "MIT" - }, "node_modules/tinyexec": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.2.4.tgz", @@ -6016,36 +5783,6 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/tinypool": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz", - "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.0.0 || >=20.0.0" - } - }, - "node_modules/tinyrainbow": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz", - "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/tinyspy": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz", - "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, "node_modules/trim-lines": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", @@ -6439,6 +6176,7 @@ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", "devOptional": true, "license": "MIT", + "peer": true, "dependencies": { "esbuild": "^0.21.3", "postcss": "^8.4.43", @@ -6493,29 +6231,6 @@ } } }, - "node_modules/vite-node": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.9.tgz", - "integrity": "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==", - "dev": true, - "license": "MIT", - "dependencies": { - "cac": "^6.7.14", - "debug": "^4.3.7", - "es-module-lexer": "^1.5.4", - "pathe": "^1.1.2", - "vite": "^5.0.0" - }, - "bin": { - "vite-node": "vite-node.mjs" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, "node_modules/vite/node_modules/@esbuild/aix-ppc64": { "version": "0.21.5", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", @@ -6528,6 +6243,7 @@ "os": [ "aix" ], + "peer": true, "engines": { "node": ">=12" } @@ -6544,6 +6260,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=12" } @@ -6560,6 +6277,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=12" } @@ -6576,6 +6294,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=12" } @@ -6592,6 +6311,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=12" } @@ -6608,6 +6328,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=12" } @@ -6624,6 +6345,7 @@ "os": [ "freebsd" ], + "peer": true, "engines": { "node": ">=12" } @@ -6640,6 +6362,7 @@ "os": [ "freebsd" ], + "peer": true, "engines": { "node": ">=12" } @@ -6656,6 +6379,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -6672,6 +6396,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -6688,6 +6413,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -6704,6 +6430,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -6720,6 +6447,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -6736,6 +6464,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -6752,6 +6481,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -6768,6 +6498,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -6784,6 +6515,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -6800,6 +6532,7 @@ "os": [ "netbsd" ], + "peer": true, "engines": { "node": ">=12" } @@ -6816,6 +6549,7 @@ "os": [ "openbsd" ], + "peer": true, "engines": { "node": ">=12" } @@ -6832,6 +6566,7 @@ "os": [ "sunos" ], + "peer": true, "engines": { "node": ">=12" } @@ -6848,6 +6583,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=12" } @@ -6864,6 +6600,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=12" } @@ -6880,6 +6617,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=12" } @@ -6891,6 +6629,7 @@ "devOptional": true, "hasInstallScript": true, "license": "MIT", + "peer": true, "bin": { "esbuild": "bin/esbuild" }, @@ -6942,79 +6681,6 @@ } } }, - "node_modules/vitest": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.9.tgz", - "integrity": "sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/expect": "2.1.9", - "@vitest/mocker": "2.1.9", - "@vitest/pretty-format": "^2.1.9", - "@vitest/runner": "2.1.9", - "@vitest/snapshot": "2.1.9", - "@vitest/spy": "2.1.9", - "@vitest/utils": "2.1.9", - "chai": "^5.1.2", - "debug": "^4.3.7", - "expect-type": "^1.1.0", - "magic-string": "^0.30.12", - "pathe": "^1.1.2", - "std-env": "^3.8.0", - "tinybench": "^2.9.0", - "tinyexec": "^0.3.1", - "tinypool": "^1.0.1", - "tinyrainbow": "^1.2.0", - "vite": "^5.0.0", - "vite-node": "2.1.9", - "why-is-node-running": "^2.3.0" - }, - "bin": { - "vitest": "vitest.mjs" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "@edge-runtime/vm": "*", - "@types/node": "^18.0.0 || >=20.0.0", - "@vitest/browser": "2.1.9", - "@vitest/ui": "2.1.9", - "happy-dom": "*", - "jsdom": "*" - }, - "peerDependenciesMeta": { - "@edge-runtime/vm": { - "optional": true - }, - "@types/node": { - "optional": true - }, - "@vitest/browser": { - "optional": true - }, - "@vitest/ui": { - "optional": true - }, - "happy-dom": { - "optional": true - }, - "jsdom": { - "optional": true - } - } - }, - "node_modules/vitest/node_modules/tinyexec": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", - "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", - "dev": true, - "license": "MIT" - }, "node_modules/web-namespaces": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", @@ -7034,23 +6700,6 @@ "node": ">=4" } }, - "node_modules/why-is-node-running": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", - "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", - "dev": true, - "license": "MIT", - "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, - "bin": { - "why-is-node-running": "cli.js" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/widest-line": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-5.0.0.tgz", diff --git a/site/package.json b/site/package.json index 22f7c14..f0d4e5f 100644 --- a/site/package.json +++ b/site/package.json @@ -9,8 +9,7 @@ "prebuild": "node scripts/copy-install.mjs", "build": "astro build", "preview": "astro preview", - "check": "astro check", - "test": "vitest run" + "check": "astro check" }, "dependencies": { "astro": "^5.0.0", @@ -19,7 +18,6 @@ "devDependencies": { "@tailwindcss/vite": "^4.0.0", "tailwindcss": "^4.0.0", - "typescript": "^5.6.0", - "vitest": "^2.1.0" + "typescript": "^5.6.0" } } diff --git a/site/src/components/ExplorerHero.astro b/site/src/components/ExplorerHero.astro index 57c82f4..f375008 100644 --- a/site/src/components/ExplorerHero.astro +++ b/site/src/components/ExplorerHero.astro @@ -1,9 +1,5 @@ --- -import { localizePath, useTranslations, DOCS_URL, type Locale } from "../i18n/ui"; -interface Props { locale: Locale; } -const { locale } = Astro.props; -const t = useTranslations(locale); -const p = (sub: string) => localizePath(locale, sub); +import { DOCS_URL } from "../consts"; const local = [ { name: " ..", size: "DIR", kind: "dir" }, @@ -19,16 +15,17 @@ const remote = [ { name: " docker-compose.yml", size: "1.7 KB", kind: "file" }, { name: " logs/", size: "DIR", kind: "dir" }, ]; +const status = "↹ switch · ↑↓ move · ↵ open · SPACE transfer"; ---
-

{t("hero.kicker")}

+

// terminal file transfer

- {t("hero.tabs", { host: "192.168.1.10" })} + termscp — 192.168.1.10 (sftp) connected
-
{t("hero.local")}
+
/home/veeso (local)
{local.map((r) => (
{r.name}{r.size} @@ -36,7 +33,7 @@ const remote = [ ))}
-
{t("hero.remote")}
+
/var/www (remote)
{remote.map((r) => (
+ {/* set:html is safe: status is a static author-controlled string, never user input. */}
- {/* set:html is safe: hero.status is author-controlled i18n content, never user input. Do not interpolate untrusted data here. */} - $1')}> + $1')}> 4 files · 1.2 GB
-

{t("hero.title")}

-

{t("hero.subtitle")}

+

The dual-pane explorer for your terminal

+

Local left, remote right. Transfer, sync, edit — never leave the keyboard.

diff --git a/site/src/components/Footer.astro b/site/src/components/Footer.astro index e124e0c..d374668 100644 --- a/site/src/components/Footer.astro +++ b/site/src/components/Footer.astro @@ -1,18 +1,15 @@ --- -import { useTranslations, DOCS_URL, type Locale } from "../i18n/ui"; -interface Props { locale: Locale; } -const { locale } = Astro.props; -const t = useTranslations(locale); +import { DOCS_URL, GITHUB_URL } from "../consts"; const year = new Date().getFullYear(); --- diff --git a/site/src/components/LangPicker.astro b/site/src/components/LangPicker.astro deleted file mode 100644 index 16f96ab..0000000 --- a/site/src/components/LangPicker.astro +++ /dev/null @@ -1,25 +0,0 @@ ---- -import { locales, localizePath, type Locale } from "../i18n/ui"; - -interface Props { - locale: Locale; - path: string; // unprefixed path, e.g. "/install" or "/" -} -const { locale, path } = Astro.props; -const labels: Record = { - en: "EN", - "zh-CN": "中文", - it: "IT", - fr: "FR", - es: "ES", -}; -const href = (l: Locale) => localizePath(l, path); ---- -
- {locales.map((l) => ( - {labels[l]} - ))} -
diff --git a/site/src/components/Nav.astro b/site/src/components/Nav.astro index 53b4259..aec88e4 100644 --- a/site/src/components/Nav.astro +++ b/site/src/components/Nav.astro @@ -1,29 +1,19 @@ --- -import { localizePath, useTranslations, DOCS_URL, type Locale } from "../i18n/ui"; import ThemeToggle from "./ThemeToggle.astro"; -import LangPicker from "./LangPicker.astro"; - -interface Props { - locale: Locale; - path: string; -} -const { locale, path } = Astro.props; -const t = useTranslations(locale); -const p = (sub: string) => localizePath(locale, sub); +import { DOCS_URL, GITHUB_URL } from "../consts"; ---