mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	refactoring
This commit is contained in:
		| @@ -2,48 +2,6 @@ | |||||||
| <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> | <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> | ||||||
|   <file source-language="en-US" datatype="plaintext" original="ng2.template"> |   <file source-language="en-US" datatype="plaintext" original="ng2.template"> | ||||||
|     <body> |     <body> | ||||||
|       <trans-unit id="9103526311244275943" datatype="html"> |  | ||||||
|         <source>Document added</source> |  | ||||||
|         <context-group purpose="location"> |  | ||||||
|           <context context-type="sourcefile">src/app/app.component.ts</context> |  | ||||||
|           <context context-type="linenumber">51</context> |  | ||||||
|         </context-group> |  | ||||||
|       </trans-unit> |  | ||||||
|       <trans-unit id="9204248378636247318" datatype="html"> |  | ||||||
|         <source>Document <x id="PH" equiv-text="status.filename"/> was added to paperless.</source> |  | ||||||
|         <context-group purpose="location"> |  | ||||||
|           <context context-type="sourcefile">src/app/app.component.ts</context> |  | ||||||
|           <context context-type="linenumber">51</context> |  | ||||||
|         </context-group> |  | ||||||
|       </trans-unit> |  | ||||||
|       <trans-unit id="1931214133925051574" datatype="html"> |  | ||||||
|         <source>Open document</source> |  | ||||||
|         <context-group purpose="location"> |  | ||||||
|           <context context-type="sourcefile">src/app/app.component.ts</context> |  | ||||||
|           <context context-type="linenumber">51</context> |  | ||||||
|         </context-group> |  | ||||||
|       </trans-unit> |  | ||||||
|       <trans-unit id="8582620835547864448" datatype="html"> |  | ||||||
|         <source>Could not add <x id="PH" equiv-text="status.filename"/>: <x id="PH_1" equiv-text="status.message"/></source> |  | ||||||
|         <context-group purpose="location"> |  | ||||||
|           <context context-type="sourcefile">src/app/app.component.ts</context> |  | ||||||
|           <context context-type="linenumber">59</context> |  | ||||||
|         </context-group> |  | ||||||
|       </trans-unit> |  | ||||||
|       <trans-unit id="1710712016675379662" datatype="html"> |  | ||||||
|         <source>New document detected</source> |  | ||||||
|         <context-group purpose="location"> |  | ||||||
|           <context context-type="sourcefile">src/app/app.component.ts</context> |  | ||||||
|           <context context-type="linenumber">65</context> |  | ||||||
|         </context-group> |  | ||||||
|       </trans-unit> |  | ||||||
|       <trans-unit id="587031278561344416" datatype="html"> |  | ||||||
|         <source>Document <x id="PH" equiv-text="status.filename"/> is being processed by paperless.</source> |  | ||||||
|         <context-group purpose="location"> |  | ||||||
|           <context context-type="sourcefile">src/app/app.component.ts</context> |  | ||||||
|           <context context-type="linenumber">65</context> |  | ||||||
|         </context-group> |  | ||||||
|       </trans-unit> |  | ||||||
|       <trans-unit id="4733307402565258070" datatype="html"> |       <trans-unit id="4733307402565258070" datatype="html"> | ||||||
|         <source>Documents</source> |         <source>Documents</source> | ||||||
|         <context-group purpose="location"> |         <context-group purpose="location"> | ||||||
| @@ -394,6 +352,48 @@ | |||||||
|           <context context-type="linenumber">131</context> |           <context context-type="linenumber">131</context> | ||||||
|         </context-group> |         </context-group> | ||||||
|       </trans-unit> |       </trans-unit> | ||||||
|  |       <trans-unit id="9103526311244275943" datatype="html"> | ||||||
|  |         <source>Document added</source> | ||||||
|  |         <context-group purpose="location"> | ||||||
|  |           <context context-type="sourcefile">src/app/app.component.ts</context> | ||||||
|  |           <context context-type="linenumber">51</context> | ||||||
|  |         </context-group> | ||||||
|  |       </trans-unit> | ||||||
|  |       <trans-unit id="9204248378636247318" datatype="html"> | ||||||
|  |         <source>Document <x id="PH" equiv-text="status.filename"/> was added to paperless.</source> | ||||||
|  |         <context-group purpose="location"> | ||||||
|  |           <context context-type="sourcefile">src/app/app.component.ts</context> | ||||||
|  |           <context context-type="linenumber">51</context> | ||||||
|  |         </context-group> | ||||||
|  |       </trans-unit> | ||||||
|  |       <trans-unit id="1931214133925051574" datatype="html"> | ||||||
|  |         <source>Open document</source> | ||||||
|  |         <context-group purpose="location"> | ||||||
|  |           <context context-type="sourcefile">src/app/app.component.ts</context> | ||||||
|  |           <context context-type="linenumber">51</context> | ||||||
|  |         </context-group> | ||||||
|  |       </trans-unit> | ||||||
|  |       <trans-unit id="8582620835547864448" datatype="html"> | ||||||
|  |         <source>Could not add <x id="PH" equiv-text="status.filename"/>: <x id="PH_1" equiv-text="status.message"/></source> | ||||||
|  |         <context-group purpose="location"> | ||||||
|  |           <context context-type="sourcefile">src/app/app.component.ts</context> | ||||||
|  |           <context context-type="linenumber">59</context> | ||||||
|  |         </context-group> | ||||||
|  |       </trans-unit> | ||||||
|  |       <trans-unit id="1710712016675379662" datatype="html"> | ||||||
|  |         <source>New document detected</source> | ||||||
|  |         <context-group purpose="location"> | ||||||
|  |           <context context-type="sourcefile">src/app/app.component.ts</context> | ||||||
|  |           <context context-type="linenumber">65</context> | ||||||
|  |         </context-group> | ||||||
|  |       </trans-unit> | ||||||
|  |       <trans-unit id="587031278561344416" datatype="html"> | ||||||
|  |         <source>Document <x id="PH" equiv-text="status.filename"/> is being processed by paperless.</source> | ||||||
|  |         <context-group purpose="location"> | ||||||
|  |           <context context-type="sourcefile">src/app/app.component.ts</context> | ||||||
|  |           <context context-type="linenumber">65</context> | ||||||
|  |         </context-group> | ||||||
|  |       </trans-unit> | ||||||
|       <trans-unit id="8765497970646365998" datatype="html"> |       <trans-unit id="8765497970646365998" datatype="html"> | ||||||
|         <source>Hello <x id="PH" equiv-text="this.displayName"/>, welcome to Paperless-ng!</source> |         <source>Hello <x id="PH" equiv-text="this.displayName"/>, welcome to Paperless-ng!</source> | ||||||
|         <context-group purpose="location"> |         <context-group purpose="location"> | ||||||
| @@ -1626,6 +1626,13 @@ | |||||||
|           <context context-type="linenumber">14</context> |           <context context-type="linenumber">14</context> | ||||||
|         </context-group> |         </context-group> | ||||||
|       </trans-unit> |       </trans-unit> | ||||||
|  |       <trans-unit id="bd5ca454e336126f3eeb67417d9264696b5c852c" datatype="html"> | ||||||
|  |         <source>Searching document with asn <x id="INTERPOLATION" equiv-text="{{asn}}"/></source> | ||||||
|  |         <context-group purpose="location"> | ||||||
|  |           <context context-type="sourcefile">src/app/components/document-asn/document-asn.component.html</context> | ||||||
|  |           <context context-type="linenumber">1</context> | ||||||
|  |         </context-group> | ||||||
|  |       </trans-unit> | ||||||
|       <trans-unit id="2807800733729323332" datatype="html"> |       <trans-unit id="2807800733729323332" datatype="html"> | ||||||
|         <source>Yes</source> |         <source>Yes</source> | ||||||
|         <context-group purpose="location"> |         <context-group purpose="location"> | ||||||
| @@ -1731,6 +1738,41 @@ | |||||||
|           <context context-type="linenumber">106</context> |           <context context-type="linenumber">106</context> | ||||||
|         </context-group> |         </context-group> | ||||||
|       </trans-unit> |       </trans-unit> | ||||||
|  |       <trans-unit id="2691296884221415710" datatype="html"> | ||||||
|  |         <source>Correspondent</source> | ||||||
|  |         <context-group purpose="location"> | ||||||
|  |           <context context-type="sourcefile">src/app/services/rest/document.service.ts</context> | ||||||
|  |           <context context-type="linenumber">18</context> | ||||||
|  |         </context-group> | ||||||
|  |       </trans-unit> | ||||||
|  |       <trans-unit id="5066119607229701477" datatype="html"> | ||||||
|  |         <source>Document type</source> | ||||||
|  |         <context-group purpose="location"> | ||||||
|  |           <context context-type="sourcefile">src/app/services/rest/document.service.ts</context> | ||||||
|  |           <context context-type="linenumber">20</context> | ||||||
|  |         </context-group> | ||||||
|  |       </trans-unit> | ||||||
|  |       <trans-unit id="4207916966377787111" datatype="html"> | ||||||
|  |         <source>Created</source> | ||||||
|  |         <context-group purpose="location"> | ||||||
|  |           <context context-type="sourcefile">src/app/services/rest/document.service.ts</context> | ||||||
|  |           <context context-type="linenumber">21</context> | ||||||
|  |         </context-group> | ||||||
|  |       </trans-unit> | ||||||
|  |       <trans-unit id="231679111972850796" datatype="html"> | ||||||
|  |         <source>Added</source> | ||||||
|  |         <context-group purpose="location"> | ||||||
|  |           <context context-type="sourcefile">src/app/services/rest/document.service.ts</context> | ||||||
|  |           <context context-type="linenumber">22</context> | ||||||
|  |         </context-group> | ||||||
|  |       </trans-unit> | ||||||
|  |       <trans-unit id="3553216189604488439" datatype="html"> | ||||||
|  |         <source>Modified</source> | ||||||
|  |         <context-group purpose="location"> | ||||||
|  |           <context context-type="sourcefile">src/app/services/rest/document.service.ts</context> | ||||||
|  |           <context context-type="linenumber">23</context> | ||||||
|  |         </context-group> | ||||||
|  |       </trans-unit> | ||||||
|       <trans-unit id="2119857572761283468" datatype="html"> |       <trans-unit id="2119857572761283468" datatype="html"> | ||||||
|         <source>Document already exists.</source> |         <source>Document already exists.</source> | ||||||
|         <context-group purpose="location"> |         <context-group purpose="location"> | ||||||
| @@ -1840,41 +1882,6 @@ | |||||||
|           <context context-type="linenumber">39</context> |           <context context-type="linenumber">39</context> | ||||||
|         </context-group> |         </context-group> | ||||||
|       </trans-unit> |       </trans-unit> | ||||||
|       <trans-unit id="2691296884221415710" datatype="html"> |  | ||||||
|         <source>Correspondent</source> |  | ||||||
|         <context-group purpose="location"> |  | ||||||
|           <context context-type="sourcefile">src/app/services/rest/document.service.ts</context> |  | ||||||
|           <context context-type="linenumber">18</context> |  | ||||||
|         </context-group> |  | ||||||
|       </trans-unit> |  | ||||||
|       <trans-unit id="5066119607229701477" datatype="html"> |  | ||||||
|         <source>Document type</source> |  | ||||||
|         <context-group purpose="location"> |  | ||||||
|           <context context-type="sourcefile">src/app/services/rest/document.service.ts</context> |  | ||||||
|           <context context-type="linenumber">20</context> |  | ||||||
|         </context-group> |  | ||||||
|       </trans-unit> |  | ||||||
|       <trans-unit id="4207916966377787111" datatype="html"> |  | ||||||
|         <source>Created</source> |  | ||||||
|         <context-group purpose="location"> |  | ||||||
|           <context context-type="sourcefile">src/app/services/rest/document.service.ts</context> |  | ||||||
|           <context context-type="linenumber">21</context> |  | ||||||
|         </context-group> |  | ||||||
|       </trans-unit> |  | ||||||
|       <trans-unit id="231679111972850796" datatype="html"> |  | ||||||
|         <source>Added</source> |  | ||||||
|         <context-group purpose="location"> |  | ||||||
|           <context context-type="sourcefile">src/app/services/rest/document.service.ts</context> |  | ||||||
|           <context context-type="linenumber">22</context> |  | ||||||
|         </context-group> |  | ||||||
|       </trans-unit> |  | ||||||
|       <trans-unit id="3553216189604488439" datatype="html"> |  | ||||||
|         <source>Modified</source> |  | ||||||
|         <context-group purpose="location"> |  | ||||||
|           <context context-type="sourcefile">src/app/services/rest/document.service.ts</context> |  | ||||||
|           <context context-type="linenumber">23</context> |  | ||||||
|         </context-group> |  | ||||||
|       </trans-unit> |  | ||||||
|       <trans-unit id="4561076822163447092" datatype="html"> |       <trans-unit id="4561076822163447092" datatype="html"> | ||||||
|         <source>Create new item</source> |         <source>Create new item</source> | ||||||
|         <context-group purpose="location"> |         <context-group purpose="location"> | ||||||
|   | |||||||
| @@ -1 +1 @@ | |||||||
| <p>Searching document with asn {{asn}}</p> | <p i18n>Searching document with asn {{asn}}</p> | ||||||
|   | |||||||
| @@ -1,8 +1,6 @@ | |||||||
| import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||||
| import {DocumentService} from "../../services/rest/document.service"; | import {DocumentService} from "../../services/rest/document.service"; | ||||||
| import {ActivatedRoute, Router} from "@angular/router"; | import {ActivatedRoute, Router} from "@angular/router"; | ||||||
| import {CorrespondentService} from "../../services/rest/correspondent.service"; |  | ||||||
| import {DocumentTypeService} from "../../services/rest/document-type.service"; |  | ||||||
| import {FILTER_ASN} from "../../data/filter-rule-type"; | import {FILTER_ASN} from "../../data/filter-rule-type"; | ||||||
|  |  | ||||||
| @Component({ | @Component({ | ||||||
| @@ -12,12 +10,10 @@ import {FILTER_ASN} from "../../data/filter-rule-type"; | |||||||
| }) | }) | ||||||
| export class DocumentAsnComponent implements OnInit { | export class DocumentAsnComponent implements OnInit { | ||||||
|  |  | ||||||
|   asn: string; |   asn: string | ||||||
|   constructor( |   constructor( | ||||||
|     private documentsService: DocumentService, |     private documentsService: DocumentService, | ||||||
|     private route: ActivatedRoute, |     private route: ActivatedRoute, | ||||||
|     private correspondentService: CorrespondentService, |  | ||||||
|     private documentTypeService: DocumentTypeService, |  | ||||||
|     private router: Router) { } |     private router: Router) { } | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Tobi
					Tobi