Skip to content

Conversation

@geraldtivatyi
Copy link

No description provided.

Create main.css
Create get httprequest.
Create http request in typescript.
Update css, and data table.
Convert data to be usable for functions.
render table records and headings to html
…uide

Edit code to meet code style requirements
@geraldtivatyi geraldtivatyi self-assigned this Jun 21, 2021
@FritzOnFire
Copy link
Contributor

Please remove your .js and .js.map files

@geraldtivatyi
Copy link
Author

Please remove your .js and .js.map files

I removed the files and changed gitignore file.

Copy link
Contributor

@FritzOnFire FritzOnFire left a comment

Choose a reason for hiding this comment

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

You have a lot of variables and statements executing in global space which is generally frown'd upon. For this project, there are a few that we are ok with being in global space, but you are running a lot of them without waiting for the page to even finish loading.

Copy link
Contributor

@FritzOnFire FritzOnFire left a comment

Choose a reason for hiding this comment

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

Please read up on window.onload. All of this global space statements are really bothering me. Please move them somewhere more sane. Please change all of your comments for functions and classes to JavaDoc style. Please do not use an interface before you have defined it (HasFormatMethod) and finally, it really looks like your formatter is not kicking in. I will send you my vscode settings incase you can not get your formatting working.

app.ts Outdated
let totalNumofRecords: number;
let clickTimeout: ReturnType<typeof setTimeout>;
let fromID = 1;
let toID = numOfRows;

Choose a reason for hiding this comment

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

I dont think all of these need to be global, especially numofrows

Copy link

@nkosimarz nkosimarz left a comment

Choose a reason for hiding this comment

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

The structure is definitely cleaner, LGTM


/**
* This event executes two funtions immediately after the page loads
* @function HFM.getColumnHeadings This is a function that gets the column headings from the back-end

Choose a reason for hiding this comment

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

I prefer this pattern for comments: @function HFM.getColumnHeadings gets the column heading ...

Copy link
Author

Choose a reason for hiding this comment

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

Thanks. I'll quickly change the comments to your suggestion

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.

4 participants