page api testing
This commit is contained in:
parent
04b7cb7003
commit
603368a14c
5 changed files with 88 additions and 0 deletions
|
@ -3,6 +3,7 @@ import {ColorsPage} from './pages/colors-page/colors-page';
|
|||
import {AirwatchDemo} from './pages/airwatch-demo/airwatch-demo';
|
||||
import {Csc} from './pages/csc/csc';
|
||||
import {LayoutDemo} from './pages/layout-demo/layout-demo';
|
||||
import {TestingApi} from './pages/testing-api/testing-api';
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
|
@ -29,6 +30,10 @@ export const routes: Routes = [
|
|||
path: 'airwatch',
|
||||
component: AirwatchDemo,
|
||||
},
|
||||
{
|
||||
path: 'api-testing',
|
||||
component: TestingApi,
|
||||
},
|
||||
{
|
||||
path: 'csc',
|
||||
component: Csc,
|
||||
|
|
22
old-sae-airwatch/src/app/pages/testing-api/testing-api.html
Normal file
22
old-sae-airwatch/src/app/pages/testing-api/testing-api.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<div id="testingApiLand">
|
||||
|
||||
<h1>Test d'api</h1>
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
Tester les actions de l'api
|
||||
|
||||
<br>
|
||||
<button class="button">
|
||||
appel de login
|
||||
</button>
|
||||
<br>
|
||||
<button class="button">
|
||||
envoi de message
|
||||
</button>
|
||||
<br>
|
||||
<button class="button">
|
||||
envoi de fichier
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
27
old-sae-airwatch/src/app/pages/testing-api/testing-api.scss
Normal file
27
old-sae-airwatch/src/app/pages/testing-api/testing-api.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
#testingApiLand {
|
||||
margin: 50px auto;
|
||||
width: 800px;
|
||||
background: #c2d1dc;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.button {
|
||||
border: 1px solid #005AA2;
|
||||
color: #005AA2;
|
||||
text-align: center;
|
||||
font-size: 20px;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
line-height: 100px;
|
||||
background: white;
|
||||
padding: 16px 40px;
|
||||
border-radius: 10px;
|
||||
margin-top: 6px;
|
||||
margin-bottom: 6px;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background: #005AA2;
|
||||
color: white;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { TestingApi } from './testing-api';
|
||||
|
||||
describe('TestingApi', () => {
|
||||
let component: TestingApi;
|
||||
let fixture: ComponentFixture<TestingApi>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [TestingApi]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(TestingApi);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
11
old-sae-airwatch/src/app/pages/testing-api/testing-api.ts
Normal file
11
old-sae-airwatch/src/app/pages/testing-api/testing-api.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-testing-api',
|
||||
imports: [],
|
||||
templateUrl: './testing-api.html',
|
||||
styleUrl: './testing-api.scss'
|
||||
})
|
||||
export class TestingApi {
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue