feat: demo manga search
This commit is contained in:
@@ -2,6 +2,9 @@ import { Component } from "@angular/core";
|
||||
import { RouterModule } from "@angular/router";
|
||||
import { AppService } from "./app.service";
|
||||
import { HeaderComponent } from "./components/header/header.component";
|
||||
import { LibSocialParserService } from "./services/parsers/rulib/lib.social.parser.service";
|
||||
import { Datum } from "./services/parsers/rulib/rulib.dto";
|
||||
import { SearchService } from "./services/search.service";
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
@@ -13,7 +16,12 @@ import { HeaderComponent } from "./components/header/header.component";
|
||||
})
|
||||
export class AppComponent {
|
||||
title = "NwaifuAnime";
|
||||
constructor(private sw: AppService) {}
|
||||
items: Datum[] = [];
|
||||
constructor(
|
||||
private sw: AppService,
|
||||
private parser: LibSocialParserService,
|
||||
private searchService: SearchService,
|
||||
) {}
|
||||
|
||||
get hasUpdate() {
|
||||
return this.sw.isUpdateAvailable;
|
||||
@@ -28,6 +36,6 @@ export class AppComponent {
|
||||
}
|
||||
|
||||
onSearch(text: string) {
|
||||
console.log(text);
|
||||
this.searchService.search(text);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user