Add JSDoc and clean comments

This commit is contained in:
ESPGranEdu 2024-08-16 22:58:21 +02:00
parent bd4a012404
commit b9f135bdaa

View file

@ -189,6 +189,10 @@ export default {
return result;
},
/**
* Groups all stacks by it's agent
* @returns {Map<string, object} A map containing all agents with their stacks
*/
stackListByAgent() {
const stacksByAgent = new Map();
const stacks = this.$root.completeStackList;
@ -207,10 +211,7 @@ export default {
stacksByAgent.get(agent).push(stack);
}
// console.log(stacksByAgent);
// console.log(stacks);
return stacksByAgent;
},
isDarkTheme() {
return document.body.classList.contains("dark");