Skip to content

Commit 9bf9326

Browse files
committed
merge origin master
2 parents e33aaca + db20f3b commit 9bf9326

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+7975
-394
lines changed

README.en-US.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ The Alibaba Cloud API Toolkit for VSCode makes it easier to access Alibaba Cloud
1616
including descriptions, request parameters, response parameters and error codes.
1717
Click to debug, you can link to Aliyun OpenAPI portal for online API trial.
1818

19+
* **Call the API:** You can use the form to call the Alibaba Cloud API and see the response.
20+
21+
* **SDK Code Sample:** You can get the SDK code samples and quickly open the corresponding SDK code in VS Code.
22+
1923
* More features are under development, please stay tuned.
2024

2125
## Extension UI Guide
@@ -30,3 +34,36 @@ Click to debug, you can link to Aliyun OpenAPI portal for online API trial.
3034

3135
![API Serching](https://img.alicdn.com/imgextra/i1/O1CN01KaWkBF1UfCUkY0N3v_!!6000000002544-0-tps-1286-518.jpg)
3236

37+
* Call the API
38+
39+
The feature requires you to configure your AK/SK information as follows:
40+
1. Install [Alibaba Cloud CLI Tools](https://marketplace.visualstudio.com/items?itemName=alibabacloud-openapi.aliyuncli) extentions.
41+
2. Open the command line to install aliyun-cli `brew install aliyun-cli`,
42+
3. Enter `aliyun configure` and follow the prompts to configure it,
43+
4. Click the Alibaba Cloud icon in VS Code status bar to manage your profiles,
44+
5. More information please refer to the [Alibaba Cloud CLI Documentation] (https://github.com/aliyun/aliyun-cli?tab=readme-ov-file#configure).
45+
46+
![API debug](https://img.alicdn.com/imgextra/i4/O1CN01F1qI7S1BunIFJPiAt_!!6000000000006-0-tps-2618-2050.jpg)
47+
48+
* SDK Code Sample
49+
50+
![sdk demo](https://img.alicdn.com/imgextra/i1/O1CN01GVhWTl1waRdYmCn7E_!!6000000006324-0-tps-2630-2038.jpg)
51+
52+
## Requirements
53+
- Need VS Code 1.75.0 or above.
54+
55+
## Release Notes
56+
57+
### 0.0.1
58+
Initial release
59+
- Support product searching and subscription.
60+
- Support API searching.
61+
- Support API Document View.
62+
63+
### 0.0.3
64+
- Support API calling.
65+
- Support SDK code sample.
66+
67+
## License
68+
69+
See the [Apache License 2.0](./LICENSE).

README.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@ Alibaba Cloud API Toolkit 是一个轻量化的阿里云 API 工具,支持在
1717

1818
* **API 文档预览:** 点击 API 可以打开一个新的标签页,并显示对应的 API 文档,包括描述、请求参数、响应参数和错误码。在文档中点击调试按钮,可以链接到阿里云 OpenAPI 门户进行在线 API 试用。
1919

20+
* **API 调试:** 你可以在插件中使用表单的方式调试阿里云 API,并查看结果。
21+
22+
* **SDK 代码示例:** 你可以在插件中获得 SDK 代码示例,并在编辑器中快速打开对应的 SDK 代码。
23+
2024
* 更多功能正在开发中,敬请期待...
2125

2226
## 插件 UI 导览
2327

24-
![VSCode Extension Guide](https://img.alicdn.com/imgextra/i2/O1CN01VJNeqk1NKrbDtTotP_!!6000000001552-0-tps-2310-1524.jpg)
28+
![VSCode Extension Guide](https://img.alicdn.com/imgextra/i1/O1CN01o9s4TT1GTq3oggW7K_!!6000000000624-0-tps-2456-1446.jpg)
2529

2630
* 产品搜索 `ctrl+cmd+k`
2731

@@ -31,3 +35,36 @@ Alibaba Cloud API Toolkit 是一个轻量化的阿里云 API 工具,支持在
3135

3236
![API Serching](https://img.alicdn.com/imgextra/i1/O1CN01KaWkBF1UfCUkY0N3v_!!6000000002544-0-tps-1286-518.jpg)
3337

38+
* API 调试
39+
40+
调试功能需要配置你的 AK/SK 信息,配置方法如下:
41+
1. 安装 [Alibaba Cloud CLI Tools](https://marketplace.visualstudio.com/items?itemName=alibabacloud-openapi.aliyuncli) 插件,
42+
2. 打开命令行安装 aliyun-cli `brew install aliyun-cli`
43+
3. 输入 `aliyun configure` 命令,按照提示进行配置,
44+
4. 点击 VS Code 状态栏中的阿里云图标,管理你的 profiles,
45+
5. 更多信息请参考 [Alibaba Cloud CLI Documentation](https://github.com/aliyun/aliyun-cli?tab=readme-ov-file#configure)
46+
47+
![API debug](https://img.alicdn.com/imgextra/i4/O1CN01F1qI7S1BunIFJPiAt_!!6000000000006-0-tps-2618-2050.jpg)
48+
49+
* SDK 示例
50+
51+
![sdk demo](https://img.alicdn.com/imgextra/i1/O1CN01GVhWTl1waRdYmCn7E_!!6000000006324-0-tps-2630-2038.jpg)
52+
53+
## Requirements
54+
- Need VS Code 1.75.0 or above.
55+
56+
## Release Notes
57+
58+
### 0.0.1
59+
Initial release
60+
- Support product searching and subscription.
61+
- Support API searching.
62+
- Support API Document View.
63+
64+
### 0.0.3
65+
- Support API calling.
66+
- Support SDK code sample.
67+
68+
## License
69+
70+
See the [Apache License 2.0](./LICENSE).

media/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@
1515
"@alicloud/console-components": "^1.6.2",
1616
"@monaco-editor/react": "^4.6.0",
1717
"@vercel/ncc": "^0.38.1",
18+
"@vscode-elements/elements": "^1.0.0-pre.10",
1819
"antd": "^5.12.3",
1920
"intl-format": "^1.2.0",
2021
"load-script": "^2.0.0",
22+
"lodash": "^4.17.20",
2123
"next": "^14.0.4",
2224
"pontx-ui": "latest",
2325
"react": "^18.2.0",
2426
"react-copy-to-clipboard": "^5.1.0",
2527
"react-dom": "^18.2.0",
28+
"react-use-observer": "^2.2.4",
2629
"sass": "^1.69.5",
2730
"semix-schema-table": "^0.1.3",
2831
"styled-components": "^6.1.1",
29-
"xml2js": "^0.6.2",
30-
"lodash": "^4.17.20"
32+
"xml2js": "^0.6.2"
3133
},
3234
"resolutions": {
3335
"semix-schema-table": "^0.1.3"
@@ -44,6 +46,6 @@
4446
"@types/react-dom": "^18.0.3",
4547
"@types/vscode": "^1.47.0",
4648
"@types/vscode-webview": "^1.57.0",
47-
"@types/blueimp-md5":"^2.7.0"
49+
"@types/blueimp-md5": "^2.7.0"
4850
}
4951
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
.pontx-ui-api {
2+
min-width: 540px;
3+
overflow: auto;
4+
.web-debug{
5+
margin: 12px 40px 12px;
6+
float:right
7+
}
8+
.debug-comp-content{
9+
display: flex;
10+
flex-direction: row;
11+
}
12+
.debug-comp-content-column {
13+
flex-direction: column;
14+
}
15+
.left-panel {
16+
.head-content{
17+
padding: 20px;
18+
border-bottom: 1px #ccc solid;
19+
}
20+
.middle-content{
21+
/* border: 1px #ccc solid;
22+
border-top: 0px; */
23+
padding: 20px;
24+
height: calc(100vh - 370px);
25+
overflow: auto;
26+
}
27+
.footer-content{
28+
padding: 20px;
29+
border-top: 1px #ccc solid;
30+
display: flex;
31+
justify-content: space-between;
32+
}
33+
34+
}
35+
.left-panel-column {
36+
overflow: auto;
37+
border: #ccc 1px solid;
38+
.middle-content{
39+
/* border: 1px #ccc solid;
40+
border-top: 0px; */
41+
padding: 20px;
42+
height: 200px;
43+
overflow: auto;
44+
}
45+
}
46+
.right-panel {
47+
min-width: 540px;
48+
border-left: 1px #ccc solid;
49+
.right-ops{
50+
padding: 0 16px;
51+
font-weight: 500;
52+
}
53+
.content{
54+
padding: 0 0 16px 20px;
55+
height: calc(100vh - 270px);
56+
overflow: auto;
57+
.api-params-doc{
58+
overflow: auto;
59+
}
60+
.semix-schema-table{
61+
table-layout: fixed;
62+
.param-name {
63+
width: 280px;
64+
}
65+
.param-name div > div{
66+
display: flex;
67+
flex-wrap: wrap;
68+
}
69+
}
70+
/* .param-name.semix-table-td{
71+
max-width: 280px;
72+
} */
73+
}
74+
}
75+
}
76+

0 commit comments

Comments
 (0)