editor

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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/*.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL