Remove nginx and serve Angular directly from Spring Boot (#2662)
* feat: remove nginx and serve Angular directly from Spring Boot * fix: handle null values in EnabledFields deserialization from persisted JSON * fix(migration): auto-repair failed Flyway migrations on startup * fix(migration): replace DB triggers with app-level orphan cleanup * fix: restore default port to 6060 for backwards compatibility * fix: align all port references to 6060 and add OPDS compression MIME types * fix: resolve NG0101 recursive tick error in book browser selection --------- Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
"index": "/index.html",
|
||||
"navigationUrls": [
|
||||
"/**",
|
||||
"!/api/**"
|
||||
"!/api/**",
|
||||
"!/komga/**"
|
||||
],
|
||||
"assetGroups": [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {AfterViewInit, ApplicationRef, ChangeDetectorRef, Component, HostListener, inject, NgZone, OnDestroy, OnInit, ViewChild} from '@angular/core';
|
||||
import {AfterViewInit, ChangeDetectorRef, Component, HostListener, inject, OnDestroy, OnInit, ViewChild} from '@angular/core';
|
||||
import {ActivatedRoute, NavigationStart, Router} from '@angular/router';
|
||||
import {ConfirmationService, MenuItem, MessageService} from 'primeng/api';
|
||||
import {PageTitleService} from '../../../../shared/service/page-title.service';
|
||||
@@ -105,8 +105,6 @@ export class BookBrowserComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
protected appSettingsService = inject(AppSettingsService);
|
||||
|
||||
private cdr = inject(ChangeDetectorRef);
|
||||
private ngZone = inject(NgZone);
|
||||
private appRef = inject(ApplicationRef);
|
||||
private activatedRoute = inject(ActivatedRoute);
|
||||
private router = inject(Router);
|
||||
private messageService = inject(MessageService);
|
||||
@@ -477,11 +475,8 @@ export class BookBrowserComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
this.bookSelectionService.selectedBooks$
|
||||
.pipe(takeUntil(this.destroy$))
|
||||
.subscribe(selectedBooks => {
|
||||
this.ngZone.run(() => {
|
||||
this.selectedCount = selectedBooks.size;
|
||||
this.cdr.detectChanges();
|
||||
this.appRef.tick();
|
||||
});
|
||||
this.selectedCount = selectedBooks.size;
|
||||
this.cdr.detectChanges();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const environment = {
|
||||
production: false,
|
||||
API_CONFIG: {
|
||||
BASE_URL: 'http://localhost:8080',
|
||||
BROKER_URL: 'ws://localhost:8080/ws',
|
||||
BASE_URL: 'http://localhost:6060',
|
||||
BROKER_URL: 'ws://localhost:6060/ws',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user