REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.04 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/frontend/interfaces/action/action-href.ts
Text
Base64
import { RecordActionParams, ViewHelpers } from '../../../backend/utils/view-helpers/index.js' import { DifferentActionParams } from '../../hooks/index.js' import { ActionJSON } from './action-json.interface.js' const h = new ViewHelpers() export const actionHref = ( action: ActionJSON, params: DifferentActionParams, ): string | null => { const actionName = action.name if (!action.component && !action.hasHandler) { return null } if (params.recordIds?.length) { params.recordIds = [...new Set(params.recordIds)] } const hrefMap = { record: (): string => h.recordActionUrl({ ...params as RecordActionParams, actionName, }), resource: (): string => h.resourceActionUrl({ resourceId: params.resourceId, actionName, search: params.search, }), bulk: (): string => h.bulkActionUrl({ ...params, actionName, }), } if (hrefMap[action.actionType]) { return hrefMap[action.actionType]() } throw new Error('"actionType" should be either record, resource or bulk') }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
action-has-component.ts
325 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
action-href.ts
1.04 KB
lrw-r--r--
2026-02-28 00:31:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
action-json.interface.ts
1.97 KB
lrw-r--r--
2026-02-28 00:31:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
build-action-api-call-trigger.ts
1.07 KB
lrw-r--r--
2026-02-28 00:32:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
build-action-click-handler.ts
2.96 KB
lrw-r--r--
2026-02-28 00:32:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
build-action-test-id.ts
146 B
lrw-r--r--
2026-02-28 00:32:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
call-action-api.ts
1.58 KB
lrw-r--r--
2026-02-28 00:32:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.ts
410 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
is-bulk-action.ts
391 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
is-record-action.ts
404 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
is-resource-action.ts
407 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
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).