
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-offline-table
Advanced tools
An offline react table with the ability to sort and filter
https://firzok.github.io/react-offline-table/
npm install --save react-offline-table
import React, { Component } from 'react'
import { headerFields, employeeData, EmployeeStatus, pages, colors } from './static_lists';
import OfflineTable from 'react-offline-table';
import moment from 'moment';
import { faEye, faEdit } from '@fortawesome/free-regular-svg-icons';
export default class App extends Component {
viewEmployee(selectedEmployeeID) {
console.log("View Employee")
console.log(selectedEmployeeID)
}
editEmployee(selectedEmployeeID) {
console.log("Edit Employee")
console.log(selectedEmployeeID)
}
changeStatus(newStatus, employee) {
console.log("Status changed")
}
render() {
var _data = []
for (var i = 0; i < employeeData.length; i++) {
var row = [];
// Column 1
// const actions = [
// { icon: "fas fa-eye text-success-600 cursor-pointer mr-2", callBack: this.viewEmployee.bind(this, employeeData[i].emp_id) },
// { icon: "fas fa-edit text-info-600 cursor-pointer", callBack: this.editEmployee.bind(this, employeeData[i].emp_id) }
// ]
const actions = [
{ icon: faEye, className: "text-success-600 cursor-pointer mr-2", callBack: this.viewEmployee.bind(this, employeeData[i].emp_id) },
{ icon: faEdit, className: "text-success-600 cursor-pointer mr-2", callBack: this.editEmployee.bind(this, employeeData[i].emp_id) }
]
row.push(actions)
// Column 2
row.push({ text: "Change Status", selected: employeeData[i].status, options: EmployeeStatus, onClick: this.changeStatus, onClickArg: employeeData[i] })
// Column 3
row.push(employeeData[i].emp_id ? employeeData[i].emp_id : "N/A");
// Column 4
const avatar = { topText: employeeData[i].name, bottomText: employeeData[i].played_by, picture: employeeData[i].profile_picture };
row.push(avatar)
// Column 5
row.push((employeeData[i].dob === "" || employeeData[i].dob === null) ? 'N/A' : moment(employeeData[i].dob).format("YYYY-MM-DD"));
// Column 6
if (employeeData[i].status === "Support") {
row.push({ class: "badge badge-info text-capitalize", data: "Support" });
}
else if (employeeData[i].status === "Main") {
row.push({ class: "badge badge-success text-capitalize", data: "Main" });
}
else if (employeeData[i].status === "Villain") {
row.push({ class: "badge badge-danger text-capitalize", data: "Villain" });
}
_data.push(row);
}
return (
<div>
<OfflineTable
headerFields={ headerFields }
headerText={ "Offline React Table" }
data={ _data }
showSno={ false }
enableFilter={ true }
pages={ pages }
colors={ colors }
/>
</div>
)
}
}
MIT © firzok
FAQs
An offline react table with the ability to sort and filter
We found that react-offline-table demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.