Kavita/UI/Web/src/app/statistics/statistics.module.ts
Joe Milazzo 1c1e48d28c
Reading History (#1699)
* Added new stat graph for pages read over time for all users.

* Switched to reading events rather than pages read to get a better scale

* Changed query to use Created date as LastModified wont work since I just did a migration on all rows.

* Small cleanup on graph

* Read by day completed and ready for user stats page.

* Changed the initial stat report to be in 1 day, to avoid people trying and ditching the software from muddying up the stats.

* Cleaned up stats page such that stats around series show their image and tweaked some layout and wordings

* Fixed recently read order

* Put read history on user profile

* Final cleanup, Robbie needs to do a CSS pass before release.
2022-12-15 15:28:01 -08:00

50 lines
1.9 KiB
TypeScript

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { UserStatsComponent } from './_components/user-stats/user-stats.component';
import { TableModule } from '../_single-module/table/table.module';
import { UserStatsInfoCardsComponent } from './_components/user-stats-info-cards/user-stats-info-cards.component';
import { SharedModule } from '../shared/shared.module';
import { ServerStatsComponent } from './_components/server-stats/server-stats.component';
import { NgxChartsModule } from '@swimlane/ngx-charts';
import { StatListComponent } from './_components/stat-list/stat-list.component';
import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
import { PublicationStatusStatsComponent } from './_components/publication-status-stats/publication-status-stats.component';
import { ReactiveFormsModule } from '@angular/forms';
import { MangaFormatStatsComponent } from './_components/manga-format-stats/manga-format-stats.component';
import { FileBreakdownStatsComponent } from './_components/file-breakdown-stats/file-breakdown-stats.component';
import { PipeModule } from '../pipe/pipe.module';
import { TopReadersComponent } from './_components/top-readers/top-readers.component';
import { ReadByDayAndComponent } from './_components/read-by-day-and/read-by-day-and.component';
@NgModule({
declarations: [
UserStatsComponent,
UserStatsInfoCardsComponent,
ServerStatsComponent,
StatListComponent,
PublicationStatusStatsComponent,
MangaFormatStatsComponent,
FileBreakdownStatsComponent,
TopReadersComponent,
ReadByDayAndComponent
],
imports: [
CommonModule,
TableModule,
SharedModule,
NgbTooltipModule,
ReactiveFormsModule,
PipeModule,
// Server only
NgxChartsModule
],
exports: [
UserStatsComponent,
ServerStatsComponent
]
})
export class StatisticsModule { }