403Webshell
Server IP : 172.67.75.225  /  Your IP : 216.73.216.185
Web Server : nginx/1.27.1
System : Linux us-1 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User : vinodai ( 3134)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v1396/chatgptkafila/public_html/wp-content/plugins/presto-player/src/admin/ui/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v1396/chatgptkafila/public_html/wp-content/plugins/presto-player/src/admin/ui/Table.js
const { __ } = wp.i18n;
const { useRef, useEffect, useState } = wp.element;
const { Card, CardBody, Flex, FlexBlock, Button, ButtonGroup } = wp.components;

import classNames from "classnames";

export default ({ columns, data, onRowClick, title }) => {
  if (!data.length) {
    return (
      <Card size="large" className="presto-card table-card">
        <CardBody className="presto-flow">
          <div className="presto-card__title">{title}</div>
          <div style={{ opacity: 0.65 }}>
            {__("No data available.", "presto-player")}
          </div>
        </CardBody>
      </Card>
    );
  }

  return (
    <Card size="large" className="presto-card table-card">
      <CardBody className="presto-flow">
        <div className="presto-card__title">{title}</div>
        <table
          role="table"
          className={classNames("presto-table", { "is-clickable": onRowClick })}
        >
          <thead role="rowgroup">
            <tr role="row">
              {columns &&
                columns.map((column) => {
                  return (
                    <th key={column.key} role="columnheader">
                      {column.label}
                    </th>
                  );
                })}
            </tr>
          </thead>

          <tbody role="rowgroup">
            {data.map((row, rowIndex) => {
              return (
                <tr
                  role="row"
                  key={`row-${rowIndex}`}
                  onClick={() => onRowClick && onRowClick(row)}
                >
                  {columns.map((column, columnIndex) => {
                    return (
                      <td
                        role="cell"
                        data-title={column.label}
                        key={`row-${rowIndex}-${columnIndex}`}
                        aria-label={column.label}
                      >
                        {column.render ? (
                          column.render(row)
                        ) : (
                          <div>{column.value(row)}</div>
                        )}
                      </td>
                    );
                  })}
                </tr>
              );
            })}
          </tbody>
        </table>
      </CardBody>
    </Card>
  );
};

Youez - 2016 - github.com/yon3zu
LinuXploit