REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.35 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/lib/frontend/hoc/allow-override.js
Text
Base64
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } /* eslint-disable react/function-component-definition */ import React from 'react'; /** * @private * * @classdesc * Overrides one of the AdminJS core components when user passes it's name to ComponentLoader * * If case of being overridden, component receives additional prop: `OriginalComponent` * * @example * new ComponentLoader().override('SidebarFooter', MySidebarFooter) */ function allowOverride(OriginalComponent, name) { const WrapperComponent = props => { let Component = OriginalComponent; /** * @new in version 6.3 * * This adds support for future theme-specific components via their "theme.bundle.js" * */ if (typeof window !== 'undefined') { Component = window.AdminJS?.UserComponents?.[name] ?? window.THEME_COMPONENTS?.[name] ?? OriginalComponent; } return /*#__PURE__*/React.createElement(Component, _extends({}, props, { OriginalComponent: OriginalComponent })); }; return WrapperComponent; } export { allowOverride as default, allowOverride };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
allow-override.js
1.35 KB
lrw-r--r--
2026-02-28 00:29:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
104 B
lrw-r--r--
2026-02-28 00:31:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
with-no-ssr.js
944 B
lrw-r--r--
2026-02-28 00:31:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
with-notice.js
1.06 KB
lrw-r--r--
2026-02-28 00:31:52
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).