-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not throw auth failed if no user in acl
- Loading branch information
1 parent
d64315a
commit 61fbcf9
Showing
4 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
document.addEventListener('DOMContentLoaded', function () { | ||
// Get the container element for the modules section | ||
const sidebarModulesContainer = document.querySelector('#sidebar > div > div.sidebar-section-children-container'); | ||
|
||
// Get all elements within the modules section container | ||
const moduleElements = sidebarModulesContainer.querySelectorAll('*'); | ||
|
||
// Create an object to store grouped elements | ||
const groupedElements = {}; | ||
|
||
// Iterate over each module element | ||
moduleElements.forEach(element => { | ||
// Check if the element's classes contain the desired substring | ||
if (element.classList.contains('/layer/')) { | ||
// Get the common substring | ||
const substring = '/layer/'; | ||
|
||
// Check if a group for this substring exists, if not, create one | ||
if (!groupedElements[substring]) { | ||
groupedElements[substring] = []; | ||
} | ||
|
||
// Add the element to the appropriate group | ||
groupedElements[substring].push(element); | ||
} | ||
}); | ||
|
||
// Now you have groupedElements object containing groups of elements based on the "/layer/" substring | ||
console.log(groupedElements); | ||
|
||
|
||
}); |