| | |
| | | import React from 'react' |
| | | import {Table} from 'reactstrap'; |
| | | import {PageHeader} from '../../general/BootstrapComponents'; |
| | | import {getRestServiceUrl} from '../../../utilities/global'; |
| | | import {getRestServiceUrl, humanFileSize} from '../../../utilities/global'; |
| | | import ErrorAlert from '../../general/ErrorAlert'; |
| | | import {IconRefresh} from "../../general/IconComponents"; |
| | | |
| | |
| | | > |
| | | <IconRefresh/> |
| | | </div> |
| | | <Table hover> |
| | | <tbody> |
| | | <tr> |
| | | <td>Name</td> |
| | | <td>{repo.name}</td> |
| | | </tr> |
| | | <tr> |
| | | <td>Id</td> |
| | | <td>{repo.id}</td> |
| | | </tr> |
| | | <tr> |
| | | <td>Location</td> |
| | | <td>{repo.location}</td> |
| | | </tr> |
| | | <tr> |
| | | <td>Security dir</td> |
| | | <td>{repo.securityDir}</td> |
| | | </tr> |
| | | <tr> |
| | | <td>Encryption</td> |
| | | <td>{repo.encryption.mode}</td> |
| | | </tr> |
| | | <tr> |
| | | <td>Cache</td> |
| | | <td>{repo.cache.path}</td> |
| | | </tr> |
| | | <tr> |
| | | <td>Cache stats</td> |
| | | <td> |
| | | <table className="inline"> |
| | | <tbody> |
| | | <tr> |
| | | <td>Total chunks</td> |
| | | <td>{Number(repo.cache.stats.total_chunks).toLocaleString()}</td> |
| | | </tr> |
| | | <tr> |
| | | <td>Total csize</td> |
| | | <td>{humanFileSize(repo.cache.stats.total_csize)}</td> |
| | | </tr> |
| | | <tr> |
| | | <td>Total size</td> |
| | | <td>{humanFileSize(repo.cache.stats.total_size)}</td> |
| | | </tr> |
| | | <tr> |
| | | <td>Total unique chunks</td> |
| | | <td>{Number(repo.cache.stats.total_unique_chunks).toLocaleString()}</td> |
| | | </tr> |
| | | <tr> |
| | | <td>Unique csize</td> |
| | | <td>{humanFileSize(repo.cache.stats.unique_csize)}</td> |
| | | </tr> |
| | | <tr> |
| | | <td>Unique size</td> |
| | | <td>{humanFileSize(repo.cache.stats.unique_size)}</td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </Table> |
| | | </React.Fragment>; |
| | | |
| | | } |