mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-11-30 02:37:57 +08:00
87 lines
1001 B
Perl
87 lines
1001 B
Perl
::: env_manage {
|
|
|
|
find(<):
|
|
[select 'Environment'] = sel
|
|
|
|
sel -> 'Manage Environment'
|
|
|
|
find(<):
|
|
[img] [label 'New'] = newLabel
|
|
|
|
newLabel -> click
|
|
|
|
}
|
|
|
|
::: modal_layout {
|
|
find:
|
|
[input] = envName
|
|
[input] = host
|
|
[input] = name [input] = value [input] = desc [img]
|
|
[button 'Save']=save
|
|
}
|
|
|
|
::: add_data {
|
|
name -> '{$1}'
|
|
value -> '{$2}'
|
|
desc -> '{$3}'
|
|
}
|
|
|
|
=== Env
|
|
|
|
--- add case
|
|
|
|
goto 'https://www.eoapi.io/en'
|
|
|
|
--- env_manage
|
|
|
|
--- modal_layout
|
|
|
|
envName -> 'myEnv'
|
|
host -> 'https://youtube.com'
|
|
|
|
--- add_data :a:b:c
|
|
|
|
save -> click
|
|
|
|
find(<):
|
|
[label 'myEnv']
|
|
|
|
find(<):
|
|
[select 'Environment'] = sel
|
|
|
|
sel -> 'myEnv'
|
|
|
|
find:
|
|
[label 'myEnv'] [input]
|
|
|
|
|
|
|
|
--- del case
|
|
|
|
goto 'https://www.eoapi.io/en'
|
|
|
|
--- env_manage
|
|
|
|
--- modal_layout
|
|
|
|
envName -> 'myEnv'
|
|
host -> 'https://youtube.com'
|
|
|
|
--- add_data :a:b:c
|
|
|
|
save -> click
|
|
sel -> hover
|
|
|
|
find:
|
|
[label 'myEnv'] [img] = delIcon
|
|
icon -> click
|
|
|
|
find:
|
|
[label 'Cancel'] [label 'OK']=OK
|
|
ok -> click
|
|
|
|
find: (!)
|
|
[label 'myEnv']
|
|
|
|
|