Chore: Update backend dependencies in bulk (#7656)

This commit is contained in:
Trenton H 2024-09-08 13:03:38 -07:00 committed by GitHub
parent 3df8be0bc7
commit 3813dc2e18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 1411 additions and 1214 deletions

View File

@ -36,8 +36,9 @@ repos:
exclude_types:
- pofile
- json
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v3.1.0'
# See https://github.com/prettier/prettier/issues/15742 for the fork reason
- repo: https://github.com/rbubley/mirrors-prettier
rev: 'v3.3.3'
hooks:
- id: prettier
types_or:
@ -47,7 +48,7 @@ repos:
exclude: "(^Pipfile\\.lock$)"
# Python hooks
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.6.3'
rev: 'v0.6.4'
hooks:
- id: ruff
- id: ruff-format

2578
Pipfile.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@ import { DragDropModule } from '@angular/cdk/drag-drop'
<button
*pngxIfObjectPermissions="{
object: { id: 2, owner: user1 },
action: 'view'
action: 'view',
}"
>
Some Text

View File

@ -188,9 +188,9 @@ export class FilterEditorComponent
case FILTER_CORRESPONDENT:
case FILTER_HAS_CORRESPONDENT_ANY:
if (rule.value) {
return $localize`Correspondent: ${this.correspondents.find(
(c) => c.id == +rule.value
)?.name}`
return $localize`Correspondent: ${
this.correspondents.find((c) => c.id == +rule.value)?.name
}`
} else {
return $localize`Without correspondent`
}
@ -198,9 +198,9 @@ export class FilterEditorComponent
case FILTER_DOCUMENT_TYPE:
case FILTER_HAS_DOCUMENT_TYPE_ANY:
if (rule.value) {
return $localize`Document type: ${this.documentTypes.find(
(dt) => dt.id == +rule.value
)?.name}`
return $localize`Document type: ${
this.documentTypes.find((dt) => dt.id == +rule.value)?.name
}`
} else {
return $localize`Without document type`
}
@ -208,16 +208,17 @@ export class FilterEditorComponent
case FILTER_STORAGE_PATH:
case FILTER_HAS_STORAGE_PATH_ANY:
if (rule.value) {
return $localize`Storage path: ${this.storagePaths.find(
(sp) => sp.id == +rule.value
)?.name}`
return $localize`Storage path: ${
this.storagePaths.find((sp) => sp.id == +rule.value)?.name
}`
} else {
return $localize`Without storage path`
}
case FILTER_HAS_TAGS_ALL:
return $localize`Tag: ${this.tags.find((t) => t.id == +rule.value)
?.name}`
return $localize`Tag: ${
this.tags.find((t) => t.id == +rule.value)?.name
}`
case FILTER_HAS_ANY_TAG:
if (rule.value == 'false') {
@ -225,9 +226,9 @@ export class FilterEditorComponent
}
case FILTER_HAS_CUSTOM_FIELDS_ALL:
return $localize`Custom fields: ${this.customFields.find(
(f) => f.id == +rule.value
)?.name}`
return $localize`Custom fields: ${
this.customFields.find((f) => f.id == +rule.value)?.name
}`
case FILTER_HAS_ANY_CUSTOM_FIELDS:
if (rule.value == 'false') {

View File

@ -9,7 +9,7 @@ import { PermissionsService } from '../services/permissions.service'
<button
*pngxIfObjectPermissions="{
object: { id: 2, owner: user1 },
action: 'view'
action: 'view',
}"
>
Some Text

View File

@ -29,7 +29,7 @@ export class UsernamePipe implements PipeTransform {
transform(userID: number): string {
return this.users
? this.getName(this.users.find((u) => u.id === userID)) ?? ''
? (this.getName(this.users.find((u) => u.id === userID)) ?? '')
: $localize`Shared`
}

View File

@ -298,8 +298,9 @@ export class DocumentListViewService {
errorMessage = Object.keys(error.error)
.map((fieldName) => {
const fieldError: Array<string> = error.error[fieldName]
return `${this.sortFields.find((f) => f.field == fieldName)
?.name}: ${fieldError[0]}`
return `${
this.sortFields.find((f) => f.field == fieldName)?.name
}: ${fieldError[0]}`
})
.join(', ')
} else {