import React from 'react';
import { Col, Row, Badge } from 'react-bootstrap';
import { Card, ReactTable, WaitIcon, Profile } from '../../../components/index';
import { server } from '../../../commons/server';
import moment from 'moment';
/**
* The page controller of the public module
*/
export default class OnlineUsers extends React.Component {
constructor(props) {
super(props);
this.state = { };
}
componentWillMount() {
this.refreshTable();
}
/**
* Called when the report wants to update its content
* @return {[type]} [description]
*/
refreshTable() {
const self = this;
return server.post('/api/admin/rep/onlineusers')
.then(res => {
// generate new result
const result = { count: res.length, list: res };
// set state
self.setState({ values: result });
// return to the promise
return result;
});
}
headerRender(count) {
const countHTML = {__('admin.websessions')} {countHTML}