Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User management Frontend #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eidoil32
Copy link
Collaborator

@eidoil32 eidoil32 commented Apr 5, 2020

Added login / signup page
Screenshot:

screenshot

@timshik
fix #11

Copy link
Collaborator

@simzacks simzacks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'm not really a front end person,
Can one of the Edison students who knows front end review as well?

@lmilbaum lmilbaum self-requested a review April 15, 2020 13:10
Copy link
Contributor

@lmilbaum lmilbaum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no issue linked to this PR.

@eidoil32
Copy link
Collaborator Author

There is no issue linked to this PR.

How can I link the issue?

@eidoil32 eidoil32 requested a review from lmilbaum April 15, 2020 15:48
@lmilbaum
Copy link
Contributor

The first comment of this PR should include the text 'fix #11'... and than check the 'Linked issues' section on the right.

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Advent+Pro">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fira+Sans+Extra+Condensed">
<link rel="stylesheet" href="assets/css/styles.css">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this file? and why are the styles defined inline for each element and not in it with classes?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this comment addressed?

templates/assets/js/main.js Outdated Show resolved Hide resolved
document.getElementById("main_block_btn").onclick = signinBtn;

$("#btn_signup").click(function() {
document.getElementById("main_block_btn").onclick = signupBtn;
Copy link
Collaborator

@DoRTaL94 DoRTaL94 Apr 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you inconsistent and sometimes use $(id) and sometimes getElementById(id) ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DoRTaL94 same here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm waiting for @eidoil32 response.

'<div class="w-100 rounded-right" style="background-color: rgba(0,0,0,0.7);padding-top: 0;padding-bottom: 0;"></div>' +
'</div>';

function ajaxCall(url, data, method, successCallback, errorCallback) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you wrap the ajax call ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For my opinion It's more legible to manage the JS Ajax call in one function other than copy the same code (like the dataType) all over the application.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrapping the ajax call limits its functionallity.
If you would want to send an additional info with the ajax call, you will need to change the function signature and fix its call everywhere you used it.
This problem actually taking effect here because you should add contentType to the list of parameters ajax is taking.
The default contentType is "application/x-www-form-urlencoding", and we will need to send "application/json" as well.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DoRTaL94 same here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm waiting for @eidoil32 response.

templates/assets/js/main.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@DoRTaL94 DoRTaL94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The project layout should be changed:

  1. Only the HTML files should be inside the templates folder.
  2. JS, CSS and images should be inside the static folder.

Copy link
Contributor

@lmilbaum lmilbaum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DoRTaL94 Please go over the conversation and resolve what addressed.

Copy link
Collaborator

@DoRTaL94 DoRTaL94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lioramilbaum, this PR need to be closed due to inactivity.
PR #52 takes care of this issue now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User management Frontend
6 participants