PHP 8.2.30
Preview: bundle-entry.jsx Size: 2.41 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/frontend/bundle-entry.jsx

import { ThemeProvider } from '@adminjs/design-system/styled-components'
import React, { Suspense } from 'react'
import { I18nextProvider } from 'react-i18next'
import { Provider } from 'react-redux'
import { BrowserRouter } from 'react-router-dom'

import ViewHelpers from '../backend/utils/view-helpers/view-helpers.js'
import { flat } from '../utils/flat/index.js'
import * as AppComponents from './components/app/index.js'
import * as ActionComponents from './components/actions/index.js'
import App, { OriginalApp } from './components/application.js'
import { AppLoader } from './components/index.js'
import Login from './components/login/index.js'
import BasePropertyComponent, { CleanPropertyComponent } from './components/property-type/index.js'
import * as PropertyComponentUtils from './components/property-type/utils/index.js'
import * as ActionUtils from './interfaces/action/index.js'
import withNotice from './hoc/with-notice.js'
import * as Hooks from './hooks/index.js'
import createStore from './store/store.js'
import initTranslations from './utils/adminjs.i18n.js'
import ApiClient from './utils/api-client.js'

const env = {
  NODE_ENV: process.env.NODE_ENV || 'development',
}

const store = createStore(window.REDUX_STATE)
const theme = window.THEME
const { locale } = store.getState()
const { i18n } = initTranslations(locale)

const Application = (
  <Provider store={store}>
    <ThemeProvider theme={theme}>
      <I18nextProvider i18n={i18n}>
        <BrowserRouter>
          <Suspense fallback={<AppLoader />}>
            <App />
          </Suspense>
        </BrowserRouter>
      </I18nextProvider>
    </ThemeProvider>
  </Provider>
)

const loginAppProps = window.__APP_STATE__ ?? {}
const LoginApplication = (
  <Provider store={store}>
    <ThemeProvider theme={theme}>
      <I18nextProvider i18n={i18n}>
        <BrowserRouter>
          <Suspense fallback={<AppLoader />}>
            <Login {...loginAppProps} />
          </Suspense>
        </BrowserRouter>
      </I18nextProvider>
    </ThemeProvider>
  </Provider>
)

// eslint-disable-next-line no-undef
window.regeneratorRuntime = regeneratorRuntime

export default {
  withNotice,
  Application,
  OriginalApplication: OriginalApp,
  LoginApplication,
  ViewHelpers,
  UserComponents: {},
  ApiClient,
  BasePropertyComponent,
  CleanPropertyComponent,
  env,
  ...PropertyComponentUtils,
  ...AppComponents,
  ...ActionComponents,
  ...Hooks,
  ...ActionUtils,
  flat,
}

Directory Contents

Dirs: 7 × Files: 7

Name Size Perms Modified Actions
assets DIR
- drwxr-xr-x 2026-02-28 00:31:58
Edit Download
- drwxr-xr-x 2026-02-28 00:32:46
Edit Download
hoc DIR
- drwxr-xr-x 2026-02-28 00:32:50
Edit Download
hooks DIR
- drwxr-xr-x 2026-02-28 00:32:50
Edit Download
- drwxr-xr-x 2026-02-28 00:32:42
Edit Download
store DIR
- drwxr-xr-x 2026-02-28 00:32:44
Edit Download
utils DIR
- drwxr-xr-x 2026-02-28 00:32:38
Edit Download
2.41 KB lrw-r--r-- 2026-02-28 00:31:56
Edit Download
1.07 KB lrw-r--r-- 2026-02-28 00:31:40
Edit Download
206 B lrw-r--r-- 2026-02-28 00:32:28
Edit Download
2.04 KB lrw-r--r-- 2026-02-28 00:32:32
Edit Download
4.45 KB lrw-r--r-- 2026-02-28 00:32:48
Edit Download
442 B lrw-r--r-- 2026-02-28 00:32:34
Edit Download
4.84 KB lrw-r--r-- 2026-02-28 00:32:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).