From f4ee5341015a820c34c41456a00baf603725a20c Mon Sep 17 00:00:00 2001 From: mobeicanyue <81098819+mobeicanyue@users.noreply.github.com> Date: Sat, 13 Apr 2024 19:49:17 +0800 Subject: [PATCH] fix typos (#4503) --- backend/app/api/v1/website.go | 2 +- backend/app/dto/database.go | 2 +- backend/app/service/website.go | 4 ++-- cmd/server/docs/docs.go | 2 +- cmd/server/docs/swagger.json | 2 +- cmd/server/docs/swagger.yaml | 2 +- frontend/src/lang/modules/en.ts | 2 +- frontend/src/lang/modules/tw.ts | 2 +- frontend/src/lang/modules/zh.ts | 2 +- frontend/src/views/host/file-management/create/index.vue | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/backend/app/api/v1/website.go b/backend/app/api/v1/website.go index fa5ef6584..7784f7f45 100644 --- a/backend/app/api/v1/website.go +++ b/backend/app/api/v1/website.go @@ -370,7 +370,7 @@ func (b *BaseApi) ChangeDefaultServer(c *gin.Context) { } // @Tags Website -// @Summary Load websit php conf +// @Summary Load website php conf // @Description 获取网站 php 配置 // @Accept json // @Param id path integer true "request" diff --git a/backend/app/dto/database.go b/backend/app/dto/database.go index 37743ba7a..5f4901710 100644 --- a/backend/app/dto/database.go +++ b/backend/app/dto/database.go @@ -131,7 +131,7 @@ type MysqlStatus struct { } type MysqlVariables struct { - BinlogCachSize string `json:"binlog_cache_size"` + BinlogCacheSize string `json:"binlog_cache_size"` InnodbBufferPoolSize string `json:"innodb_buffer_pool_size"` InnodbLogBufferSize string `json:"innodb_log_buffer_size"` JoinBufferSize string `json:"join_buffer_size"` diff --git a/backend/app/service/website.go b/backend/app/service/website.go index 126579ac4..bb8a781c9 100644 --- a/backend/app/service/website.go +++ b/backend/app/service/website.go @@ -1954,7 +1954,7 @@ func (w WebsiteService) UpdateAntiLeech(req request.NginxAntiLeechUpdate) (err e Parameters: []string{"off"}, }) validDir := &components.Directive{ - Name: "valid_referers", + Name: "valid_referrers", Parameters: []string{}, } if req.NoneRef { @@ -2023,7 +2023,7 @@ func (w WebsiteService) GetAntiLeech(id uint) (*response.NginxAntiLeechRes, erro } lDirectives := location.GetBlock().GetDirectives() for _, lDir := range lDirectives { - if lDir.GetName() == "valid_referers" { + if lDir.GetName() == "valid_referrers" { res.Enable = true params := lDir.GetParameters() for _, param := range params { diff --git a/cmd/server/docs/docs.go b/cmd/server/docs/docs.go index e5c06272a..3f56f4435 100644 --- a/cmd/server/docs/docs.go +++ b/cmd/server/docs/docs.go @@ -13032,7 +13032,7 @@ const docTemplate = `{ "tags": [ "Website" ], - "summary": "Load websit php conf", + "summary": "Load website php conf", "parameters": [ { "type": "integer", diff --git a/cmd/server/docs/swagger.json b/cmd/server/docs/swagger.json index 0c34463ba..26435a676 100644 --- a/cmd/server/docs/swagger.json +++ b/cmd/server/docs/swagger.json @@ -13025,7 +13025,7 @@ "tags": [ "Website" ], - "summary": "Load websit php conf", + "summary": "Load website php conf", "parameters": [ { "type": "integer", diff --git a/cmd/server/docs/swagger.yaml b/cmd/server/docs/swagger.yaml index f94022052..baa2fc878 100644 --- a/cmd/server/docs/swagger.yaml +++ b/cmd/server/docs/swagger.yaml @@ -13282,7 +13282,7 @@ paths: $ref: '#/definitions/response.PHPConfig' security: - ApiKeyAuth: [] - summary: Load websit php conf + summary: Load website php conf tags: - Website /websites/php/update: diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 592b8227d..29806cdc5 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -1144,7 +1144,7 @@ const message = { ignoreCertificateHelper: 'Ignoring untrusted certificates during downloads may lead to data leakage or tampering. Please use this option with caution, only when trusting the download source.', uploadOverLimit: 'The number of files exceeds 1000! Please compress and upload', - clashDitNotSuppport: 'File names are prohibited from containing .1panel_clash', + clashDitNotSupport: 'File names are prohibited from containing .1panel_clash', clashDeleteAlert: 'The Recycle Bin folder cannot be deleted', clashOpenAlert: 'Please click the [Recycle Bin] button to open the recycle bin directory', }, diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 7da4099bb..7af51438c 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -1088,7 +1088,7 @@ const message = { ignoreCertificateHelper: '下載時忽略不可信證書可能導致數據洩露或篡改。請謹慎使用此選項,僅在信任下載源的情況下啟用', uploadOverLimit: '文件數量超過 1000! 請壓縮後上傳', - clashDitNotSuppport: '檔名禁止包含 .1panel_clash', + clashDitNotSupport: '檔名禁止包含 .1panel_clash', clashDleteAlert: '回收站資料夾不能刪除', clashOpenAlert: '回收站目錄請點選【回收站】按鈕開啟', }, diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index ecbf8f0a1..23a53097e 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -1089,7 +1089,7 @@ const message = { ignoreCertificateHelper: '下载时忽略不可信证书可能导致数据泄露或篡改。请谨慎使用此选项,仅在信任下载源的情况下启用', uploadOverLimit: '文件数量超过 1000!请压缩后上传', - clashDitNotSuppport: '文件名禁止包含 .1panel_clash', + clashDitNotSupport: '文件名禁止包含 .1panel_clash', clashDleteAlert: '回收站文件夹不能删除', clashOpenAlert: '回收站目录请点击【回收站】按钮打开', }, diff --git a/frontend/src/views/host/file-management/create/index.vue b/frontend/src/views/host/file-management/create/index.vue index 62a583f65..6498f11dd 100644 --- a/frontend/src/views/host/file-management/create/index.vue +++ b/frontend/src/views/host/file-management/create/index.vue @@ -121,7 +121,7 @@ const submit = async (formEl: FormInstance | undefined) => { return; } if (getPath.value.indexOf('.1panel_clash') > -1) { - MsgWarning(i18n.global.t('file.clashDitNotSuppport')); + MsgWarning(i18n.global.t('file.clashDitNotSupport')); return; }