REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.37 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/frontend/components/routes/dashboard.tsx
Text
Base64
import React, { ReactNode, FunctionComponent } from 'react' import { connect } from 'react-redux' import DefaultDashboard from '../app/default-dashboard.js' import ErrorBoundary from '../app/error-boundary.js' import { ReduxState } from '../../store/store.js' import allowOverride from '../../hoc/allow-override.js' declare const AdminJS: { UserComponents: Record<string, FunctionComponent>; } type State = { isClient: boolean; } type PropsFromState = { dashboard: { component?: string; }; } class Dashboard extends React.Component<PropsFromState, State> { constructor(props: PropsFromState) { super(props) this.state = { isClient: false, } } componentDidMount(): void { this.setState({ isClient: true }) } render(): ReactNode { const { dashboard } = this.props const { isClient } = this.state let Component if (dashboard && dashboard.component && isClient && AdminJS.UserComponents[dashboard.component] ) { Component = AdminJS.UserComponents[dashboard.component] as FunctionComponent } else { Component = DefaultDashboard } return ( <ErrorBoundary> <Component /> </ErrorBoundary> ) } } const mapStateToProps = (state: ReduxState): PropsFromState => ({ dashboard: state.dashboard, }) export default allowOverride(connect(mapStateToProps)(Dashboard), 'DashboardRoute')
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
utils
DIR
-
drwxr-xr-x
2026-02-28 00:32:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
bulk-action.tsx
4.63 KB
lrw-r--r--
2026-02-28 00:32:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dashboard.tsx
1.37 KB
lrw-r--r--
2026-02-28 00:32:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.ts
363 B
lrw-r--r--
2026-02-28 00:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
page.tsx
1.60 KB
lrw-r--r--
2026-02-28 00:32:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
record-action.spec.tsx
2.12 KB
lrw-r--r--
2026-02-28 00:32:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
record-action.tsx
5.85 KB
lrw-r--r--
2026-02-28 00:32:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
resource-action.tsx
3.47 KB
lrw-r--r--
2026-02-28 00:32:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
resource.tsx
3.26 KB
lrw-r--r--
2026-02-28 00:32:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).