Merge branch 'dev' of https://github.com/RomainVgr/simpleat into dev
This commit is contained in:
commit
4049a0d8b1
15 changed files with 471 additions and 31 deletions
1
src/app/pages/admin-page/admin-page.component.html
Normal file
1
src/app/pages/admin-page/admin-page.component.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<app-add-restau></app-add-restau>
|
||||
0
src/app/pages/admin-page/admin-page.component.scss
Normal file
0
src/app/pages/admin-page/admin-page.component.scss
Normal file
25
src/app/pages/admin-page/admin-page.component.spec.ts
Normal file
25
src/app/pages/admin-page/admin-page.component.spec.ts
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { AdminPageComponent } from './admin-page.component';
|
||||
|
||||
describe('AdminPageComponent', () => {
|
||||
let component: AdminPageComponent;
|
||||
let fixture: ComponentFixture<AdminPageComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ AdminPageComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(AdminPageComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
23
src/app/pages/admin-page/admin-page.component.ts
Normal file
23
src/app/pages/admin-page/admin-page.component.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
||||
import { Router } from '@angular/router';
|
||||
import { ApiBackService } from 'src/app/services/api-back.service';
|
||||
import { Restaurant } from '../models/restaurant';
|
||||
|
||||
@Component({
|
||||
selector: 'app-admin-page',
|
||||
templateUrl: './admin-page.component.html',
|
||||
styleUrls: ['./admin-page.component.scss']
|
||||
})
|
||||
export class AdminPageComponent implements OnInit {
|
||||
|
||||
|
||||
constructor( ) {
|
||||
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
13
src/app/pages/models/restaurant.ts
Normal file
13
src/app/pages/models/restaurant.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
export interface Restaurant {
|
||||
id?:number;
|
||||
nom: string;
|
||||
adresse: string;
|
||||
prix?: number;
|
||||
latitude: string;
|
||||
longitude: string;
|
||||
telephone ?: string;
|
||||
website ?: string;
|
||||
aEmporter?: boolean;
|
||||
accesPMR?: boolean;
|
||||
surPlace?: boolean;
|
||||
}
|
||||
|
|
@ -31,6 +31,9 @@ export class RestoPageComponent implements OnInit {
|
|||
|
||||
})
|
||||
}
|
||||
console.log(this.apiBackService);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue