mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
fix: remove turbo experiment again
This commit is contained in:
@@ -39,7 +39,6 @@
|
|||||||
"@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",
|
|
||||||
"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",
|
||||||
|
|||||||
@@ -10,18 +10,18 @@ type Props = MarkdownLayoutProps<{}>;
|
|||||||
const { headings } = Astro.props;
|
const { headings } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<script is:inline>
|
<script>
|
||||||
window.addEventListener('load', () => {
|
window.addEventListener('load', () => {
|
||||||
const headings = document.querySelectorAll(
|
const headings = document.querySelectorAll(
|
||||||
'div.level-h1 > h1, div.level-h2 > h2, div.level-h3 > h3, div.level-h4 > h4',
|
'div.level-h1 > h1, div.level-h2 > h2, div.level-h3 > h3, div.level-h4 > h4',
|
||||||
);
|
);
|
||||||
|
|
||||||
const headingsObserver = new IntersectionObserver(
|
const headingsObserver = new IntersectionObserver(
|
||||||
(entries, observer) => {
|
(entries) => {
|
||||||
entries.forEach((entry) => {
|
entries.forEach((entry) => {
|
||||||
if (entry.isIntersecting) {
|
if (entry.isIntersecting) {
|
||||||
const location = window.location.toString().split('#')[0];
|
const location = window.location.toString().split('#')[0];
|
||||||
history.replaceState(null, null, location + '#' + entry.target.id);
|
history.replaceState(null, '', location + '#' + entry.target.id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -32,10 +32,6 @@ 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>
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
import * as turbo from '@hotwired/turbo';
|
|
||||||
|
|
||||||
turbo.start();
|
|
||||||
@@ -2111,7 +2111,6 @@ __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
|
||||||
@@ -2575,13 +2574,6 @@ __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