-
-
-
+
`,
- styles: []
+ styles: [`
+ .main-container {
+ min-height: 100vh;
+ }
+ `]
})
export class NavbarLayoutComponent implements OnInit {
diff --git a/frontend/src/app/models/dtos/AutocompleteSuggestionDto.ts b/frontend/src/app/models/dtos/AutocompleteSuggestionDto.ts
new file mode 100644
index 0000000..f4386a2
--- /dev/null
+++ b/frontend/src/app/models/dtos/AutocompleteSuggestionDto.ts
@@ -0,0 +1,5 @@
+export class AutocompleteSuggestionDto {
+ slug!: string;
+ title!: string;
+ releaseDate!: number;
+}
diff --git a/frontend/src/app/services/library-management.service.ts b/frontend/src/app/services/library-management.service.ts
index d1dfb37..d36eb4c 100644
--- a/frontend/src/app/services/library-management.service.ts
+++ b/frontend/src/app/services/library-management.service.ts
@@ -6,6 +6,7 @@ import {PathToSlugDto} from "../models/dtos/PathToSlugDto";
import {UnmappedFileDto} from "../models/dtos/UnmappedFileDto";
import {LibraryManagementApi} from "../api/LibraryManagementApi";
import {GamesService} from "./games.service";
+import {AutocompleteSuggestionDto} from "../models/dtos/AutocompleteSuggestionDto";
@Injectable({
providedIn: 'root'
@@ -42,4 +43,11 @@ export class LibraryManagementService implements LibraryManagementApi {
return this.http.delete
(`${this.apiPath}/delete-unmapped-file/${id}`);
}
+ getAutocompleteSuggestions(searchTerm: string, limit: number): Observable {
+ let queryParams = new HttpParams();
+ queryParams = queryParams.append("searchTerm", searchTerm);
+ queryParams = queryParams.append("limit", limit);
+
+ return this.http.get(`${this.apiPath}/autocomplete-suggestions`, {params:queryParams})
+ }
}
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
index 1c3f1f4..03fbae1 100644
--- a/frontend/tsconfig.json
+++ b/frontend/tsconfig.json
@@ -29,6 +29,12 @@
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
- "strictTemplates": true
+ "strictTemplates": true,
+ "extendedDiagnostics": {
+ "checks": {
+ // Currently buggy, see https://github.com/angular/angular/issues/46918
+ "optionalChainNotNullable": "suppress"
+ }
+ }
}
}
diff --git a/pom.xml b/pom.xml
index 3d8f88e..66b415a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
de.grimsi
gameyfin
- 0.0.1-SNAPSHOT
+ 1.0.0
gameyfin
gameyfin