PHP 8.2.30
Preview: noticesReducer.js Size: 709 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/lib/frontend/store/reducers/noticesReducer.js

import { ADD_NOTICE } from '../actions/add-notice.js';
import { DROP_NOTICE } from '../actions/drop-notice.js';
import { SET_NOTICE_PROGRESS } from '../actions/set-notice-progress.js';
export const noticesReducer = (state = [], action) => {
  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;
  }
};

Directory Contents

Dirs: 0 × Files: 16

Name Size Perms Modified Actions
242 B lrw-r--r-- 2026-02-28 00:31:14
Edit Download
250 B lrw-r--r-- 2026-02-28 00:31:22
Edit Download
254 B lrw-r--r-- 2026-02-28 00:31:26
Edit Download
352 B lrw-r--r-- 2026-02-28 00:31:28
Edit Download
548 B lrw-r--r-- 2026-02-28 00:31:32
Edit Download
554 B lrw-r--r-- 2026-02-28 00:31:44
Edit Download
318 B lrw-r--r-- 2026-02-28 00:31:46
Edit Download
394 B lrw-r--r-- 2026-02-28 00:31:46
Edit Download
709 B lrw-r--r-- 2026-02-28 00:31:48
Edit Download
238 B lrw-r--r-- 2026-02-28 00:31:48
Edit Download
304 B lrw-r--r-- 2026-02-28 00:31:48
Edit Download
254 B lrw-r--r-- 2026-02-28 00:31:48
Edit Download
480 B lrw-r--r-- 2026-02-28 00:31:48
Edit Download
247 B lrw-r--r-- 2026-02-28 00:31:48
Edit Download
240 B lrw-r--r-- 2026-02-28 00:31:50
Edit Download
311 B lrw-r--r-- 2026-02-28 00:31:52
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).