This commit is contained in:
henrydays 2018-09-15 21:46:49 +01:00
parent 12389f58d1
commit 4896e49278
89 changed files with 115 additions and 121 deletions

View File

@ -48,14 +48,12 @@ namespace api.Controllers
{
var userToCreate = _mapper.Map<User>(userToRegister);
var result = await _userManager.CreateAsync(userToCreate, userToRegister.password);
if (result.Succeeded)
{
return StatusCode(201);
}
return BadRequest(result.Errors);
}
@ -63,7 +61,6 @@ namespace api.Controllers
public async Task<IActionResult> Login(UserForLoginDto UserForLoginDto)
{
var user = await _userManager.FindByNameAsync(UserForLoginDto.Username);
var result = await _signInManager.CheckPasswordSignInAsync(user, UserForLoginDto.Password, false);
@ -123,8 +120,5 @@ namespace api.Controllers
return tokenHandler.WriteToken(token);
}
}
}

View File

@ -40,15 +40,17 @@ namespace api.Controllers
return Ok(usersToReturn);
}
[HttpGet("{id}")]
public async Task<IActionResult> GetUser(int id)
{
var user = await _repo.GetUser(id);
var userToReturn = _mapper.Map<UserForDetailedDto>(user);
return Ok(userToReturn);
}
[HttpPut("{id}")]
public async Task<IActionResult> UpdateUser(int id, UserForUpdateDto userForUpdate){
@ -69,7 +71,7 @@ namespace api.Controllers
[Authorize]
//adiciona uma nova role à base de dados
[HttpPost("addRole")]
public async Task<IActionResult> addRole( Role role) {
public async Task<IActionResult> addRole( Role role) {
_roleManager.CreateAsync(role).Wait();

View File

@ -29,7 +29,6 @@ namespace api.Data
}
public async Task<User> Register(User user, string Password)
{
await Context.Users.AddAsync(user);
@ -39,8 +38,6 @@ namespace api.Data
return user;
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

0
backoffice/.angular-cli.json Normal file → Executable file
View File

0
backoffice/.editorconfig Normal file → Executable file
View File

0
backoffice/.gitignore vendored Normal file → Executable file
View File

0
backoffice/README.md Normal file → Executable file
View File

0
backoffice/e2e/app.e2e-spec.ts Normal file → Executable file
View File

0
backoffice/e2e/app.po.ts Normal file → Executable file
View File

0
backoffice/e2e/tsconfig.e2e.json Normal file → Executable file
View File

0
backoffice/karma.conf.js Normal file → Executable file
View File

214
backoffice/package-lock.json generated Normal file → Executable file
View File

@ -285,9 +285,9 @@
}
},
"acorn": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz",
"integrity": "sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==",
"version": "5.7.3",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz",
"integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==",
"dev": true
},
"acorn-dynamic-import": {
@ -385,6 +385,11 @@
"integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=",
"dev": true
},
"angular-jwt": {
"version": "0.1.10",
"resolved": "https://registry.npmjs.org/angular-jwt/-/angular-jwt-0.1.10.tgz",
"integrity": "sha512-o+V/OzwNGpS30QmgP7DJWTdBJ2BMDut481qqB72sM0L59dkO6TNjRV7qubQCntGqGe98h9vObweQUVYTfEO4vg=="
},
"angular2-jwt": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/angular2-jwt/-/angular2-jwt-0.2.3.tgz",
@ -665,9 +670,9 @@
"dev": true
},
"atob": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/atob/-/atob-2.1.1.tgz",
"integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=",
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz",
"integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==",
"dev": true
},
"autoprefixer": {
@ -1335,9 +1340,9 @@
}
},
"caniuse-db": {
"version": "1.0.30000877",
"resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000877.tgz",
"integrity": "sha512-9RcqvE8HYgdZZzFW6xBmj/CeCaTyCJdUhgkueBCq47AK//w/Yzlg0zcfV1GTlh3jyYEbresGfY2vDEG/AaK/dQ==",
"version": "1.0.30000885",
"resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000885.tgz",
"integrity": "sha512-Hy1a+UIXooG+tRlt3WnT9avMf+l999bR9J1MqlQdYKgbsYjKxV4a4rgcmiyMmdCLPBFsiRoDxdl9tnNyaq2RXw==",
"dev": true
},
"caseless": {
@ -1490,12 +1495,20 @@
}
},
"clean-css": {
"version": "4.1.11",
"resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.1.11.tgz",
"integrity": "sha1-Ls3xRaujj1R0DybO/Q/z4D4SXWo=",
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.1.tgz",
"integrity": "sha512-4ZxI6dy4lrY6FHzfiy1aEOXgu4LIsW2MhwG0VBKdcoGoH/XLFgaHSdLTGr4O8Be6A8r3MOphEiI8Gc1n0ecf3g==",
"dev": true,
"requires": {
"source-map": "0.5.x"
"source-map": "~0.6.0"
},
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
"dev": true
}
}
},
"cli-cursor": {
@ -1680,9 +1693,9 @@
}
},
"commander": {
"version": "2.16.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.16.0.tgz",
"integrity": "sha512-sVXqklSaotK9at437sFlFpyOcJonxe0yST/AG9DkQKUdIE6IqGIMv4SfAQSKaJbSdVEJYItASCrBiVQHq1HQew==",
"version": "2.17.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz",
"integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==",
"dev": true
},
"common-tags": {
@ -1820,10 +1833,13 @@
"dev": true
},
"convert-source-map": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz",
"integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=",
"dev": true
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz",
"integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==",
"dev": true,
"requires": {
"safe-buffer": "~5.1.1"
}
},
"cookie": {
"version": "0.3.1",
@ -2293,9 +2309,9 @@
}
},
"detect-node": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.3.tgz",
"integrity": "sha1-ogM8CcyOFY03dI+951B4Mr1s4Sc=",
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.4.tgz",
"integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==",
"dev": true
},
"di": {
@ -2476,9 +2492,9 @@
"dev": true
},
"electron-to-chromium": {
"version": "1.3.58",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.58.tgz",
"integrity": "sha512-AGJxlBEn2wOohxqWZkISVsOjZueKTQljfEODTDSEiMqSpH0S+xzV+/5oEM9AGaqhu7DzrpKOgU7ocQRjj0nJmg==",
"version": "1.3.67",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.67.tgz",
"integrity": "sha512-h3zEBLdHvsKfaXv1SHAtykJyNtwYFEKkrWGSFyW1BzGgPQ4ykAzD5Hd8C5MZGTAEhkCKmtyIwYUrapsI0xfKww==",
"dev": true
},
"elliptic": {
@ -4379,9 +4395,9 @@
"dev": true
},
"heimdalljs": {
"version": "0.2.5",
"resolved": "https://registry.npmjs.org/heimdalljs/-/heimdalljs-0.2.5.tgz",
"integrity": "sha1-aqVDCO7nk7ZCz/nPlHgURfN3MKw=",
"version": "0.2.6",
"resolved": "https://registry.npmjs.org/heimdalljs/-/heimdalljs-0.2.6.tgz",
"integrity": "sha512-o9bd30+5vLBvBtzCPwwGqpry2+n0Hi6H1+qwt6y+0kwRHGGF8TFIhJPmnuM0xO97zaKrDZMwO/V56fAnn8m/tA==",
"dev": true,
"requires": {
"rsvp": "~3.2.1"
@ -4396,13 +4412,13 @@
}
},
"heimdalljs-logger": {
"version": "0.1.9",
"resolved": "https://registry.npmjs.org/heimdalljs-logger/-/heimdalljs-logger-0.1.9.tgz",
"integrity": "sha1-12raTkW3u294b8nAEKaOsuL68XY=",
"version": "0.1.10",
"resolved": "https://registry.npmjs.org/heimdalljs-logger/-/heimdalljs-logger-0.1.10.tgz",
"integrity": "sha512-pO++cJbhIufVI/fmB/u2Yty3KJD0TqNPecehFae0/eps0hkZ3b4Zc/PezUMOpYuHFQbA7FxHZxa305EhmjLj4g==",
"dev": true,
"requires": {
"debug": "^2.2.0",
"heimdalljs": "^0.2.0"
"heimdalljs": "^0.2.6"
}
},
"hmac-drbg": {
@ -4494,14 +4510,14 @@
"dev": true
},
"html-minifier": {
"version": "3.5.19",
"resolved": "https://registry.npmjs.org/html-minifier/-/html-minifier-3.5.19.tgz",
"integrity": "sha512-Qr2JC9nsjK8oCrEmuB430ZIA8YWbF3D5LSjywD75FTuXmeqacwHgIM8wp3vHYzzPbklSjp53RdmDuzR4ub2HzA==",
"version": "3.5.20",
"resolved": "https://registry.npmjs.org/html-minifier/-/html-minifier-3.5.20.tgz",
"integrity": "sha512-ZmgNLaTp54+HFKkONyLFEfs5dd/ZOtlquKaTnqIWFmx3Av5zG6ZPcV2d0o9XM2fXOTxxIf6eDcwzFFotke/5zA==",
"dev": true,
"requires": {
"camel-case": "3.0.x",
"clean-css": "4.1.x",
"commander": "2.16.x",
"clean-css": "4.2.x",
"commander": "2.17.x",
"he": "1.1.x",
"param-case": "2.1.x",
"relateurl": "0.2.x",
@ -4756,9 +4772,9 @@
}
},
"iconv-lite": {
"version": "0.4.23",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz",
"integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==",
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
"dev": true,
"requires": {
"safer-buffer": ">= 2.1.2 < 3"
@ -4803,9 +4819,9 @@
"dev": true
},
"supports-color": {
"version": "5.4.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz",
"integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==",
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
"dev": true,
"requires": {
"has-flag": "^3.0.0"
@ -5552,9 +5568,9 @@
"integrity": "sha512-Ubldcmxp5np52/ENotGxlLe6aGMvmF4R8S6tZjsP6Knsaxd/xp3Zrh50cG93lR6nPXyUFwzN3ZSOQI0wRJNdGg=="
},
"js-base64": {
"version": "2.4.8",
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.4.8.tgz",
"integrity": "sha512-hm2nYpDrwoO/OzBhdcqs/XGT6XjSuSSCVEpia+Kl2J6x4CYt5hISlVL/AYU1khoDXv0AQVgxtdJySb9gjAn56Q==",
"version": "2.4.9",
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.4.9.tgz",
"integrity": "sha512-xcinL3AuDJk7VSzsHgb9DvvIXayBbadtMZ4HFPx8rUszbW1MuNMlwYVC4zzCZ6e1sqZpnNS5ZFYOhXqA39T7LQ==",
"dev": true
},
"js-tokens": {
@ -5968,9 +5984,9 @@
"dev": true
},
"source-map-support": {
"version": "0.5.8",
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.8.tgz",
"integrity": "sha512-WqAEWPdb78u25RfKzOF0swBpY0dKrNdjc4GvLwm7ScX/o9bj8Eh/YL8mcMhBHYDGl87UkkSXDOFnW4G7GhWhGg==",
"version": "0.5.9",
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.9.tgz",
"integrity": "sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA==",
"dev": true,
"requires": {
"buffer-from": "^1.0.0",
@ -7552,9 +7568,9 @@
}
},
"portfinder": {
"version": "1.0.16",
"resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.16.tgz",
"integrity": "sha512-icBXCFQxzlK2PMepOM0QeEdPPFSLAaXXeuKOv5AClJlMy1oVCBrkDGJ12IZYesI/BF8mpeVco3vRCmgeBb4+hw==",
"version": "1.0.17",
"resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.17.tgz",
"integrity": "sha512-syFcRIRzVI1BoEFOCaAiizwDolh1S1YXSodsVhncbhjzjZQulhczNRbqnUl9N31Q4dKGOXsNDqxC2BWBgSMqeQ==",
"dev": true,
"requires": {
"async": "^1.5.2",
@ -7859,9 +7875,9 @@
"dev": true
},
"supports-color": {
"version": "5.4.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz",
"integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==",
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
"dev": true,
"requires": {
"has-flag": "^3.0.0"
@ -7903,9 +7919,9 @@
"dev": true
},
"supports-color": {
"version": "5.4.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz",
"integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==",
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
"dev": true,
"requires": {
"has-flag": "^3.0.0"
@ -7947,9 +7963,9 @@
"dev": true
},
"supports-color": {
"version": "5.4.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz",
"integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==",
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
"dev": true,
"requires": {
"has-flag": "^3.0.0"
@ -7991,9 +8007,9 @@
"dev": true
},
"supports-color": {
"version": "5.4.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz",
"integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==",
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
"dev": true,
"requires": {
"has-flag": "^3.0.0"
@ -8957,9 +8973,9 @@
}
},
"rxjs": {
"version": "5.5.11",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.11.tgz",
"integrity": "sha512-3bjO7UwWfA2CV7lmwYMBzj4fQ6Cq+ftHc2MvUe+WMS7wcdJ1LosDWmdjPQanYp2dBRj572p7PeU81JUxHKOcBA==",
"version": "5.5.12",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.12.tgz",
"integrity": "sha512-xx2itnL5sBbqeeiVgNPVuQQ1nC8Jp2WfNJhXWHmElW9YmrpS9UVnNzhP3EH3HFqexO5Tlp8GhYY+WEcqcVMvGw==",
"requires": {
"symbol-observable": "1.0.1"
}
@ -9664,9 +9680,9 @@
}
},
"spdx-license-ids": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz",
"integrity": "sha512-2+EPwgbnmOIl8HjGBXXMd9NAu02vLjOO1nWw4kmeRDFyHn+M/ETfHxQUK0oXg8ctgVnl9t3rosNVsZ1jG61nDA==",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.1.tgz",
"integrity": "sha512-TfOfPcYGBB5sDuPn3deByxPhmfegAhpDYKSOXZQN81Oyrrif8ZCodOLzK3AesELnCx03kikhyDwh0pfvvQvF8w==",
"dev": true
},
"spdy": {
@ -9798,9 +9814,9 @@
"dev": true
},
"stdout-stream": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.0.tgz",
"integrity": "sha1-osfIWH5U2UJ+qe2zrD8s1SLfN4s=",
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz",
"integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==",
"dev": true,
"optional": true,
"requires": {
@ -10157,9 +10173,9 @@
"dev": true
},
"time-stamp": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-2.0.1.tgz",
"integrity": "sha512-KUnkvOWC3C+pEbwE/0u3CcmNpGCDqkYGYZOphe1QFxApYQkJ5g195TDBjgZch/zG6chU1NcabLwnM7BCpWAzTQ==",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-2.1.0.tgz",
"integrity": "sha512-lJbq6KsFhZJtN3fPUVje1tq/hHsJOKUUcUj/MGCiQR6qWBDcyi5kxL9J7/RnaEChCn0+L/DUN2WvemDrkk4i3Q==",
"dev": true
},
"timers-browserify": {
@ -10269,29 +10285,13 @@
"dev": true
},
"true-case-path": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.2.tgz",
"integrity": "sha1-fskRMJJHZsf1c74wIMNPj9/QDWI=",
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.3.tgz",
"integrity": "sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew==",
"dev": true,
"optional": true,
"requires": {
"glob": "^6.0.4"
},
"dependencies": {
"glob": {
"version": "6.0.4",
"resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz",
"integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=",
"dev": true,
"optional": true,
"requires": {
"inflight": "^1.0.4",
"inherits": "2",
"minimatch": "2 || 3",
"once": "^1.3.0",
"path-is-absolute": "^1.0.0"
}
}
"glob": "^7.1.2"
}
},
"ts-node": {
@ -10440,12 +10440,12 @@
"dev": true
},
"uglify-js": {
"version": "3.4.7",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.7.tgz",
"integrity": "sha512-J0M2i1mQA+ze3EdN9SBi751DNdAXmeFLfJrd/MDIkRc3G3Gbb9OPVSx7GIQvVwfWxQARcYV2DTxIkMyDAk3o9Q==",
"version": "3.4.9",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.9.tgz",
"integrity": "sha512-8CJsbKOtEbnJsTyv6LE6m6ZKniqMiFWmm9sRbopbkGs3gMPPfd3Fh8iIA4Ykv5MgaTbqHr4BaoGLJLZNhsrW1Q==",
"dev": true,
"requires": {
"commander": "~2.16.0",
"commander": "~2.17.1",
"source-map": "~0.6.1"
},
"dependencies": {
@ -10817,9 +10817,9 @@
"dev": true
},
"walk-sync": {
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/walk-sync/-/walk-sync-0.3.2.tgz",
"integrity": "sha512-FMB5VqpLqOCcqrzA9okZFc0wq0Qbmdm396qJxvQZhDpyu0W95G9JCmp74tx7iyYnyOcBtUuKJsgIKAqjozvmmQ==",
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/walk-sync/-/walk-sync-0.3.3.tgz",
"integrity": "sha512-jQgTHmCazUngGqvHZFlr30u2VLKEKErBMLFe+fBl5mn4rh9aI/QVRog8PT1hv2vaOu4EBwigfmpRTyZrbnpRVA==",
"dev": true,
"requires": {
"ensure-posix-path": "^1.0.0",
@ -11264,9 +11264,9 @@
}
},
"webpack-sources": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.1.0.tgz",
"integrity": "sha512-aqYp18kPphgoO5c/+NaUvEeACtZjMESmDChuD3NBciVpah3XpMEU9VAAtIaB1BsfJWWTSdv8Vv1m3T0aRk2dUw==",
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.2.0.tgz",
"integrity": "sha512-9BZwxR85dNsjWz3blyxdOhTgtnQvv3OEs5xofI0wPYTwu5kaWxS08UuD1oI7WLBLpRO+ylf0ofnXLXWmGb2WMw==",
"dev": true,
"requires": {
"source-list-map": "^2.0.0",

5
backoffice/package.json Normal file → Executable file
View File

@ -23,14 +23,15 @@
"@angular/router": "^4.2.4",
"@auth0/angular-jwt": "^2.0.0",
"@reactivex/rxjs": "^6.0.0-beta.1",
"angular-jwt": "^0.1.10",
"angular2-jwt": "^0.2.3",
"core-js": "^2.4.1",
"ngx-admin-lte": "^2.0.0-beta.11",
"rxjs": "^5.5.11",
"rxjs": "^5.5.12",
"zone.js": "^0.8.14"
},
"devDependencies": {
"@angular/cli": "1.3.2",
"@angular/cli": "^1.3.2",
"@angular/compiler-cli": "^4.2.4",
"@angular/language-service": "^4.2.4",
"@types/jasmine": "~2.5.53",

0
backoffice/protractor.conf.js Normal file → Executable file
View File

0
backoffice/src/app/admin/admin.component.css Normal file → Executable file
View File

0
backoffice/src/app/admin/admin.component.html Normal file → Executable file
View File

0
backoffice/src/app/admin/admin.component.spec.ts Normal file → Executable file
View File

0
backoffice/src/app/admin/admin.component.ts Normal file → Executable file
View File

0
backoffice/src/app/app.component.css Normal file → Executable file
View File

0
backoffice/src/app/app.component.html Normal file → Executable file
View File

0
backoffice/src/app/app.component.spec.ts Normal file → Executable file
View File

0
backoffice/src/app/app.component.ts Normal file → Executable file
View File

0
backoffice/src/app/app.module.ts Normal file → Executable file
View File

0
backoffice/src/app/dashboard/dashboard.component.css Normal file → Executable file
View File

0
backoffice/src/app/dashboard/dashboard.component.html Normal file → Executable file
View File

View File

0
backoffice/src/app/dashboard/dashboard.component.ts Normal file → Executable file
View File

View File

0
backoffice/src/app/directives/hasRole.directive.ts Normal file → Executable file
View File

0
backoffice/src/app/footer/footer.component.css Normal file → Executable file
View File

0
backoffice/src/app/footer/footer.component.html Normal file → Executable file
View File

0
backoffice/src/app/footer/footer.component.spec.ts Normal file → Executable file
View File

0
backoffice/src/app/footer/footer.component.ts Normal file → Executable file
View File

0
backoffice/src/app/guards/auth.guard.ts Normal file → Executable file
View File

View File

0
backoffice/src/app/home/home.component.css Normal file → Executable file
View File

0
backoffice/src/app/home/home.component.html Normal file → Executable file
View File

0
backoffice/src/app/home/home.component.spec.ts Normal file → Executable file
View File

0
backoffice/src/app/home/home.component.ts Normal file → Executable file
View File

0
backoffice/src/app/login/login.component.css Normal file → Executable file
View File

0
backoffice/src/app/login/login.component.html Normal file → Executable file
View File

0
backoffice/src/app/login/login.component.spec.ts Normal file → Executable file
View File

0
backoffice/src/app/login/login.component.ts Normal file → Executable file
View File

0
backoffice/src/app/models/photo.ts Normal file → Executable file
View File

0
backoffice/src/app/models/user.ts Normal file → Executable file
View File

0
backoffice/src/app/navigation/navigation.component.css Normal file → Executable file
View File

View File

View File

0
backoffice/src/app/navigation/navigation.component.ts Normal file → Executable file
View File

0
backoffice/src/app/profile/profile.component.css Normal file → Executable file
View File

0
backoffice/src/app/profile/profile.component.html Normal file → Executable file
View File

0
backoffice/src/app/profile/profile.component.spec.ts Normal file → Executable file
View File

0
backoffice/src/app/profile/profile.component.ts Normal file → Executable file
View File

0
backoffice/src/app/routes.ts Normal file → Executable file
View File

0
backoffice/src/app/services/auth.service.spec.ts Normal file → Executable file
View File

0
backoffice/src/app/services/auth.service.ts Normal file → Executable file
View File

0
backoffice/src/app/services/error.interceptor.ts Normal file → Executable file
View File

0
backoffice/src/app/services/user.service.spec.ts Normal file → Executable file
View File

0
backoffice/src/app/services/user.service.ts Normal file → Executable file
View File

0
backoffice/src/app/users/edit/edit.component.css Normal file → Executable file
View File

0
backoffice/src/app/users/edit/edit.component.html Normal file → Executable file
View File

0
backoffice/src/app/users/edit/edit.component.spec.ts Normal file → Executable file
View File

0
backoffice/src/app/users/edit/edit.component.ts Normal file → Executable file
View File

0
backoffice/src/app/users/user/user.component.css Normal file → Executable file
View File

0
backoffice/src/app/users/user/user.component.html Normal file → Executable file
View File

0
backoffice/src/app/users/user/user.component.spec.ts Normal file → Executable file
View File

0
backoffice/src/app/users/user/user.component.ts Normal file → Executable file
View File

View File

View File

View File

View File

0
backoffice/src/environments/environment.prod.ts Normal file → Executable file
View File

0
backoffice/src/environments/environment.ts Normal file → Executable file
View File

0
backoffice/src/favicon.ico Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

0
backoffice/src/index.html Normal file → Executable file
View File

0
backoffice/src/main.ts Normal file → Executable file
View File

0
backoffice/src/polyfills.ts Normal file → Executable file
View File

0
backoffice/src/styles.css Normal file → Executable file
View File

0
backoffice/src/test.ts Normal file → Executable file
View File

0
backoffice/src/tsconfig.app.json Normal file → Executable file
View File

0
backoffice/src/tsconfig.spec.json Normal file → Executable file
View File

0
backoffice/src/typings.d.ts vendored Normal file → Executable file
View File

0
backoffice/tsconfig.json Normal file → Executable file
View File

0
backoffice/tslint.json Normal file → Executable file
View File