@webx-ui/module-services
@webx-ui/module-services
The front end of the services section of the WebX UI admin panel: a catalogue of services, and the categories they are filed under.
The other half is the Composer package webx-ui/module-services, which owns the services, their
addresses, their order and the API. A section appears in the panel when both halves are installed.
Install
npm install @webx-ui/module-services
import { createAdmin } from '@webx-ui/module-admin'
import { services } from '@webx-ui/module-services'
import '@webx-ui/module-services/style.css'
createAdmin({
basePath: '/cms',
modules: [...services()],
}).mount()
services() answers with two sections — the services and their categories — because the panel
draws one entry per module. The server puts both in the services group.
services({ path: '/catalogue' }) puts them somewhere else inside the panel.
The list
The whole catalogue on one screen, without pages: a site has dozens of services, and a drag cannot cross a page boundary. The row shows the cover, the title with the address under it, the categories as chips (the first one is the main one) and the state.
The list has two orders, and the filter decides which one you are dragging:
- no category chosen — the order of the whole list;
- a category chosen — the order inside that category only. Every other category keeps its own.
While a search or a state narrows the list, the grips disappear: the gaps between the rows you see are rows you do not, and a drop into one is not an order anybody chose.
The editor
The services.form screen, described in JSON on the server: Content (blocks, autosaved into
the draft), Settings (title, address, categories, lead, cover, and a card for the project's own
fields), SEO and History. The categories take effect when saved; everything else waits in
the draft until it is published. A save over somebody else's is refused with the newer version.
The categories are the panel's shared category screens with this module's words.
Licence
MIT
Related Packages
Pages for the WebX UI admin panel: the tree of a site's pages, their addresses,...
Blog for the WebX UI admin panel: articles made of blocks, rubrics and tags, sch...
Menus for the WebX UI admin panel: named menus, a tree of items, and what each o...
FAQ for the WebX UI admin panel: questions and answers with flat categories, ord...
Version History
| Version | Released | License |
|---|---|---|
| 0.3.3 | MIT | |
| 0.3.2 | MIT | |
| 0.3.1 | MIT | |
| 0.3.0 | MIT | |
| 0.2.7 | MIT | |
| 0.2.6 | MIT | |
| 0.2.5 | MIT | |
| 0.2.4 | MIT | |
| 0.2.3 | MIT | |
| 0.2.2 | MIT | |
| 0.2.1 | MIT | |
| 0.2.0 | 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 |