REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.05 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/backend/actions/show/show-action.ts
Text
Base64
import { Action, RecordActionResponse } from '../action.interface.js' import NotFoundError from '../../utils/errors/not-found-error.js' /** * @implements Action * @category Actions * @module ShowAction * @description * Returns selected Record * Uses {@link ShowAction} component to render form * @private */ export const ShowAction: Action<RecordActionResponse> = { name: 'show', isVisible: true, actionType: 'record', icon: 'Monitor', showInDrawer: false, /** * Responsible for returning data for given record. * * To invoke this action use {@link ApiClient#recordAction} * @memberof module:ShowAction * * @return {Promise<RecordActionResponse>} populated record * @implements ActionHandler */ handler: async (request, response, data) => { if (!data.record) { throw new NotFoundError([ `Record of given id ("${request.params.recordId}") could not be found`, ].join('\n'), 'Action#handler') } return { record: data.record.toJSON(data.currentAdmin), } }, } export default ShowAction
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 1
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
show-action.ts
1.05 KB
lrw-r--r--
2026-02-28 00:32:44
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).