diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index f185c47..53c95df 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,16 +1,17 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { HomeComponent } from './home/home.component'; -import { ContactComponent } from './contact/contact.component'; -import { SymptomeComponent } from './symptome/symptome.component'; -import { BlogComponent } from './blog/blog.component'; + +import { HomeComponent } from './component/home/home.component'; +import { SymptomsComponent } from './component/symptoms/symptoms.component'; +import { BlogsComponent } from './component/blogs/blogs.component'; +import { ContactComponent } from './component/contact/contact.component'; const routes: Routes = [ { path: '', component: HomeComponent }, { path: 'home', component: HomeComponent }, - { path: 'contacts', component: ContactComponent }, - { path: 'symptômes', component: SymptomeComponent }, - { path: 'blog', component: BlogComponent }, + { path: 'symptoms', component: SymptomsComponent }, + { path: 'blogs', component: BlogsComponent }, + { path: 'contact', component: ContactComponent }, ]; @NgModule({ diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 70b0e22..d878e3d 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -4,23 +4,43 @@ import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { NavBarComponent } from './nav-bar/nav-bar.component'; -import { HomeComponent } from './home/home.component'; -import { FooterComponent } from './footer/footer.component'; -import { SymptomeComponent } from './symptome/symptome.component'; -import { ContactComponent } from './contact/contact.component'; -import { BlogComponent } from './blog/blog.component'; + +/* Essential */ +import { NavBarComponent } from './component/essential/nav-bar/nav-bar.component'; +import { FooterComponent } from './component/essential/footer/footer.component'; + +/* Home */ +import { HomeComponent } from './component/home/home.component'; +import { HomeAccueilComponent } from './component/home/all/home-accueil/home-accueil.component'; +import { HomeSymptomsComponent } from './component/home/all/home-symptoms/home-symptoms.component'; + +/* Symptoms */ +import { SymptomsComponent } from './component/symptoms/symptoms.component'; + +/* Blogs */ +import { BlogsComponent } from './component/blogs/blogs.component'; + +/* Contact */ +import { ContactComponent } from './component/contact/contact.component'; + @NgModule({ declarations: [ AppComponent, + /* Essential */ NavBarComponent, - HomeComponent, FooterComponent, - SymptomeComponent, - ContactComponent, - BlogComponent + /* Home */ + HomeComponent, + HomeAccueilComponent, + HomeSymptomsComponent, + /* Symptoms */ + SymptomsComponent, + /* Blogs */ + BlogsComponent, + /* Contact */ + ContactComponent ], imports: [ BrowserModule, diff --git a/src/app/blog/blog.component.html b/src/app/blog/blog.component.html deleted file mode 100644 index ff0c151..0000000 --- a/src/app/blog/blog.component.html +++ /dev/null @@ -1 +0,0 @@ -
blog works!
diff --git a/src/app/blog/blog.component.ts b/src/app/blog/blog.component.ts deleted file mode 100644 index 65310b0..0000000 --- a/src/app/blog/blog.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-blog', - standalone: false, - templateUrl: './blog.component.html', - styleUrl: './blog.component.css' -}) -export class BlogComponent { - -} diff --git a/src/app/blog/blog.component.css b/src/app/component/blogs/blogs.component.css similarity index 100% rename from src/app/blog/blog.component.css rename to src/app/component/blogs/blogs.component.css diff --git a/src/app/component/blogs/blogs.component.html b/src/app/component/blogs/blogs.component.html new file mode 100644 index 0000000..11235a6 --- /dev/null +++ b/src/app/component/blogs/blogs.component.html @@ -0,0 +1 @@ +blogs works!
diff --git a/src/app/blog/blog.component.spec.ts b/src/app/component/blogs/blogs.component.spec.ts similarity index 55% rename from src/app/blog/blog.component.spec.ts rename to src/app/component/blogs/blogs.component.spec.ts index ac14310..86eb3a5 100644 --- a/src/app/blog/blog.component.spec.ts +++ b/src/app/component/blogs/blogs.component.spec.ts @@ -1,18 +1,18 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { BlogComponent } from './blog.component'; +import { BlogsComponent } from './blogs.component'; -describe('BlogComponent', () => { - let component: BlogComponent; - let fixture: ComponentFixtureLorem, ipsum dolor, sit amet consectetur adipisicing elit...
+ +
+ Lorem, ipsum dolor sit amet consectetur...
+{{ symptom.description }}
+symptoms works!
diff --git a/src/app/symptome/symptome.component.spec.ts b/src/app/component/symptoms/symptoms.component.spec.ts similarity index 53% rename from src/app/symptome/symptome.component.spec.ts rename to src/app/component/symptoms/symptoms.component.spec.ts index d1e0d3e..8c0faa0 100644 --- a/src/app/symptome/symptome.component.spec.ts +++ b/src/app/component/symptoms/symptoms.component.spec.ts @@ -1,18 +1,18 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { SymptomeComponent } from './symptome.component'; +import { SymptomsComponent } from './symptoms.component'; -describe('SymptomeComponent', () => { - let component: SymptomeComponent; - let fixture: ComponentFixtureLorem, ipsum dolor, sit amet consectetur adipisicing elit...
- -
- Lorem, ipsum dolor sit amet consectetur...
-
- Lorem ipsum dolor sit amet...
-
- Lorem ipsum dolor sit amet...
-
- Lorem ipsum dolor sit amet...
-
- Lorem ipsum dolor sit amet...
-symptome works!
diff --git a/src/app/symptome/symptome.component.ts b/src/app/symptome/symptome.component.ts deleted file mode 100644 index c8e9850..0000000 --- a/src/app/symptome/symptome.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-symptome', - standalone: false, - templateUrl: './symptome.component.html', - styleUrl: './symptome.component.css' -}) -export class SymptomeComponent { - -} diff --git a/tsconfig.json b/tsconfig.json index 5525117..1686a50 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,11 @@ "moduleResolution": "bundler", "importHelpers": true, "target": "ES2022", - "module": "ES2022" + "module": "ES2022", + "baseUrl": "./src", + "paths": { + "@services/*": ["app/service/*"] + } }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false,