!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/wincloud_gateway/node_modules/strapi-admin/admin/src/containers/App/   drwxr-xr-x
Free 13.21 GB of 57.97 GB (22.79%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     reducer.js (2.46 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// Shared constants
import { fromJS } from 'immutable';
import packageJSON from '../../../../package.json';

import {
  DISABLE_GLOBAL_OVERLAY_BLOCKER,
  ENABLE_GLOBAL_OVERLAY_BLOCKER,
  FREEZE_APP,
  GET_INFOS_DATA_SUCCEEDED,
  GET_DATA_SUCCEEDED,
  PLUGIN_DELETED,
  PLUGIN_LOADED,
  UNFREEZE_APP,
  UPDATE_PLUGIN,
} from './constants';

const packageVersion = packageJSON.version;
const initialState = fromJS({
  appInfos: {},
  autoReload: false,
  blockApp: false,
  currentEnvironment: 'development',
  hasAdminUser: false,
  hasUserPlugin: true,
  isLoading: true,
  overlayBlockerData: null,
  plugins: {},
  showGlobalAppBlocker: true,
  strapiVersion: packageVersion,
  uuid: false,
});

function appReducer(state = initialState, action) {
  switch (action.type) {
    case DISABLE_GLOBAL_OVERLAY_BLOCKER:
      return state.set('showGlobalAppBlocker', false);
    case ENABLE_GLOBAL_OVERLAY_BLOCKER:
      return state.set('showGlobalAppBlocker', true);
    case FREEZE_APP:
      return state.set('blockApp', true).update('overlayBlockerData', () => {
        if (action.data) {
          return action.data;
        }

        return null;
      });
    case GET_INFOS_DATA_SUCCEEDED: {
      if (action.data.strapiVersion !== state.get('strapiVersion')) {
        console.error(
          `It seems that the built version ${packageVersion} is different than your project's one (${action.data.strapiVersion})`
        );
        console.error('Please delete your `.cache` and `build` folders and restart your app');
      }

      return (
        state
          .update('appInfos', () => action.data)
          // Keep this for plugins legacy
          .update('autoReload', () => action.data.autoReload)
          .update('currentEnvironment', () => action.data.currentEnvironment)
      );
    }
    case GET_DATA_SUCCEEDED: {
      return state
        .update('isLoading', () => false)
        .update('hasAdminUser', () => action.data.hasAdmin)
        .update('uuid', () => action.data.uuid);
    }
    case PLUGIN_LOADED:
      return state.setIn(['plugins', action.plugin.id], fromJS(action.plugin));
    case UPDATE_PLUGIN:
      return state.setIn(
        ['plugins', action.pluginId, action.updatedKey],
        fromJS(action.updatedValue)
      );
    case PLUGIN_DELETED:
      return state.deleteIn(['plugins', action.plugin]);
    case UNFREEZE_APP:
      return state.set('blockApp', false).set('overlayBlockerData', null);

    default:
      return state;
  }
}

export default appReducer;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]--