Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
Update jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
nag763 committed Jan 30, 2021
1 parent e840f9d commit e021087
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 29 deletions.
2 changes: 1 addition & 1 deletion doc/classes_events.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/classes_fixture.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/classes_league.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/classes_lineups.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/classes_player.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/classes_stat.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
3 changes: 2 additions & 1 deletion doc/classes_team.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ <h1 class="page-title">Source: classes/team.js</h1>
Team.fromResponse = function(response) {
const TEAM_INFO = response.data.api.teams[0];
const team = new Team();
team.id = TEAM_INFO.team_id;
team.name = TEAM_INFO.name;
team.logo = TEAM_INFO.logo;
team.founded = TEAM_INFO.founded;
Expand Down Expand Up @@ -196,7 +197,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/classes_user.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
8 changes: 4 additions & 4 deletions doc/fixtures.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1 class="page-title">Source: fixtures.js</h1>
const favorites = User.getFavoritesText();
$('#fixtures tr').filter(function() {
// The league and teams infos are only on the 3 first tds
const arrayOfDisplayed = $(this).children('td').slice(0, 3).map(function() {
const arrayOfDisplayed = $(this).children('td').slice(0, 3).map(function() { // eslint-disable-line no-invalid-this
return $(this).text().trim(); // eslint-disable-line no-invalid-this
}).get();
$(this).toggle(favorites.some((element) => arrayOfDisplayed.includes(element))); // eslint-disable-line no-invalid-this
Expand All @@ -112,7 +112,7 @@ <h1 class="page-title">Source: fixtures.js</h1>
}

$('#datepicker').change(function(field) {
dateDisplayed = $(this).val();
dateDisplayed = $(this).val(); // eslint-disable-line no-invalid-this
displayFixtures(getDateUrl(), getDateHeader());
}).attr('max', dateFormat(new Date(new Date().setFullYear(new Date().getFullYear() + 1)), 'yyyy-mm-dd'))
.attr('value', dateFormat(dateDisplayed, 'yyyy-mm-dd'));
Expand All @@ -123,7 +123,7 @@ <h1 class="page-title">Source: fixtures.js</h1>

// Not mine, taken directly from w3s
$('#searchBar').on('keyup', function() {
const value = $(this).val().toLowerCase();
const value = $(this).val().toLowerCase(); // eslint-disable-line no-invalid-this
$('#fixtures tr').filter(function() {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1); // eslint-disable-line no-invalid-this
});
Expand Down Expand Up @@ -187,7 +187,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -4350,7 +4350,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
19 changes: 11 additions & 8 deletions doc/menu.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,23 @@ <h1 class="page-title">Source: menu.js</h1>
$('#title').text('Latest news');
const feed = await PARSER.parseURL('https://www.reddit.com/r/soccer/new.rss');
$('#latest_news li').remove();
feed.items.slice(0, 10).forEach((item) => {
$('#latest_news').append(feed.items.slice(0, 10).map((item) => {
console.log(item);
const diffMs = (now - new Date(item.pubDate));
// Yes, I stole that from internet
const diffHrs = Math.floor((diffMs % 86400000) / 3600000);
const diffMins = Math.round(((diffMs % 86400000) % 3600000) / 60000);
let content;
let content = '&lt;li class="list-group-item">';
if (diffHrs != 0) {
content = `&lt;li class="list-group-item">${item.title} (${diffHrs} hours and ${diffMins} mns ago)&lt;/li>`;
content += `${item.title} (${diffHrs} hours and ${diffMins} mns ago)&lt;/li>`;
} else {
content = `&lt;li class="list-group-item">${item.title} (${diffMins} mns ago)&lt;/li>`;
content += `${item.title} (${diffMins} mns ago)`;
}
$('#latest_news').append(
content,
);
content += ` &lt;i class="fa fa-link" aria-hidden="true" id=${item.link}>&lt;/i>&lt;/li>`;
return content;
}).join('\n'));
$('.fa-link').on('click', function() {
shell.openExternal($(this).attr('id')); // eslint-disable-line no-invalid-this
});
}

Expand Down Expand Up @@ -150,7 +153,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/player.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/team.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
7 changes: 4 additions & 3 deletions doc/utils_errorhandler.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ <h1 class="page-title">Source: utils/errorhandler.js</h1>
* Class to handle common errors while using the app.
*
* @param {object} error - the current axios error.
* @param {boolean} canBeEmtpy - define if the fetched content can be empty or not
*/
ErrorHandler.onResponse = function(error) {
ErrorHandler.onResponse = function(error, canBeEmtpy=false) {
if (!navigator.onLine) {
alert('You aren\'t connected to internet');
} else if (key.length == 0) {
alert('You don\'t have any api key registered, please make sure you got one.');
} else if (error != undefined &amp;&amp; error != null) {
} else if (error != undefined &amp;&amp; error != null &amp;&amp; !canBeEmtpy) {
alert('The remote server responded with the following error\n'
.concat(`${error}.\n`)
.concat('If the issue persists, starts the debugger (CTRL+SHIFT+I) or open an issue on Github.'));
Expand All @@ -75,7 +76,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/utils_htmlutils.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/utils_httputils.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 29 2021 16:27:42 GMT+0100 (heure normale d’Europe centrale)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sat Jan 30 2021 17:57:09 GMT+0100 (heure normale d’Europe centrale)
</footer>

<script> prettyPrint(); </script>
Expand Down

0 comments on commit e021087

Please sign in to comment.