Skip to content
Snippets Groups Projects
Commit 28d00e19 authored by migudel's avatar migudel :speech_balloon:
Browse files

Merge branch 'develop' of https://gitlab.inf.uva.es/migudel/dbcs into develop

parents b1ba2eb6 b4229552
Branches
Tags
1 merge request!36Develop
...@@ -56,6 +56,17 @@ ...@@ -56,6 +56,17 @@
], ],
"outputHashing": "all" "outputHashing": "all"
}, },
"monolith": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.monolith.ts"
}
],
"optimization": false,
"extractLicenses": false,
"sourceMap": true
},
"development": { "development": {
"optimization": false, "optimization": false,
"extractLicenses": false, "extractLicenses": false,
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
"@angular/ssr": "^18.2.7", "@angular/ssr": "^18.2.7",
"@ng-bootstrap/ng-bootstrap": "^17.0.1", "@ng-bootstrap/ng-bootstrap": "^17.0.1",
"@popperjs/core": "^2.11.8", "@popperjs/core": "^2.11.8",
"bootstrap": "^3.4.0", "bootstrap": "^5.3.3",
"express": "^4.18.2", "express": "^4.18.2",
"jquery": "^3.4.1", "jquery": "^3.4.1",
"jwt-decode": "^4.0.0", "jwt-decode": "^4.0.0",
...@@ -5469,12 +5469,21 @@ ...@@ -5469,12 +5469,21 @@
"license": "ISC" "license": "ISC"
}, },
"node_modules/bootstrap": { "node_modules/bootstrap": {
"version": "3.4.1", "version": "5.3.3",
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-3.4.1.tgz", "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.3.tgz",
"integrity": "sha512-yN5oZVmRCwe5aKwzRj6736nSmKDX7pLYwsXiCj/EYmo16hODaBiT4En5btW/jhBF/seV+XMx3aYwukYC3A49DA==", "integrity": "sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg==",
"license": "MIT", "funding": [
"engines": { {
"node": ">=6" "type": "github",
"url": "https://github.com/sponsors/twbs"
},
{
"type": "opencollective",
"url": "https://opencollective.com/bootstrap"
}
],
"peerDependencies": {
"@popperjs/core": "^2.11.8"
} }
}, },
"node_modules/brace-expansion": { "node_modules/brace-expansion": {
...@@ -7134,10 +7143,9 @@ ...@@ -7134,10 +7143,9 @@
"license": "Apache-2.0" "license": "Apache-2.0"
}, },
"node_modules/express": { "node_modules/express": {
"version": "4.21.1", "version": "4.21.2",
"resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz", "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz",
"integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==", "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
"license": "MIT",
"dependencies": { "dependencies": {
"accepts": "~1.3.8", "accepts": "~1.3.8",
"array-flatten": "1.1.1", "array-flatten": "1.1.1",
...@@ -7158,7 +7166,7 @@ ...@@ -7158,7 +7166,7 @@
"methods": "~1.1.2", "methods": "~1.1.2",
"on-finished": "2.4.1", "on-finished": "2.4.1",
"parseurl": "~1.3.3", "parseurl": "~1.3.3",
"path-to-regexp": "0.1.10", "path-to-regexp": "0.1.12",
"proxy-addr": "~2.0.7", "proxy-addr": "~2.0.7",
"qs": "6.13.0", "qs": "6.13.0",
"range-parser": "~1.2.1", "range-parser": "~1.2.1",
...@@ -7173,6 +7181,10 @@ ...@@ -7173,6 +7181,10 @@
}, },
"engines": { "engines": {
"node": ">= 0.10.0" "node": ">= 0.10.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
} }
}, },
"node_modules/express/node_modules/debug": { "node_modules/express/node_modules/debug": {
...@@ -9927,16 +9939,15 @@ ...@@ -9927,16 +9939,15 @@
} }
}, },
"node_modules/nanoid": { "node_modules/nanoid": {
"version": "3.3.7", "version": "3.3.8",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz",
"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",
"funding": [ "funding": [
{ {
"type": "github", "type": "github",
"url": "https://github.com/sponsors/ai" "url": "https://github.com/sponsors/ai"
} }
], ],
"license": "MIT",
"bin": { "bin": {
"nanoid": "bin/nanoid.cjs" "nanoid": "bin/nanoid.cjs"
}, },
...@@ -10815,10 +10826,9 @@ ...@@ -10815,10 +10826,9 @@
"license": "ISC" "license": "ISC"
}, },
"node_modules/path-to-regexp": { "node_modules/path-to-regexp": {
"version": "0.1.10", "version": "0.1.12",
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
"integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==", "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ=="
"license": "MIT"
}, },
"node_modules/path-type": { "node_modules/path-type": {
"version": "5.0.0", "version": "5.0.0",
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
"@angular/ssr": "^18.2.7", "@angular/ssr": "^18.2.7",
"@ng-bootstrap/ng-bootstrap": "^17.0.1", "@ng-bootstrap/ng-bootstrap": "^17.0.1",
"@popperjs/core": "^2.11.8", "@popperjs/core": "^2.11.8",
"bootstrap": "^3.4.0", "bootstrap": "^5.3.3",
"express": "^4.18.2", "express": "^4.18.2",
"jquery": "^3.4.1", "jquery": "^3.4.1",
"jwt-decode": "^4.0.0", "jwt-decode": "^4.0.0",
......
...@@ -41,10 +41,10 @@ export class SessionService { ...@@ -41,10 +41,10 @@ export class SessionService {
private setSession(resp: any) { private setSession(resp: any) {
const decoded = jwtDecode<JWTDecoded>(resp.token); const decoded = jwtDecode<JWTDecoded>(resp.token);
const user: User = { ...decoded, id: decoded.userId }; const user: Session = { ...decoded, id: decoded.userId };
this.session$.next(user); this.session$.next(user);
this.storage.save(this.tokenKey, { ...resp, session: user }); this.storage.save(this.tokenKey, { ...resp, session: user });
const mainPage = this.getMainPage(decoded.user.rol as UserRol); const mainPage = this.getMainPage(user.rol as UserRol);
return { ...resp, mainPage }; return { ...resp, mainPage };
} }
......
const monolith = 'localhost:8080'; // kong
export const environment = {
production: false,
authAPI: `http://localhost:8101`,
userAPI: `http://${monolith}/users`,
hotelAPI: `http://${monolith}/hotels`,
bookingAPI: `http://${monolith}/bookings`,
};
...@@ -2,7 +2,7 @@ const developmentHost = 'localhost'; ...@@ -2,7 +2,7 @@ const developmentHost = 'localhost';
export const environment = { export const environment = {
production: false, production: false,
authAPI: `http://${developmentHost}:8101`, authAPI: `http://${developmentHost}:8101`,
userAPI: `http://${developmentHost}:8201`, userAPI: `http://${developmentHost}:8080/users`,
hotelAPI: `http://${developmentHost}:8301`, hotelAPI: `http://${developmentHost}:8080/hotels`,
bookingAPI: `http://${developmentHost}:8401`, bookingAPI: `http://${developmentHost}:8080/bookings`,
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment