feat: current page indicator
This commit is contained in:
@@ -35,5 +35,8 @@
|
||||
→
|
||||
</button>
|
||||
</div>
|
||||
<div class="hidden md:block md:fixed right-10 top-[50%]">
|
||||
{{ currentPageIndex + 1 }} / {{ pages.length }}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
import { HttpClient } from "@angular/common/http";
|
||||
import { Injectable } from "@angular/core";
|
||||
import { BehaviorSubject, Observable, map } from "rxjs";
|
||||
import { Observable, map } from "rxjs";
|
||||
import { Parser } from "./parsers/parser";
|
||||
import { MangalibParserService } from "./parsers/rulib/mangalib.parser.service";
|
||||
import { IRulibChapterResult } from "./parsers/rulib/rulib.chapter.dto";
|
||||
import { IRulibChaptersResult } from "./parsers/rulib/rulib.chapters.dto";
|
||||
import { IRulibDetailResult } from "./parsers/rulib/rulib.detail.dto";
|
||||
import { Datum, IRulibSearchResult } from "./parsers/rulib/rulib.search.dto";
|
||||
import { IRulibSearchResult } from "./parsers/rulib/rulib.search.dto";
|
||||
|
||||
@Injectable({ providedIn: "root" })
|
||||
export class SearchService {
|
||||
private itemsTerm = new BehaviorSubject<Datum[]>([]);
|
||||
currentItemsTerm = this.itemsTerm.asObservable();
|
||||
private parser!: Parser;
|
||||
constructor(
|
||||
private http: HttpClient,
|
||||
|
||||
Reference in New Issue
Block a user