From 947dbfe7349427f3f9b5bf2f6f74b3050921e825 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Sat, 27 Aug 2022 02:13:27 +0300 Subject: [PATCH] delete obsolete components --- src/app/app.module.ts | 3 +-- src/app/game-bar/game-bar-routing.module.ts | 10 ------- src/app/game-bar/game-bar.module.ts | 17 ------------ .../game-button/game-button.component.html | 1 - .../game-side-button.component.html | 18 ------------- .../game-side-button.component.scss | 27 ------------------- .../game-side-button.component.spec.ts | 23 ---------------- .../game-side-button.component.ts | 15 ----------- 8 files changed, 1 insertion(+), 113 deletions(-) delete mode 100644 src/app/game-bar/game-bar-routing.module.ts delete mode 100644 src/app/game-bar/game-bar.module.ts delete mode 100644 src/app/game-bar/game-button/game-button.component.html delete mode 100644 src/app/game-side-button/game-side-button.component.html delete mode 100644 src/app/game-side-button/game-side-button.component.scss delete mode 100644 src/app/game-side-button/game-side-button.component.spec.ts delete mode 100644 src/app/game-side-button/game-side-button.component.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 6f03ba2..78fbeb2 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -15,13 +15,12 @@ import { HomeModule } from './home/home.module'; import { DetailModule } from './detail/detail.module'; import { AppComponent } from './app.component'; -import { GameSideButtonComponent } from './game-side-button/game-side-button.component'; // AoT requires an exported function for factories const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new TranslateHttpLoader(http, './assets/i18n/', '.json'); @NgModule({ - declarations: [AppComponent, GameSideButtonComponent], + declarations: [AppComponent], imports: [ BrowserModule, FormsModule, diff --git a/src/app/game-bar/game-bar-routing.module.ts b/src/app/game-bar/game-bar-routing.module.ts deleted file mode 100644 index 431c0dd..0000000 --- a/src/app/game-bar/game-bar-routing.module.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; - -const routes: Routes = []; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class GameBarRoutingModule { } diff --git a/src/app/game-bar/game-bar.module.ts b/src/app/game-bar/game-bar.module.ts deleted file mode 100644 index c3eed74..0000000 --- a/src/app/game-bar/game-bar.module.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; - -import { GameBarRoutingModule } from './game-bar-routing.module'; -import { GameButtonComponent } from './game-button/game-button.component'; - - -@NgModule({ - declarations: [ - GameButtonComponent - ], - imports: [ - CommonModule, - GameBarRoutingModule - ] -}) -export class GameBarModule { } diff --git a/src/app/game-bar/game-button/game-button.component.html b/src/app/game-bar/game-button/game-button.component.html deleted file mode 100644 index 4ad8a77..0000000 --- a/src/app/game-bar/game-button/game-button.component.html +++ /dev/null @@ -1 +0,0 @@ -

game-button works!

diff --git a/src/app/game-side-button/game-side-button.component.html b/src/app/game-side-button/game-side-button.component.html deleted file mode 100644 index afc96f5..0000000 --- a/src/app/game-side-button/game-side-button.component.html +++ /dev/null @@ -1,18 +0,0 @@ -
-
- -
-
-
-
- Warface -
-
- Pirate -
-
-
- 2 people voted. Need 4 more to play. -
-
-
\ No newline at end of file diff --git a/src/app/game-side-button/game-side-button.component.scss b/src/app/game-side-button/game-side-button.component.scss deleted file mode 100644 index 943fb86..0000000 --- a/src/app/game-side-button/game-side-button.component.scss +++ /dev/null @@ -1,27 +0,0 @@ -/*********************************************/ -/************** Games Bar *******************/ -/*********************************************/ - -#GamesBar { - margin-left: 15px; -} -.GameBar { - display: flex; - margin-top: 13px; - padding: 10px 0 2px 10px; - margin-right: 15px; -} -.GameBar:hover { - background-color: rgba(255, 255, 255, 0.2); - border-radius: 10px; - -webkit-backdrop-filter: drop-shadow(5px 5px 0px #ffffff); - backdrop-filter: drop-shadow(5px 5px 4px #ffffff); -} -.GameBar > .two-lines-centered { - margin-top: 5px; - margin-left: 15px; -} -.SessionCount { - font-size: 13px; - margin: 20px 0 20px 10px; -} \ No newline at end of file diff --git a/src/app/game-side-button/game-side-button.component.spec.ts b/src/app/game-side-button/game-side-button.component.spec.ts deleted file mode 100644 index e790879..0000000 --- a/src/app/game-side-button/game-side-button.component.spec.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { GameSideButtonComponent } from './game-side-button.component'; - -describe('GameSideButtonComponent', () => { - let component: GameSideButtonComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [ GameSideButtonComponent ] - }) - .compileComponents(); - - fixture = TestBed.createComponent(GameSideButtonComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/game-side-button/game-side-button.component.ts b/src/app/game-side-button/game-side-button.component.ts deleted file mode 100644 index 43d13cf..0000000 --- a/src/app/game-side-button/game-side-button.component.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'app-game-side-button', - templateUrl: './game-side-button.component.html', - styleUrls: ['./game-side-button.component.scss'] -}) -export class GameSideButtonComponent implements OnInit { - - constructor() { } - - ngOnInit(): void { - } - -}