mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
feat: implement turbo for navigation
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
"@astrojs/react": "^1.1.4",
|
"@astrojs/react": "^1.1.4",
|
||||||
"@code-hike/mdx": "^0.7.4",
|
"@code-hike/mdx": "^0.7.4",
|
||||||
"@discordjs/ui": "workspace:^",
|
"@discordjs/ui": "workspace:^",
|
||||||
"@vscode/codicons": "^0.0.32",
|
"@hotwired/turbo": "^7.2.0",
|
||||||
"ariakit": "^2.0.0-next.41",
|
"ariakit": "^2.0.0-next.41",
|
||||||
"astro": "^1.4.6",
|
"astro": "^1.4.6",
|
||||||
"cmdk": "^0.1.20",
|
"cmdk": "^0.1.20",
|
||||||
@@ -48,11 +48,7 @@
|
|||||||
"react-custom-scrollbars-2": "^4.5.0",
|
"react-custom-scrollbars-2": "^4.5.0",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"react-icons": "^4.4.0",
|
"react-icons": "^4.4.0",
|
||||||
"react-syntax-highlighter": "^15.5.0",
|
|
||||||
"react-use": "^17.4.0",
|
"react-use": "^17.4.0",
|
||||||
"rehype-ignore": "^1.0.1",
|
|
||||||
"rehype-pretty-code": "^0.3.2",
|
|
||||||
"rehype-raw": "^6.1.1",
|
|
||||||
"sharp": "^0.31.1",
|
"sharp": "^0.31.1",
|
||||||
"shiki": "^0.11.1"
|
"shiki": "^0.11.1"
|
||||||
},
|
},
|
||||||
@@ -67,7 +63,6 @@
|
|||||||
"@unocss/reset": "^0.45.28",
|
"@unocss/reset": "^0.45.28",
|
||||||
"@vitejs/plugin-react": "^2.1.0",
|
"@vitejs/plugin-react": "^2.1.0",
|
||||||
"@vitest/coverage-c8": "^0.24.0",
|
"@vitest/coverage-c8": "^0.24.0",
|
||||||
"concurrently": "^7.4.0",
|
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.25.0",
|
"eslint": "^8.25.0",
|
||||||
"eslint-config-neon": "^0.1.35",
|
"eslint-config-neon": "^0.1.35",
|
||||||
|
|||||||
@@ -32,6 +32,10 @@ const props = Astro.props;
|
|||||||
<title>discord.js</title>
|
<title>discord.js</title>
|
||||||
<meta content="minimum-scale=1, initial-scale=1, width=device-width" name="viewport" />
|
<meta content="minimum-scale=1, initial-scale=1, width=device-width" name="viewport" />
|
||||||
<meta content="#5865f2" name="theme-color" />
|
<meta content="#5865f2" name="theme-color" />
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import '../scripts/router.js';
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body class="dark:bg-dark-800 bg-white">
|
<body class="dark:bg-dark-800 bg-white">
|
||||||
<script is:inline>
|
<script is:inline>
|
||||||
|
|||||||
3
packages/guide/src/scripts/router.js
Normal file
3
packages/guide/src/scripts/router.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
import * as turbo from '@hotwired/turbo';
|
||||||
|
|
||||||
|
turbo.start();
|
||||||
14
yarn.lock
14
yarn.lock
@@ -2111,6 +2111,7 @@ __metadata:
|
|||||||
"@astrojs/react": ^1.1.4
|
"@astrojs/react": ^1.1.4
|
||||||
"@code-hike/mdx": ^0.7.4
|
"@code-hike/mdx": ^0.7.4
|
||||||
"@discordjs/ui": "workspace:^"
|
"@discordjs/ui": "workspace:^"
|
||||||
|
"@hotwired/turbo": ^7.2.0
|
||||||
"@testing-library/react": ^13.4.0
|
"@testing-library/react": ^13.4.0
|
||||||
"@testing-library/user-event": ^14.4.3
|
"@testing-library/user-event": ^14.4.3
|
||||||
"@types/node": ^16.11.64
|
"@types/node": ^16.11.64
|
||||||
@@ -2121,11 +2122,9 @@ __metadata:
|
|||||||
"@unocss/reset": ^0.45.28
|
"@unocss/reset": ^0.45.28
|
||||||
"@vitejs/plugin-react": ^2.1.0
|
"@vitejs/plugin-react": ^2.1.0
|
||||||
"@vitest/coverage-c8": ^0.24.0
|
"@vitest/coverage-c8": ^0.24.0
|
||||||
"@vscode/codicons": ^0.0.32
|
|
||||||
ariakit: ^2.0.0-next.41
|
ariakit: ^2.0.0-next.41
|
||||||
astro: ^1.4.6
|
astro: ^1.4.6
|
||||||
cmdk: ^0.1.20
|
cmdk: ^0.1.20
|
||||||
concurrently: ^7.4.0
|
|
||||||
cross-env: ^7.0.3
|
cross-env: ^7.0.3
|
||||||
eslint: ^8.25.0
|
eslint: ^8.25.0
|
||||||
eslint-config-neon: ^0.1.35
|
eslint-config-neon: ^0.1.35
|
||||||
@@ -2141,12 +2140,8 @@ __metadata:
|
|||||||
react-custom-scrollbars-2: ^4.5.0
|
react-custom-scrollbars-2: ^4.5.0
|
||||||
react-dom: ^17.0.2
|
react-dom: ^17.0.2
|
||||||
react-icons: ^4.4.0
|
react-icons: ^4.4.0
|
||||||
react-syntax-highlighter: ^15.5.0
|
|
||||||
react-use: ^17.4.0
|
react-use: ^17.4.0
|
||||||
rehype-autolink-headings: ^6.1.1
|
rehype-autolink-headings: ^6.1.1
|
||||||
rehype-ignore: ^1.0.1
|
|
||||||
rehype-pretty-code: ^0.3.2
|
|
||||||
rehype-raw: ^6.1.1
|
|
||||||
rehype-slug: ^5.0.1
|
rehype-slug: ^5.0.1
|
||||||
sharp: ^0.31.1
|
sharp: ^0.31.1
|
||||||
shiki: ^0.11.1
|
shiki: ^0.11.1
|
||||||
@@ -2578,6 +2573,13 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@hotwired/turbo@npm:^7.2.0":
|
||||||
|
version: 7.2.0
|
||||||
|
resolution: "@hotwired/turbo@npm:7.2.0"
|
||||||
|
checksum: cea846f44190e24897b5b142838ca6fef1dcab623832a4af35a3da9e094fb908f44c73c4abc7ba75ca80cac0358c2009fcb17659ae3c97dd955bfb5aa45d8b4b
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@humanwhocodes/config-array@npm:^0.10.5":
|
"@humanwhocodes/config-array@npm:^0.10.5":
|
||||||
version: 0.10.5
|
version: 0.10.5
|
||||||
resolution: "@humanwhocodes/config-array@npm:0.10.5"
|
resolution: "@humanwhocodes/config-array@npm:0.10.5"
|
||||||
|
|||||||
Reference in New Issue
Block a user