add networks + random changes

This commit is contained in:
X4Lo committed 2025-02-15 23:40:34 +01:00
1 parent bb36b2bd44
commit 5dc5a023b8
26 files changed
+1399 -1975

No files matched your search

@@ -9,7 +9,7 @@ import { Media } from '../../shared/models/media.model';
})
export class CustomMediaService {
private backend_apiUrl = environment.API_URL;
private apiAction = 'custom-media';
private apiAction = 'media';
constructor(private http: HttpClient) {}
@@ -20,10 +20,4 @@ export class EntryRatingsService {
}
);
}
getEntrySeenById(id: string) {
return this.http.get<EntryRating[]>(
`${this.backend_apiUrl}/${this.apiAction}/${id}`
);
}
}
@@ -64,6 +64,24 @@ export class EntryService {
);
}
updateEntryRatings(entryId: number, entryRatings: EntryRating) {
return this.http.put<EntryRating>(
`${this.backend_apiUrl}/${this.apiAction}/${entryId}/ratings`,
{
entryRatings: entryRatings,
}
);
}
updateEntryIds(entryId: number, entryIds: EntryId) {
return this.http.put<EntryId>(
`${this.backend_apiUrl}/${this.apiAction}/${entryId}/ids`,
{
entryIds: entryIds,
}
);
}
// update entry
refrechEntryById(entryId: number) {
return this.http.put<Entry>(
@@ -20,7 +20,7 @@ export class MaintenanceService {
getMissingFiles() {
return this.http.get<MaintenanceResult>(
`${this.backend_apiUrl}/${this.apiAction}/missing-files`
`${this.backend_apiUrl}/${this.apiAction}/orphan-media-records`
);
}
@@ -32,7 +32,7 @@ export class MaintenanceService {
deleteMissingFiles() {
return this.http.delete<MaintenanceResult>(
`${this.backend_apiUrl}/${this.apiAction}/missing-files`
`${this.backend_apiUrl}/${this.apiAction}/orphan-media-records`
);
}
}
@@ -6,12 +6,18 @@ import { Subject } from 'rxjs';
})
export class ScrollService {
private scrollEndSubject = new Subject<void>();
private scrollChangeSubject = new Subject<object>();
// Observable for subcomponents to subscribe
scrollEnd$ = this.scrollEndSubject.asObservable();
scrollChange$ = this.scrollChangeSubject.asObservable();
// Emit scroll end event
notifyScrollEnd(): void {
this.scrollEndSubject.next();
}
notifyScrollChange(data: object): void {
this.scrollChangeSubject.next(data);
}
}