--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
3 |
4 | # dependencies
5 | /node_modules
6 | /.pnp
7 | .pnp.js
8 |
9 | # typescript
10 | react-app-env.d.ts
11 |
12 | # production
13 | /build
14 |
15 | # misc
16 | .DS_Store
17 | .env.local
18 | .env.development.local
19 | .env.test.local
20 | .env.production.local
21 |
22 | npm-debug.log*
23 | yarn-debug.log*
24 | yarn-error.log*
--------------------------------------------------------------------------------
/src/services/authentication-service.ts:
--------------------------------------------------------------------------------
1 | export default class AuthenticationService {
2 |
3 | static isAuthenticated:boolean = false;
4 |
5 | static login(username: string, password: string): Promise
9 | {pokemon.name}
39 |{formatDate(pokemon.created)}
40 | {pokemon.types.map(type => ( 41 | {type} 42 | ))} 43 || Nom | 36 |{ pokemon.name } | 37 |
| Points de vie | 40 |{ pokemon.hp } | 41 |
| Dégâts | 44 |{ pokemon.cp } | 45 |
| Types | 48 |49 | {pokemon.types.map(type => ( 50 | {type} 51 | ))} | 52 |
| Date de création | 55 |{formatDate(pokemon.created)} | 56 |