mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 13:49:57 -05:00
Display tags statistics.
This commit is contained in:
parent
f865d9fb0f
commit
b06682bc46
3 changed files with 40 additions and 1 deletions
|
|
@ -2,7 +2,16 @@ import React, {useContext} from 'react';
|
|||
import {Divider, Input, SegmentGroup, StatisticLabel, StatisticValue, TableCell, TableRow} from "semantic-ui-react";
|
||||
import {Link, Route, Routes} from "react-router-dom";
|
||||
import {decryptOTP, encryptOTP} from "../api";
|
||||
import {APIButton, ErrorMessage, humanFileSize, mimetypeColor, PageContainer, toLocaleString, useTitle} from "./Common";
|
||||
import {
|
||||
APIButton,
|
||||
ErrorMessage,
|
||||
humanFileSize,
|
||||
humanNumber,
|
||||
mimetypeColor,
|
||||
PageContainer,
|
||||
toLocaleString,
|
||||
useTitle
|
||||
} from "./Common";
|
||||
import {ThemeContext} from "../contexts/contexts";
|
||||
import {Button, Header, Loader, Segment, Statistic, StatisticGroup, Table, TextArea} from "./Theme";
|
||||
import {useStatistics, useVINDecoder} from "../hooks/customHooks";
|
||||
|
|
@ -224,6 +233,9 @@ function StatisticsPage() {
|
|||
video_count,
|
||||
zip_count,
|
||||
total_size,
|
||||
tagged_files,
|
||||
tagged_zims,
|
||||
tags_count,
|
||||
} = file_statistics;
|
||||
const {db_size} = global_statistics;
|
||||
return <>
|
||||
|
|
@ -280,6 +292,24 @@ function StatisticsPage() {
|
|||
</StatisticGroup>
|
||||
</Segment>
|
||||
|
||||
<Header as='h2'>Tags</Header>
|
||||
<Segment>
|
||||
<StatisticGroup>
|
||||
<Statistic>
|
||||
<StatisticValue>{humanNumber(tags_count)}</StatisticValue>
|
||||
<StatisticLabel>Tags</StatisticLabel>
|
||||
</Statistic>
|
||||
<Statistic>
|
||||
<StatisticValue>{humanNumber(tagged_files)}</StatisticValue>
|
||||
<StatisticLabel>Tagged Files</StatisticLabel>
|
||||
</Statistic>
|
||||
<Statistic>
|
||||
<StatisticValue>{humanNumber(tagged_zims)}</StatisticValue>
|
||||
<StatisticLabel>Tagged Zims</StatisticLabel>
|
||||
</Statistic>
|
||||
</StatisticGroup>
|
||||
</Segment>
|
||||
|
||||
<Header as='h2'>Database</Header>
|
||||
<Segment>
|
||||
<StatisticGroup>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue