0">
diff --git a/UI/Web/src/app/cards/edit-series-relation/edit-series-relation.component.ts b/UI/Web/src/app/cards/edit-series-relation/edit-series-relation.component.ts
index 63273a18c..99bcd46b2 100644
--- a/UI/Web/src/app/cards/edit-series-relation/edit-series-relation.component.ts
+++ b/UI/Web/src/app/cards/edit-series-relation/edit-series-relation.component.ts
@@ -24,6 +24,7 @@ import {TypeaheadComponent} from "../../typeahead/_components/typeahead.componen
import {CommonModule} from "@angular/common";
import {TranslocoModule} from "@ngneat/transloco";
import {RelationshipPipe} from "../../_pipes/relationship.pipe";
+import {WikiLink} from "../../_models/wiki";
interface RelationControl {
series: {id: number, name: string} | undefined; // Will add type as well
@@ -55,6 +56,7 @@ export class EditSeriesRelationComponent implements OnInit {
private readonly searchService = inject(SearchService);
public readonly imageService = inject(ImageService);
protected readonly RelationKind = RelationKind;
+ protected readonly WikiLink = WikiLink;
@Input({required: true}) series!: Series;
/**
@@ -188,5 +190,4 @@ export class EditSeriesRelationComponent implements OnInit {
this.seriesService.updateRelationships(this.series.id, adaptations, characters, contains, others, prequels, sequels, sideStories, spinOffs, alternativeSettings, alternativeVersions, doujinshis, editions, annuals).subscribe(() => {});
}
-
}
diff --git a/UI/Web/src/app/collections/_components/all-collections/all-collections.component.html b/UI/Web/src/app/collections/_components/all-collections/all-collections.component.html
index ed2ec8992..4143e9c4a 100644
--- a/UI/Web/src/app/collections/_components/all-collections/all-collections.component.html
+++ b/UI/Web/src/app/collections/_components/all-collections/all-collections.component.html
@@ -27,7 +27,7 @@
{{t('no-data')}}
@if(isAdmin$ | async) {
- {{t('create-one-part-1')}} {{t('create-one-part-2')}}
+ {{t('create-one-part-1')}} {{t('create-one-part-2')}}
}
diff --git a/UI/Web/src/app/collections/_components/all-collections/all-collections.component.ts b/UI/Web/src/app/collections/_components/all-collections/all-collections.component.ts
index 1ee7b1412..66a005584 100644
--- a/UI/Web/src/app/collections/_components/all-collections/all-collections.component.ts
+++ b/UI/Web/src/app/collections/_components/all-collections/all-collections.component.ts
@@ -41,6 +41,7 @@ import {BulkSelectionService} from "../../../cards/bulk-selection.service";
import {SeriesCardComponent} from "../../../cards/series-card/series-card.component";
import {ActionService} from "../../../_services/action.service";
import {KEY_CODES} from "../../../shared/_services/utility.service";
+import {WikiLink} from "../../../_models/wiki";
@Component({
@@ -69,6 +70,7 @@ export class AllCollectionsComponent implements OnInit {
public readonly actionService = inject(ActionService);
protected readonly ScrobbleProvider = ScrobbleProvider;
+ protected readonly WikiLink = WikiLink;
isLoading: boolean = true;
collections: UserCollection[] = [];
diff --git a/UI/Web/src/app/reading-list/_components/reading-lists/reading-lists.component.html b/UI/Web/src/app/reading-list/_components/reading-lists/reading-lists.component.html
index eb82370d5..4b018865f 100644
--- a/UI/Web/src/app/reading-list/_components/reading-lists/reading-lists.component.html
+++ b/UI/Web/src/app/reading-list/_components/reading-lists/reading-lists.component.html
@@ -22,7 +22,7 @@
- {{t('no-data')}} {{t('create-one-part-1')}} {{t('create-one-part-2')}}.
+ {{t('no-data')}} {{t('create-one-part-1')}} {{t('create-one-part-2')}}.
diff --git a/UI/Web/src/app/reading-list/_components/reading-lists/reading-lists.component.ts b/UI/Web/src/app/reading-list/_components/reading-lists/reading-lists.component.ts
index 58d91edf9..4fb54d7f5 100644
--- a/UI/Web/src/app/reading-list/_components/reading-lists/reading-lists.component.ts
+++ b/UI/Web/src/app/reading-list/_components/reading-lists/reading-lists.component.ts
@@ -20,6 +20,7 @@ import { SideNavCompanionBarComponent } from '../../../sidenav/_components/side-
import {translate, TranslocoDirective, TranslocoService} from "@ngneat/transloco";
import {CardActionablesComponent} from "../../../_single-module/card-actionables/card-actionables.component";
import {Title} from "@angular/platform-browser";
+import {WikiLink} from "../../../_models/wiki";
@Component({
selector: 'app-reading-lists',
@@ -31,6 +32,8 @@ import {Title} from "@angular/platform-browser";
})
export class ReadingListsComponent implements OnInit {
+ protected readonly WikiLink = WikiLink;
+
lists: ReadingList[] = [];
loadingLists = false;
pagination!: Pagination;
diff --git a/UI/Web/src/app/reading-list/_modals/import-cbl-modal/import-cbl-modal.component.html b/UI/Web/src/app/reading-list/_modals/import-cbl-modal/import-cbl-modal.component.html
index a119adc9c..9e47a0320 100644
--- a/UI/Web/src/app/reading-list/_modals/import-cbl-modal/import-cbl-modal.component.html
+++ b/UI/Web/src/app/reading-list/_modals/import-cbl-modal/import-cbl-modal.component.html
@@ -156,7 +156,7 @@
diff --git a/UI/Web/src/app/reading-list/_modals/import-cbl-modal/import-cbl-modal.component.ts b/UI/Web/src/app/reading-list/_modals/import-cbl-modal/import-cbl-modal.component.ts
index 43df5764c..1911d9d5a 100644
--- a/UI/Web/src/app/reading-list/_modals/import-cbl-modal/import-cbl-modal.component.ts
+++ b/UI/Web/src/app/reading-list/_modals/import-cbl-modal/import-cbl-modal.component.ts
@@ -17,6 +17,7 @@ import {SafeHtmlPipe} from "../../../_pipes/safe-html.pipe";
import {CblConflictReasonPipe} from "../../../_pipes/cbl-conflict-reason.pipe";
import {CblImportResultPipe} from "../../../_pipes/cbl-import-result.pipe";
import {translate, TranslocoDirective} from "@ngneat/transloco";
+import {WikiLink} from "../../../_models/wiki";
interface FileStep {
fileName: string;
@@ -48,6 +49,7 @@ export class ImportCblModalComponent {
protected readonly CblImportResult = CblImportResult;
protected readonly Step = Step;
+ protected readonly WikiLink = WikiLink;
@ViewChild('fileUpload') fileUpload!: ElementRef;
diff --git a/UI/Web/src/app/shared/update-notification/update-notification-modal.component.ts b/UI/Web/src/app/shared/update-notification/update-notification-modal.component.ts
index 6e0dc697d..9b77f4dbc 100644
--- a/UI/Web/src/app/shared/update-notification/update-notification-modal.component.ts
+++ b/UI/Web/src/app/shared/update-notification/update-notification-modal.component.ts
@@ -4,6 +4,7 @@ import { UpdateVersionEvent } from 'src/app/_models/events/update-version-event'
import {CommonModule} from "@angular/common";
import {SafeHtmlPipe} from "../../_pipes/safe-html.pipe";
import {TranslocoDirective} from "@ngneat/transloco";
+import {WikiLink} from "../../_models/wiki";
@Component({
@@ -17,15 +18,15 @@ import {TranslocoDirective} from "@ngneat/transloco";
export class UpdateNotificationModalComponent implements OnInit {
@Input({required: true}) updateData!: UpdateVersionEvent;
- updateUrl: string = 'https://wiki.kavitareader.com/en/install/windows-install#updating-kavita';
+ updateUrl: string = WikiLink.UpdateNative;
constructor(public modal: NgbActiveModal) { }
ngOnInit() {
if (this.updateData.isDocker) {
- this.updateUrl = 'https://wiki.kavitareader.com/en/install/docker-install#updating-kavita';
+ this.updateUrl = WikiLink.UpdateDocker;
} else {
- this.updateUrl = 'https://wiki.kavitareader.com/en/install/windows-install#updating-kavita';
+ this.updateUrl = WikiLink.UpdateNative;
}
}
diff --git a/UI/Web/src/app/sidenav/_components/customize-dashboard-modal/customize-dashboard-modal.component.html b/UI/Web/src/app/sidenav/_components/customize-dashboard-modal/customize-dashboard-modal.component.html
index f6fb73443..95076c6fd 100644
--- a/UI/Web/src/app/sidenav/_components/customize-dashboard-modal/customize-dashboard-modal.component.html
+++ b/UI/Web/src/app/sidenav/_components/customize-dashboard-modal/customize-dashboard-modal.component.html
@@ -35,7 +35,7 @@
diff --git a/UI/Web/src/app/sidenav/_components/customize-dashboard-modal/customize-dashboard-modal.component.ts b/UI/Web/src/app/sidenav/_components/customize-dashboard-modal/customize-dashboard-modal.component.ts
index b0b5d8615..97e16c100 100644
--- a/UI/Web/src/app/sidenav/_components/customize-dashboard-modal/customize-dashboard-modal.component.ts
+++ b/UI/Web/src/app/sidenav/_components/customize-dashboard-modal/customize-dashboard-modal.component.ts
@@ -15,6 +15,7 @@ import {CustomizeDashboardStreamsComponent} from "../customize-dashboard-streams
import {CustomizeSidenavStreamsComponent} from "../customize-sidenav-streams/customize-sidenav-streams.component";
import {ManageExternalSourcesComponent} from "../manage-external-sources/manage-external-sources.component";
import {ManageSmartFiltersComponent} from "../manage-smart-filters/manage-smart-filters.component";
+import {WikiLink} from "../../../_models/wiki";
enum TabID {
Dashboard = 'dashboard',
@@ -35,13 +36,15 @@ enum TabID {
})
export class CustomizeDashboardModalComponent {
- activeTab = TabID.SideNav;
-
private readonly cdRef = inject(ChangeDetectorRef);
public readonly utilityService = inject(UtilityService);
private readonly modal = inject(NgbActiveModal);
+
protected readonly TabID = TabID;
protected readonly Breakpoint = Breakpoint;
+ protected readonly WikiLink = WikiLink;
+
+ activeTab = TabID.SideNav;
close() {
this.modal.close();
diff --git a/UI/Web/src/app/sidenav/_components/manage-external-sources/manage-external-sources.component.html b/UI/Web/src/app/sidenav/_components/manage-external-sources/manage-external-sources.component.html
index 68cb3e24e..c0a4ff1f9 100644
--- a/UI/Web/src/app/sidenav/_components/manage-external-sources/manage-external-sources.component.html
+++ b/UI/Web/src/app/sidenav/_components/manage-external-sources/manage-external-sources.component.html
@@ -1,7 +1,7 @@
{{t('description')}}
- {{t('help-link')}}
+ {{t('help-link')}}
diff --git a/UI/Web/src/app/sidenav/_components/manage-external-sources/manage-external-sources.component.ts b/UI/Web/src/app/sidenav/_components/manage-external-sources/manage-external-sources.component.ts
index ec53e2831..743fecd8f 100644
--- a/UI/Web/src/app/sidenav/_components/manage-external-sources/manage-external-sources.component.ts
+++ b/UI/Web/src/app/sidenav/_components/manage-external-sources/manage-external-sources.component.ts
@@ -10,6 +10,7 @@ import {ExternalSource} from "../../../_models/sidenav/external-source";
import {ExternalSourceService} from "../../../_services/external-source.service";
import {FilterPipe} from "../../../_pipes/filter.pipe";
import {SmartFilter} from "../../../_models/metadata/v2/smart-filter";
+import {WikiLink} from "../../../_models/wiki";
@Component({
selector: 'app-manage-external-sources',
@@ -24,6 +25,7 @@ export class ManageExternalSourcesComponent {
externalSources: Array = [];
private readonly cdRef = inject(ChangeDetectorRef);
private readonly externalSourceService = inject(ExternalSourceService);
+ protected readonly WikiLink = WikiLink;
listForm: FormGroup = new FormGroup({
'filterQuery': new FormControl('', [])
diff --git a/UI/Web/src/app/sidenav/_components/side-nav/side-nav.component.html b/UI/Web/src/app/sidenav/_components/side-nav/side-nav.component.html
index b85a14f20..2f261f39b 100644
--- a/UI/Web/src/app/sidenav/_components/side-nav/side-nav.component.html
+++ b/UI/Web/src/app/sidenav/_components/side-nav/side-nav.component.html
@@ -73,6 +73,6 @@
diff --git a/UI/Web/src/app/sidenav/_components/side-nav/side-nav.component.ts b/UI/Web/src/app/sidenav/_components/side-nav/side-nav.component.ts
index 0fa95a3b0..c1051f5e4 100644
--- a/UI/Web/src/app/sidenav/_components/side-nav/side-nav.component.ts
+++ b/UI/Web/src/app/sidenav/_components/side-nav/side-nav.component.ts
@@ -33,6 +33,7 @@ import {SideNavStreamType} from "../../../_models/sidenav/sidenav-stream-type.en
import {
ImportMalCollectionModalComponent
} from "../../../collections/_components/import-mal-collection-modal/import-mal-collection-modal.component";
+import {WikiLink} from "../../../_models/wiki";
@Component({
selector: 'app-side-nav',
@@ -44,8 +45,19 @@ import {
})
export class SideNavComponent implements OnInit {
+ protected readonly SideNavStreamType = SideNavStreamType;
+ private readonly router = inject(Router);
+ private readonly utilityService = inject(UtilityService);
+ private readonly messageHub = inject(MessageHubService);
+ private readonly actionService = inject(ActionService);
+ public readonly navService = inject(NavService);
+ private readonly cdRef = inject(ChangeDetectorRef);
+ private readonly ngbModal = inject(NgbModal);
+ private readonly imageService = inject(ImageService);
+ public readonly accountService = inject(AccountService);
private readonly destroyRef = inject(DestroyRef);
private readonly actionFactoryService = inject(ActionFactoryService);
+ protected readonly WikiLink = WikiLink;
cachedData: SideNavStream[] | null = null;
actions: ActionItem
[] = this.actionFactoryService.getLibraryActions(this.handleAction.bind(this));
@@ -63,18 +75,6 @@ export class SideNavComponent implements OnInit {
showAll: boolean = false;
totalSize = 0;
- protected readonly SideNavStreamType = SideNavStreamType;
- private readonly router = inject(Router);
- private readonly utilityService = inject(UtilityService);
- private readonly messageHub = inject(MessageHubService);
- private readonly actionService = inject(ActionService);
- public readonly navService = inject(NavService);
- private readonly cdRef = inject(ChangeDetectorRef);
- private readonly ngbModal = inject(NgbModal);
- private readonly imageService = inject(ImageService);
- public readonly accountService = inject(AccountService);
-
-
private showAllSubject = new BehaviorSubject(false);
showAll$ = this.showAllSubject.asObservable();
@@ -230,5 +230,4 @@ export class SideNavComponent implements OnInit {
this.cdRef.markForCheck();
this.showAllSubject.next(false);
}
-
}
diff --git a/UI/Web/src/app/sidenav/_modals/library-settings-modal/library-settings-modal.component.html b/UI/Web/src/app/sidenav/_modals/library-settings-modal/library-settings-modal.component.html
index b3771bbb6..3db6de2c7 100644
--- a/UI/Web/src/app/sidenav/_modals/library-settings-modal/library-settings-modal.component.html
+++ b/UI/Web/src/app/sidenav/_modals/library-settings-modal/library-settings-modal.component.html
@@ -74,10 +74,10 @@