diff options
| author | bobzel <zzzman@gmail.com> | 2022-12-09 14:49:00 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-12-09 14:49:00 -0500 |
| commit | 61683e5e084f0b3a6c53bde08295a25b53ea2db3 (patch) | |
| tree | bdfb75f144f5fd9afcac63136a204ca0dd9b0bb7 /src/client/views/Main.tsx | |
| parent | fd3cf23dab35ca71fddc0eea7c837b4a2907853d (diff) | |
added splash ui for document loading.
Diffstat (limited to 'src/client/views/Main.tsx')
| -rw-r--r-- | src/client/views/Main.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx index f327f3184..e0b4c5159 100644 --- a/src/client/views/Main.tsx +++ b/src/client/views/Main.tsx @@ -5,6 +5,7 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom/client'; import { AssignAllExtensions } from '../../extensions/General/Extensions'; +import { FieldLoader } from '../../fields/FieldLoader'; import { DocServer } from '../DocServer'; import { Docs } from '../documents/Documents'; import { CurrentUserUtils } from '../util/CurrentUserUtils'; @@ -17,9 +18,11 @@ import * as dotenv from 'dotenv'; // see https://github.com/motdotla/dotenv#how- dotenv.config(); AssignAllExtensions(); +FieldLoader.ServerLoadStatus = { requested: 0, retrieved: 0 }; // bcz: not sure why this is needed to get the code loaded properly... (async () => { MainView.Live = window.location.search.includes('live'); + ReactDOM.createRoot(document.getElementById('root')!).render(<FieldLoader />); window.location.search.includes('safe') && CollectionView.SetSafeMode(true); const info = await CurrentUserUtils.loadCurrentUser(); if (info.email === 'guest') DocServer.Control.makeReadOnly(); |
