diff --git a/src/core/composable_component/header/atom_component/notice/HeaderNotice.re b/src/core/composable_component/header/atom_component/notice/HeaderNotice.re index 45bd9e8dd..ff46b2cb3 100644 --- a/src/core/composable_component/header/atom_component/notice/HeaderNotice.re +++ b/src/core/composable_component/header/atom_component/notice/HeaderNotice.re @@ -14,24 +14,17 @@ module Method = { let getVersion = () => LocalStorage.getValue(getVersionKey()); - let buildWelComeUserModalContent = () => [| -
- { - DomHelper.textEl( - {j|欢迎使用Wonder编辑器,我们为您服务~|j}, - ) - } -
, + let _buildLinkContent = () => [|
,
- {DomHelper.textEl({j|官方网站|j})} + {DomHelper.textEl({j|Website|j})}
,
,
- {DomHelper.textEl({j|论坛|j})} + {DomHelper.textEl({j|Forum|j})}
,
, @@ -39,7 +32,7 @@ module Method = { - {DomHelper.textEl({j|文档|j})} + {DomHelper.textEl({j|Doc|j})}
,
, @@ -50,40 +43,27 @@ module Method = {
, |]; + let buildWelComeUserModalContent = () => + [| +
+ { + DomHelper.textEl( + {j|Welcome to use Wonder editor, We are here to serve you~ Thanks for your trust~|j}, + ) + } +
, + |] + |> ArrayService.fastConcat(_, _buildLinkContent()); + let buildVersionUpgradeModalContent = () => { let newVersion = Copyright.getVersion(); [|
- {DomHelper.textEl({j|已为您升级为$newVersion版本。|j})} -
, -
, -
- - {DomHelper.textEl({j|官方网站|j})} - -
, -
, -
- - {DomHelper.textEl({j|论坛|j})} - -
, -
, - , -
, -
- - {DomHelper.textEl({j|Github|j})} - + {DomHelper.textEl({j|Upgrade to $newVersion Version, We are here to serve you~ Thanks for your trust~|j})}
, - |]; + |] + |> ArrayService.fastConcat(_, _buildLinkContent()); }; }; diff --git a/test/unit/composable_component/header/__snapshots__/Header_notice_test.js.snap b/test/unit/composable_component/header/__snapshots__/Header_notice_test.js.snap index db220ec16..1e0ad77cd 100644 --- a/test/unit/composable_component/header/__snapshots__/Header_notice_test.js.snap +++ b/test/unit/composable_component/header/__snapshots__/Header_notice_test.js.snap @@ -25,7 +25,7 @@ exports[`Header Notice test show notice else else, if localStorage version !== c
- 已为您升级为1.0.0-rc.1版本。 + Upgrade to 1.0.0-rc.1 Version, We are here to serve you~ Thanks for your trust~
- 官方网站 + Website
- 论坛 + Forum
- 文档 + Doc
- 已为您升级为1.0.0-rc.1版本。 + Upgrade to 1.0.0-rc.1 Version, We are here to serve you~ Thanks for your trust~
- 官方网站 + Website
- 论坛 + Forum
- 文档 + Doc
- 欢迎使用Wonder编辑器,我们为您服务~ + Welcome to use Wonder editor, We are here to serve you~ Thanks for your trust~
- 官方网站 + Website
- 论坛 + Forum
- 文档 + Doc