|
|
@ -1,6 +1,6 @@ |
|
|
|
import {RemixApp} from '@remix-ui/app' |
|
|
|
import {RemixApp} from '@remix-ui/app' |
|
|
|
import React, {useEffect, useRef, useState} from 'react' |
|
|
|
import React, {useEffect, useRef, useState} from 'react' |
|
|
|
import {render} from 'react-dom' |
|
|
|
import { createRoot } from 'react-dom/client' |
|
|
|
import * as packageJson from '../../../../../package.json' |
|
|
|
import * as packageJson from '../../../../../package.json' |
|
|
|
import {fileSystem, fileSystems} from '../files/fileSystem' |
|
|
|
import {fileSystem, fileSystems} from '../files/fileSystem' |
|
|
|
import {indexedDBFileSystem} from '../files/filesystems/indexedDB' |
|
|
|
import {indexedDBFileSystem} from '../files/filesystems/indexedDB' |
|
|
@ -10,7 +10,7 @@ import './styles/preload.css' |
|
|
|
import isElectron from 'is-electron' |
|
|
|
import isElectron from 'is-electron' |
|
|
|
const _paq = (window._paq = window._paq || []) |
|
|
|
const _paq = (window._paq = window._paq || []) |
|
|
|
|
|
|
|
|
|
|
|
export const Preload = () => { |
|
|
|
export const Preload = (props: any) => { |
|
|
|
const [supported, setSupported] = useState<boolean>(true) |
|
|
|
const [supported, setSupported] = useState<boolean>(true) |
|
|
|
const [error, setError] = useState<boolean>(false) |
|
|
|
const [error, setError] = useState<boolean>(false) |
|
|
|
const [showDownloader, setShowDownloader] = useState<boolean>(false) |
|
|
|
const [showDownloader, setShowDownloader] = useState<boolean>(false) |
|
|
@ -33,12 +33,7 @@ export const Preload = () => { |
|
|
|
.then((AppComponent) => { |
|
|
|
.then((AppComponent) => { |
|
|
|
const appComponent = new AppComponent.default() |
|
|
|
const appComponent = new AppComponent.default() |
|
|
|
appComponent.run().then(() => { |
|
|
|
appComponent.run().then(() => { |
|
|
|
render( |
|
|
|
props.root.render(<RemixApp app={appComponent} />) |
|
|
|
<> |
|
|
|
|
|
|
|
<RemixApp app={appComponent} /> |
|
|
|
|
|
|
|
</>, |
|
|
|
|
|
|
|
document.getElementById('root') |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
.catch((err) => { |
|
|
|