REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 860 B
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/backend/utils/populator/populator.ts
Text
Base64
import BaseRecord from '../../adapters/record/base-record.js' import { populateProperty } from './populate-property.js' import { ActionContext } from '../../actions/index.js' /** * @load ./populator.doc.md * @param {Array<BaseRecord>} records * @param context * @new In version 3.3 */ export async function populator( records: Array<BaseRecord>, context?:ActionContext, ): Promise<Array<BaseRecord>> { if (!records || !records.length) { return records } const resourceDecorator = records[0].resource.decorate() const allProperties = Object.values(resourceDecorator.getFlattenProperties()) const references = allProperties.filter((p) => !!p.reference()) await Promise.all(references.map(async (propertyDecorator) => { await populateProperty(records, propertyDecorator, context) })) return records } export default populator
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.ts
70 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
populate-property.spec.ts
4.60 KB
lrw-r--r--
2026-02-28 00:32:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
populate-property.ts
4.12 KB
lrw-r--r--
2026-02-28 00:32:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
populator.doc.md
1.14 KB
lrw-r--r--
2026-02-28 00:31:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
populator.spec.ts
319 B
lrw-r--r--
2026-02-28 00:32:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
populator.ts
860 B
lrw-r--r--
2026-02-28 00:32:40
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).