Skip to content

Commit

Permalink
add: components
Browse files Browse the repository at this point in the history
  • Loading branch information
felipesud committed Jul 14, 2023
1 parent d08a615 commit e0e5626
Show file tree
Hide file tree
Showing 25 changed files with 205 additions and 1 deletion.
14 changes: 13 additions & 1 deletion frontend/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,22 @@ import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { TempleListComponent } from './components/temple-list/temple-list.component';
import { TempleDetailsComponent } from './components/temple-details/temple-details.component';
import { TempleFormComponent } from './components/temple-form/temple-form.component';
import { SearchComponent } from './components/search/search.component';
import { NavbarComponent } from './components/navbar/navbar.component';
import { FooterComponent } from './components/footer/footer.component';

@NgModule({
declarations: [
AppComponent
AppComponent,
TempleListComponent,
TempleDetailsComponent,
TempleFormComponent,
SearchComponent,
NavbarComponent,
FooterComponent
],
imports: [
BrowserModule,
Expand Down
Empty file.
1 change: 1 addition & 0 deletions frontend/src/app/components/footer/footer.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>footer works!</p>
21 changes: 21 additions & 0 deletions frontend/src/app/components/footer/footer.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { FooterComponent } from './footer.component';

describe('FooterComponent', () => {
let component: FooterComponent;
let fixture: ComponentFixture<FooterComponent>;

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [FooterComponent]
});
fixture = TestBed.createComponent(FooterComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
10 changes: 10 additions & 0 deletions frontend/src/app/components/footer/footer.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-footer',
templateUrl: './footer.component.html',
styleUrls: ['./footer.component.css']
})
export class FooterComponent {

}
Empty file.
1 change: 1 addition & 0 deletions frontend/src/app/components/navbar/navbar.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>navbar works!</p>
21 changes: 21 additions & 0 deletions frontend/src/app/components/navbar/navbar.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { NavbarComponent } from './navbar.component';

describe('NavbarComponent', () => {
let component: NavbarComponent;
let fixture: ComponentFixture<NavbarComponent>;

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [NavbarComponent]
});
fixture = TestBed.createComponent(NavbarComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
10 changes: 10 additions & 0 deletions frontend/src/app/components/navbar/navbar.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-navbar',
templateUrl: './navbar.component.html',
styleUrls: ['./navbar.component.css']
})
export class NavbarComponent {

}
Empty file.
1 change: 1 addition & 0 deletions frontend/src/app/components/search/search.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>search works!</p>
21 changes: 21 additions & 0 deletions frontend/src/app/components/search/search.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { SearchComponent } from './search.component';

describe('SearchComponent', () => {
let component: SearchComponent;
let fixture: ComponentFixture<SearchComponent>;

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [SearchComponent]
});
fixture = TestBed.createComponent(SearchComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
10 changes: 10 additions & 0 deletions frontend/src/app/components/search/search.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-search',
templateUrl: './search.component.html',
styleUrls: ['./search.component.css']
})
export class SearchComponent {

}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>temple-details works!</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { TempleDetailsComponent } from './temple-details.component';

describe('TempleDetailsComponent', () => {
let component: TempleDetailsComponent;
let fixture: ComponentFixture<TempleDetailsComponent>;

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [TempleDetailsComponent]
});
fixture = TestBed.createComponent(TempleDetailsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-temple-details',
templateUrl: './temple-details.component.html',
styleUrls: ['./temple-details.component.css']
})
export class TempleDetailsComponent {

}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>temple-form works!</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { TempleFormComponent } from './temple-form.component';

describe('TempleFormComponent', () => {
let component: TempleFormComponent;
let fixture: ComponentFixture<TempleFormComponent>;

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [TempleFormComponent]
});
fixture = TestBed.createComponent(TempleFormComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
10 changes: 10 additions & 0 deletions frontend/src/app/components/temple-form/temple-form.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-temple-form',
templateUrl: './temple-form.component.html',
styleUrls: ['./temple-form.component.css']
})
export class TempleFormComponent {

}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>temple-list works!</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { TempleListComponent } from './temple-list.component';

describe('TempleListComponent', () => {
let component: TempleListComponent;
let fixture: ComponentFixture<TempleListComponent>;

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [TempleListComponent]
});
fixture = TestBed.createComponent(TempleListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
10 changes: 10 additions & 0 deletions frontend/src/app/components/temple-list/temple-list.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-temple-list',
templateUrl: './temple-list.component.html',
styleUrls: ['./temple-list.component.css']
})
export class TempleListComponent {

}

0 comments on commit e0e5626

Please sign in to comment.