(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
Mime Čuvalo 2024-02-15 11:28:43 +00:00 zatwierdzone przez GitHub
rodzic c621a43d19
commit 5bb60858b9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
4 zmienionych plików z 9 dodań i 4 usunięć

Wyświetl plik

@ -42,8 +42,9 @@
</head>
<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>
<noscript>You need to enable JavaScript to run tldraw. ✌️</noscript>
</body>
</html>

Wyświetl plik

@ -0,0 +1 @@
https://www.tldraw.com/

Wyświetl plik

@ -11,5 +11,6 @@
<body>
<div id="root"></div>
<script type="module" src="./index.tsx"></script>
<noscript>You need to enable JavaScript to run tldraw. ✌️</noscript>
</body>
</html>

Wyświetl plik

@ -62,9 +62,11 @@ export function useScreenBounds(ref: React.RefObject<HTMLElement>) {
}, [editor, ref])
}
// Credits: from v1 by way of excalidraw
// https://github.com/tldraw/tldraw-v1/blob/main/packages/core/src/hooks/useResizeObserver.ts#L8
// https://github.com/excalidraw/excalidraw/blob/48c3465b19f10ec755b3eb84e21a01a468e96e43/packages/excalidraw/utils.ts#L600
/*!
* Author: excalidraw
* 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 => {
let parent = element.parentElement
while (parent) {