Skip to content

Commit

Permalink
up main files
Browse files Browse the repository at this point in the history
  • Loading branch information
fgl27 committed May 9, 2023
1 parent 4099628 commit 80a5183
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion release/githubio/js/main.js

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions release/githubio/js/main_uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -32768,31 +32768,29 @@
game_id,
game_name,
game_node,
clip_node,
node,
retArray = [];

for (i = 0; i < i_length; i++) {
if (!data[i].node[type]) {
continue;
}

game_id = data[i].node.id;
game_name = data[i].node.name;
game_node = data[i].node[type].edges;
j_length = game_node.length;

for (j = 0; j < j_length; j++) {
clip_node = game_node[j].node;
clip_node.game_id = game_id;
clip_node.game_name = game_name;
retArray.push(clip_node);
node = game_node[j].node;
node.game_id = game_id;
node.game_name = game_name;
retArray.push(node);
}
}

retArray.sort(function(a, b) {
if (!a || !b) {
return 0;
}
return a.viewCount < b.viewCount ? 1 : a.viewCount > b.viewCount ? -1 : 0;
return b.viewCount - a.viewCount;
});

return retArray;
Expand Down

0 comments on commit 80a5183

Please sign in to comment.