Skip to content

Commit df01b5d

Browse files
author
dot.not
committed
Commiting JS-3 Homework week 3 - changes
1 parent 0dc16bd commit df01b5d

2 files changed

Lines changed: 9 additions & 20 deletions

File tree

‎Week3/homework/README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

22
Homework folder for JS-3 - week 3
3-
43
=====================
54

‎Week3/homework/project-hack-your-repo-III/README.md‎

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,26 @@
11

2-
=====================
32
PROJECT: Hack Your Repo III
43
=====================
54

65

7-
=====================
86
PART 1: Modify API data request technique: replace fetch.then().catch() with Axios-async/await
9-
7+
=====================
108
Applied changes are :
11-
1. index.html
12-
Included script for axios library
13-
2. Model.js
14-
Modified function fetchJSON() to implement requirements:
9+
1. index.html : Included script for axios library
10+
2. Model.js : Modified function fetchJSON() to implement requirements:
1511
converted to async method, replaced fetch API cal with axios and included await for results
1612

1713

18-
=====================
1914
PART 2: Moving to the OOP version of the homework
20-
21-
1. Util.js
22-
Added 3 utility functions for data rendering
23-
2. RepoView.js
24-
Implemented repository data rendering
25-
3. ContributorsView.js
26-
Implemented contributors data rendering
27-
4. style.css
28-
Implemented page styles
15+
=====================
16+
1. Util.js : Added 3 utility functions for data rendering
17+
2. RepoView.js : Implemented repository data rendering
18+
3. ContributorsView.js : Implemented contributors data rendering
19+
4. style.css : Implemented page styles
2920

3021

31-
=====================
3222
BONUS: A case study on caveats
33-
23+
=====================
3424
Multiple consecutive data fetches & renders
3525
By design, if the user focuses on the repository selection field without opening the list (with TAB for example) or after a list item was selected, and then presses and holds UP/DOWN arrow buttons, the code will ussue a number of data fetches & renders, equal to the traversed repos, resulting in an equal number of quick consecutive data redraws.
3626

0 commit comments

Comments
 (0)