feat: url object notation found work

This commit is contained in:
TrèsAbhi committed 2024-08-12 13:18:22 -05:00
1 parent d1fe7f6533
commit b2c4bfc926
3 files changed
+3 -1

No files matched your search

BIN
View File
Binary file not shown.
+1
View File
@@ -74,6 +74,7 @@
"sharp": "^0.33.4", "sharp": "^0.33.4",
"three": "0.159.0", "three": "0.159.0",
"three-stdlib": "^2.30.4", "three-stdlib": "^2.30.4",
"urlon": "^3.1.0",
"vitepress": "^1.3.0", "vitepress": "^1.3.0",
"vitepress-plugin-auto-sidebar": "^1.2.0", "vitepress-plugin-auto-sidebar": "^1.2.0",
"yaml": "^2.4.5", "yaml": "^2.4.5",
+2 -1
View File
@@ -12,6 +12,7 @@ import {
import { Box, Button, Flex, Heading, ScrollArea, Text } from '@radix-ui/themes'; import { Box, Button, Flex, Heading, ScrollArea, Text } from '@radix-ui/themes';
import { capitalize, startCase } from 'lodash'; import { capitalize, startCase } from 'lodash';
import { ReactNode, useEffect, useRef, useState } from 'react'; import { ReactNode, useEffect, useRef, useState } from 'react';
import { stringify } from 'urlon';
import { CopyButton } from '../../../../components/CopyButton'; import { CopyButton } from '../../../../components/CopyButton';
import { NAVBAR_HEIGHT } from '../../../../components/Navbar'; import { NAVBAR_HEIGHT } from '../../../../components/Navbar';
import PageWrapper from '../../../../components/PageWrapper'; import PageWrapper from '../../../../components/PageWrapper';
@@ -94,7 +95,7 @@ export default function Page({
const searchParams = new URLSearchParams({ const searchParams = new URLSearchParams({
id: `${wargaming.id}`, id: `${wargaming.id}`,
state: JSON.stringify(shallowState), state: stringify(shallowState),
}); });
return `${location.origin}/tools/embed/${params.embed}/host?${searchParams.toString()}`; return `${location.origin}/tools/embed/${params.embed}/host?${searchParams.toString()}`;