mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: url object notation found work
This commit is contained in:
1 parent
d1fe7f6533
commit
b2c4bfc926
3 files changed
+3
-1
No files matched your search
@@ -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",
|
||||||
|
|||||||
@@ -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()}`;
|
||||||
|
|||||||
Reference in new issue
Block a user