added JSDocs
This commit is contained in:
parent
ef6c25e60a
commit
4de7edf03f
2 changed files with 18 additions and 17 deletions
|
|
@ -9,6 +9,9 @@ const configs = (function () {
|
||||||
const pointsPerTask = 10; // integer
|
const pointsPerTask = 10; // integer
|
||||||
const taskSeparator = [";", ","]; // array of strings
|
const taskSeparator = [";", ","]; // array of strings
|
||||||
|
|
||||||
|
// SETTING THIS 'TRUE' WILL RESET EXISTING TASKS
|
||||||
|
const testTasks = true; // true or false
|
||||||
|
|
||||||
// animation
|
// animation
|
||||||
const scrollSpeed = 40; // milliseconds
|
const scrollSpeed = 40; // milliseconds
|
||||||
const gapBetweenScrolls = 0; // px
|
const gapBetweenScrolls = 0; // px
|
||||||
|
|
@ -60,7 +63,7 @@ const configs = (function () {
|
||||||
|
|
||||||
const taskWidth = "100%";
|
const taskWidth = "100%";
|
||||||
|
|
||||||
const taskBackgroundColor = "#fff"; // hex only
|
const taskBackgroundColor = "#000"; // hex only
|
||||||
const taskBackgroundOpacity = 0; // 0.0 - 1.0
|
const taskBackgroundOpacity = 0; // 0.0 - 1.0
|
||||||
|
|
||||||
const taskFontFamily = "Poppins"; // font name
|
const taskFontFamily = "Poppins"; // font name
|
||||||
|
|
@ -360,6 +363,7 @@ const configs = (function () {
|
||||||
taskSeparator,
|
taskSeparator,
|
||||||
headerGoogleFont,
|
headerGoogleFont,
|
||||||
taskGoogleFont,
|
taskGoogleFont,
|
||||||
|
testTasks,
|
||||||
};
|
};
|
||||||
|
|
||||||
const styles = {
|
const styles = {
|
||||||
|
|
|
||||||
|
|
@ -1318,7 +1318,7 @@ function checkTasks(username) {
|
||||||
) + 1;
|
) + 1;
|
||||||
|
|
||||||
reply += `${taskIndex}. ${
|
reply += `${taskIndex}. ${
|
||||||
incompleteTasks[i].focus ? "(FOCUSED)" : ""
|
incompleteTasks[i].focus ? "(ongoing)" : ""
|
||||||
} ${incompleteTasks[i].text} | `;
|
} ${incompleteTasks[i].text} | `;
|
||||||
}
|
}
|
||||||
reply = reply.slice(0, -3);
|
reply = reply.slice(0, -3);
|
||||||
|
|
@ -1562,22 +1562,15 @@ function sleep(ms) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// unit tests
|
// unit tests
|
||||||
async function tests1() {
|
async function tests() {
|
||||||
let listOfStreamers = [
|
let listOfStreamers = [
|
||||||
`cloudydayzzz`,
|
`followRythonDev1`,
|
||||||
`berryspace`,
|
`followRythonDev2`,
|
||||||
`MohFocus`,
|
`followRythonDev3`,
|
||||||
`xeno_hiraeth`,
|
`followRythonDev4`,
|
||||||
`euphie___`,
|
`followRythonDev5`,
|
||||||
`unknownnie`,
|
`followRythonDev6`,
|
||||||
`theyolotato`,
|
`followRythonDev7`,
|
||||||
// `charliosaurus`,
|
|
||||||
// `jutstreams`,
|
|
||||||
// `mikewhatwhere`,
|
|
||||||
// `studypaws`,
|
|
||||||
// `pcc_lanezzz`,
|
|
||||||
// `workwithjandj`,
|
|
||||||
// `studylena`,
|
|
||||||
];
|
];
|
||||||
|
|
||||||
for (let i = 0; i < listOfStreamers.length; i++) {
|
for (let i = 0; i < listOfStreamers.length; i++) {
|
||||||
|
|
@ -1681,6 +1674,10 @@ function cancelAnimation() {
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
setupDB();
|
setupDB();
|
||||||
|
if (settings.testTasks) {
|
||||||
|
resetDB();
|
||||||
|
tests();
|
||||||
|
}
|
||||||
importStyles();
|
importStyles();
|
||||||
renderTaskListToDOM();
|
renderTaskListToDOM();
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue