8
8
OnInit ,
9
9
ViewChild
10
10
} from '@angular/core' ;
11
- import { AsyncPipe , DecimalPipe , DOCUMENT , NgStyle , NgClass , DatePipe , Location } from "@angular/common" ;
11
+ import { AsyncPipe , DOCUMENT , NgStyle , NgClass , Location } from "@angular/common" ;
12
12
import { ActivatedRoute , Router , RouterLink } from "@angular/router" ;
13
13
import { ImageService } from "../_services/image.service" ;
14
14
import { SeriesService } from "../_services/series.service" ;
@@ -30,7 +30,6 @@ import {
30
30
NgbNavItem ,
31
31
NgbNavLink ,
32
32
NgbNavOutlet ,
33
- NgbProgressbar ,
34
33
NgbTooltip
35
34
} from "@ng-bootstrap/ng-bootstrap" ;
36
35
import { FilterUtilitiesService } from "../shared/_services/filter-utilities.service" ;
@@ -49,28 +48,20 @@ import {LoadingComponent} from "../shared/loading/loading.component";
49
48
import { DetailsTabComponent } from "../_single-module/details-tab/details-tab.component" ;
50
49
import { ReadMoreComponent } from "../shared/read-more/read-more.component" ;
51
50
import { Person } from "../_models/metadata/person" ;
52
- import { hasAnyCast , IHasCast } from "../_models/common/i-has-cast" ;
53
- import { ReadTimePipe } from "../_pipes/read-time.pipe" ;
54
- import { AgeRatingPipe } from "../_pipes/age-rating.pipe" ;
51
+ import { IHasCast } from "../_models/common/i-has-cast" ;
55
52
import { EntityTitleComponent } from "../cards/entity-title/entity-title.component" ;
56
- import { ImageComponent } from "../shared/image/image.component" ;
57
- import { CardItemComponent } from "../cards/card-item/card-item.component" ;
58
53
import { VirtualScrollerModule } from "@iharbeck/ngx-virtual-scroller" ;
59
54
import { Action , ActionFactoryService , ActionItem } from "../_services/action-factory.service" ;
60
55
import { Breakpoint , UtilityService } from "../shared/_services/utility.service" ;
61
56
import { ChapterCardComponent } from "../cards/chapter-card/chapter-card.component" ;
62
- import { DefaultValuePipe } from "../_pipes/default-value.pipe" ;
63
57
import {
64
- EditVolumeModalCloseResult ,
65
58
EditVolumeModalComponent
66
59
} from "../_single-module/edit-volume-modal/edit-volume-modal.component" ;
67
60
import { Genre } from "../_models/metadata/genre" ;
68
61
import { Tag } from "../_models/tag" ;
69
62
import { RelatedTabComponent } from "../_single-modules/related-tab/related-tab.component" ;
70
63
import { ReadingList } from "../_models/reading-list" ;
71
64
import { ReadingListService } from "../_services/reading-list.service" ;
72
- import { AgeRatingImageComponent } from "../_single-modules/age-rating-image/age-rating-image.component" ;
73
- import { CompactNumberPipe } from "../_pipes/compact-number.pipe" ;
74
65
import { BadgeExpanderComponent } from "../shared/badge-expander/badge-expander.component" ;
75
66
import {
76
67
MetadataDetailRowComponent
@@ -85,8 +76,6 @@ import {CardActionablesComponent} from "../_single-module/card-actionables/card-
85
76
import { Device } from "../_models/device/device" ;
86
77
import { EditChapterModalComponent } from "../_single-module/edit-chapter-modal/edit-chapter-modal.component" ;
87
78
import { BulkOperationsComponent } from "../cards/bulk-operations/bulk-operations.component" ;
88
- import { DefaultDatePipe } from "../_pipes/default-date.pipe" ;
89
- import { MangaFormatPipe } from "../_pipes/manga-format.pipe" ;
90
79
import { CoverImageComponent } from "../_single-module/cover-image/cover-image.component" ;
91
80
import { DefaultModalOptions } from "../_models/default-modal-options" ;
92
81
@@ -145,32 +134,20 @@ interface VolumeCast extends IHasCast {
145
134
NgbDropdownMenu ,
146
135
NgbDropdown ,
147
136
NgbDropdownToggle ,
148
- ReadTimePipe ,
149
- AgeRatingPipe ,
150
137
EntityTitleComponent ,
151
138
RouterLink ,
152
- NgbProgressbar ,
153
- DecimalPipe ,
154
139
NgbTooltip ,
155
- ImageComponent ,
156
140
NgStyle ,
157
141
NgClass ,
158
142
TranslocoDirective ,
159
- CardItemComponent ,
160
143
VirtualScrollerModule ,
161
144
ChapterCardComponent ,
162
- DefaultValuePipe ,
163
145
RelatedTabComponent ,
164
- AgeRatingImageComponent ,
165
- CompactNumberPipe ,
166
146
BadgeExpanderComponent ,
167
147
MetadataDetailRowComponent ,
168
148
DownloadButtonComponent ,
169
149
CardActionablesComponent ,
170
150
BulkOperationsComponent ,
171
- DatePipe ,
172
- DefaultDatePipe ,
173
- MangaFormatPipe ,
174
151
CoverImageComponent
175
152
] ,
176
153
templateUrl : './volume-detail.component.html' ,
@@ -226,7 +203,7 @@ export class VolumeDetailComponent implements OnInit {
226
203
volumeActions : Array < ActionItem < Volume > > = this . actionFactoryService . getVolumeActions ( this . handleVolumeAction . bind ( this ) ) ;
227
204
chapterActions : Array < ActionItem < Chapter > > = this . actionFactoryService . getChapterActions ( this . handleChapterActionCallback . bind ( this ) ) ;
228
205
229
- bulkActionCallback = async ( action : ActionItem < Chapter > , data : any ) => {
206
+ bulkActionCallback = async ( action : ActionItem < Chapter > , _ : any ) => {
230
207
if ( this . volume === null ) {
231
208
return ;
232
209
}
@@ -621,14 +598,14 @@ export class VolumeDetailComponent implements OnInit {
621
598
} ) ;
622
599
break ;
623
600
case Action . MarkAsRead :
624
- this . actionService . markVolumeAsRead ( this . seriesId , this . volume ! , res => {
601
+ this . actionService . markVolumeAsRead ( this . seriesId , this . volume ! , _ => {
625
602
this . volume ! . pagesRead = this . volume ! . pages ;
626
603
this . setContinuePoint ( ) ;
627
604
this . cdRef . markForCheck ( ) ;
628
605
} ) ;
629
606
break ;
630
607
case Action . MarkAsUnread :
631
- this . actionService . markVolumeAsUnread ( this . seriesId , this . volume ! , res => {
608
+ this . actionService . markVolumeAsUnread ( this . seriesId , this . volume ! , _ => {
632
609
this . volume ! . pagesRead = 0 ;
633
610
this . setContinuePoint ( ) ;
634
611
this . cdRef . markForCheck ( ) ;
0 commit comments