diff --git a/package.json b/package.json index fb673f1..55b81c4 100644 --- a/package.json +++ b/package.json @@ -16,11 +16,11 @@ "@nanostores/react": "^0.7.3", "@types/react": "^18.3.5", "@types/react-dom": "^18.3.0", - "astro": "^4.15.2", + "astro": "^4.15.3", "nanostores": "^0.11.3", "react": "^18.3.1", "react-dom": "^18.3.1", - "sass": "^1.77.8", + "sass": "^1.78.0", "swiper": "^11.1.12", "tailwindcss": "^3.4.10", "typescript": "^5.5.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7288b7d..cb8c921 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,10 +13,10 @@ importers: version: 0.9.3(typescript@5.5.4) '@astrojs/react': specifier: ^3.6.2 - version: 3.6.2(@types/react-dom@18.3.0)(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(vite@5.4.3(sass@1.77.8)) + version: 3.6.2(@types/react-dom@18.3.0)(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(vite@5.4.3(sass@1.78.0)) '@astrojs/tailwind': specifier: ^5.1.0 - version: 5.1.0(astro@4.15.2(rollup@4.21.2)(sass@1.77.8)(typescript@5.5.4))(tailwindcss@3.4.10) + version: 5.1.0(astro@4.15.3(rollup@4.21.2)(sass@1.78.0)(typescript@5.5.4))(tailwindcss@3.4.10) '@nanostores/react': specifier: ^0.7.3 version: 0.7.3(nanostores@0.11.3)(react@18.3.1) @@ -27,8 +27,8 @@ importers: specifier: ^18.3.0 version: 18.3.0 astro: - specifier: ^4.15.2 - version: 4.15.2(rollup@4.21.2)(sass@1.77.8)(typescript@5.5.4) + specifier: ^4.15.3 + version: 4.15.3(rollup@4.21.2)(sass@1.78.0)(typescript@5.5.4) nanostores: specifier: ^0.11.3 version: 0.11.3 @@ -39,8 +39,8 @@ importers: specifier: ^18.3.1 version: 18.3.1(react@18.3.1) sass: - specifier: ^1.77.8 - version: 1.77.8 + specifier: ^1.78.0 + version: 1.78.0 swiper: specifier: ^11.1.12 version: 11.1.12 @@ -642,8 +642,8 @@ packages: cpu: [x64] os: [win32] - '@shikijs/core@1.16.1': - resolution: {integrity: sha512-aI0hBtw+a6KsJp2jcD4YuQqKpeCbURMZbhHVozDknJpm+KJqeMRkEnfBC8BaKE/5XC+uofPgCLsa/TkTk0Ba0w==} + '@shikijs/core@1.16.2': + resolution: {integrity: sha512-XSVH5OZCvE4WLMgdoBqfPMYmGHGmCC3OgZhw0S7KcSi2XKZ+5oHGe71GFnTljgdOxvxx5WrRks6QoTLKrl1eAA==} '@shikijs/vscode-textmate@9.2.0': resolution: {integrity: sha512-5FinaOp6Vdh/dl4/yaOTh0ZeKch+rYS8DUb38V3GMKYVkdqzxw53lViRKUYkVILRiVQT7dcPC7VvAKOR73zVtQ==} @@ -702,25 +702,25 @@ packages: peerDependencies: vite: ^4.2.0 || ^5.0.0 - '@volar/kit@2.4.1': - resolution: {integrity: sha512-XCHjrxcvjh/GEBiJt2e1KfsP8aQ+z7ZXRKR/5BA2/SFVzM+pKpL9iHZZJN7QGMsqTOt8FgN8XQhTp8qqURn+cw==} + '@volar/kit@2.4.2': + resolution: {integrity: sha512-sHCJv/nd8ZYsP/WKoTIQTboKbJ4F7oerv6PJK/ji374JTn3fqNnp4EV0V+Iiw60V7oUOWozhh7k6nugUUYDFWg==} peerDependencies: typescript: '*' - '@volar/language-core@2.4.1': - resolution: {integrity: sha512-9AKhC7Qn2mQYxj7Dz3bVxeOk7gGJladhWixUYKef/o0o7Bm4an+A3XvmcTHVqZ8stE6lBVH++g050tBtJ4TZPQ==} + '@volar/language-core@2.4.2': + resolution: {integrity: sha512-sONt5RLvLL1SlBdhyUSthZzuKePbJ7DwFFB9zT0eyWpDl+v7GXGh/RkPxxWaR22bIhYtTzp4Ka1MWatl/53Riw==} - '@volar/language-server@2.4.1': - resolution: {integrity: sha512-aVaUjuQEPFJZckNwziCqrmiirsVnV3LK9Kbl1Hq5C4G6RTyof2xSdYKwyL2Azv41DkgkW85lJ2F6zVX3cpQfzw==} + '@volar/language-server@2.4.2': + resolution: {integrity: sha512-BoGGGar5kzWnCxv41nnpplPQz+ntHgOSYshxH7CqNo5DOz5R3WXtkDA6T6bOpt70JeejoNyk/5kINV8KGeI17Q==} - '@volar/language-service@2.4.1': - resolution: {integrity: sha512-Q3NVjZTAz0Vnco70Rgcryq2eDPWkFBdpzr84aYqOGvVC4SBjq1Wsx0d9NyA4seQHfHWwbZyzyviKRm+htyRlKg==} + '@volar/language-service@2.4.2': + resolution: {integrity: sha512-tJAfl1RouBcSPfgY7ivV/CWH6G/cOzwflMUFnfR7qTLZht7azx4CwlndiyGiL7lGcnfi7OZBKXd8Oqy9jhKZCA==} - '@volar/source-map@2.4.1': - resolution: {integrity: sha512-Xq6ep3OZg9xUqN90jEgB9ztX5SsTz1yiV8wiQbcYNjWkek+Ie3dc8l7AVt3EhDm9mSIR58oWczHkzM2H6HIsmQ==} + '@volar/source-map@2.4.2': + resolution: {integrity: sha512-qiGfGgeZ5DEarPX3S+HcFktFCjfDrFPCXKeXNbrlB7v8cvtPRm8YVwoXOdGG1NhaL5rMlv5BZPVQyu4EdWWIvA==} - '@volar/typescript@2.4.1': - resolution: {integrity: sha512-UoRzC0PXcwajFQTu8XxKSYNsWNBtVja6Y9gC8eLv7kYm+UEKJCcZ8g7dialsOYA0HKs3Vpg57MeCsawFLC6m9Q==} + '@volar/typescript@2.4.2': + resolution: {integrity: sha512-m2uZduhaHO1SZuagi30OsjI/X1gwkaEAC+9wT/nCNAtJ5FqXEkKvUncHmffG7ESDZPlFFUBK4vJ0D9Hfr+f2EA==} '@vscode/emmet-helper@2.9.3': resolution: {integrity: sha512-rB39LHWWPQYYlYfpv9qCoZOVioPCftKXXqrsyqN1mTWZM6dTnONT63Db+03vgrBbHzJN45IrgS/AGxw9iiqfEw==} @@ -781,8 +781,8 @@ packages: array-iterate@2.0.1: resolution: {integrity: sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==} - astro@4.15.2: - resolution: {integrity: sha512-UlkQ/cWRLabOm6eVe6oRwjVAKd47N3+d1ktKpEZ5lqQKwq5uYrXQUu3n0ftsm6SJ+01x2LlPmjRe9OfKAbGpXA==} + astro@4.15.3: + resolution: {integrity: sha512-zwO8H+vnNYbrdKz0Pkh2a4B/JK06JUvI18w+FxL3B5u4jqPB/SU+LH9XVUUWdNQsyJ/DBHKAf0LDK0RmwxXQEw==} engines: {node: ^18.17.1 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0'} hasBin: true @@ -834,8 +834,8 @@ packages: resolution: {integrity: sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==} engines: {node: '>=14.16'} - caniuse-lite@1.0.30001655: - resolution: {integrity: sha512-jRGVy3iSGO5Uutn2owlb5gR6qsGngTw9ZTb4ali9f3glshcNmJ2noam4Mo9zia5P9Dk3jNNydy7vQjuE5dQmfg==} + caniuse-lite@1.0.30001657: + resolution: {integrity: sha512-DPbJAlP8/BAXy3IgiWmZKItubb3TYGP0WscQQlVGIfT4s/YlFYVuJgyOsQNP7rJRChx/qdMeLJQJP0Sgg2yjNA==} ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} @@ -981,8 +981,8 @@ packages: eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - electron-to-chromium@1.5.13: - resolution: {integrity: sha512-lbBcvtIJ4J6sS4tb5TLp1b4LyfCdMkwStzXPyAgVgTRAsep4bvrAGaBOP7ZJtQMNJpSQ9SqG4brWOroNaQtm7Q==} + electron-to-chromium@1.5.14: + resolution: {integrity: sha512-bEfPECb3fJ15eaDnu9LEJ2vPGD6W1vt7vZleSVyFhYuMIKm3vz/g9lt7IvEzgdwj58RjbPKUF2rXTCN/UW47tQ==} emmet@2.4.7: resolution: {integrity: sha512-O5O5QNqtdlnQM2bmKHtJgyChcrFMgQuulI+WdiOw2NArzprUqqxUW6bgYtKvzKgrsYpuLWalOkdhNP+1jluhCA==} @@ -1653,8 +1653,8 @@ packages: postcss-value-parser@4.2.0: resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} - postcss@8.4.44: - resolution: {integrity: sha512-Aweb9unOEpQ3ezu4Q00DPvvM2ZTUitJdNKeP/+uQgr1IBIqu574IaZoURId7BKtWMREwzKa9OgzPzezWGPWFQw==} + postcss@8.4.45: + resolution: {integrity: sha512-7KTLTdzdZZYscUc65XmjFiB73vBhBfbPztCYdUNvlaso9PrzjzcmjqBPR0lNGkcVlcO4BjiO5rK/qNz+XAen1Q==} engines: {node: ^10 || ^12 || >=14} preferred-pm@4.0.0: @@ -1774,8 +1774,8 @@ packages: run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} - sass@1.77.8: - resolution: {integrity: sha512-4UHg6prsrycW20fqLGPShtEvo/WyHRVRHwOP4DzkUrObWoWI05QBSfzU71TVB7PFaL104TwNaHpjlWXAZbQiNQ==} + sass@1.78.0: + resolution: {integrity: sha512-AaIqGSrjo5lA2Yg7RvFZrlXDBCp3nV4XP73GrLGvdRWWwk+8H3l0SDvq/5bA4eF+0RFPLuWUk3E+P1U/YqnpsQ==} engines: {node: '>=14.0.0'} hasBin: true @@ -1807,8 +1807,8 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} - shiki@1.16.1: - resolution: {integrity: sha512-tCJIMaxDVB1mEIJ5TvfZU7kCPB5eo9fli5+21Olc/bmyv+w8kye3JOp+LZRmGkAyT71hrkefQhTiY+o9mBikRQ==} + shiki@1.16.2: + resolution: {integrity: sha512-gSym0hZf5a1U0iDPsdoOAZbvoi+e0c6c3NKAi03FoSLTm7oG20tum29+gk0wzzivOasn3loxfGUPT+jZXIUbWg==} signal-exit@4.1.0: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} @@ -2024,8 +2024,8 @@ packages: terser: optional: true - vitefu@0.2.5: - resolution: {integrity: sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==} + vitefu@1.0.2: + resolution: {integrity: sha512-0/iAvbXyM3RiPPJ4lyD4w6Mjgtf4ejTK6TPvTNG3H32PLwuT0N/ZjJLiXug7ETE/LWtTeHw9WRv7uX/tIKYyKg==} peerDependencies: vite: ^3.0.0 || ^4.0.0 || ^5.0.0 peerDependenciesMeta: @@ -2187,8 +2187,8 @@ packages: resolution: {integrity: sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA==} engines: {node: '>= 14'} - yaml@2.5.0: - resolution: {integrity: sha512-2wWLbGbYDiSqqIKoPjar3MPgB94ErzCtrNE1FdqGuaO0pi2JGjmE8aW8TDZwzU7vuxcGRdL/4gPQwQ7hD5AMSw==} + yaml@2.5.1: + resolution: {integrity: sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==} engines: {node: '>= 14'} hasBin: true @@ -2251,20 +2251,20 @@ snapshots: '@astrojs/compiler': 2.10.3 '@astrojs/yaml2ts': 0.2.1 '@jridgewell/sourcemap-codec': 1.5.0 - '@volar/kit': 2.4.1(typescript@5.5.4) - '@volar/language-core': 2.4.1 - '@volar/language-server': 2.4.1 - '@volar/language-service': 2.4.1 - '@volar/typescript': 2.4.1 + '@volar/kit': 2.4.2(typescript@5.5.4) + '@volar/language-core': 2.4.2 + '@volar/language-server': 2.4.2 + '@volar/language-service': 2.4.2 + '@volar/typescript': 2.4.2 fast-glob: 3.3.2 muggle-string: 0.4.1 - volar-service-css: 0.0.61(@volar/language-service@2.4.1) - volar-service-emmet: 0.0.61(@volar/language-service@2.4.1) - volar-service-html: 0.0.61(@volar/language-service@2.4.1) - volar-service-prettier: 0.0.61(@volar/language-service@2.4.1) - volar-service-typescript: 0.0.61(@volar/language-service@2.4.1) - volar-service-typescript-twoslash-queries: 0.0.61(@volar/language-service@2.4.1) - volar-service-yaml: 0.0.61(@volar/language-service@2.4.1) + volar-service-css: 0.0.61(@volar/language-service@2.4.2) + volar-service-emmet: 0.0.61(@volar/language-service@2.4.2) + volar-service-html: 0.0.61(@volar/language-service@2.4.2) + volar-service-prettier: 0.0.61(@volar/language-service@2.4.2) + volar-service-typescript: 0.0.61(@volar/language-service@2.4.2) + volar-service-typescript-twoslash-queries: 0.0.61(@volar/language-service@2.4.2) + volar-service-yaml: 0.0.61(@volar/language-service@2.4.2) vscode-html-languageservice: 5.3.1 vscode-uri: 3.0.8 transitivePeerDependencies: @@ -2284,7 +2284,7 @@ snapshots: remark-parse: 11.0.0 remark-rehype: 11.1.0 remark-smartypants: 3.0.2 - shiki: 1.16.1 + shiki: 1.16.2 unified: 11.0.5 unist-util-remove-position: 5.0.0 unist-util-visit: 5.0.0 @@ -2297,11 +2297,11 @@ snapshots: dependencies: prismjs: 1.29.0 - '@astrojs/react@3.6.2(@types/react-dom@18.3.0)(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(vite@5.4.3(sass@1.77.8))': + '@astrojs/react@3.6.2(@types/react-dom@18.3.0)(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(vite@5.4.3(sass@1.78.0))': dependencies: '@types/react': 18.3.5 '@types/react-dom': 18.3.0 - '@vitejs/plugin-react': 4.3.1(vite@5.4.3(sass@1.77.8)) + '@vitejs/plugin-react': 4.3.1(vite@5.4.3(sass@1.78.0)) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) ultrahtml: 1.5.3 @@ -2309,12 +2309,12 @@ snapshots: - supports-color - vite - '@astrojs/tailwind@5.1.0(astro@4.15.2(rollup@4.21.2)(sass@1.77.8)(typescript@5.5.4))(tailwindcss@3.4.10)': + '@astrojs/tailwind@5.1.0(astro@4.15.3(rollup@4.21.2)(sass@1.78.0)(typescript@5.5.4))(tailwindcss@3.4.10)': dependencies: - astro: 4.15.2(rollup@4.21.2)(sass@1.77.8)(typescript@5.5.4) - autoprefixer: 10.4.20(postcss@8.4.44) - postcss: 8.4.44 - postcss-load-config: 4.0.2(postcss@8.4.44) + astro: 4.15.3(rollup@4.21.2)(sass@1.78.0)(typescript@5.5.4) + autoprefixer: 10.4.20(postcss@8.4.45) + postcss: 8.4.45 + postcss-load-config: 4.0.2(postcss@8.4.45) tailwindcss: 3.4.10 transitivePeerDependencies: - ts-node @@ -2333,7 +2333,7 @@ snapshots: '@astrojs/yaml2ts@0.2.1': dependencies: - yaml: 2.5.0 + yaml: 2.5.1 '@babel/code-frame@7.24.7': dependencies: @@ -2755,7 +2755,7 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.21.2': optional: true - '@shikijs/core@1.16.1': + '@shikijs/core@1.16.2': dependencies: '@shikijs/vscode-textmate': 9.2.0 '@types/hast': 3.0.4 @@ -2820,35 +2820,35 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@vitejs/plugin-react@4.3.1(vite@5.4.3(sass@1.77.8))': + '@vitejs/plugin-react@4.3.1(vite@5.4.3(sass@1.78.0))': dependencies: '@babel/core': 7.25.2 '@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.25.2) '@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.25.2) '@types/babel__core': 7.20.5 react-refresh: 0.14.2 - vite: 5.4.3(sass@1.77.8) + vite: 5.4.3(sass@1.78.0) transitivePeerDependencies: - supports-color - '@volar/kit@2.4.1(typescript@5.5.4)': + '@volar/kit@2.4.2(typescript@5.5.4)': dependencies: - '@volar/language-service': 2.4.1 - '@volar/typescript': 2.4.1 + '@volar/language-service': 2.4.2 + '@volar/typescript': 2.4.2 typesafe-path: 0.2.2 typescript: 5.5.4 vscode-languageserver-textdocument: 1.0.12 vscode-uri: 3.0.8 - '@volar/language-core@2.4.1': + '@volar/language-core@2.4.2': dependencies: - '@volar/source-map': 2.4.1 + '@volar/source-map': 2.4.2 - '@volar/language-server@2.4.1': + '@volar/language-server@2.4.2': dependencies: - '@volar/language-core': 2.4.1 - '@volar/language-service': 2.4.1 - '@volar/typescript': 2.4.1 + '@volar/language-core': 2.4.2 + '@volar/language-service': 2.4.2 + '@volar/typescript': 2.4.2 path-browserify: 1.0.1 request-light: 0.7.0 vscode-languageserver: 9.0.1 @@ -2856,18 +2856,18 @@ snapshots: vscode-languageserver-textdocument: 1.0.12 vscode-uri: 3.0.8 - '@volar/language-service@2.4.1': + '@volar/language-service@2.4.2': dependencies: - '@volar/language-core': 2.4.1 + '@volar/language-core': 2.4.2 vscode-languageserver-protocol: 3.17.5 vscode-languageserver-textdocument: 1.0.12 vscode-uri: 3.0.8 - '@volar/source-map@2.4.1': {} + '@volar/source-map@2.4.2': {} - '@volar/typescript@2.4.1': + '@volar/typescript@2.4.2': dependencies: - '@volar/language-core': 2.4.1 + '@volar/language-core': 2.4.2 path-browserify: 1.0.1 vscode-uri: 3.0.8 @@ -2929,7 +2929,7 @@ snapshots: array-iterate@2.0.1: {} - astro@4.15.2(rollup@4.21.2)(sass@1.77.8)(typescript@5.5.4): + astro@4.15.3(rollup@4.21.2)(sass@1.78.0)(typescript@5.5.4): dependencies: '@astrojs/compiler': 2.10.3 '@astrojs/internal-helpers': 0.4.1 @@ -2982,15 +2982,15 @@ snapshots: prompts: 2.4.2 rehype: 13.0.1 semver: 7.6.3 - shiki: 1.16.1 + shiki: 1.16.2 string-width: 7.2.0 strip-ansi: 7.1.0 tinyexec: 0.3.0 tsconfck: 3.1.3(typescript@5.5.4) unist-util-visit: 5.0.0 vfile: 6.0.3 - vite: 5.4.3(sass@1.77.8) - vitefu: 0.2.5(vite@5.4.3(sass@1.77.8)) + vite: 5.4.3(sass@1.78.0) + vitefu: 1.0.2(vite@5.4.3(sass@1.78.0)) which-pm: 3.0.0 xxhash-wasm: 1.0.2 yargs-parser: 21.1.1 @@ -3012,14 +3012,14 @@ snapshots: - terser - typescript - autoprefixer@10.4.20(postcss@8.4.44): + autoprefixer@10.4.20(postcss@8.4.45): dependencies: browserslist: 4.23.3 - caniuse-lite: 1.0.30001655 + caniuse-lite: 1.0.30001657 fraction.js: 4.3.7 normalize-range: 0.1.2 picocolors: 1.1.0 - postcss: 8.4.44 + postcss: 8.4.45 postcss-value-parser: 4.2.0 axobject-query@4.1.0: {} @@ -3053,8 +3053,8 @@ snapshots: browserslist@4.23.3: dependencies: - caniuse-lite: 1.0.30001655 - electron-to-chromium: 1.5.13 + caniuse-lite: 1.0.30001657 + electron-to-chromium: 1.5.14 node-releases: 2.0.18 update-browserslist-db: 1.1.0(browserslist@4.23.3) @@ -3062,7 +3062,7 @@ snapshots: camelcase@7.0.1: {} - caniuse-lite@1.0.30001655: {} + caniuse-lite@1.0.30001657: {} ccount@2.0.1: {} @@ -3187,7 +3187,7 @@ snapshots: eastasianwidth@0.2.0: {} - electron-to-chromium@1.5.13: {} + electron-to-chromium@1.5.14: {} emmet@2.4.7: dependencies: @@ -4001,28 +4001,28 @@ snapshots: dependencies: find-up: 4.1.0 - postcss-import@15.1.0(postcss@8.4.44): + postcss-import@15.1.0(postcss@8.4.45): dependencies: - postcss: 8.4.44 + postcss: 8.4.45 postcss-value-parser: 4.2.0 read-cache: 1.0.0 resolve: 1.22.8 - postcss-js@4.0.1(postcss@8.4.44): + postcss-js@4.0.1(postcss@8.4.45): dependencies: camelcase-css: 2.0.1 - postcss: 8.4.44 + postcss: 8.4.45 - postcss-load-config@4.0.2(postcss@8.4.44): + postcss-load-config@4.0.2(postcss@8.4.45): dependencies: lilconfig: 3.1.2 - yaml: 2.5.0 + yaml: 2.5.1 optionalDependencies: - postcss: 8.4.44 + postcss: 8.4.45 - postcss-nested@6.2.0(postcss@8.4.44): + postcss-nested@6.2.0(postcss@8.4.45): dependencies: - postcss: 8.4.44 + postcss: 8.4.45 postcss-selector-parser: 6.1.2 postcss-selector-parser@6.1.2: @@ -4032,7 +4032,7 @@ snapshots: postcss-value-parser@4.2.0: {} - postcss@8.4.44: + postcss@8.4.45: dependencies: nanoid: 3.3.7 picocolors: 1.1.0 @@ -4216,7 +4216,7 @@ snapshots: dependencies: queue-microtask: 1.2.3 - sass@1.77.8: + sass@1.78.0: dependencies: chokidar: 3.6.0 immutable: 4.3.7 @@ -4268,9 +4268,9 @@ snapshots: shebang-regex@3.0.0: {} - shiki@1.16.1: + shiki@1.16.2: dependencies: - '@shikijs/core': 1.16.1 + '@shikijs/core': 1.16.2 '@shikijs/vscode-textmate': 9.2.0 '@types/hast': 3.0.4 @@ -4360,11 +4360,11 @@ snapshots: normalize-path: 3.0.0 object-hash: 3.0.0 picocolors: 1.1.0 - postcss: 8.4.44 - postcss-import: 15.1.0(postcss@8.4.44) - postcss-js: 4.0.1(postcss@8.4.44) - postcss-load-config: 4.0.2(postcss@8.4.44) - postcss-nested: 6.2.0(postcss@8.4.44) + postcss: 8.4.45 + postcss-import: 15.1.0(postcss@8.4.45) + postcss-js: 4.0.1(postcss@8.4.45) + postcss-load-config: 4.0.2(postcss@8.4.45) + postcss-nested: 6.2.0(postcss@8.4.45) postcss-selector-parser: 6.1.2 resolve: 1.22.8 sucrase: 3.35.0 @@ -4487,57 +4487,57 @@ snapshots: '@types/unist': 3.0.3 vfile-message: 4.0.2 - vite@5.4.3(sass@1.77.8): + vite@5.4.3(sass@1.78.0): dependencies: esbuild: 0.21.5 - postcss: 8.4.44 + postcss: 8.4.45 rollup: 4.21.2 optionalDependencies: fsevents: 2.3.3 - sass: 1.77.8 + sass: 1.78.0 - vitefu@0.2.5(vite@5.4.3(sass@1.77.8)): + vitefu@1.0.2(vite@5.4.3(sass@1.78.0)): optionalDependencies: - vite: 5.4.3(sass@1.77.8) + vite: 5.4.3(sass@1.78.0) - volar-service-css@0.0.61(@volar/language-service@2.4.1): + volar-service-css@0.0.61(@volar/language-service@2.4.2): dependencies: vscode-css-languageservice: 6.3.1 vscode-languageserver-textdocument: 1.0.12 vscode-uri: 3.0.8 optionalDependencies: - '@volar/language-service': 2.4.1 + '@volar/language-service': 2.4.2 - volar-service-emmet@0.0.61(@volar/language-service@2.4.1): + volar-service-emmet@0.0.61(@volar/language-service@2.4.2): dependencies: '@emmetio/css-parser': 0.4.0 '@emmetio/html-matcher': 1.3.0 '@vscode/emmet-helper': 2.9.3 vscode-uri: 3.0.8 optionalDependencies: - '@volar/language-service': 2.4.1 + '@volar/language-service': 2.4.2 - volar-service-html@0.0.61(@volar/language-service@2.4.1): + volar-service-html@0.0.61(@volar/language-service@2.4.2): dependencies: vscode-html-languageservice: 5.3.1 vscode-languageserver-textdocument: 1.0.12 vscode-uri: 3.0.8 optionalDependencies: - '@volar/language-service': 2.4.1 + '@volar/language-service': 2.4.2 - volar-service-prettier@0.0.61(@volar/language-service@2.4.1): + volar-service-prettier@0.0.61(@volar/language-service@2.4.2): dependencies: vscode-uri: 3.0.8 optionalDependencies: - '@volar/language-service': 2.4.1 + '@volar/language-service': 2.4.2 - volar-service-typescript-twoslash-queries@0.0.61(@volar/language-service@2.4.1): + volar-service-typescript-twoslash-queries@0.0.61(@volar/language-service@2.4.2): dependencies: vscode-uri: 3.0.8 optionalDependencies: - '@volar/language-service': 2.4.1 + '@volar/language-service': 2.4.2 - volar-service-typescript@0.0.61(@volar/language-service@2.4.1): + volar-service-typescript@0.0.61(@volar/language-service@2.4.2): dependencies: path-browserify: 1.0.1 semver: 7.6.3 @@ -4546,14 +4546,14 @@ snapshots: vscode-nls: 5.2.0 vscode-uri: 3.0.8 optionalDependencies: - '@volar/language-service': 2.4.1 + '@volar/language-service': 2.4.2 - volar-service-yaml@0.0.61(@volar/language-service@2.4.1): + volar-service-yaml@0.0.61(@volar/language-service@2.4.2): dependencies: vscode-uri: 3.0.8 yaml-language-server: 1.15.0 optionalDependencies: - '@volar/language-service': 2.4.1 + '@volar/language-service': 2.4.2 vscode-css-languageservice@6.3.1: dependencies: @@ -4662,7 +4662,7 @@ snapshots: yaml@2.2.2: {} - yaml@2.5.0: {} + yaml@2.5.1: {} yargs-parser@21.1.1: {} diff --git a/src/components/DocsLeftAside.astro b/src/components/DocsLeftAside.astro index 59a498f..21ad785 100644 --- a/src/components/DocsLeftAside.astro +++ b/src/components/DocsLeftAside.astro @@ -12,7 +12,9 @@ const allDocs = await getCollection("docs"); {allDocs.map(({id, slug, body, collection, data}, index) =>
  • - + { + return item.includes("_") ? item.split("_").slice(1).join() : item + }).join("/")}> {data.title ?? id}
  • diff --git "a/src/content/blog/2024-08-13-\345\274\200\345\217\221\350\200\205\346\235\202\350\260\210\350\256\260\345\275\225.md" "b/src/content/blog/2024-08-13_\345\274\200\345\217\221\350\200\205\346\235\202\350\260\210\350\256\260\345\275\225.md" similarity index 100% rename from "src/content/blog/2024-08-13-\345\274\200\345\217\221\350\200\205\346\235\202\350\260\210\350\256\260\345\275\225.md" rename to "src/content/blog/2024-08-13_\345\274\200\345\217\221\350\200\205\346\235\202\350\260\210\350\256\260\345\275\225.md" diff --git "a/src/content/docs/01-\347\224\250\346\210\267\346\226\207\346\241\243/00-\345\211\215\347\253\257\345\210\235\346\216\242.md" "b/src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/00_\345\211\215\347\253\257\345\210\235\346\216\242.md" similarity index 100% rename from "src/content/docs/01-\347\224\250\346\210\267\346\226\207\346\241\243/00-\345\211\215\347\253\257\345\210\235\346\216\242.md" rename to "src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/00_\345\211\215\347\253\257\345\210\235\346\216\242.md" diff --git "a/src/content/docs/01-\347\224\250\346\210\267\346\226\207\346\241\243/01-\351\241\271\347\233\256\344\273\213\347\273\215.md" "b/src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/01_\351\241\271\347\233\256\344\273\213\347\273\215.md" similarity index 97% rename from "src/content/docs/01-\347\224\250\346\210\267\346\226\207\346\241\243/01-\351\241\271\347\233\256\344\273\213\347\273\215.md" rename to "src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/01_\351\241\271\347\233\256\344\273\213\347\273\215.md" index 4b513e7..8094a43 100644 --- "a/src/content/docs/01-\347\224\250\346\210\267\346\226\207\346\241\243/01-\351\241\271\347\233\256\344\273\213\347\273\215.md" +++ "b/src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/01_\351\241\271\347\233\256\344\273\213\347\273\215.md" @@ -45,7 +45,7 @@ title: 项目介绍 代码部分使用 [MIT License](https://github.com/Yue-plus/astro-arknights/blob/main/LICENSE); -[内容集合(`src/content`)](https://github.com/Yue-plus/astro-arknights/tree/main/src/content) 内的所有内容使用 +[内容集合(`src/content`)](https://github.com/Yue-plus/astro-arknights/tree/main/src/content) 中的所有内容均使用 CC BY-NC-SA 4.0 diff --git "a/src/content/docs/01-\347\224\250\346\210\267\346\226\207\346\241\243/02-\345\277\253\351\200\237\345\220\257\345\212\250.md" "b/src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/02_\345\277\253\351\200\237\345\220\257\345\212\250.md" similarity index 100% rename from "src/content/docs/01-\347\224\250\346\210\267\346\226\207\346\241\243/02-\345\277\253\351\200\237\345\220\257\345\212\250.md" rename to "src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/02_\345\277\253\351\200\237\345\220\257\345\212\250.md" diff --git "a/src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/03_\351\203\250\347\275\262\347\253\231\347\202\271.md" "b/src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/03_\351\203\250\347\275\262\347\253\231\347\202\271.md" new file mode 100644 index 0000000..fabab88 --- /dev/null +++ "b/src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/03_\351\203\250\347\275\262\347\253\231\347\202\271.md" @@ -0,0 +1,11 @@ +--- +title: 部署站点 +--- + +# 部署站点 + +本项目基于 Astro,可以完全参照 [Astro 官方的部署文档](https://docs.astro.build/zh-cn/guides/deploy/)。 + + 站点托管于 GitHub Pages,可以参考 +[`.github/workflows/deploy.yml`](https://github.com/Yue-plus/astro-arknights/blob/main/.github/workflows/deploy.yml) +文件。 diff --git "a/src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/04_\351\241\271\347\233\256\347\273\223\346\236\204.md" "b/src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/04_\351\241\271\347\233\256\347\273\223\346\236\204.md" new file mode 100644 index 0000000..cdc5a9b --- /dev/null +++ "b/src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/04_\351\241\271\347\233\256\347\273\223\346\236\204.md" @@ -0,0 +1,9 @@ +--- +title: 项目结构 +--- + +# 项目结构 + +> 参考 Astro 官方文档:[项目结构 - 基础知识](https://docs.astro.build/zh-cn/basics/project-structure/) + +TODO: 介绍 `arknights.config.tsx` 配置文件。 diff --git "a/src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/05_\345\274\200\345\247\213\345\206\231\344\275\234.md" "b/src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/05_\345\274\200\345\247\213\345\206\231\344\275\234.md" new file mode 100644 index 0000000..831e6eb --- /dev/null +++ "b/src/content/docs/01_\347\224\250\346\210\267\346\226\207\346\241\243/05_\345\274\200\345\247\213\345\206\231\344\275\234.md" @@ -0,0 +1,22 @@ +--- +title: 开始写作 +--- + +# 开始写作 + +> 参考 Astro 官方文档:[创作内容 - 管理你的内容](https://docs.astro.build/zh-cn/guides/content/) + +## 默认的内容集合 + +> 参考: +> - Astro 官方文档:[内容集合 - 管理你的内容](https://docs.astro.build/zh-cn/guides/content-collections/) +> - [本项目的内容集合组织方式](https://github.com/Yue-plus/astro-arknights/tree/main/src/content) + +本项目默认创建了 **文档(`docs/`)** 与 **博客(`blog/`)** 两个内容集合。 +其中的内容条目 **推荐** 以下命名规范: + +01. 文件名不要带空格(需要的话使用连词符(`-`)代替空格); +02. 使用下划线分隔 *编号* 与 *标题*; + +- 文档:`_/_/_.md` +- 博客:`<yyyy>-<MM>-<dd>_<title>.md` diff --git "a/src/content/docs/02-\345\274\200\345\217\221\350\200\205\346\226\207\346\241\243/\345\270\203\345\261\200.md" "b/src/content/docs/02_\345\274\200\345\217\221\350\200\205\346\226\207\346\241\243/\345\270\203\345\261\200.md" similarity index 100% rename from "src/content/docs/02-\345\274\200\345\217\221\350\200\205\346\226\207\346\241\243/\345\270\203\345\261\200.md" rename to "src/content/docs/02_\345\274\200\345\217\221\350\200\205\346\226\207\346\241\243/\345\270\203\345\261\200.md" diff --git a/src/layouts/InfoLayout.astro b/src/layouts/InfoLayout.astro index 4b47a8c..2754096 100644 --- a/src/layouts/InfoLayout.astro +++ b/src/layouts/InfoLayout.astro @@ -195,7 +195,7 @@ const subNavigationItems = Astro.props.subNavigationItems box-sizing: border-box; } - p, th, td { + p, li, th, td { code { background-color: rgba(255, 255, 255, 0.125); padding: 0 3px; diff --git a/src/pages/docs/[...slug].astro b/src/pages/docs/[...slug].astro index 170b95f..e96b453 100644 --- a/src/pages/docs/[...slug].astro +++ b/src/pages/docs/[...slug].astro @@ -3,12 +3,14 @@ import {getCollection} from 'astro:content' // import {Debug} from 'astro:components' import type {SubNavigationItem} from "../../_types/SubNavigationItem" import DocsLayout from "../../layouts/DocsLayout.astro" -import DocsToolPanel from "../../components/DocsToolPanel" -import DocsLeftAsideSwitch from "../../components/DocsLeftAsideSwitch" export async function getStaticPaths() { return (await getCollection("docs")).map(entry => ({ - params: {slug: entry.slug.split("-").slice(1).join("-")}, + params: { + slug: entry.slug.split("/").map((item, index, array) => { + return item.includes("_") ? item.split("_").slice(1).join() : item + }).join("/"), + }, props: {entry}, })) } @@ -20,13 +22,15 @@ const title = entry?.data?.title ?? "无标题" const subNavigationItems: SubNavigationItem[] = (await getCollection("docs")) .map(({id, slug, body, collection, data}, index) => ({ title: data.title ?? id, - href: base + "docs/" + slug.split("-").slice(1).join("-"), + href: base + "docs/" + slug.split("/").map((item, index, array) => { + return item.includes("_") ? item.split("_").slice(1).join() : item + }).join("/"), })) --- <DocsLayout {...{title, subNavigationItems, headings}}> - <!--<Debug {allDocs}/>--> - <article> - <Content/> - </article> + <!--<Debug {allDocs}/>--> + <article> + <Content/> + </article> </DocsLayout> diff --git a/src/pages/docs/index.astro b/src/pages/docs/index.astro index a04d50e..61e51fb 100644 --- a/src/pages/docs/index.astro +++ b/src/pages/docs/index.astro @@ -3,24 +3,24 @@ import {getCollection} from 'astro:content' // import {Debug} from 'astro:components' import type {SubNavigationItem} from "../../_types/SubNavigationItem" import DocsLayout from "../../layouts/DocsLayout.astro" -import DocsLeftAside from "../../components/DocsLeftAside.astro" -import DocsLeftAsideSwitch from "../../components/DocsLeftAsideSwitch" import {IconArrow} from "../../components/SvgIcons" const base = import.meta.env.BASE_URL const subNavigationItems: SubNavigationItem[] = (await getCollection("docs")) .map(({id, slug, body, collection, data}, index) => ({ title: data.title ?? id, - href: base + "docs/" + slug.split("-").slice(1).join("-"), + href: base + "docs/" + slug.split("/").map((item, index, array) => { + return item.includes("_") ? item.split("_").slice(1).join() : item + }).join("/"), })) --- <DocsLayout title="首页" {...{subNavigationItems}}> + <!--<Debug />--> <article class="h-full flex flex-col justify-center"> - <!--<Debug/>--> <h1 class="font-benderBold">Astro Arknights 文档</h1> <p class="font-benderRegular">指南、资源和 API 参考,帮助你使用 Astro 进行构建。</p> - <a target="_self" href="./用户文档/01-项目介绍" + <a target="_self" href="./用户文档/项目介绍" class="w-[18rem] h-[4.8rem] text-inherit no-underline hover:text-black hover:bg-ark-blue bg-[#5a5a5a] px-[2.5rem] flex items-center justify-between cursor-pointer transition-[color,background-color] duration-300"> <div> <div class="text-[1.6rem] font-bold">开始使用</div>