chore(repo): fix sonar failings (#1813)
This commit is contained in:
+1
@@ -24,6 +24,7 @@
|
||||
[placeholder]="t('searchPlaceholder')"
|
||||
[ngModel]="searchTerm()"
|
||||
(ngModelChange)="onSearchChange($event)"
|
||||
aria-label="{{ t('searchPlaceholder') }}"
|
||||
class="search-input"/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -190,6 +190,7 @@
|
||||
[placeholder]="t('placeholder.search')"
|
||||
[ngModel]="bookTitle()"
|
||||
(ngModelChange)="onSearchTermChange($event)"
|
||||
aria-label="{{ t('placeholder.search') }}"
|
||||
class="search-input-full"
|
||||
/>
|
||||
<p-button
|
||||
@@ -212,6 +213,7 @@
|
||||
[placeholder]="t('placeholder.search')"
|
||||
[ngModel]="bookTitle()"
|
||||
(ngModelChange)="onSearchTermChange($event)"
|
||||
aria-label="{{ t('placeholder.search') }}"
|
||||
class="search-input"
|
||||
/>
|
||||
@if (bookTitle()) {
|
||||
|
||||
+3
-1
@@ -45,7 +45,8 @@
|
||||
[value]="sliderValue"
|
||||
(input)="onSliderChange($event)"
|
||||
list="page-ticks"
|
||||
[title]="'readerCbx.footer.pageSlider' | transloco"/>
|
||||
[title]="'readerCbx.footer.pageSlider' | transloco"
|
||||
aria-label="{{ 'readerCbx.footer.pageSlider' | transloco }}"/>
|
||||
<datalist id="page-ticks">
|
||||
@for (tick of sliderTicks; track tick) {
|
||||
<option [value]="tick"></option>
|
||||
@@ -62,6 +63,7 @@
|
||||
[max]="state().totalPages"
|
||||
[placeholder]="'readerCbx.footer.pagePlaceholder' | transloco"
|
||||
class="page-input"
|
||||
aria-label="{{ 'readerCbx.footer.pagePlaceholder' | transloco }}"
|
||||
(keyup.enter)="onGoToPage()"
|
||||
/>
|
||||
<button
|
||||
|
||||
+3
-2
@@ -154,7 +154,8 @@
|
||||
<span>{{ 'readerCbx.quickSettings.brightness' | transloco }}</span>
|
||||
<div class="control-right">
|
||||
<input type="range" min="10" max="100" step="5" [value]="state().brightness"
|
||||
(input)="onBrightnessChange($event)" class="brightness-slider" />
|
||||
(input)="onBrightnessChange($event)" class="brightness-slider"
|
||||
aria-label="{{ 'readerCbx.quickSettings.brightness' | transloco }}" />
|
||||
<span class="brightness-value">{{ state().brightness }}%</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -196,4 +197,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -106,6 +106,7 @@
|
||||
[placeholder]="'readerCbx.sidebar.searchNotesPlaceholder' | transloco"
|
||||
[ngModel]="notesSearchQuery()"
|
||||
(ngModelChange)="onNotesSearchInput($event)"
|
||||
aria-label="{{ 'readerCbx.sidebar.searchNotesPlaceholder' | transloco }}"
|
||||
/>
|
||||
@if (notesSearchQuery()) {
|
||||
<button class="clear-btn" (click)="clearNotesSearch()" [attr.aria-label]="'readerCbx.sidebar.clearSearch' | transloco">
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
[placeholder]="t('searchPlaceholder')"
|
||||
[(ngModel)]="searchQuery"
|
||||
(ngModelChange)="onSearchInput($event)"
|
||||
|
||||
aria-label="{{ t('searchPlaceholder') }}"
|
||||
/>
|
||||
@if (searchQuery) {
|
||||
<button class="clear-btn" (click)="clearSearch()" [attr.aria-label]="t('clearSearch')">
|
||||
@@ -120,6 +120,7 @@
|
||||
[placeholder]="t('searchNotes')"
|
||||
[ngModel]="notesSearchQuery()"
|
||||
(ngModelChange)="onNotesSearchInput($event)"
|
||||
aria-label="{{ t('searchNotes') }}"
|
||||
/>
|
||||
@if (notesSearchQuery()) {
|
||||
<button class="clear-btn" (click)="clearNotesSearch()" [attr.aria-label]="t('clearSearch')">
|
||||
|
||||
@@ -211,7 +211,8 @@
|
||||
<div class="page-controls">
|
||||
<div class="slider-wrapper">
|
||||
<input type="range" class="page-slider" [min]="1" [max]="totalPages()" [value]="page()"
|
||||
(input)="onSliderChange($event)" list="pdf-page-ticks" [title]="'readerPdf.footer.pageSlider' | transloco" />
|
||||
(input)="onSliderChange($event)" list="pdf-page-ticks" [title]="'readerPdf.footer.pageSlider' | transloco"
|
||||
aria-label="{{ 'readerPdf.footer.pageSlider' | transloco }}" />
|
||||
<datalist id="pdf-page-ticks">
|
||||
@for (tick of sliderTicks(); track tick) {
|
||||
<option [value]="tick"></option>
|
||||
@@ -223,6 +224,7 @@
|
||||
<input type="number" [ngModel]="goToPageInput()" (ngModelChange)="goToPageInput.set($event)"
|
||||
[min]="1" [max]="totalPages()"
|
||||
[placeholder]="'readerPdf.footer.pagePlaceholder' | transloco" class="page-input"
|
||||
aria-label="{{ 'readerPdf.footer.pagePlaceholder' | transloco }}"
|
||||
(keyup.enter)="onGoToPage()" />
|
||||
<button class="go-btn" (click)="onGoToPage()"
|
||||
[disabled]="goToPageInput() === null || goToPageInput()! < 1 || goToPageInput()! > totalPages()">
|
||||
|
||||
+1
@@ -24,6 +24,7 @@
|
||||
[placeholder]="t('searchPlaceholder')"
|
||||
[ngModel]="searchValue"
|
||||
(ngModelChange)="onSearchChange($event)"
|
||||
aria-label="{{ t('searchPlaceholder') }}"
|
||||
class="search-input"/>
|
||||
</div>
|
||||
|
||||
|
||||
+1
@@ -58,6 +58,7 @@
|
||||
(ngModelChange)="hardcoverApiKey.set($event)"
|
||||
[type]="showHardcoverApiKey() ? 'text' : 'password'"
|
||||
name="hardcoverApiKey"
|
||||
aria-label="{{ t('hardcover.apiKey') }}"
|
||||
class="token-input"
|
||||
[placeholder]="t('hardcover.apiKeyPlaceholder')"
|
||||
(blur)="onHardcoverApiKeyChange()"
|
||||
|
||||
+1
@@ -85,6 +85,7 @@
|
||||
id="koboToken"
|
||||
formControlName="token"
|
||||
[type]="showToken ? 'text' : 'password'"
|
||||
aria-label="{{ t('kobo.token') }}"
|
||||
readonly
|
||||
class="token-input"
|
||||
/>
|
||||
|
||||
+2
@@ -102,6 +102,7 @@
|
||||
required
|
||||
[ngModel]="koReaderUsername()"
|
||||
(ngModelChange)="koReaderUsername.set($event)"
|
||||
aria-label="{{ t('koreader.username') }}"
|
||||
#usernameModel="ngModel"
|
||||
[class.p-invalid]="usernameModel.invalid && usernameModel.touched"
|
||||
[disabled]="editMode()"
|
||||
@@ -141,6 +142,7 @@
|
||||
[type]="showPassword() ? 'text' : 'password'"
|
||||
[ngModel]="koReaderPassword()"
|
||||
(ngModelChange)="koReaderPassword.set($event)"
|
||||
aria-label="{{ t('koreader.password') }}"
|
||||
#passwordModel="ngModel"
|
||||
[class.p-invalid]="passwordModel.invalid && passwordModel.touched"
|
||||
[disabled]="editMode()"
|
||||
|
||||
+3
-2
@@ -73,18 +73,19 @@
|
||||
[placeholder]="t('searchSeries')"
|
||||
[value]="searchTerm"
|
||||
(input)="onSearchInput($event)"
|
||||
aria-label="{{ t('searchSeries') }}"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="filter-controls">
|
||||
<select class="filter-select" [value]="filterStatus" (change)="onFilterSelect($event)">
|
||||
<select class="filter-select" [value]="filterStatus" (change)="onFilterSelect($event)" aria-label="{{ t('allStatus') }}">
|
||||
<option value="all">{{ t('allStatus') }}</option>
|
||||
<option value="in-progress">{{ t('inProgress') }}</option>
|
||||
<option value="completed">{{ t('completed') }}</option>
|
||||
<option value="not-started">{{ t('notStarted') }}</option>
|
||||
</select>
|
||||
|
||||
<select class="sort-select" [value]="sortBy" (change)="onSortSelect($event)">
|
||||
<select class="sort-select" [value]="sortBy" (change)="onSortSelect($event)" aria-label="{{ t('sortByProgress') }}">
|
||||
<option value="progress">{{ t('sortByProgress') }}</option>
|
||||
<option value="rating">{{ t('sortByRating') }}</option>
|
||||
<option value="books">{{ t('sortByBooks') }}</option>
|
||||
|
||||
Reference in New Issue
Block a user