mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-15 13:46:16 -08:00
refactor: improve ccomponents/modules structure
Extracted all related video player components to the own module. Removed unused components and directives.
This commit is contained in:
1 parent
ff0864ff65
commit
4abaeae8c2
27 files changed
+52
-99
No files matched your search
@@ -1,2 +1 @@
|
||||
export * from './page-not-found/page-not-found.component';
|
||||
export * from './header/header.component';
|
||||
@@ -1,3 +0,0 @@
|
||||
<p>
|
||||
page-not-found works!
|
||||
</p>
|
||||
Whitespace-only changes.
@@ -1,25 +0,0 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { PageNotFoundComponent } from './page-not-found.component';
|
||||
|
||||
describe('PageNotFoundComponent', () => {
|
||||
let component: PageNotFoundComponent;
|
||||
let fixture: ComponentFixture<PageNotFoundComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [PageNotFoundComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(PageNotFoundComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -1,12 +0,0 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-page-not-found',
|
||||
templateUrl: './page-not-found.component.html',
|
||||
styleUrls: ['./page-not-found.component.scss']
|
||||
})
|
||||
export class PageNotFoundComponent implements OnInit {
|
||||
constructor() {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
export * from './webview/webview.directive';
|
||||
@@ -1,8 +0,0 @@
|
||||
import { WebviewDirective } from './webview.directive';
|
||||
|
||||
describe('WebviewDirective', () => {
|
||||
it('should create an instance', () => {
|
||||
const directive = new WebviewDirective();
|
||||
expect(directive).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -1,8 +0,0 @@
|
||||
import { Directive } from '@angular/core';
|
||||
|
||||
@Directive({
|
||||
selector: 'webview'
|
||||
})
|
||||
export class WebviewDirective {
|
||||
constructor() { }
|
||||
}
|
||||
@@ -1,31 +1,31 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
import { PageNotFoundComponent, HeaderComponent } from './components/';
|
||||
import { WebviewDirective } from './directives/';
|
||||
import { HeaderComponent } from './components/';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { MaterialModule } from 'app/material.module';
|
||||
import { FilterPipeModule } from 'ngx-filter-pipe';
|
||||
|
||||
@NgModule({
|
||||
declarations: [PageNotFoundComponent, HeaderComponent, WebviewDirective],
|
||||
declarations: [HeaderComponent],
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
FilterPipeModule,
|
||||
FlexLayoutModule,
|
||||
FormsModule,
|
||||
MaterialModule,
|
||||
FlexLayoutModule,
|
||||
ReactiveFormsModule,
|
||||
TranslateModule,
|
||||
],
|
||||
exports: [
|
||||
TranslateModule,
|
||||
WebviewDirective,
|
||||
FormsModule,
|
||||
MaterialModule,
|
||||
FilterPipeModule,
|
||||
FlexLayoutModule,
|
||||
FormsModule,
|
||||
HeaderComponent,
|
||||
MaterialModule,
|
||||
ReactiveFormsModule,
|
||||
TranslateModule,
|
||||
],
|
||||
})
|
||||
export class SharedModule {}
|
||||
Reference in new issue
Block a user