REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.08 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/frontend/store/reducers/noticesReducer.ts
Text
Base64
import { type NoticeMessage } from '../../interfaces/noticeMessage.interface.js' import { ADD_NOTICE, AddNoticeResponse } from '../actions/add-notice.js' import { DROP_NOTICE, DropNoticeResponse } from '../actions/drop-notice.js' import { SET_NOTICE_PROGRESS, SetNoticeProgressResponse } from '../actions/set-notice-progress.js' export interface NoticeMessageInState extends NoticeMessage { id: string progress: number } export type NoticesInState = Array<NoticeMessageInState> type NoticeActionResponse = AddNoticeResponse | DropNoticeResponse | SetNoticeProgressResponse export const noticesReducer = ( state: NoticesInState = [], action: NoticeActionResponse, ): NoticesInState => { switch (action.type) { case ADD_NOTICE: { return [...state, action.data] } case DROP_NOTICE: { return state.filter((notice) => notice.id !== action.data.noticeId) } case SET_NOTICE_PROGRESS: { return state.map((notice) => ({ ...notice, progress: notice.id === action.data.noticeId ? action.data.progress : notice.progress, })) } default: return state } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 16
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
assetsReducer.ts
348 B
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
brandingReducer.ts
374 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
dashboardReducer.ts
377 B
lrw-r--r--
2026-02-28 00:32:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
drawerReducer.ts
465 B
lrw-r--r--
2026-02-28 00:32:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
filterDrawerReducer.ts
568 B
lrw-r--r--
2026-02-28 00:32:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.ts
540 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
localesReducer.ts
463 B
lrw-r--r--
2026-02-28 00:32:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
modalReducer.ts
537 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
noticesReducer.ts
1.08 KB
lrw-r--r--
2026-02-28 00:32:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
pagesReducer.ts
412 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
pathsReducer.ts
495 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
resourcesReducer.ts
452 B
lrw-r--r--
2026-02-28 00:32:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
routerReducer.ts
622 B
lrw-r--r--
2026-02-28 00:32:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
sessionReducer.ts
431 B
lrw-r--r--
2026-02-28 00:32:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
themeReducer.ts
458 B
lrw-r--r--
2026-02-28 00:32:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
versionsReducer.ts
421 B
lrw-r--r--
2026-02-28 00:32:46
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).