From 19e78b810fde4c7875beead27b8bafe98ad1a9e2 Mon Sep 17 00:00:00 2001 From: yini-chen Date: Thu, 13 Jun 2024 11:50:00 +0800 Subject: [PATCH 1/8] Bump 0.0.11 --- CHANGELOG.md | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e5b516..4375c3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Release Notes +## 0.0.11(2024-06-13) + +- Fixed some UI issues. +- Update User-Agent. + ## 0.0.10(2024-05-17) - SDK code documentation has been enhanced with the Code Sample link. diff --git a/package.json b/package.json index 690d9ab..97d48e3 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Alibaba Cloud API Toolkit", "description": "The Alibaba Cloud API Toolkit for VSCode makes it easier to access Alibaba Cloud services.", "author": "Alibaba Cloud SDK Team", - "version": "0.0.10", + "version": "0.0.11", "private": true, "publisher": "alibabacloud-openapi", "license": "Apache-2.0", From 2ab708c0322bd60c62f5a274cfb41dfcb6173afe Mon Sep 17 00:00:00 2001 From: yini-chen Date: Fri, 14 Jun 2024 11:40:11 +0800 Subject: [PATCH 2/8] doc: update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4375c3c..75bf721 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 0.0.11(2024-06-13) +- Guide special products to web debugging. - Fixed some UI issues. - Update User-Agent. From 3e4f924518de708d6617de3ca0af1704c30e45e4 Mon Sep 17 00:00:00 2001 From: yini-chen Date: Wed, 26 Jun 2024 10:04:31 +0800 Subject: [PATCH 3/8] Bump 0.0.11 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75bf721..1cc46fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 0.0.11(2024-06-13) +- Profiles management: You can switch between profiles or add a new one. - Guide special products to web debugging. - Fixed some UI issues. - Update User-Agent. From 97577bc42c3ce8c05cb12ddf3eada3a283c29c66 Mon Sep 17 00:00:00 2001 From: yini-chen Date: Wed, 26 Jun 2024 10:44:40 +0800 Subject: [PATCH 4/8] fix: loading of profile management --- .../ProfileManager/ProfileManagerIndex.tsx | 149 ++++++++++-------- 1 file changed, 83 insertions(+), 66 deletions(-) diff --git a/media/src/components/ProfileManager/ProfileManagerIndex.tsx b/media/src/components/ProfileManager/ProfileManagerIndex.tsx index cc51d2d..e57af0c 100644 --- a/media/src/components/ProfileManager/ProfileManagerIndex.tsx +++ b/media/src/components/ProfileManager/ProfileManagerIndex.tsx @@ -30,7 +30,9 @@ export const ProfileManagerIndex: React.FC = (props) = {status === "success" ? (
- 新增成功! + + 新增成功! +
) : ( -
- Profile 名称} required> - 用于区别不同的 profiles。 - - - Access Key} required> - - 获取方式请参见 - + {status === "loading" ? ( + + 写入中... + + ) : null} + {status === "faild" ? ( + + 添加失败,请重试 + + ) : null} + + Profile 名称} required> + 用于区别不同的 profiles。 + + + Access Key} required> + + 获取方式请参见 + + 创建 RAM 用户的 AccessKey + + 。 + + + + Secret Key} required> + + 获取方式请参见 + + 创建 RAM 用户的 AccessKey + + 。 + + + + 默认 Region Id} required> + + 阿里云支持的 Region Id ,请参见 + + 地域和可用区 + + 。 + + + +
+ { + if (errors) { + return; + } else { + setStatus("loading"); + PontUIService.addNewAKProfile(submitValue).then((res) => { + if (res.success === true) { + setStatus("success"); + } else { + setStatus("faild"); + } + }); + } + }} + className="text-right" > - 创建 RAM 用户的 AccessKey - - 。 - - - - Secret Key} required> - - 获取方式请参见 - - 创建 RAM 用户的 AccessKey - - 。 - - - - 默认 Region Id} required> - - 阿里云支持的 Region Id ,请参见 - - 地域和可用区 - - 。 - - - -
- { - if (errors) { - return; - } else { - PontUIService.addNewAKProfile(submitValue).then((res) => { - if (res.success === true) { - setStatus("success"); - } - }); - } - }} - className="text-right" - > - 新增 - - 重置 -
- + 新增 +
+ 重置 +
+ + )} From 06fa36950b130f0ab42a8015eaa3fdb622732360 Mon Sep 17 00:00:00 2001 From: yini-chen Date: Wed, 26 Jun 2024 11:32:12 +0800 Subject: [PATCH 5/8] fix: loading of profile management --- media/package.json | 1 + .../ProfileManager/ProfileManagerIndex.tsx | 24 +++++++++---------- media/yarn.lock | 17 +++++++++++++ 3 files changed, 30 insertions(+), 12 deletions(-) diff --git a/media/package.json b/media/package.json index b5a12e0..6e5eee9 100644 --- a/media/package.json +++ b/media/package.json @@ -13,6 +13,7 @@ }, "dependencies": { "@alicloud/console-components": "^1.6.2", + "@ant-design/icons": "^5.3.7", "@monaco-editor/react": "^4.6.0", "@vercel/ncc": "^0.38.1", "@vscode-elements/elements": "^1.3.0", diff --git a/media/src/components/ProfileManager/ProfileManagerIndex.tsx b/media/src/components/ProfileManager/ProfileManagerIndex.tsx index e57af0c..afd45ef 100644 --- a/media/src/components/ProfileManager/ProfileManagerIndex.tsx +++ b/media/src/components/ProfileManager/ProfileManagerIndex.tsx @@ -5,6 +5,8 @@ import { Button, Form, Input, Message } from "@alicloud/console-components"; import React from "react"; import { PontUIService } from "../../service/UIService"; +import { message } from "antd"; +import { LoadingOutlined } from "@ant-design/icons"; export class ProfileManagerIndexProps {} @@ -30,9 +32,10 @@ export const ProfileManagerIndex: React.FC = (props) = {status === "success" ? (
- - 新增成功! - +
+
+
新增成功!
+