Thomas Kaul
					
					3 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 2 changed files with 
11 additions and 
13 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
 
			
				- 
					
					
					 
					apps/api/src/app/frontend.middleware.ts
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -16,9 +16,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					- Tagged template literal strings in components for localization with `$localize` | 
					 | 
					 | 
					- Tagged template literal strings in components for localization with `$localize` | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					### Changed | 
					 | 
					 | 
					### Fixed | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					- Tagged template literal strings in components for localization with `$localize` | 
					 | 
					 | 
					- Fixed the license component in the about page | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					## 1.179.5 - 15.08.2022 | 
					 | 
					 | 
					## 1.179.5 - 15.08.2022 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -11,22 +11,20 @@ export class FrontendMiddleware implements NestMiddleware { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      // Skip
 | 
					 | 
					 | 
					      // Skip
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      next(); | 
					 | 
					 | 
					      next(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } else if (req.path.startsWith('/de/')) { | 
					 | 
					 | 
					    } else if (req.path.startsWith('/de/')) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					      res.sendFile(path.join(__dirname, '..', 'client', 'de', 'index.html')); | 
					 | 
					 | 
					      res.sendFile(this.getPathOfIndexHtmlFile('de')); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    } else { | 
					 | 
					 | 
					    } else { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					      res.sendFile( | 
					 | 
					 | 
					      res.sendFile(this.getPathOfIndexHtmlFile(DEFAULT_LANGUAGE_CODE)); | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					        path.join( | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          __dirname, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          '..', | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          'client', | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          DEFAULT_LANGUAGE_CODE, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          'index.html' | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        ) | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      ); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  } | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  private getPathOfIndexHtmlFile(aLocale: string) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    return path.join(__dirname, '..', 'client', aLocale, 'index.html'); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  private isFileRequest(filename: string) { | 
					 | 
					 | 
					  private isFileRequest(filename: string) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    if (filename.includes('auth/ey')) { | 
					 | 
					 | 
					    if (filename === '/assets/LICENSE') { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      return true; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    } else if (filename.includes('auth/ey')) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      return false; | 
					 | 
					 | 
					      return false; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |