[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
src
/
admin
/
analytics
/
components
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 DataTable.js
1,235 B
SET
[ EDIT ]
|
[ DEL ]
📄 DatePicker.js
1,421 B
SET
[ EDIT ]
|
[ DEL ]
📄 OverviewPanel.js
1,014 B
SET
[ EDIT ]
|
[ DEL ]
📄 TopUsers.js
1,992 B
SET
[ EDIT ]
|
[ DEL ]
📄 TopVideos.js
2,633 B
SET
[ EDIT ]
|
[ DEL ]
📄 TotalVideoViewsByUser.js
790 B
SET
[ EDIT ]
|
[ DEL ]
📄 TotalViewsGraph.js
3,001 B
SET
[ EDIT ]
|
[ DEL ]
📄 TotalWatchGraph.js
2,949 B
SET
[ EDIT ]
|
[ DEL ]
📄 VideoAverageWatchTime.js
847 B
SET
[ EDIT ]
|
[ DEL ]
📄 VideoAverageWatchTimeByUser.js
861 B
SET
[ EDIT ]
|
[ DEL ]
📄 VideoTimeline.js
2,670 B
SET
[ EDIT ]
|
[ DEL ]
📄 VideoTotalWatchTimeByUser.js
857 B
SET
[ EDIT ]
|
[ DEL ]
📄 VideoViews.js
818 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: DataTable.js
const { __ } = wp.i18n; const { useEffect, useState } = wp.element; const { Card, CardBody } = wp.components; import Loading from "@/admin/settings/components/Loading"; import Pagination from "@/admin/ui/Pagination"; import Table from "@/admin/ui/Table"; export default ({ perPage = 10, title, page, setPage, loading, total, totalPages, columns, data, onSelect, }) => { if (loading) { return ( <Card> <Loading /> </Card> ); } if (!data?.length) { return ( <Card size="large" className="presto-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 ( <div className="datatable"> <Table data={data} columns={columns} perPage={perPage} onRowClick={onSelect} title={title} /> {!!total && ( <Pagination page={page} setPage={setPage} perPage={perPage} total={total} totalPages={totalPages} /> )} </div> ); };