-
Notifications
You must be signed in to change notification settings - Fork 0
Add files via upload #1
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
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| enum Role{SuperAdmin,Admin,Subscriber}; | ||
| class model1{ | ||
| ID:number; |
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.
Variable casing should be camel case
| @@ -0,0 +1,158 @@ | |||
|
|
|||
| enum Role{SuperAdmin,Admin,Subscriber}; | |||
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.
Separate file for enum
| @@ -0,0 +1,158 @@ | |||
|
|
|||
| enum Role{SuperAdmin,Admin,Subscriber}; | |||
| class model1{ | |||
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.
Separate file
| }, | ||
| body: JSON.stringify(object) | ||
| }) | ||
| let data = await response.json() |
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.
Return directly no need to store in a var
| }, | ||
| body: JSON.stringify(object) | ||
| }) | ||
| let data = await response.json() |
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.
Same here
| document.getElementById("saveUpdate"+no).style.visibility="visible"; | ||
| document.getElementById("cancelUpdate"+no).style.visibility="visible"; | ||
|
|
||
| var Id=document.getElementById("ID"+no); |
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.
Use const over var, if reassignment is not being done
| document.getElementById("saveUpdate"+no).style.visibility="visible"; | ||
| document.getElementById("cancelUpdate"+no).style.visibility="visible"; | ||
|
|
||
| var Id=document.getElementById("ID"+no); |
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.
Var should not be used google about const and let
| }, | ||
| "keywords": [], | ||
| "author": "", | ||
| "license": "ISC" |
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.
Missing dependencies out here save deps with the --save flag while installing
| //Decorator Function | ||
| function FormatD(fun){ | ||
| return function(no){ | ||
| var id="DateTime"+no; |
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.
Dont use var and use template strings
No description provided.