feat: replace context menu items splicing with implementation of context menu item sections
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful

This commit is contained in:
SauceyRed 2025-08-16 14:25:11 +02:00
parent c9bbd10af1
commit 0f02142eb1
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7
9 changed files with 85 additions and 50 deletions

View file

@ -115,11 +115,16 @@ export interface ContextMenuItem {
callback: (...args: any[]) => any;
}
export interface ContextMenuSection {
name?: string
items: ContextMenuItem[]
}
export interface ContextMenuInterface {
show: boolean,
pointerX: number,
pointerY: number,
items: ContextMenuItem[]
sections: ContextMenuSection[]
}
export interface NavbarItem {