mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-11-30 02:37:57 +08:00
99 lines
1.1 KiB
Perl
99 lines
1.1 KiB
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 -> 'myEnv'
|
|
|
|
find:
|
|
[label 'New']
|
|
[label 'myEnv'] = env
|
|
|
|
env -> hover
|
|
|
|
find:
|
|
[label 'New']
|
|
[label 'myEnv'] [img] = delIcon
|
|
|
|
delIcon -> click
|
|
|
|
find:
|
|
[label 'Cancel'] [label 'OK']=ok
|
|
|
|
ok -> click
|
|
|
|
find: (!)
|
|
[label 'myEnv']
|
|
|
|
capture
|