Skip to content

Commit

Permalink
common setting style & text
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk committed Nov 9, 2023
1 parent e01605a commit d3fff80
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 22 deletions.
18 changes: 3 additions & 15 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion web/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@
"FuncListDisplay": "Function List Display",
"ListDisplay": "List Display",
"EditorLanguageServer": "Editor Language Server",
"isOpenLanguageServer": "Open or Close Language server"
"isOpenLanguageServer": "Enable or Close Language server (Note that enabling this feature may consume more CPU and memory)",
"Editor": "Editor",
"FuncList": "Function List"
},
"StoragePanel": {
"All": "Total Capacity",
Expand Down
4 changes: 3 additions & 1 deletion web/public/locales/zh-CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@
"FuncListDisplay": "函数列表显示",
"ListDisplay": "列表显示",
"EditorLanguageServer": "编辑器语言服务",
"isOpenLanguageServer": "是否开启语言服务"
"isOpenLanguageServer": "是否开启语言服务(开启后会占用更多的 CPU 和内存)",
"Editor": "编辑器",
"FuncList": "函数列表"
},
"StoragePanel": {
"All": "总容量",
Expand Down
4 changes: 3 additions & 1 deletion web/public/locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@
"FuncListDisplay": "函数列表显示",
"ListDisplay": "列表显示",
"EditorLanguageServer": "编辑器语言服务",
"isOpenLanguageServer": "是否开启语言服务"
"isOpenLanguageServer": "是否开启语言服务(开启后会占用更多的 CPU 和内存)",
"Editor": "编辑器",
"FuncList": "函数列表"
},
"StoragePanel": {
"All": "总容量",
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Editor/TextModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ StandaloneCodeEditorService.prototype.doOpenEditor = function (
editor.setSelection(selection);
editor.revealRangeInCenter(selection, 1);
} else {
var pos = {
const pos = {
lineNumber: selection.startLineNumber,
column: selection.startColumn,
};
Expand Down
5 changes: 2 additions & 3 deletions web/src/pages/app/setting/SysSetting/CommonSetting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function CommonSetting() {
return (
<div className="ml-12 mr-16">
<div className="mt-8 flex flex-col">
<span className="mb-2 text-xl font-medium">{t("SettingPanel.EditorLanguageServer")}</span>
<span className="mb-2 text-xl font-medium">{t("SettingPanel.Editor")}</span>
<span className={darkMode ? "mb-2 text-grayModern-200" : "mb-2 text-grayModern-700"}>
{t("SettingPanel.isOpenLanguageServer")}
</span>
Expand All @@ -45,7 +45,6 @@ export default function CommonSetting() {
</div>
</div>
<div className="mt-4 flex flex-col">
<span className="mb-2 text-xl font-medium">{t("SettingPanel.EditorFont")}</span>
<span className={darkMode ? "mb-2 text-grayModern-200" : "mb-2 text-grayModern-700"}>
{t("SettingPanel.FontSize")}
</span>
Expand All @@ -72,7 +71,7 @@ export default function CommonSetting() {
</div>
<Divider className="my-8" />
<div className="flex flex-col">
<span className="mb-2 text-xl font-medium">{t("SettingPanel.FuncListDisplay")}</span>
<span className="mb-2 text-xl font-medium">{t("SettingPanel.FuncList")}</span>
<span className={darkMode ? "mb-2 text-grayModern-200" : "mb-2 text-grayModern-700"}>
{t("SettingPanel.ListDisplay")}
</span>
Expand Down

0 comments on commit d3fff80

Please sign in to comment.