AI4HF / passport-web

The user interface of AI4HF Product Passport
0 stars 0 forks source link

Frontend Project Structure with the Necessary Package/Framework Configurations, and an Implemented Login Page #1

Closed KeremHmd closed 6 months ago

KeremHmd commented 6 months ago
dogukan10 commented 6 months ago

Remove frontend folder.

dogukan10 commented 6 months ago

I cannot start the project because of the following error, please fix it: image

dogukan10 commented 6 months ago

Please add package-lock.json file, it is missing.

dogukan10 commented 6 months ago

When I start the application, it displays a red block which is redundant:

image

Please try to implement the same view we have in the mockups i.e. the header and login form.

dogukan10 commented 6 months ago

When I login, I get CORS error:

image

dogukan10 commented 6 months ago

Error message is too big, let's make it small and add some space between the error message and login button. Further, when the user clears the username or password input, let's remove the error message. ![Uploading image.png…]()

dogukan10 commented 6 months ago

When I login, I get a token but in the console, I have this error: SyntaxError: Unexpected token 'e', "eyJhbGciOi"... is not valid JSON at JSON.parse. You should set the response type to text as shown in the link: https://stackoverflow.com/questions/50798592/angular-6-how-to-set-response-type-as-text-while-making-http-call