Smart Site
Home Docs Smart SCADA Quick Start

Quick Start (5 Minutes)

This guide walks you through the core workflow of Smart SCADA Editor in 5 minutes: enter editor → create screen → drag shapes → configure properties → bind data → run preview.

Prerequisite: Completed Installation Guide and started frontend and backend services.

Workflow Overview

Enter Editor → Create/Open Screen → Drag Shapes → Configure Properties → Bind Data → Run Preview
     (1)              (2)               (3)              (4)                (5)           (6)

1. Enter Editor

  1. Visit http://localhost:5173
  2. Login with admin account (for first use, follow init wizard to create admin account)
  3. After login, visit http://localhost:5173/editor to enter SCADA editor

💡 To skip auth for frontend debugging, set VITE_DEBUG_SKIP_AUTH=true in frontend .env.development.

2. Create Screen

  1. Select or create a project in editor home
  2. Click New Screen or add a page in the page panel
  3. Fill in screen info:
Field Example Description
Screen Name Process Flow Display name
Screen Code process-flow Unique identifier
Screen Size 1920 × 1080 Canvas resolution
Background #1e293b Canvas background
  1. Save and enter canvas editing interface

3. Drag Shapes

  1. Browse shape categories in the left Shape Library:
    • Basic Shapes: Rectangle, text, button, image
    • Industrial Shapes: Pump, valve, tank, pipe, fan, gauge
    • Electrical Shapes: Breaker, transformer, PT/CT, busbar
    • Mining Shapes: Crusher, ball mill, conveyor
    • Chart Shapes: Line chart, bar chart, pie chart
    • Form Shapes: Input, checkbox
  2. Drag shapes from library to canvas
  3. Adjust shape position and size on canvas

Common Canvas Operations

Operation Shortcut / Method Description
Select shape Mouse click Single select
Multi-select Shift + click or drag selection Multi-select
Move shape Mouse drag Move selected shapes
Copy Ctrl + C Copy selected shapes
Paste Ctrl + V Paste shapes
Delete Delete Delete selected shapes
Undo Ctrl + Z Undo last action
Redo Ctrl + Y Redo
Zoom canvas Mouse wheel Zoom in/out
Pan canvas Space + drag or middle-click drag Pan view

4. Configure Properties

  1. Select a shape on canvas
  2. Configure shape properties in the right Property Panel:

Style Properties

Property Description Example
Position X/Y Shape coordinates on canvas 100, 200
Size W/H Shape width/height 120, 80
Rotation Shape rotation angle 0°
Fill Color Shape fill color var(--primary)
Border Color Shape border color var(--border)
Border Width Border thickness 2
Opacity Shape opacity 1.0

⚠️ Colors must use CSS variables (e.g., var(--primary)). Hardcoded color values are strictly prohibited.

Interaction Properties

Configure shape events in the Interaction tab:

Event Type Trigger Configurable Actions
Click Mouse click on shape Navigate page, execute script, toggle visibility
Value Change Bound data changes Change style, execute script
Visibility Condition control Show/hide shape

5. Bind Data

  1. Select shape, switch to Data tab in property panel
  2. Click Add Data Source or Bind Tag

Data Source Types

Type Description Use Case
Tag Binding Bind device data tag Real-time device data display
API Data Source Configure HTTP API endpoint Third-party system data
Static Data Manually enter JSON data Fixed configuration info
Script Driven JavaScript generates data Computed values, composite data

Tag Binding Example

Field Example Description
Device Temperature Sensor 1 Select configured device
Tag temperature Select tag under device
Field Mapping value → text Tag field mapped to shape property
Refresh Rate 1000 Milliseconds, data refresh interval

⚠️ Data binding requires backend Smart Data service running and device/tags configured. See Data Platform Quick Start.

6. Run Preview

  1. Click Preview button in toolbar, or visit http://localhost:5173/editor/preview
  2. Select the screen to preview
  3. Screen enters runtime mode:
    • Shapes update in real-time based on bound data
    • Interaction events take effect (click, navigation, etc.)
    • Scripts execute automatically
  4. Use Debug Panel to view runtime data, performance, script logs

Design Mode vs Runtime Mode

Dimension Design Mode Runtime Mode
Interaction Edit shapes, configure properties Respond to user actions, data-driven
Data Static/mock data Real-time device data
Scripts Not executed Auto-executed
Tools Toolbar, property panel, layer panel Debug panel, runtime monitoring

Completion Checklist

After completing the workflow above, verify the following capabilities:

  • [ ] Can login and enter SCADA editor
  • [ ] Can create screen and enter canvas editing
  • [ ] Can drag shapes from library to canvas
  • [ ] Can configure shape styles in property panel
  • [ ] Can bind data tags to shapes
  • [ ] Can enter runtime preview and see data updates

Next Steps