* WIP * Chunk names * Add auth call * add auth * WIP * Auth management setup * fix a test * fix cypress machine count * some more changes * fix header link * check for auth * fix import * fix imports * Use auth class * WIP * Better loading * Remove unused * Remove qs * Auth loader * Redirect for login * Third part auth * 404 redirects * 404 page handling * Adding custom docker image for performance fixes * Correcting the workflow to get package step to run * Clean up * lazy auth load * remove assertions from delete app and logout calls * remove github workflow changes * roll back lazy auth * Error handling * test editor chunk suspense * Show header in editor before initialization * Changes for app view * Login header fixes * Loader fixes * Fix base login routes Co-authored-by: Arpit Mohan <arpit@appsmith.com>
26 lines
563 B
TypeScript
26 lines
563 B
TypeScript
import React from "react";
|
|
import PageLoadingBar from "pages/common/PageLoadingBar";
|
|
|
|
class AppViewerLoader extends React.PureComponent<any, { Page: any }> {
|
|
constructor(props: any) {
|
|
super(props);
|
|
|
|
this.state = {
|
|
Page: null,
|
|
};
|
|
}
|
|
|
|
componentDidMount() {
|
|
import(/* webpackChunkName: "AppViewer" */ "./index").then(module => {
|
|
this.setState({ Page: module.default });
|
|
});
|
|
}
|
|
|
|
render() {
|
|
const { Page } = this.state;
|
|
return Page ? <Page {...this.props} /> : <PageLoadingBar />;
|
|
}
|
|
}
|
|
|
|
export default AppViewerLoader;
|