REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.65 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/frontend/components/spec/resource-json.factory.ts
Text
Base64
import { factory } from 'factory-girl' import './property-json.factory.js' import { PropertyJSON, ResourceJSON } from '../../interfaces/index.js' const propertyJson = await factory.build('PropertyJSON') as PropertyJSON factory.define<ResourceJSON>('ResourceJSON', Object, { id: factory.sequence('ResourceJSON.id', (i) => `resource${i}`), name: factory.sequence('ResourceJSON.name', (i) => `resource ${i}`), href: '/admin/resourceName', titleProperty: () => propertyJson, navigation: { name: 'someName', icon: 'someIcon', show: true, }, actions: [], resourceActions: [], listProperties: [], properties: {}, showProperties: [], filterProperties: [], editProperties: [], }) factory.extend('ResourceJSON', 'ResourceJSON.full', {}, { afterBuild: async (model) => { const properties = [ await factory.build<PropertyJSON>('PropertyJSON', { name: 'name', isTitle: true }), await factory.build<PropertyJSON>('PropertyJSON', { name: 'surname' }), await factory.build<PropertyJSON>('PropertyJSON', { name: 'content', type: 'string' }), await factory.build<PropertyJSON>('PropertyJSON', { name: 'longerData', type: 'textarea' }), // await factory.build<PropertyJSON>('PropertyJSON', { name: 'publishedAt', type: 'date' }), await factory.build<PropertyJSON>('PropertyJSON', { name: 'gender', availableValues: [{ label: 'male', value: 'MALE', }, { label: 'female', value: 'FEMALE', }] }), ] return { ...model, listProperties: properties, showProperties: properties, editProperties: properties, filterProperties: properties, } }, })
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.ts
543 B
lrw-r--r--
2026-02-28 00:31:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
factory.ts
298 B
lrw-r--r--
2026-02-28 00:32:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
initialize-translations.ts
127 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-json.factory.ts
283 B
lrw-r--r--
2026-02-28 00:32:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
property-json.factory.ts
876 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
record-json.factory.ts
1.17 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
resource-json.factory.ts
1.65 KB
lrw-r--r--
2026-02-28 00:32:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
test-context-provider.tsx
996 B
lrw-r--r--
2026-02-28 00:32: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).