How k2workflow/control-dojo works
Control Dojo is a browser-based Nintex K2 custom-control workbench. Users can inspect existing controls in design-time and runtime previews, adjust properties and events, and export controls; alternatively, the wizard gathers control configuration and generates a starter package. The app also provides a home screen and rendered documentation. The README documents backend file, ZIP, control-list, and documentation APIs. Source excerpts confirm several component calls, but do not show all frontend-to-API wiring, so those relationships are omitted or marked unverified.
Main entry points: Inspector.vue Control Inspector · App.vue Tab Shell · server.js Express API · Wizard.vue Starter Wizard
Components 18
Workbench UI
- Vue App Entry
src/main.js - Tab Shell
src/App.vue - Home Overview
src/components/Home.vue - Control Inspector
src/components/Inspector.vue - Error Popup
src/components/ValidationErrorPopup.vue - Documentation Viewer
src/components/Documents.vue
Control Creation
- Starter Wizard
src/components/Wizard.vue - File Generator
src/utils/file-generator.js
File And Docs APIs
- Express API
server.js - Control Catalog
Controls/index.json - Guides
docs
Example Controls
- Arabic Calendar
Controls/Arabic Calendar/runtime_logic.js - Button List
Controls/Button List/runtime_logic.js - CAPTCHA Box
Controls/CAPTCHA Box/runtime_logic.js - Drag And Drop
Controls/Drag and Drop/runtime_logic.js
K2 Runtime Layer
- Base Control API
loaders/Script/k2-base-control.js - K2 Controls API
loaders/Script/K2ControlsAPI.js
Other components
- Control Developer
Connections 17
- Control Developer → Vue App Entry: opens workbench
README.md - Vue App Entry → Tab Shell: mounts
src/main.js - Tab Shell → Home Overview: renders tab
src/App.vue - Tab Shell → Control Inspector: renders tab
src/App.vue - Tab Shell → Starter Wizard: renders tab
src/App.vue - Tab Shell → Documentation Viewer: renders tab
src/App.vue - Control Inspector → Error Popup: uses popup
src/components/Inspector.vue - Starter Wizard → File Generator: imports generator
src/components/Wizard.vue - File Generator → Express API: posts generated files
src/utils/file-generator.js - Express API → Control Catalog: reads catalog
server.js - Express API → Guides: serves guides
server.js - Control Developer → Control Inspector: debugs controls
README.md - Control Developer → Starter Wizard: builds control
README.md - Control Inspector → Arabic Calendar: previews controls
- Control Inspector → Button List: previews controls
- Control Inspector → CAPTCHA Box: previews controls
- Control Inspector → Drag And Drop: previews controls