mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 15:40:51 +01:00
Bump renderer version
This commit is contained in:
parent
5e3483645d
commit
de2199bf44
@ -16,7 +16,7 @@
|
||||
"@fortawesome/fontawesome-svg-core": "^6.1.1",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.1.1",
|
||||
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||
"@nitrots/nitro-renderer": "^1.4.7",
|
||||
"@nitrots/nitro-renderer": "^1.4.8",
|
||||
"@tanstack/react-virtual": "^3.0.0-beta.18",
|
||||
"animate.css": "^4.1.1",
|
||||
"cross-env": "^7.0.3",
|
||||
|
27
src/App.tsx
27
src/App.tsx
@ -24,7 +24,7 @@ export const App: FC<{}> = props =>
|
||||
Nitro.bootstrap();
|
||||
}
|
||||
|
||||
const handler = useCallback((event: NitroEvent) =>
|
||||
const handler = useCallback(async (event: NitroEvent) =>
|
||||
{
|
||||
switch(event.type)
|
||||
{
|
||||
@ -82,20 +82,19 @@ export const App: FC<{}> = props =>
|
||||
|
||||
if(assetUrls && assetUrls.length) for(const url of assetUrls) urls.push(NitroConfiguration.interpolate(url));
|
||||
|
||||
GetAssetManager().downloadAssets(urls, (status: boolean) =>
|
||||
{
|
||||
if(status)
|
||||
{
|
||||
GetCommunication().init();
|
||||
const status = await GetAssetManager().downloadAssets(urls);
|
||||
|
||||
setPercent(prevValue => (prevValue + 20))
|
||||
}
|
||||
else
|
||||
{
|
||||
setIsError(true);
|
||||
setMessage('Assets Failed');
|
||||
}
|
||||
});
|
||||
if(status)
|
||||
{
|
||||
GetCommunication().init();
|
||||
|
||||
setPercent(prevValue => (prevValue + 20))
|
||||
}
|
||||
else
|
||||
{
|
||||
setIsError(true);
|
||||
setMessage('Assets Failed');
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1484,10 +1484,10 @@
|
||||
"@jridgewell/resolve-uri" "^3.0.3"
|
||||
"@jridgewell/sourcemap-codec" "^1.4.10"
|
||||
|
||||
"@nitrots/nitro-renderer@^1.4.7":
|
||||
version "1.4.7"
|
||||
resolved "https://registry.yarnpkg.com/@nitrots/nitro-renderer/-/nitro-renderer-1.4.7.tgz#1332c90bebe1d83827f7a7d57dc23f08a29ac004"
|
||||
integrity sha512-704o6DDxhb3ug+zsBBmwdaATI/lhGNu/xMtdepMEZrPBkP/cFu0s5ofEsL1rkRJ0M6ceuTt+lCUsKgUXHxGWgg==
|
||||
"@nitrots/nitro-renderer@^1.4.8":
|
||||
version "1.4.8"
|
||||
resolved "https://registry.yarnpkg.com/@nitrots/nitro-renderer/-/nitro-renderer-1.4.8.tgz#f88bd034036396b2f303218c2343ce0afe1106f5"
|
||||
integrity sha512-5MAdomgBEt4/RYFWtYm4xhNjOZjlZikdppLusKb4rJYUUl6ZhHxSCdTe2IiyxrDFM2Q19Okub0FzIsOaYEei8A==
|
||||
dependencies:
|
||||
"@pixi/app" "~6.4.2"
|
||||
"@pixi/basis" "~6.4.2"
|
||||
|
Loading…
Reference in New Issue
Block a user