mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-07-16 08:54:54 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0addb448f5 |
@@ -38,7 +38,7 @@ repos:
|
|||||||
- json
|
- json
|
||||||
# See https://github.com/prettier/prettier/issues/15742 for the fork reason
|
# See https://github.com/prettier/prettier/issues/15742 for the fork reason
|
||||||
- repo: https://github.com/rbubley/mirrors-prettier
|
- repo: https://github.com/rbubley/mirrors-prettier
|
||||||
rev: 'v3.8.4'
|
rev: 'v3.9.4'
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
types_or:
|
types_or:
|
||||||
@@ -46,16 +46,16 @@ repos:
|
|||||||
- ts
|
- ts
|
||||||
- markdown
|
- markdown
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- prettier@3.8.3
|
- prettier@3.9.4
|
||||||
- 'prettier-plugin-organize-imports@4.3.0'
|
- 'prettier-plugin-organize-imports@4.3.0'
|
||||||
# Python hooks
|
# Python hooks
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.15.17
|
rev: v0.15.20
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff-check
|
- id: ruff-check
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
- repo: https://github.com/tox-dev/pyproject-fmt
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
||||||
rev: "v2.24.1"
|
rev: "v2.25.1"
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyproject-fmt
|
- id: pyproject-fmt
|
||||||
additional_dependencies: [tomli]
|
additional_dependencies: [tomli]
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -49,8 +49,7 @@ describe('PngxPdfViewerComponent', () => {
|
|||||||
new URL('assets/js/pdf.worker.min.mjs', document.baseURI).toString()
|
new URL('assets/js/pdf.worker.min.mjs', document.baseURI).toString()
|
||||||
)
|
)
|
||||||
const isVisible = (component as any).findController.onIsPageVisible as
|
const isVisible = (component as any).findController.onIsPageVisible as
|
||||||
| (() => boolean)
|
(() => boolean) | undefined
|
||||||
| undefined
|
|
||||||
expect(isVisible?.()).toBe(true)
|
expect(isVisible?.()).toBe(true)
|
||||||
expect(loadSpy).toHaveBeenCalledWith(
|
expect(loadSpy).toHaveBeenCalledWith(
|
||||||
expect.objectContaining({ numPages: 1 })
|
expect.objectContaining({ numPages: 1 })
|
||||||
|
|||||||
@@ -1,12 +1,7 @@
|
|||||||
import { normalizeSync } from 'normalize-diacritics'
|
import { normalizeSync } from 'normalize-diacritics'
|
||||||
|
|
||||||
export type SearchTextValue =
|
export type SearchTextValue =
|
||||||
| string
|
string | number | boolean | bigint | null | undefined
|
||||||
| number
|
|
||||||
| boolean
|
|
||||||
| bigint
|
|
||||||
| null
|
|
||||||
| undefined
|
|
||||||
|
|
||||||
export function normalizeSearchText(value: SearchTextValue): string {
|
export function normalizeSearchText(value: SearchTextValue): string {
|
||||||
return normalizeSync(String(value ?? '')).toLocaleLowerCase()
|
return normalizeSync(String(value ?? '')).toLocaleLowerCase()
|
||||||
|
|||||||
Reference in New Issue
Block a user