@@ -7,7 +7,6 @@ const UF_ID_TABLE = 'useful_forks_table';
77
88const svg_literal_fork = '<svg class="octicon octicon-repo-forked v-align-text-bottom" viewBox="0 0 10 16" version="1.1" width="10" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8 1a1.993 1.993 0 00-1 3.72V6L5 8 3 6V4.72A1.993 1.993 0 002 1a1.993 1.993 0 00-1 3.72V6.5l3 3v1.78A1.993 1.993 0 005 15a1.993 1.993 0 001-3.72V9.5l3-3V4.72A1.993 1.993 0 008 1zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3 10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3-10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"></path></svg>' ;
99const svg_literal_star = '<svg aria-label="star" height="16" class="octicon octicon-star v-align-text-bottom" viewBox="0 0 14 16" version="1.1" width="14" role="img"><path fill-rule="evenodd" d="M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74L14 6z"></path></svg>' ;
10- const svg_literal_eye = '<svg class="octicon octicon-eye v-align-text-bottom" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z"></path></svg>' ;
1110
1211const UF_MSG_NO_FORKS = "No one forked this specific repository." ;
1312const UF_MSG_SCANNING = "Currently scanning all the forks." ;
@@ -163,13 +162,12 @@ function onreadystatechangeFactory(xhr, successFn, failureFn) {
163162}
164163
165164/** Dynamically fills the second part of the rows. */
166- function build_fork_element_html ( table_body , combined_name , num_stars , num_watches , num_forks ) {
165+ function build_fork_element_html ( table_body , combined_name , num_stars , num_forks ) {
167166 const NEW_ROW = $ ( '<tr>' , { id : extract_username_from_fork ( combined_name ) , class : "useful_forks_repo" } ) ;
168167 table_body . append (
169168 NEW_ROW . append (
170169 $ ( '<td>' ) . html ( svg_literal_fork + ' <a href=https://github.com/' + combined_name + ' target="_blank" rel="noopener noreferrer">' + combined_name + '</a>' ) ,
171170 $ ( '<td>' ) . html ( UF_TABLE_SEPARATOR + svg_literal_star + ' x ' + num_stars ) . attr ( "value" , num_stars ) ,
172- $ ( '<td>' ) . html ( UF_TABLE_SEPARATOR + svg_literal_eye + ' x ' + num_watches ) . attr ( "value" , num_watches ) ,
173171 $ ( '<td>' ) . html ( UF_TABLE_SEPARATOR + svg_literal_fork + ' x ' + num_forks ) . attr ( "value" , num_forks )
174172 )
175173 ) ;
@@ -188,7 +186,7 @@ function add_fork_elements(forkdata_array, user, repo) {
188186 const elem_ref = forkdata_array [ i ] ;
189187
190188 /* Basic data (stars, watchers, forks). */
191- const NEW_ROW = build_fork_element_html ( table_body , elem_ref . full_name , elem_ref . stargazers_count , elem_ref . watchers_count , elem_ref . forks_count ) ;
189+ const NEW_ROW = build_fork_element_html ( table_body , elem_ref . full_name , elem_ref . stargazers_count , elem_ref . forks_count ) ;
192190
193191 /* Commits diff data (ahead/behind). */
194192 const API_REQUEST_URL = 'https://api.github.com/repos/' + user + '/' + repo + '/compare/master...' + extract_username_from_fork ( elem_ref . full_name ) + ':master' ;
0 commit comments