Skip to content

Commit 98b9f43

Browse files
committed
comentado mejor
1 parent 0112ec3 commit 98b9f43

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

WEB/main.js

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ let button = ''
2727
//-- Get Repository name
2828
repository = Object.keys(data_total)
2929

30+
3031
//-- Create a button for each repository
3132
for (i=0; i<repository.length; i++){
3233
button += "<button role='link'onclick=window.location='" +
@@ -37,6 +38,7 @@ INDEX = INDEX.replace('BUTTON', button)
3738
//-- Write total in new html file
3839
fs.writeFileSync('index.html', INDEX);
3940

41+
4042
//-- Obtain information from each repository
4143
for (repo=0; repo<repository.length; repo++){
4244
//-- Assign the value of REPO
@@ -85,6 +87,8 @@ for (repo=0; repo<repository.length; repo++){
8587
fs.writeFileSync(name_html, content);
8688
}
8789

90+
91+
8892
//-- Obtain repository summary information
8993
function repo_summary(){
9094
//-- Variable with the summary of each repository
@@ -112,6 +116,8 @@ function repo_summary(){
112116
return(total_repo);
113117
}
114118

119+
120+
115121
//-- Obtain summary information
116122
let total_summary = ''
117123
type = Object.keys(data_summary)
@@ -130,4 +136,5 @@ INDEX = INDEX.replace('SUMMARY', total_summary)
130136
//-- Write total in new html file
131137
fs.writeFileSync('index.html', INDEX);
132138

139+
133140
console.log("Website created.");

0 commit comments

Comments
 (0)