Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/components/setting/mcp-detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ const McpDetail: React.FC<Props> = ({ setMode, detailInfo }) => {
);

const showOauth = useMemo(
() => ["aiden-mail", "aiden-outlook"].includes(detailInfo.mcp_key),
() =>
["aiden-mail", "aiden-outlook", "aiden-gsuite"].includes(
Comment thread
HuangHan96 marked this conversation as resolved.
detailInfo.mcp_key,
),
[detailInfo],
);

Expand Down
2 changes: 2 additions & 0 deletions app/components/setting/mcp-oauth-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import QQIcon from "@/app/icons/qq.png";
import NeteaseIcon from "@/app/icons/163.png";
import icloudIcon from "@/app/icons/icloud.png";
import gmailIcon from "@/app/icons/gmail.png";
import googleIcon from "@/app/icons/google.png";
Comment thread
HuangHan96 marked this conversation as resolved.
import DeleteIcon from "@/app/icons/delete.svg";
import AddOutlineIcon from "@/app/icons/add-outline.svg";
import { AccountItem, McpItemInfo, AidenCredential } from "@/app/typing";
Expand All @@ -52,6 +53,7 @@ const mailIconMap = {
iCloud: icloudIcon,
Gmail: gmailIcon,
microsoft: OutlookIcon,
google: googleIcon,
Comment thread
HuangHan96 marked this conversation as resolved.
};

interface McpOauthModalProps {
Expand Down
2 changes: 1 addition & 1 deletion app/components/setting/mcp-table-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function McpTableItem({

const showOauth = useMemo(() => {
const { mcp_key } = item;
return ["aiden-mail", "aiden-outlook"].includes(mcp_key);
return ["aiden-mail", "aiden-outlook", "aiden-gsuite"].includes(mcp_key);
Comment thread
HuangHan96 marked this conversation as resolved.
}, [item]);

const showUpdate = useMemo(() => {
Expand Down
Binary file added app/icons/google.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/locales/en-US/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"search": "Search",
"setting": "Setting",
"oauth": "OAuth",
"oauthTitle": "Mail Account",
"oauthTitle": "Account",
Comment thread
HuangHan96 marked this conversation as resolved.
"btnUpdate": "Update",
"remove": "Remove",
"save": "Save",
Expand Down
2 changes: 1 addition & 1 deletion app/locales/zh-CN/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"search": "搜索",
"setting": "设置",
"oauth": "OAuth",
"oauthTitle": "邮箱账号",
"oauthTitle": "账号",
"btnUpdate": "更新",
"remove": "移除",
"save": "保存",
Expand Down