diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 35f332e1..985df32d 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,6 +1,6 @@ ## 行为准则 -耗子Linux面板遵守业界通用的行为准则。任何违反行为准则的行为都可以报告给我们: +耗子 Linux 面板遵守业界通用的行为准则。任何违反行为准则的行为都可以报告给我们: - 参与者将容忍反对意见。 - 参与者必须确保他们的语言和行为没有人身攻击和贬低个人言论。 diff --git a/README.md b/README.md index bf048ec1..898fb5b8 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ ## 运行环境 -耗子Linux面板仅支持 `amd64` | `arm64` 架构下的主流系统的最新版本,不支持 `Ubuntu`,因为其发版太过频繁,难以维护。 +耗子 Linux 面板仅支持 `amd64` | `arm64` 架构下的主流系统的最新版本,不支持 `Ubuntu`,因为其发版太过频繁,难以维护。 低配机器建议使用 `Debian`,资源占用较 `RHEL` 系更低。其他机器建议使用 `AlmaLinux` | `RockyLinux`,维护周期更长也更稳定。 @@ -53,7 +53,7 @@ CentOS Stream 可使用迁移脚本迁移至支持的系统: [CentOS 8/9 迁移 ## 安装面板 > **Warning** -> 安装面板前,你需要了解LNMP环境的基本知识,以及如何处理常见的LNMP环境问题,不建议0基础的用户安装和使用耗子Linux面板。 +> 安装面板前,你需要了解 LNMP 环境的基本知识,以及如何处理常见的 LNMP 环境问题,不建议 0 基础的用户安装和使用耗子 Linux 面板。 如果你决定继续,请以`root`用户登录服务器,执行以下命令安装面板: diff --git a/SECURITY.md b/SECURITY.md index 98346491..da5aafb0 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,8 +1,8 @@ ## 安全说明 -安全性是我们最关心的问题之一,我们已在多个不同应用的生产环境广泛应用耗子Linux面板,至今无一例安全事故。 +安全性是我们最关心的问题之一,我们已在多个不同应用的生产环境广泛应用耗子 Linux 面板,至今无一例安全事故。 -耗子Linux面板采用业界多种方案尽可能保证面板的安全性,但是我们不能保证面板的绝对安全性,**因此我们不对面板的安全性做任何保证**。 +耗子 Linux 面板采用业界多种方案尽可能保证面板的安全性,但是我们不能保证面板的绝对安全性,**因此我们不对面板的安全性做任何保证**。 如果您在使用面板的过程中发现任何安全问题,请勿提交 Issue,可通过以下方式直接联系我们: diff --git a/app/console/commands/panel.go b/app/console/commands/panel.go index 415a725f..0252138d 100644 --- a/app/console/commands/panel.go +++ b/app/console/commands/panel.go @@ -56,7 +56,7 @@ func (receiver *Panel) Handle(ctx console.Context) error { return nil } - settings := []models.Setting{{Key: models.SettingKeyName, Value: "耗子Linux面板"}, {Key: models.SettingKeyMonitor, Value: "1"}, {Key: models.SettingKeyMonitorDays, Value: "30"}, {Key: models.SettingKeyBackupPath, Value: "/www/backup"}, {Key: models.SettingKeyWebsitePath, Value: "/www/wwwroot"}, {Key: models.SettingKeyVersion, Value: facades.Config().GetString("panel.version")}} + settings := []models.Setting{{Key: models.SettingKeyName, Value: "耗子 Linux 面板"}, {Key: models.SettingKeyMonitor, Value: "1"}, {Key: models.SettingKeyMonitorDays, Value: "30"}, {Key: models.SettingKeyBackupPath, Value: "/www/backup"}, {Key: models.SettingKeyWebsitePath, Value: "/www/wwwroot"}, {Key: models.SettingKeyVersion, Value: facades.Config().GetString("panel.version")}} err = facades.Orm().Query().Create(&settings) if err != nil { color.Redln("初始化失败") diff --git a/app/http/controllers/cron_controller.go b/app/http/controllers/cron_controller.go index 014dfd3e..8b1d86d6 100644 --- a/app/http/controllers/cron_controller.go +++ b/app/http/controllers/cron_controller.go @@ -85,7 +85,7 @@ func (r *CronController) Add(ctx http.Context) http.Response { shell = `#!/bin/bash export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH -# 耗子Linux面板 - 数据备份脚本 +# 耗子 Linux 面板 - 数据备份脚本 type=` + backupType + ` path=` + backupPath + ` @@ -102,7 +102,7 @@ panel backup ${type} ${name} ${path} ${save} 2>&1 shell = `#!/bin/bash export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH -# 耗子Linux面板 - 日志切割脚本 +# 耗子 Linux 面板 - 日志切割脚本 name=` + website + ` save=` + cast.ToString(save) + ` diff --git a/config/panel.go b/config/panel.go index e90a2547..5fe91b46 100644 --- a/config/panel.go +++ b/config/panel.go @@ -7,7 +7,7 @@ import ( func init() { config := facades.Config() config.Add("panel", map[string]any{ - "name": "耗子Linux面板", + "name": "耗子 Linux 面板", "version": "v2.1.34", "ssl": config.Env("APP_SSL", false), }) diff --git a/internal/services/website.go b/internal/services/website.go index 9f647e61..c04798f6 100644 --- a/internal/services/website.go +++ b/internal/services/website.go @@ -63,7 +63,7 @@ func (r *WebsiteImpl) Add(website internal.PanelWebsite) (models.Website, error) - 耗子Linux面板 + 耗子 Linux 面板