Documentation
¶
Overview ¶
Package editor serves the workflow editor — the same Vue app as flowadmin's /editor — as a nodeadmin section selected through ?controller=editor. The index page and its app script are the flowadmin embedded copies, rewritten at serve time so the editor's API calls land on this package's own /api mount.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Editor ¶
func Editor(w http.ResponseWriter, r *http.Request)
Editor serves the editor page with nodeadmin chrome and no store — the standalone handler kept for direct mounts. Mounts through nodeadmin.New dispatch to the Section built in buildRoutes, which carries the real store and the Options.DisableChrome flag.
Types ¶
type Section ¶ added in v0.2.0
type Section struct {
// contains filtered or unexported fields
}
Section serves the workflow editor. Unlike the other sections it writes a standalone page (the embedded flowadmin index document) rather than going through the UiConfig layout, so it carries its own dependencies.
func New ¶ added in v0.2.0
func New(store nodestore.StoreInterface, chrome bool) *Section
New builds the editor section. chrome=false emits the editor page without nodeadmin's navbar or section pills so an embedding host can supply its own chrome.
func (*Section) Editor ¶ added in v0.2.0
func (s *Section) Editor(w http.ResponseWriter, r *http.Request)
Editor serves the editor page or one of its assets. action=appjs serves the editor application script; action=codeeditorjs / action=codeeditorcss serve the vendored code-editor bundle; anything else serves the index document. The NodeAdminURL context value supplies the API base so every fetch targets <endpoint>/api/*.