2015-03-24 05:12:19 +00:00
|
|
|
{
|
2015-03-26 05:23:14 +00:00
|
|
|
/*
|
|
|
|
Menu Configuration
|
2015-04-04 20:41:04 +00:00
|
|
|
|
|
|
|
Some concept/ideas:
|
|
|
|
"mci" : {
|
|
|
|
"BN1" : {
|
|
|
|
...
|
|
|
|
"draw" : "@script:blah.js/drawButton"
|
2015-04-05 07:15:04 +00:00
|
|
|
// @method:scriptName[.js]/methodName (foreign .js)
|
|
|
|
// @art:artName
|
|
|
|
// @method:/methodName (local to module.js)
|
|
|
|
"draw" : {
|
|
|
|
"normal" : ...,
|
|
|
|
"focus" : ...
|
|
|
|
}
|
2015-04-10 04:49:56 +00:00
|
|
|
|
|
|
|
..note that script/methods should be part of a *theme* - or at least checked first with fallback
|
2015-04-04 20:41:04 +00:00
|
|
|
}
|
|
|
|
}
|
2015-03-26 05:23:14 +00:00
|
|
|
*/
|
2015-03-24 05:12:19 +00:00
|
|
|
"matrix" : {
|
|
|
|
"art" : "matrix",
|
2015-04-02 04:13:29 +00:00
|
|
|
"form" : {
|
|
|
|
"0" : {
|
|
|
|
"VM1" : {
|
|
|
|
"mci" : {
|
|
|
|
"VM1" : {
|
|
|
|
"submit" : true,
|
|
|
|
"focus" : true,
|
|
|
|
// :TODO: need a good way to localize these ... Standard Orig->Lookup seems good.
|
|
|
|
"items" : [ "Login", "Apply", "Log Off" ]
|
|
|
|
}
|
2015-03-30 03:47:48 +00:00
|
|
|
},
|
2015-04-02 04:13:29 +00:00
|
|
|
"submit" : {
|
|
|
|
"*" : [
|
|
|
|
{
|
|
|
|
"value" : { "1" : 0 },
|
2015-04-05 07:15:04 +00:00
|
|
|
"action" : "@menu:login"
|
2015-04-02 04:13:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"value" : { "1" : 1 },
|
2015-04-05 07:15:04 +00:00
|
|
|
"action" : "@menu:apply"
|
2015-04-02 04:13:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"value" : { "1" : 2 },
|
2015-04-05 07:15:04 +00:00
|
|
|
"action" : "@menu:logoff"
|
2015-04-02 04:13:29 +00:00
|
|
|
}
|
|
|
|
]
|
2015-03-30 03:47:48 +00:00
|
|
|
}
|
2015-04-02 04:13:29 +00:00
|
|
|
}
|
2015-03-27 04:58:22 +00:00
|
|
|
}
|
2015-04-10 04:49:56 +00:00
|
|
|
},
|
|
|
|
"options" : {
|
|
|
|
"clearScreen" : true
|
2015-04-02 04:13:29 +00:00
|
|
|
}
|
2015-03-24 05:12:19 +00:00
|
|
|
},
|
2015-04-05 07:15:04 +00:00
|
|
|
"login" : {
|
2015-04-04 20:41:04 +00:00
|
|
|
"art" : "login", // TODO: rename to login_form
|
2015-03-31 03:29:06 +00:00
|
|
|
"module" : "login",
|
2015-04-02 04:13:29 +00:00
|
|
|
"form" : {
|
|
|
|
"0" : {
|
2015-04-06 06:18:08 +00:00
|
|
|
"BN3BN4ET1ET2TL5" :{
|
2015-04-02 04:13:29 +00:00
|
|
|
"mci" :{
|
|
|
|
"ET1" : {
|
|
|
|
"focus" : true
|
|
|
|
},
|
|
|
|
"BN3" : {
|
|
|
|
"submit" : true,
|
|
|
|
"text" : "Login"
|
|
|
|
},
|
|
|
|
"BN4" : {
|
|
|
|
"submit" : true,
|
|
|
|
"text" : "Cancel"
|
|
|
|
}
|
2015-03-31 03:29:06 +00:00
|
|
|
},
|
2015-03-31 15:03:47 +00:00
|
|
|
"submit" : {
|
2015-04-02 04:13:29 +00:00
|
|
|
"3" : [ // Login
|
2015-03-31 15:03:47 +00:00
|
|
|
{
|
2015-04-05 07:15:04 +00:00
|
|
|
"value" : { "3" : null },
|
|
|
|
"action" : "@method:attemptLogin",
|
|
|
|
"args" : { "username" : "{1}", "password" : "{2}" } // :TODO: rename to actionArgs ?
|
2015-04-04 20:41:04 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"4" : [ // cancel
|
|
|
|
{
|
2015-04-05 07:15:04 +00:00
|
|
|
"value" : { "4" : null },
|
|
|
|
"action" : "@menu:matrix"
|
2015-03-31 15:03:47 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2015-04-02 04:13:29 +00:00
|
|
|
}
|
2015-03-31 03:29:06 +00:00
|
|
|
}
|
2015-04-10 04:49:56 +00:00
|
|
|
},
|
|
|
|
"options" : {
|
|
|
|
"clearScreen" : true
|
2015-04-04 20:41:04 +00:00
|
|
|
}
|
|
|
|
},
|
2015-03-26 05:23:14 +00:00
|
|
|
"logoff" : {
|
2015-03-24 05:12:19 +00:00
|
|
|
"art" : "logoff",
|
2015-03-26 05:23:14 +00:00
|
|
|
"module" : "logoff"
|
2015-04-07 04:29:45 +00:00
|
|
|
},
|
|
|
|
"apply" : {
|
|
|
|
"art" : "apply",
|
|
|
|
"module" : "apply",
|
|
|
|
"form" : {
|
|
|
|
"0" : {
|
2015-04-10 04:49:56 +00:00
|
|
|
"BN13BN14ET1ET2ET3ET4ET5ET6ET7ET8ET9TL10TL11TL12" : {
|
2015-04-07 04:29:45 +00:00
|
|
|
"mci" : {
|
|
|
|
"ET1" : {
|
|
|
|
"focus" : true
|
2015-04-10 04:49:56 +00:00
|
|
|
},
|
|
|
|
"BN13" : {
|
|
|
|
"text" : "Apply"
|
|
|
|
},
|
|
|
|
"BN14" : {
|
|
|
|
"text" : "Cancel"
|
2015-04-07 04:29:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-04-10 04:49:56 +00:00
|
|
|
},
|
|
|
|
"options" : {
|
|
|
|
"clearScreen" : true
|
2015-04-07 04:29:45 +00:00
|
|
|
}
|
2015-03-24 05:12:19 +00:00
|
|
|
}
|
|
|
|
}
|