- Generate OneShot js code geenrator - Introduced a new C4A-Script tutorial example for login flow using Blockly. - Updated index.html to include Blockly theme and event editor modal for script editing. - Created a test HTML file for testing Blockly integration. - Added comprehensive C4A-Script API reference documentation covering commands, syntax, and examples. - Developed core documentation for C4A-Script, detailing its features, commands, and real-world examples. - Updated mkdocs.yml to include new C4A-Script documentation in navigation.
21 lines
456 B
Plaintext
21 lines
456 B
Plaintext
# Demo: Login Flow with Blockly
|
|
# This script can be created visually using Blockly blocks
|
|
|
|
GO https://example.com/login
|
|
WAIT `#login-form` 5
|
|
|
|
# Check if already logged in
|
|
IF (EXISTS `.user-avatar`) THEN GO https://example.com/dashboard
|
|
|
|
# Fill login form
|
|
CLICK `#email`
|
|
TYPE "demo@example.com"
|
|
CLICK `#password`
|
|
TYPE "password123"
|
|
|
|
# Submit form
|
|
CLICK `button[type="submit"]`
|
|
WAIT `.dashboard` 10
|
|
|
|
# Success message
|
|
EVAL `console.log('Login successful!')` |