@webx-ui/module-settings
@webx-ui/module-settings
The site's settings, as a section of a WebX UI admin
panel. The screen itself is described by the server — webx-ui/module-settings ships the tree
and the project patches it — and this package draws it and saves it.
Nothing here works without the Composer half.
Install
pnpm add @webx-ui/module-settings
import { createAdmin } from '@webx-ui/module-admin'
import { settings } from '@webx-ui/module-settings'
import '@webx-ui/module-settings/style.css'
createAdmin({
modules: [settings()],
// The project's own operations over the screen, on top of the server's.
screens: {
'settings.index': [{ op: 'set', target: 'project-name', props: { placeholder: 'Acme' } }],
},
})
The section appears under "System" in the navigation once the server reports the module.
What it does
settings()— the module: a route at/settingsand the page.WxSettingsPage— the page: loads the values, drawssettings.indexthroughWxScreen, and saves with one button. A 422 lands under the field it names.createSettingsApi(admin)—load()andsave(values), for anything else that needs them.
The guide: https://webx-ui.github.io/webx-ui/guide/settings.html.
Licence
MIT.
Related Packages
Screens as JSON for WebX UI admin panels: the node format, patches, the type reg...
The block constructor for the WebX UI admin panel: the section where a block typ...
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...
Version History
| Version | Released | License |
|---|---|---|
| 0.5.2 | MIT | |
| 0.5.1 | MIT | |
| 0.5.0 | MIT | |
| 0.4.6 | MIT | |
| 0.4.5 | MIT | |
| 0.4.4 | MIT | |
| 0.4.3 | MIT | |
| 0.4.2 | MIT | |
| 0.4.1 | MIT | |
| 0.4.0 | MIT | |
| 0.3.27 | MIT | |
| 0.3.26 | MIT | |
| 0.3.25 | MIT | |
| 0.3.24 | MIT | |
| 0.3.23 | MIT | |
| 0.3.22 | MIT | |
| 0.3.21 | MIT | |
| 0.3.20 | MIT | |
| 0.3.19 | MIT | |
| 0.3.18 | MIT | |
| 0.3.17 | MIT | |
| 0.3.16 | MIT | |
| 0.3.15 | MIT | |
| 0.3.14 | MIT | |
| 0.3.13 | MIT | |
| 0.3.12 | MIT | |
| 0.3.11 | MIT | |
| 0.3.10 | MIT | |
| 0.3.9 | MIT | |
| 0.3.8 | MIT |
Showing the latest 30 of 42. See every release on npm