Skip to content

Commit

Permalink
Cleanup unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Nov 28, 2023
1 parent 7122d47 commit 8bd3f32
Showing 1 changed file with 10 additions and 49 deletions.
59 changes: 10 additions & 49 deletions src/app/showcase/pages/landing/landing.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommonModule, DOCUMENT, NgOptimizedImage, isPlatformBrowser } from '@angular/common';
import { ChangeDetectorRef, Component, ElementRef, Inject, OnInit, PLATFORM_ID, ViewChild } from '@angular/core';
import { ChangeDetectorRef, Component, Inject, OnInit, PLATFORM_ID } from '@angular/core';
import { Meta, Title } from '@angular/platform-browser';
import { RouterModule } from '@angular/router';
import docsearch from '@docsearch/js';
Expand All @@ -9,6 +9,7 @@ import { CalendarModule } from 'primeng/calendar';
import { ChartModule } from 'primeng/chart';
import { CheckboxModule } from 'primeng/checkbox';
import { ChipModule } from 'primeng/chip';
import { DropdownModule } from 'primeng/dropdown';
import { InputNumberModule } from 'primeng/inputnumber';
import { InputSwitchModule } from 'primeng/inputswitch';
import { ProgressBarModule } from 'primeng/progressbar';
Expand All @@ -17,19 +18,17 @@ import { SelectButtonModule } from 'primeng/selectbutton';
import { SliderModule } from 'primeng/slider';
import { TableModule } from 'primeng/table';
import { TabMenuModule } from 'primeng/tabmenu';
import Versions from '../../data/versions.json';
import { AppComponent } from '../../layout/app.component';
import { AppNewsComponent } from '../../layout/news/app.news.component';
import { AppTopBarComponent } from '../../layout/topbar/app.topbar.component';
import { AppConfigService } from '../../service/appconfigservice';
import { DropdownModule } from 'primeng/dropdown';
import { HeroSectionComponent } from './herosection.component';
import { FeaturesSectionComponent } from './featuressection.component';
import { UsersSectionComponent } from './userssection.component';
import { ThemeSectionComponent } from './themesection.component';
import { BlockSectionComponent } from './blocksection.component';
import { TemplateSectionComponent } from './templatesection.component';
import { FeaturesSectionComponent } from './featuressection.component';
import { FooterSectionComponent } from './footersection.component';
import { HeroSectionComponent } from './herosection.component';
import { TemplateSectionComponent } from './templatesection.component';
import { ThemeSectionComponent } from './themesection.component';
import { UsersSectionComponent } from './userssection.component';

@Component({
selector: 'landing',
Expand Down Expand Up @@ -63,41 +62,13 @@ import { FooterSectionComponent } from './footersection.component';
BlockSectionComponent,
TemplateSectionComponent,
FooterSectionComponent
],
]
})
export class LandingComponent implements OnInit {
@ViewChild('containerElement') containerElement: ElementRef;

@ViewChild('editor') editor: ElementRef;

versions: any[] = Versions;

scrollListener: any;

tableTheme: string = 'lara-light-blue';

isNpmCopied: boolean = false;

user : any = null

users : any[]

usersData = [
{ name: 'fox', width: '51', height: '22' },
{ name: 'airbus', width: '87', height: '16' },
{ name: 'mercedes', width: '34', height: '34' },
{ name: 'ford', width: '64', height: '26' },
{ name: 'vw', width: '35', height: '34' },
{ name: 'intel', width: '53', height: '34' },
{ name: 'unicredit', width: '79', height: '18' },
{ name: 'lufthansa', width: '97', height: '18' },
{ name: 'nvidia', width: '86', height: '16' },
{ name: 'verizon', width: '102', height: '18' },
{ name: 'amex', width: '81', height: '30' }
];

private window: Window;

private tableTheme = 'lara-light-blue';

get landingClass() {
return {
'layout-dark': this.isDarkMode,
Expand Down Expand Up @@ -162,14 +133,6 @@ export class LandingComponent implements OnInit {
});
}

copyNpm() {
navigator.clipboard.writeText('npm i primeng');
this.isNpmCopied = true;
setTimeout(() => {
this.isNpmCopied = false;
}, 2000);
}

ngAfterViewInit() {
this.cd.detectChanges();
}
Expand Down Expand Up @@ -210,6 +173,4 @@ export class LandingComponent implements OnInit {
this.tableTheme = newTheme;
}
}


}

1 comment on commit 8bd3f32

@vercel
Copy link

@vercel vercel bot commented on 8bd3f32 Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.