From d71e2a74b4b56998e78e921a9dd8322995e75d74 Mon Sep 17 00:00:00 2001
From: gengxin <1376732967@qq.com>
Date: Fri, 31 Mar 2023 11:16:15 +0800
Subject: [PATCH] feat: xterm-Support for Ctrl+MouseWheel to scaling fonts
(#448)
#### What this PR does / why we need it?
#284
Support for scaling fonts using Ctrl+mouse wheel
#446
support Editor config the eol.
Currently, 1Panel only supports Linux, so directly set the default EOL to LF and add a new configuration item
#### Summary of your change
#### Please indicate you've done the following:
- [x] Made sure tests are passing and test coverage is added if needed.
- [x] Made sure commit message follow the rule of [Conventional Commits specification](https://www.conventionalcommits.org/).
- [ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.
---
frontend/src/lang/modules/en.ts | 1 +
frontend/src/lang/modules/zh.ts | 1 +
.../file-management/code-editor/index.vue | 28 +++++++++++++++++++
.../views/host/terminal/terminal/terminal.vue | 22 ++++++++++++++-
4 files changed, 51 insertions(+), 1 deletion(-)
diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts
index b7dc85dcf..97610576c 100644
--- a/frontend/src/lang/modules/en.ts
+++ b/frontend/src/lang/modules/en.ts
@@ -763,6 +763,7 @@ const message = {
downlodSuccess: 'Download Success',
theme: 'Theme',
language: 'Language',
+ eol: 'End Of Line',
},
setting: {
all: 'All',
diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts
index a9a149bea..9871f0851 100644
--- a/frontend/src/lang/modules/zh.ts
+++ b/frontend/src/lang/modules/zh.ts
@@ -767,6 +767,7 @@ const message = {
downlodSuccess: '下载完成',
theme: '主题',
language: '语言',
+ eol: '行尾符',
},
setting: {
all: '全部',
diff --git a/frontend/src/views/host/file-management/code-editor/index.vue b/frontend/src/views/host/file-management/code-editor/index.vue
index 94d237aff..38ad1d33b 100644
--- a/frontend/src/views/host/file-management/code-editor/index.vue
+++ b/frontend/src/views/host/file-management/code-editor/index.vue
@@ -18,6 +18,11 @@