mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Chore: Update backend dependencies in bulk (#7656)
This commit is contained in:
		@@ -36,8 +36,9 @@ repos:
 | 
				
			|||||||
        exclude_types:
 | 
					        exclude_types:
 | 
				
			||||||
          - pofile
 | 
					          - pofile
 | 
				
			||||||
          - json
 | 
					          - json
 | 
				
			||||||
  - repo: https://github.com/pre-commit/mirrors-prettier
 | 
					  # See https://github.com/prettier/prettier/issues/15742 for the fork reason
 | 
				
			||||||
    rev: 'v3.1.0'
 | 
					  - repo: https://github.com/rbubley/mirrors-prettier
 | 
				
			||||||
 | 
					    rev: 'v3.3.3'
 | 
				
			||||||
    hooks:
 | 
					    hooks:
 | 
				
			||||||
      - id: prettier
 | 
					      - id: prettier
 | 
				
			||||||
        types_or:
 | 
					        types_or:
 | 
				
			||||||
@@ -47,7 +48,7 @@ repos:
 | 
				
			|||||||
        exclude: "(^Pipfile\\.lock$)"
 | 
					        exclude: "(^Pipfile\\.lock$)"
 | 
				
			||||||
  # Python hooks
 | 
					  # Python hooks
 | 
				
			||||||
  - repo: https://github.com/astral-sh/ruff-pre-commit
 | 
					  - repo: https://github.com/astral-sh/ruff-pre-commit
 | 
				
			||||||
    rev: 'v0.6.3'
 | 
					    rev: 'v0.6.4'
 | 
				
			||||||
    hooks:
 | 
					    hooks:
 | 
				
			||||||
      - id: ruff
 | 
					      - id: ruff
 | 
				
			||||||
      - id: ruff-format
 | 
					      - id: ruff-format
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2578
									
								
								Pipfile.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2578
									
								
								Pipfile.lock
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -12,7 +12,7 @@ import { DragDropModule } from '@angular/cdk/drag-drop'
 | 
				
			|||||||
      <button
 | 
					      <button
 | 
				
			||||||
        *pngxIfObjectPermissions="{
 | 
					        *pngxIfObjectPermissions="{
 | 
				
			||||||
          object: { id: 2, owner: user1 },
 | 
					          object: { id: 2, owner: user1 },
 | 
				
			||||||
          action: 'view'
 | 
					          action: 'view',
 | 
				
			||||||
        }"
 | 
					        }"
 | 
				
			||||||
      >
 | 
					      >
 | 
				
			||||||
        Some Text
 | 
					        Some Text
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -188,9 +188,9 @@ export class FilterEditorComponent
 | 
				
			|||||||
        case FILTER_CORRESPONDENT:
 | 
					        case FILTER_CORRESPONDENT:
 | 
				
			||||||
        case FILTER_HAS_CORRESPONDENT_ANY:
 | 
					        case FILTER_HAS_CORRESPONDENT_ANY:
 | 
				
			||||||
          if (rule.value) {
 | 
					          if (rule.value) {
 | 
				
			||||||
            return $localize`Correspondent: ${this.correspondents.find(
 | 
					            return $localize`Correspondent: ${
 | 
				
			||||||
              (c) => c.id == +rule.value
 | 
					              this.correspondents.find((c) => c.id == +rule.value)?.name
 | 
				
			||||||
            )?.name}`
 | 
					            }`
 | 
				
			||||||
          } else {
 | 
					          } else {
 | 
				
			||||||
            return $localize`Without correspondent`
 | 
					            return $localize`Without correspondent`
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
@@ -198,9 +198,9 @@ export class FilterEditorComponent
 | 
				
			|||||||
        case FILTER_DOCUMENT_TYPE:
 | 
					        case FILTER_DOCUMENT_TYPE:
 | 
				
			||||||
        case FILTER_HAS_DOCUMENT_TYPE_ANY:
 | 
					        case FILTER_HAS_DOCUMENT_TYPE_ANY:
 | 
				
			||||||
          if (rule.value) {
 | 
					          if (rule.value) {
 | 
				
			||||||
            return $localize`Document type: ${this.documentTypes.find(
 | 
					            return $localize`Document type: ${
 | 
				
			||||||
              (dt) => dt.id == +rule.value
 | 
					              this.documentTypes.find((dt) => dt.id == +rule.value)?.name
 | 
				
			||||||
            )?.name}`
 | 
					            }`
 | 
				
			||||||
          } else {
 | 
					          } else {
 | 
				
			||||||
            return $localize`Without document type`
 | 
					            return $localize`Without document type`
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
@@ -208,16 +208,17 @@ export class FilterEditorComponent
 | 
				
			|||||||
        case FILTER_STORAGE_PATH:
 | 
					        case FILTER_STORAGE_PATH:
 | 
				
			||||||
        case FILTER_HAS_STORAGE_PATH_ANY:
 | 
					        case FILTER_HAS_STORAGE_PATH_ANY:
 | 
				
			||||||
          if (rule.value) {
 | 
					          if (rule.value) {
 | 
				
			||||||
            return $localize`Storage path: ${this.storagePaths.find(
 | 
					            return $localize`Storage path: ${
 | 
				
			||||||
              (sp) => sp.id == +rule.value
 | 
					              this.storagePaths.find((sp) => sp.id == +rule.value)?.name
 | 
				
			||||||
            )?.name}`
 | 
					            }`
 | 
				
			||||||
          } else {
 | 
					          } else {
 | 
				
			||||||
            return $localize`Without storage path`
 | 
					            return $localize`Without storage path`
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        case FILTER_HAS_TAGS_ALL:
 | 
					        case FILTER_HAS_TAGS_ALL:
 | 
				
			||||||
          return $localize`Tag: ${this.tags.find((t) => t.id == +rule.value)
 | 
					          return $localize`Tag: ${
 | 
				
			||||||
            ?.name}`
 | 
					            this.tags.find((t) => t.id == +rule.value)?.name
 | 
				
			||||||
 | 
					          }`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        case FILTER_HAS_ANY_TAG:
 | 
					        case FILTER_HAS_ANY_TAG:
 | 
				
			||||||
          if (rule.value == 'false') {
 | 
					          if (rule.value == 'false') {
 | 
				
			||||||
@@ -225,9 +226,9 @@ export class FilterEditorComponent
 | 
				
			|||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        case FILTER_HAS_CUSTOM_FIELDS_ALL:
 | 
					        case FILTER_HAS_CUSTOM_FIELDS_ALL:
 | 
				
			||||||
          return $localize`Custom fields: ${this.customFields.find(
 | 
					          return $localize`Custom fields: ${
 | 
				
			||||||
            (f) => f.id == +rule.value
 | 
					            this.customFields.find((f) => f.id == +rule.value)?.name
 | 
				
			||||||
          )?.name}`
 | 
					          }`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        case FILTER_HAS_ANY_CUSTOM_FIELDS:
 | 
					        case FILTER_HAS_ANY_CUSTOM_FIELDS:
 | 
				
			||||||
          if (rule.value == 'false') {
 | 
					          if (rule.value == 'false') {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,7 @@ import { PermissionsService } from '../services/permissions.service'
 | 
				
			|||||||
      <button
 | 
					      <button
 | 
				
			||||||
        *pngxIfObjectPermissions="{
 | 
					        *pngxIfObjectPermissions="{
 | 
				
			||||||
          object: { id: 2, owner: user1 },
 | 
					          object: { id: 2, owner: user1 },
 | 
				
			||||||
          action: 'view'
 | 
					          action: 'view',
 | 
				
			||||||
        }"
 | 
					        }"
 | 
				
			||||||
      >
 | 
					      >
 | 
				
			||||||
        Some Text
 | 
					        Some Text
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,7 +29,7 @@ export class UsernamePipe implements PipeTransform {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  transform(userID: number): string {
 | 
					  transform(userID: number): string {
 | 
				
			||||||
    return this.users
 | 
					    return this.users
 | 
				
			||||||
      ? this.getName(this.users.find((u) => u.id === userID)) ?? ''
 | 
					      ? (this.getName(this.users.find((u) => u.id === userID)) ?? '')
 | 
				
			||||||
      : $localize`Shared`
 | 
					      : $localize`Shared`
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -298,8 +298,9 @@ export class DocumentListViewService {
 | 
				
			|||||||
              errorMessage = Object.keys(error.error)
 | 
					              errorMessage = Object.keys(error.error)
 | 
				
			||||||
                .map((fieldName) => {
 | 
					                .map((fieldName) => {
 | 
				
			||||||
                  const fieldError: Array<string> = error.error[fieldName]
 | 
					                  const fieldError: Array<string> = error.error[fieldName]
 | 
				
			||||||
                  return `${this.sortFields.find((f) => f.field == fieldName)
 | 
					                  return `${
 | 
				
			||||||
                    ?.name}: ${fieldError[0]}`
 | 
					                    this.sortFields.find((f) => f.field == fieldName)?.name
 | 
				
			||||||
 | 
					                  }: ${fieldError[0]}`
 | 
				
			||||||
                })
 | 
					                })
 | 
				
			||||||
                .join(', ')
 | 
					                .join(', ')
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user