Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Arquisoft/lomap_es3c
Browse files Browse the repository at this point in the history
  • Loading branch information
IsraelSI11 committed May 1, 2023
2 parents a5dfdec + 7ac4ade commit 1b93ee1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ ENV REACT_APP_API_URI=$API_URI
RUN npm run build

#Execute npm run prod to run the server
#CMD [ "npm", "run", "prod" ]
CMD ["npm", "start"]
CMD [ "npm", "run", "prod" ]
4 changes: 3 additions & 1 deletion webapp/src/components/indexView/RegisterProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ interface Props {
export const RegisterProvider = ({ handleFocus, handleBlur }: Props) => {
const [provider, setProvider] = useState('');

let redirect = window.location.origin.concat("/home");

const identification = async function () {
await login({
oidcIssuer: provider,
redirectUrl: "http://localhost:3000/home",//Url a la que nos llevara una vez logeado
redirectUrl: redirect,//Url a la que nos llevara una vez logeado
clientName: "LoMap_es3c"
});
}
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/solid/podsFriends.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export async function getFriendsMapsFromPod(friendUrl, session) {

try {
let res = await getMapsFriendFromPod(session, friendUrl);

return res;
let aux = res.map(map=>{return decodeURIComponent(map)});
return aux;

} catch (e) {
console.error(e);
Expand Down

0 comments on commit 1b93ee1

Please sign in to comment.