fix(lint): url length ts lint

This commit is contained in:
Evgeny Lupanov 2020-08-14 11:16:23 +03:00
parent dad1ef613a
commit 3dd0fb36fd
2 changed files with 4 additions and 0 deletions

View file

@ -77,6 +77,7 @@ export class ThemeSectionComponent implements OnDestroy {
return this.forMaterialTheme ? '#6200ee' : '#00db92'; return this.forMaterialTheme ? '#6200ee' : '#00db92';
} }
// tslint:disable:max-line-length
public get materialLightDemoUrl(): string { public get materialLightDemoUrl(): string {
return this.forMaterialTheme return this.forMaterialTheme
? 'https://www.akveo.com/ngx-admin/pages/dashboard?theme=material-light&utm_campaign=ngx_admin%20-%20demo%20-%20ngx_admin%20docs&utm_source=ngx_admin&utm_medium=referral&utm_content=ngx_admin_material_themes_material_light' ? 'https://www.akveo.com/ngx-admin/pages/dashboard?theme=material-light&utm_campaign=ngx_admin%20-%20demo%20-%20ngx_admin%20docs&utm_source=ngx_admin&utm_medium=referral&utm_content=ngx_admin_material_themes_material_light'
@ -112,6 +113,7 @@ export class ThemeSectionComponent implements OnDestroy {
? 'https://www.akveo.com/ngx-admin/pages/dashboard?theme=corporate&utm_campaign=ngx_admin%20-%20demo%20-%20ngx_admin%20docs&utm_source=ngx_admin&utm_medium=referral&utm_content=ngx_admin_material_themes_corporate' ? 'https://www.akveo.com/ngx-admin/pages/dashboard?theme=corporate&utm_campaign=ngx_admin%20-%20demo%20-%20ngx_admin%20docs&utm_source=ngx_admin&utm_medium=referral&utm_content=ngx_admin_material_themes_corporate'
: 'https://www.akveo.com/ngx-admin/pages/dashboard?theme=corporate&utm_campaign=ngx_admin%20-%20demo%20-%20ngx_admin%20docs&utm_source=ngx_admin&utm_medium=referral&utm_content=ngx_admin_landing_themes_corporate'; : 'https://www.akveo.com/ngx-admin/pages/dashboard?theme=corporate&utm_campaign=ngx_admin%20-%20demo%20-%20ngx_admin%20docs&utm_source=ngx_admin&utm_medium=referral&utm_content=ngx_admin_landing_themes_corporate';
} }
// tslint:enable:max-line-length
constructor( constructor(
private themeService: NbThemeService, private themeService: NbThemeService,

View file

@ -54,11 +54,13 @@ export class NgxStarterComponent implements OnDestroy, OnInit {
private metadataService: MetadataService, private metadataService: MetadataService,
) {} ) {}
// tslint:disable:max-line-length
ngOnInit(): void { ngOnInit(): void {
this.metadataService.updateTitle('Ngx-admin themes for e-commerce dashboard on Angular 9+ and Nebular'); this.metadataService.updateTitle('Ngx-admin themes for e-commerce dashboard on Angular 9+ and Nebular');
this.metadataService.updateDescription('Choose a theme for ngx-admin e-commerce dashboard: Material, Light and Dark, Cosmic and Corporate.'); this.metadataService.updateDescription('Choose a theme for ngx-admin e-commerce dashboard: Material, Light and Dark, Cosmic and Corporate.');
this.metadataService.updateKeywords('Ngx-admin themes, material theme, ngx-admin cosmic, ngx-admin corporate theme, dark theme ngx-admin'); this.metadataService.updateKeywords('Ngx-admin themes, material theme, ngx-admin cosmic, ngx-admin corporate theme, dark theme ngx-admin');
} }
// tslint:enable:max-line-length
navigate(themeName: string) { navigate(themeName: string) {
this.currentThemeService.setCurrentTheme(themeName); this.currentThemeService.setCurrentTheme(themeName);