!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/components/Webhooks/ListRow/   drwxr-xr-x
Free 13.12 GB of 57.97 GB (22.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     index.js (2.56 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/**
 *
 * ListRow
 *
 */

import React from 'react';
import PropTypes from 'prop-types';
import { Checkbox, IconLinks } from '@buffetjs/core';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faPencilAlt, faTrashAlt } from '@fortawesome/free-solid-svg-icons';

import Switch from '../Switch';
import StyledListRow from './StyledListRow';

function ListRow({
  canDelete,
  canUpdate,
  id,
  isEnabled,
  itemsToDelete,
  name,
  url,
  onCheckChange,
  onEnabledChange,
  onDeleteCLick,
  onEditClick,
}) {
  const links = [
    {
      icon: canUpdate ? <FontAwesomeIcon icon={faPencilAlt} /> : null,
      onClick: () => onEditClick(id),
    },
    {
      icon: canDelete ? <FontAwesomeIcon icon={faTrashAlt} /> : null,
      onClick: e => {
        e.stopPropagation();
        onDeleteCLick(id);
      },
    },
  ];

  const handleClick = () => {
    if (canUpdate) {
      onEditClick(id);
    }
  };

  const isChecked = itemsToDelete.includes(id);

  return (
    <StyledListRow onClick={handleClick} disabled={!canUpdate}>
      {canDelete && (
        <td className="checkboxWrapper">
          <Checkbox
            name={name}
            value={isChecked}
            onClick={e => e.stopPropagation()}
            onChange={({ target: { value } }) => onCheckChange(value, id)}
          />
        </td>
      )}
      <td className="nameWrapper">
        <p>{name}</p>
      </td>
      <td className="urlWrapper">
        <p title={url}>{url}</p>
      </td>
      <td className="switchWrapper">
        <div onClick={e => e.stopPropagation()} role="button" aria-hidden="true">
          <Switch
            disabled={!canUpdate}
            name={name}
            value={isEnabled}
            onChange={({ target: { value } }) => onEnabledChange(value, id)}
          />
        </div>
      </td>
      <td>
        <IconLinks links={links} />
      </td>
    </StyledListRow>
  );
}

ListRow.defaultProps = {
  canDelete: false,
  canUpdate: false,
  itemsToDelete: [],
  isEnabled: false,
  name: null,
  onCheckChange: () => {},
  onDeleteCLick: () => {},
  onEditClick: () => {},
  onEnabledChange: () => {},
  url: null,
};

ListRow.propTypes = {
  canDelete: PropTypes.bool,
  canUpdate: PropTypes.bool,
  id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
  itemsToDelete: PropTypes.instanceOf(Array),
  isEnabled: PropTypes.bool,
  name: PropTypes.string,
  onCheckChange: PropTypes.func,
  onDeleteCLick: PropTypes.func,
  onEditClick: PropTypes.func,
  onEnabledChange: PropTypes.func,
  url: PropTypes.string,
};

export default ListRow;

:: 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.0042 ]--