mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
d74c4009cb
`options` slice was huge and managed a mix of generation parameters and general app settings. It has been split up: - Generation parameters are now in `generationSlice`. - Postprocessing parameters are now in `postprocessingSlice` - UI related things are now in `uiSlice` There is probably more to be done, like `gallerySlice` perhaps should only manage internal gallery state, and not if the gallery is displayed. Full-slice selectors have been made for each slice. Other organisational tweaks.
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import ProgressBar from 'features/system/components/ProgressBar';
|
|
import SiteHeader from 'features/system/components/SiteHeader';
|
|
import Console from 'features/system/components/Console';
|
|
import { keepGUIAlive } from './utils';
|
|
import InvokeTabs from 'features/ui/components/InvokeTabs';
|
|
import ImageUploader from 'common/components/ImageUploader';
|
|
|
|
import useToastWatcher from 'features/system/hooks/useToastWatcher';
|
|
|
|
import FloatingParametersPanelButtons from 'features/ui/components/FloatingParametersPanelButtons';
|
|
import FloatingGalleryButton from 'features/ui/components/FloatingGalleryButton';
|
|
|
|
keepGUIAlive();
|
|
|
|
const App = () => {
|
|
useToastWatcher();
|
|
|
|
return (
|
|
<div className="App">
|
|
<ImageUploader>
|
|
<ProgressBar />
|
|
<div className="app-content">
|
|
<SiteHeader />
|
|
<InvokeTabs />
|
|
</div>
|
|
<div className="app-console">
|
|
<Console />
|
|
</div>
|
|
</ImageUploader>
|
|
<FloatingParametersPanelButtons />
|
|
<FloatingGalleryButton />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default App;
|