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