REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.06 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/lib/frontend/components/spec/record-json.factory.js
Text
Base64
import { factory } from 'factory-girl'; import './action-json.factory.js'; factory.define('RecordJSON', Object, { params: { param1: 'value1', 'nested.param': 'value2' }, populated: {}, baseError: null, errors: {}, id: factory.sequence('JSONRecord.id', n => `someId${n}`), title: factory.sequence('JSONRecord.id', n => `someTitle${n}`), recordActions: [], bulkActions: [] }); factory.extend('RecordJSON', 'RecordJSON.total', { // params set for properties from ResourceJSON.total factory's properties params: { name: 'John', surname: 'Doe', gender: 'MALE' } }, { afterBuild: async model => { const showAction = await factory.build('ActionJSON', { name: 'show', actionType: 'record' }); const editAction = await factory.build('ActionJSON', { name: 'edit', actionType: 'record' }); const deleteAction = await factory.build('ActionJSON', { name: 'delete', actionType: 'record' }); return { ...model, recordActions: [showAction, editAction, deleteAction] }; } });
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
action-json.factory.js
470 B
lrw-r--r--
2026-02-28 00:28:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
factory.js
302 B
lrw-r--r--
2026-02-28 00:31:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
initialize-translations.js
127 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
page-json.factory.js
214 B
lrw-r--r--
2026-02-28 00:31:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
property-json.factory.js
793 B
lrw-r--r--
2026-02-28 00:31:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
record-json.factory.js
1.06 KB
lrw-r--r--
2026-02-28 00:31:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
resource-json.factory.js
1.51 KB
lrw-r--r--
2026-02-28 00:31:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
test-context-provider.js
946 B
lrw-r--r--
2026-02-28 00:31:50
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).