mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
			
			
				Browse Source
			
			
			
			
				
		Changes
  1. Header Component (header.component.ts):
    - Converted to standalone by adding comprehensive imports array
    - Renamed class from HeaderComponent to GfHeaderComponent
    - Added all necessary module imports (Material, Common, Router, UI components)
    - Added CUSTOM_ELEMENTS_SCHEMA for Ionic icon support
  2. Module Cleanup:
    - Deleted header.module.ts file completely
  3. App Module (app.module.ts):
    - Replaced GfHeaderModule import with direct GfHeaderComponent import
  4. Validation:
    - Lint checks passed (no new issues introduced)
    - TypeScript compilation successful
    - Production build completed successfully
This fixes #5475
			
			
				pull/5483/head
			
			
		
				 3 changed files with 30 additions and 43 deletions
			
			
		@ -1,35 +0,0 @@ | 
				
			|||
import { LoginWithAccessTokenDialogModule } from '@ghostfolio/client/components/login-with-access-token-dialog/login-with-access-token-dialog.module'; | 
				
			|||
import { GfAssistantComponent } from '@ghostfolio/ui/assistant'; | 
				
			|||
import { GfLogoComponent } from '@ghostfolio/ui/logo'; | 
				
			|||
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator'; | 
				
			|||
 | 
				
			|||
import { CommonModule } from '@angular/common'; | 
				
			|||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; | 
				
			|||
import { MatBadgeModule } from '@angular/material/badge'; | 
				
			|||
import { MatButtonModule } from '@angular/material/button'; | 
				
			|||
import { MatMenuModule } from '@angular/material/menu'; | 
				
			|||
import { MatToolbarModule } from '@angular/material/toolbar'; | 
				
			|||
import { RouterModule } from '@angular/router'; | 
				
			|||
import { IonIcon } from '@ionic/angular/standalone'; | 
				
			|||
 | 
				
			|||
import { HeaderComponent } from './header.component'; | 
				
			|||
 | 
				
			|||
@NgModule({ | 
				
			|||
  declarations: [HeaderComponent], | 
				
			|||
  exports: [HeaderComponent], | 
				
			|||
  imports: [ | 
				
			|||
    CommonModule, | 
				
			|||
    GfAssistantComponent, | 
				
			|||
    GfLogoComponent, | 
				
			|||
    GfPremiumIndicatorComponent, | 
				
			|||
    IonIcon, | 
				
			|||
    LoginWithAccessTokenDialogModule, | 
				
			|||
    MatBadgeModule, | 
				
			|||
    MatButtonModule, | 
				
			|||
    MatMenuModule, | 
				
			|||
    MatToolbarModule, | 
				
			|||
    RouterModule | 
				
			|||
  ], | 
				
			|||
  schemas: [CUSTOM_ELEMENTS_SCHEMA] | 
				
			|||
}) | 
				
			|||
export class GfHeaderModule {} | 
				
			|||
					Loading…
					
					
				
		Reference in new issue