From d5b012236c287f47c085bbec1b38ea6c8629fd0b Mon Sep 17 00:00:00 2001
From: Jeremie BRISON <ext.sopra.jbrison@grandlyon.com>
Date: Thu, 8 Oct 2020 10:31:10 +0200
Subject: [PATCH] init

---
 src/app/app.module.ts                         |  3 ++-
 src/app/home/home.component.html              |  2 +-
 .../components/card/card.component.html       |  1 +
 .../components/card/card.component.scss       |  0
 .../components/card/card.component.spec.ts    | 25 +++++++++++++++++++
 .../components/card/card.component.ts         | 15 +++++++++++
 .../recherche/recherche.component.html        |  1 +
 .../recherche/recherche.component.scss        |  0
 .../recherche/recherche.component.spec.ts     | 25 +++++++++++++++++++
 .../recherche/recherche.component.ts          | 15 +++++++++++
 .../services/structure.service.spec.ts        | 16 ++++++++++++
 .../structure/services/structure.service.ts   |  9 +++++++
 src/app/structure/structure.component.html    |  2 ++
 src/app/structure/structure.component.scss    |  0
 src/app/structure/structure.component.spec.ts | 25 +++++++++++++++++++
 src/app/structure/structure.component.ts      | 15 +++++++++++
 src/app/structure/structure.module.ts         | 12 +++++++++
 17 files changed, 164 insertions(+), 2 deletions(-)
 create mode 100644 src/app/structure/components/card/card.component.html
 create mode 100644 src/app/structure/components/card/card.component.scss
 create mode 100644 src/app/structure/components/card/card.component.spec.ts
 create mode 100644 src/app/structure/components/card/card.component.ts
 create mode 100644 src/app/structure/components/recherche/recherche.component.html
 create mode 100644 src/app/structure/components/recherche/recherche.component.scss
 create mode 100644 src/app/structure/components/recherche/recherche.component.spec.ts
 create mode 100644 src/app/structure/components/recherche/recherche.component.ts
 create mode 100644 src/app/structure/services/structure.service.spec.ts
 create mode 100644 src/app/structure/services/structure.service.ts
 create mode 100644 src/app/structure/structure.component.html
 create mode 100644 src/app/structure/structure.component.scss
 create mode 100644 src/app/structure/structure.component.spec.ts
 create mode 100644 src/app/structure/structure.component.ts
 create mode 100644 src/app/structure/structure.module.ts

diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 4ad3e8861..9d221fe1a 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -11,10 +11,11 @@ import { StructureListComponent } from './structure-list/structure-list.componen
 import { FooterComponent } from './footer/footer.component';
 import { HeaderComponent } from './header/header.component';
 import { SharedModule } from './shared/shared.module';
+import { StructureModule } from './structure/structure.module';
 
 @NgModule({
   declarations: [AppComponent, HeaderComponent, FooterComponent, HomeComponent, StructureListComponent],
-  imports: [BrowserModule, AppRoutingModule, FlexLayoutModule, SharedModule],
+  imports: [BrowserModule, AppRoutingModule, FlexLayoutModule, SharedModule, StructureModule],
   providers: [{ provide: LOCALE_ID, useValue: 'fr' }, CustomBreakPointsProvider],
   bootstrap: [AppComponent],
 })
diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html
index 4f2ba48bc..a1abb68dc 100644
--- a/src/app/home/home.component.html
+++ b/src/app/home/home.component.html
@@ -1,5 +1,5 @@
 <div class="content-container">
   <div class="section-container">
-    <p>Home works!</p>
+    <app-structure></app-structure>
   </div>
 </div>
diff --git a/src/app/structure/components/card/card.component.html b/src/app/structure/components/card/card.component.html
new file mode 100644
index 000000000..8071bfcce
--- /dev/null
+++ b/src/app/structure/components/card/card.component.html
@@ -0,0 +1 @@
+<p>card wsdorks!</p>
diff --git a/src/app/structure/components/card/card.component.scss b/src/app/structure/components/card/card.component.scss
new file mode 100644
index 000000000..e69de29bb
diff --git a/src/app/structure/components/card/card.component.spec.ts b/src/app/structure/components/card/card.component.spec.ts
new file mode 100644
index 000000000..3093fd5a3
--- /dev/null
+++ b/src/app/structure/components/card/card.component.spec.ts
@@ -0,0 +1,25 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { CardComponent } from './card.component';
+
+describe('CardComponent', () => {
+  let component: CardComponent;
+  let fixture: ComponentFixture<CardComponent>;
+
+  beforeEach(async () => {
+    await TestBed.configureTestingModule({
+      declarations: [ CardComponent ]
+    })
+    .compileComponents();
+  });
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(CardComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});
diff --git a/src/app/structure/components/card/card.component.ts b/src/app/structure/components/card/card.component.ts
new file mode 100644
index 000000000..07a9ab07e
--- /dev/null
+++ b/src/app/structure/components/card/card.component.ts
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+  selector: 'app-card',
+  templateUrl: './card.component.html',
+  styleUrls: ['./card.component.scss']
+})
+export class CardComponent implements OnInit {
+
+  constructor() { }
+
+  ngOnInit(): void {
+  }
+
+}
diff --git a/src/app/structure/components/recherche/recherche.component.html b/src/app/structure/components/recherche/recherche.component.html
new file mode 100644
index 000000000..63c7b1a72
--- /dev/null
+++ b/src/app/structure/components/recherche/recherche.component.html
@@ -0,0 +1 @@
+<p>recherche works!</p>
diff --git a/src/app/structure/components/recherche/recherche.component.scss b/src/app/structure/components/recherche/recherche.component.scss
new file mode 100644
index 000000000..e69de29bb
diff --git a/src/app/structure/components/recherche/recherche.component.spec.ts b/src/app/structure/components/recherche/recherche.component.spec.ts
new file mode 100644
index 000000000..e38e4d4e8
--- /dev/null
+++ b/src/app/structure/components/recherche/recherche.component.spec.ts
@@ -0,0 +1,25 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { RechercheComponent } from './recherche.component';
+
+describe('RechercheComponent', () => {
+  let component: RechercheComponent;
+  let fixture: ComponentFixture<RechercheComponent>;
+
+  beforeEach(async () => {
+    await TestBed.configureTestingModule({
+      declarations: [ RechercheComponent ]
+    })
+    .compileComponents();
+  });
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(RechercheComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});
diff --git a/src/app/structure/components/recherche/recherche.component.ts b/src/app/structure/components/recherche/recherche.component.ts
new file mode 100644
index 000000000..b37a52c87
--- /dev/null
+++ b/src/app/structure/components/recherche/recherche.component.ts
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+  selector: 'app-recherche',
+  templateUrl: './recherche.component.html',
+  styleUrls: ['./recherche.component.scss']
+})
+export class RechercheComponent implements OnInit {
+
+  constructor() { }
+
+  ngOnInit(): void {
+  }
+
+}
diff --git a/src/app/structure/services/structure.service.spec.ts b/src/app/structure/services/structure.service.spec.ts
new file mode 100644
index 000000000..d44ef8feb
--- /dev/null
+++ b/src/app/structure/services/structure.service.spec.ts
@@ -0,0 +1,16 @@
+import { TestBed } from '@angular/core/testing';
+
+import { StructureService } from './structure.service';
+
+describe('StructureService', () => {
+  let service: StructureService;
+
+  beforeEach(() => {
+    TestBed.configureTestingModule({});
+    service = TestBed.inject(StructureService);
+  });
+
+  it('should be created', () => {
+    expect(service).toBeTruthy();
+  });
+});
diff --git a/src/app/structure/services/structure.service.ts b/src/app/structure/services/structure.service.ts
new file mode 100644
index 000000000..8a09d6adb
--- /dev/null
+++ b/src/app/structure/services/structure.service.ts
@@ -0,0 +1,9 @@
+import { Injectable } from '@angular/core';
+
+@Injectable({
+  providedIn: 'root'
+})
+export class StructureService {
+
+  constructor() { }
+}
diff --git a/src/app/structure/structure.component.html b/src/app/structure/structure.component.html
new file mode 100644
index 000000000..8688da6ce
--- /dev/null
+++ b/src/app/structure/structure.component.html
@@ -0,0 +1,2 @@
+<app-card></app-card>
+<app-recherche></app-recherche>
diff --git a/src/app/structure/structure.component.scss b/src/app/structure/structure.component.scss
new file mode 100644
index 000000000..e69de29bb
diff --git a/src/app/structure/structure.component.spec.ts b/src/app/structure/structure.component.spec.ts
new file mode 100644
index 000000000..47da9d53d
--- /dev/null
+++ b/src/app/structure/structure.component.spec.ts
@@ -0,0 +1,25 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { StructureComponent } from './structure.component';
+
+describe('StructureComponent', () => {
+  let component: StructureComponent;
+  let fixture: ComponentFixture<StructureComponent>;
+
+  beforeEach(async () => {
+    await TestBed.configureTestingModule({
+      declarations: [ StructureComponent ]
+    })
+    .compileComponents();
+  });
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(StructureComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});
diff --git a/src/app/structure/structure.component.ts b/src/app/structure/structure.component.ts
new file mode 100644
index 000000000..c74423ddc
--- /dev/null
+++ b/src/app/structure/structure.component.ts
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+  selector: 'app-structure',
+  templateUrl: './structure.component.html',
+  styleUrls: ['./structure.component.scss']
+})
+export class StructureComponent implements OnInit {
+
+  constructor() { }
+
+  ngOnInit(): void {
+  }
+
+}
diff --git a/src/app/structure/structure.module.ts b/src/app/structure/structure.module.ts
new file mode 100644
index 000000000..902f040cd
--- /dev/null
+++ b/src/app/structure/structure.module.ts
@@ -0,0 +1,12 @@
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { StructureComponent } from './structure.component';
+import { CardComponent } from './components/card/card.component';
+import { RechercheComponent } from './components/recherche/recherche.component';
+
+@NgModule({
+  declarations: [StructureComponent, CardComponent, RechercheComponent],
+  imports: [CommonModule],
+  exports: [StructureComponent],
+})
+export class StructureModule {}
-- 
GitLab