kopia lustrzana https://github.com/Tldraw/Tldraw
seo: take 2 (#2817)
(pending landing on: "Going to wait to land this one until the Google SEO 'soft 404' validation finishes. I want to make sure we're testing separate things.") - removes Loading text - adds sitemap to try to get Google to play nice ### Change Type - [x] `patch` — Bug fix --------- Co-authored-by: Steve Ruiz <steveruizok@gmail.com>pull/2796/head
rodzic
c621a43d19
commit
5bb60858b9
|
@ -42,8 +42,9 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="root" class="site-wrapper">Loading tldraw…</div>
|
<div id="root" class="site-wrapper"></div>
|
||||||
<script type="module" src="./src/main.tsx"></script>
|
<script type="module" src="./src/main.tsx"></script>
|
||||||
|
<noscript>You need to enable JavaScript to run tldraw. ✌️</noscript>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
https://www.tldraw.com/
|
|
@ -11,5 +11,6 @@
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script type="module" src="./index.tsx"></script>
|
<script type="module" src="./index.tsx"></script>
|
||||||
|
<noscript>You need to enable JavaScript to run tldraw. ✌️</noscript>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -62,9 +62,11 @@ export function useScreenBounds(ref: React.RefObject<HTMLElement>) {
|
||||||
}, [editor, ref])
|
}, [editor, ref])
|
||||||
}
|
}
|
||||||
|
|
||||||
// Credits: from v1 by way of excalidraw
|
/*!
|
||||||
// https://github.com/tldraw/tldraw-v1/blob/main/packages/core/src/hooks/useResizeObserver.ts#L8
|
* Author: excalidraw
|
||||||
// https://github.com/excalidraw/excalidraw/blob/48c3465b19f10ec755b3eb84e21a01a468e96e43/packages/excalidraw/utils.ts#L600
|
* MIT License: https://github.com/excalidraw/excalidraw/blob/master/LICENSE
|
||||||
|
* https://github.com/excalidraw/excalidraw/blob/48c3465b19f10ec755b3eb84e21a01a468e96e43/packages/excalidraw/utils.ts#L600
|
||||||
|
*/
|
||||||
const getNearestScrollableContainer = (element: HTMLElement): HTMLElement | Document => {
|
const getNearestScrollableContainer = (element: HTMLElement): HTMLElement | Document => {
|
||||||
let parent = element.parentElement
|
let parent = element.parentElement
|
||||||
while (parent) {
|
while (parent) {
|
||||||
|
|
Ładowanie…
Reference in New Issue