mirror of
https://github.com/louislam/dockge.git
synced 2024-11-27 21:24:02 +00:00
Add JSDoc and clean comments
This commit is contained in:
parent
bd4a012404
commit
b9f135bdaa
1 changed files with 4 additions and 3 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue