Merge branch 'feat/scripts' of github.com:eolinker/eoapi into feat/scripts

This commit is contained in:
夜鹰 2022-07-13 16:11:31 +08:00
commit 963dc6ebe7
6 changed files with 45 additions and 23 deletions

View File

@ -1,3 +1,5 @@
<!-- Build app with a hardened runtime -->
<!-- see => https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/ -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">

View File

@ -1,3 +1,13 @@
/**
* Use electron-notarize to notarize app
*
* @description The app should be notarized after it has been signed and before its packaged into a dmg.
* Electron-builder has a hook for this called afterSign. You can link that to a javascript file that will be called (and waited for) after sign.
* You add it to your top level build configuration
*
* @link https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/
*/
exports.default = function notarizing(context) {
return context;
};

View File

@ -24,3 +24,13 @@
}
}
}
::ng-deep eo-editor {
height: 100%;
& > div {
height: 100%;
}
.ace_editor {
height: 100% !important;
}
}

View File

@ -22,7 +22,7 @@ eo-api-test-rest {
height: 100%;
.scroll_container {
height: calc(100% - 52px);
overflow-y: auto;
// overflow-y: auto;
}
}

View File

@ -1,5 +1,5 @@
<div class="flex eo-api-script">
<div class="w-[240px] h-[400px] overflow-auto">
<div class="w-[240px] h-[322px] overflow-auto">
<div class="flex justify-between p-3">
<div i18n>Shortcut</div>
<div>

View File

@ -24,76 +24,76 @@ export type Completion = { caption: string; value: string };
export const TREE_DATA: TreeNode[] = [
{
name: 'HTTP API 请求',
name: $localize`HTTP API request`,
children: [
{
name: '获取响应结果',
name: $localize`Get Response Results`,
caption: 'eo.http.response.get',
value: 'eo.http.response.get();',
note: {
code: 'eo.http.response.get()',
desc: '获取 HTTP API 的响应结果',
desc: $localize`Get the response result of the HTTP API`,
},
},
{
name: '设置响应结果',
name: $localize`Set Response Result`,
caption: 'eo.http.response.set',
value: 'eo.http.response.set("response_value");',
note: {
code: 'eo.http.response.set("response_value")',
desc: '设置 HTTP API 的响应结果',
input: [{ key: 'response_value', value: '响应结果' }],
desc: $localize`Set the response result of the HTTP API`,
input: [{ key: 'response_value', value: $localize`response result` }],
},
},
],
},
{
name: '自定义全局变量',
name: $localize`Custom Global Variable`,
children: [
{
name: '设置全局变量',
name: $localize`Set Global Variable`,
caption: 'eo.globals.set',
value: 'eo.globals.set("param_key","param_value")',
note: {
code: 'eo.globals.set("param_key","param_value")',
desc: '设置全局变量',
desc: $localize`Set Global Variable`,
input: [
{ key: 'param_key', value: '参数名' },
{ key: 'param_value', value: '参数值' },
{ key: 'param_key', value: $localize`parameter name` },
{ key: 'param_value', value: $localize`parameter value` },
],
},
},
{
name: '获取全局变量值',
name: $localize`Get global variable value`,
caption: 'eo.globals.get',
value: 'eo.globals.get("param_key")',
note: {
code: 'eo.globals.set("param_key","param_value")',
desc: '设置全局变量',
desc: $localize`Get global variable value`,
input: [
{ key: 'param_key', value: '参数名' },
{ key: 'param_value', value: '参数值' },
{ key: 'param_key', value: $localize`parameter name` },
{ key: 'param_value', value: $localize`parameter value` },
],
output: '全局变量值',
output: $localize`Global Variable Value`,
},
},
{
name: '删除全局变量',
name: $localize`Delete Global Variable`,
caption: 'eo.globals.unset',
value: 'eo.globals.unset("param_key")',
note: {
code: 'eo.globals.unset("param_key")',
desc: '删除全局变量',
input: [{ key: 'param_key', value: '参数名' }],
desc: $localize`Delete Global Variable`,
input: [{ key: 'param_key', value: $localize`parameter name` }],
},
},
{
name: '清空所有全局变量',
name: $localize`Clear All Global Variables`,
caption: 'eo.globals.clear',
value: 'eo.globals.clear()',
note: {
code: 'eo.globals.clear()',
desc: '清空所有全局变量',
desc: $localize`Clear All Global Variables`,
},
},
],