-
Notifications
You must be signed in to change notification settings - Fork 4
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
SHARD-2019 - Prettier monitor-client #34
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
public/signin.js
Outdated
const res = await request.post(`${monitorServerUrl}/signin`, payload) | ||
if (res.data && res.data.token) { | ||
console.log('SingIn Successful', res.data.token) | ||
localStorage.setItem('token', res.data.token) | ||
location.href = "/" | ||
location.href = '/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Correct the typo in the console log message from "SingIn Successful" to "SignIn Successful" to ensure accurate logging. [general, importance: 3]
const res = await request.post(`${monitorServerUrl}/signin`, payload) | |
if (res.data && res.data.token) { | |
console.log('SingIn Successful', res.data.token) | |
localStorage.setItem('token', res.data.token) | |
location.href = "/" | |
location.href = '/' | |
const res = await request.post(`${monitorServerUrl}/signin`, payload) | |
if (res.data && res.data.token) { | |
console.log('SignIn Successful', res.data.token) | |
localStorage.setItem('token', res.data.token) | |
location.href = '/' | |
} else { | |
alert('Incorrect username or password') | |
this.username = '' | |
this.password = '' | |
} |
PR Type
enhancement, formatting, tests
Description
Applied Prettier formatting to multiple JavaScript files.
Enhanced code readability and consistency.
Added tests for navigation components.
Improved code comments and structure.
Changes walkthrough 📝
8 files
Reformat minified JavaScript file
Apply Prettier formatting to JavaScript
Apply Prettier formatting to JavaScript
Apply Prettier formatting to JavaScript
Apply Prettier formatting to JavaScript
Apply Prettier formatting to JavaScript
Apply Prettier formatting to JavaScript
Apply Prettier formatting to JavaScript
1 files
Add tests for navigation components
15 files