Skip to content

Commit

Permalink
feat:modify link target
Browse files Browse the repository at this point in the history
  • Loading branch information
yexiyue committed May 24, 2024
1 parent 2831396 commit 4a500a7
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="zh">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
Expand Down
1 change: 1 addition & 0 deletions web/src/components/admin/CreateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const CreateModal = (props: CreateModalProps) => {
setLoading(true);
const res = await form.validateFields();
await onOk?.(operator, res);
form.resetFields();
setLoading(false);
}}
okButtonProps={{
Expand Down
10 changes: 5 additions & 5 deletions web/src/locales/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ msgstr ""
msgid "{0}模版 (仅公开)"
msgstr "{0}Template (Public Only)"

#: src/components/admin/CreateModal.tsx:50
#: src/components/admin/CreateModal.tsx:51
msgid "{type}名称"
msgstr "{type}Name"

#: src/components/admin/CreateModal.tsx:56
#: src/components/admin/CreateModal.tsx:57
msgid "{type}描述"
msgstr "{type}Description"

Expand Down Expand Up @@ -437,12 +437,12 @@ msgstr "Please log in first"
msgid "请先登陆"
msgstr "Please log in first"

#: src/components/admin/CreateModal.tsx:52
#: src/components/admin/CreateModal.tsx:54
#: src/components/admin/CreateModal.tsx:53
#: src/components/admin/CreateModal.tsx:55
msgid "请输入{type}名称"
msgstr "Please enter {type} name"

#: src/components/admin/CreateModal.tsx:66
#: src/components/admin/CreateModal.tsx:67
msgid "请输入{type}描述"
msgstr "Please enter {type} description"

Expand Down
10 changes: 5 additions & 5 deletions web/src/locales/zh.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ msgstr ""
msgid "{0}模版 (仅公开)"
msgstr "{0}模版 (仅公开)"

#: src/components/admin/CreateModal.tsx:50
#: src/components/admin/CreateModal.tsx:51
msgid "{type}名称"
msgstr "{type}名称"

#: src/components/admin/CreateModal.tsx:56
#: src/components/admin/CreateModal.tsx:57
msgid "{type}描述"
msgstr "{type}描述"

Expand Down Expand Up @@ -437,12 +437,12 @@ msgstr "请先登录"
msgid "请先登陆"
msgstr "请先登陆"

#: src/components/admin/CreateModal.tsx:52
#: src/components/admin/CreateModal.tsx:54
#: src/components/admin/CreateModal.tsx:53
#: src/components/admin/CreateModal.tsx:55
msgid "请输入{type}名称"
msgstr "请输入{type}名称"

#: src/components/admin/CreateModal.tsx:66
#: src/components/admin/CreateModal.tsx:67
msgid "请输入{type}描述"
msgstr "请输入{type}描述"

Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/center/Mine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const Component = () => {
width: 150,
render: (sourceCodeUrl) => {
return sourceCodeUrl ? (
<Typography.Link href={sourceCodeUrl} ellipsis>
<Typography.Link href={sourceCodeUrl} target="_blank" ellipsis>
{sourceCodeUrl}
</Typography.Link>
) : (
Expand Down
7 changes: 6 additions & 1 deletion web/src/pages/templates/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,12 @@ export const Component = () => {
{data?.templateWithUser.sourceCodeUrl ? (
<Space>
<GithubOutlined />
<a href={data?.templateWithUser.sourceCodeUrl!}>Github</a>
<Typography.Link
href={data?.templateWithUser.sourceCodeUrl!}
target="_blank"
>
Github
</Typography.Link>
</Space>
) : (
<Trans>暂无存储库</Trans>
Expand Down

0 comments on commit 4a500a7

Please sign in to comment.