@webx-ui/module-menu
@webx-ui/module-menu
Menus as a section of the WebX UI admin panel: the named menus of a site, the tree of items in each one, and what every item points at.
The other half is webx-ui/module-menu on the server, which holds the menus and renders them.
Neither is useful alone.
Install
pnpm add @webx-ui/module-menu
import { createAdmin } from '@webx-ui/module-admin'
import { menu } from '@webx-ui/module-menu'
import '@webx-ui/module-menu/style.css'
createAdmin({
modules: [menu()],
})
The section appears among the content sections once the Composer half is installed and migrated.
Permissions: menu.view, menu.manage.
What it brings
/menus— the menus on the left, the items of the open one on the right. Which menu is open travels in the address, so a link to the footer is a link somebody can send.- Dragging changes both the order and the parent: every level is its own list, and where a row ends up is where it is.
- An item points at three things — an entity chosen from the picker, an address of your own,
or nothing at all, which is what a heading is. The picker is
WxLinkPickerfrom@webx-ui/module-admin, the same one every link field in the panel uses. - The cache is marked under each menu — "built today at 08:10", "not built", "off" — with a reset beside it and one for every menu in the head of the section. It is what somebody presses to test the guess that they are looking at something stale.
Licence
MIT
Related Packages
@webx-ui/module-pages
Pages for the WebX UI admin panel: the tree of a site's pages, their addresses,...
7,462
0
@webx-ui/module-blog
Blog for the WebX UI admin panel: articles made of blocks, rubrics and tags, sch...
6,583
0
@webx-ui/module-services
Services for the WebX UI admin panel: a catalogue of services made of blocks, fl...
4,031
0
@webx-ui/module-faq
FAQ for the WebX UI admin panel: questions and answers with flat categories, ord...
3,160
0
Version History
| Version | Released | License |
|---|---|---|
| 0.2.2 | MIT | |
| 0.2.1 | MIT | |
| 0.2.0 | MIT | |
| 0.1.22 | MIT | |
| 0.1.21 | MIT | |
| 0.1.20 | MIT | |
| 0.1.19 | MIT | |
| 0.1.18 | MIT | |
| 0.1.17 | MIT | |
| 0.1.16 | MIT | |
| 0.1.15 | MIT | |
| 0.1.14 | MIT | |
| 0.1.13 | MIT | |
| 0.1.12 | MIT | |
| 0.1.11 | MIT | |
| 0.1.10 | MIT | |
| 0.1.9 | MIT | |
| 0.1.8 | MIT | |
| 0.1.7 | MIT | |
| 0.1.6 | MIT | |
| 0.1.5 | MIT | |
| 0.1.4 | MIT | |
| 0.1.3 | MIT | |
| 0.1.2 | MIT | |
| 0.1.1 | MIT | |
| 0.1.0 | MIT |