diff --git a/README.md b/README.md index ad5d0db1..bd478204 100644 --- a/README.md +++ b/README.md @@ -176,7 +176,7 @@ Set the robot-related parameters in the panel background, including: Reference syntax: - 30 \* \* \* \* \* //Notify at the 30s of each point -- 0 */10 \* \* \* \* //Notify at the first second of each 10 minutes +- 0 \*/10 \* \* \* \* //Notify at the first second of each 10 minutes - @hourly // hourly notification - @daily // Daily notification (00:00 in the morning) - @every 8h // notify every 8 hours diff --git a/main.go b/main.go index 0d6e0f90..2ea3fb33 100644 --- a/main.go +++ b/main.go @@ -97,7 +97,7 @@ func showSetting(show bool) { settingService := service.SettingService{} port, err := settingService.GetPort() if err != nil { - fmt.Println("get current port fialed,error info:", err) + fmt.Println("get current port failed,error info:", err) } userService := service.UserService{} userModel, err := userService.GetFirstUser() @@ -109,7 +109,7 @@ func showSetting(show bool) { if (username == "") || (userpasswd == "") { fmt.Println("current username or password is empty") } - fmt.Println("current pannel settings as follows:") + fmt.Println("current panel settings as follows:") fmt.Println("username:", username) fmt.Println("userpasswd:", userpasswd) fmt.Println("port:", port) @@ -234,9 +234,9 @@ func main() { settingCmd.IntVar(&port, "port", 0, "set panel port") settingCmd.StringVar(&username, "username", "", "set login username") settingCmd.StringVar(&password, "password", "", "set login password") - settingCmd.StringVar(&tgbottoken, "tgbottoken", "", "set telegrame bot token") - settingCmd.StringVar(&tgbotRuntime, "tgbotRuntime", "", "set telegrame bot cron time") - settingCmd.StringVar(&tgbotchatid, "tgbotchatid", "", "set telegrame bot chat id") + settingCmd.StringVar(&tgbottoken, "tgbottoken", "", "set telegram bot token") + settingCmd.StringVar(&tgbotRuntime, "tgbotRuntime", "", "set telegram bot cron time") + settingCmd.StringVar(&tgbotchatid, "tgbotchatid", "", "set telegram bot chat id") settingCmd.BoolVar(&enabletgbot, "enabletgbot", false, "enable telegram bot notify") oldUsage := flag.Usage diff --git a/web/html/xui/setting.html b/web/html/xui/setting.html index d281fa59..9c84169d 100644 --- a/web/html/xui/setting.html +++ b/web/html/xui/setting.html @@ -53,7 +53,7 @@ - + diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml index 8aad1fa3..68a2dea6 100644 --- a/web/translation/translate.en_US.toml +++ b/web/translation/translate.en_US.toml @@ -41,7 +41,7 @@ "domainName" = "Domain name" "additional" = "Alter ID" "monitor" = "Listen IP" -"certificate" = "Certificat" +"certificate" = "Certificate" "fail" = "Fail" "success" = " Success" "getVersion" = "Get version" @@ -210,15 +210,15 @@ "xrayConfigTemplate" = "Xray Configuration Template" "xrayConfigTemplateDesc" = "Generate the final xray configuration file based on this template, restart the panel to take effect." "xrayConfigTorrent" = "Ban bittorrent usage" -"xrayConfigTorrentDesc" = "Change the configuration temlate to avoid using bittorrent by users, restart the panel to take effect" +"xrayConfigTorrentDesc" = "Change the configuration template to avoid using bittorrent by users, restart the panel to take effect" "xrayConfigPrivateIp" = "Ban private ip range to connect" -"xrayConfigPrivateIpDesc" = "Change the configuration temlate to avoid connecting with private IP ranges, restart the panel to take effect" +"xrayConfigPrivateIpDesc" = "Change the configuration template to avoid connecting with private IP ranges, restart the panel to take effect" "xrayConfigInbounds" = "Configuration of Inbounds" -"xrayConfigInboundsDesc" = "Change the configuration temlate to accept special clients, restart the panel to take effect" +"xrayConfigInboundsDesc" = "Change the configuration template to accept special clients, restart the panel to take effect" "xrayConfigOutbounds" = "Configuration of Outbounds" -"xrayConfigOutboundsDesc" = "Change the configuration temlate to define outgoing ways for this server, restart the panel to take effect" +"xrayConfigOutboundsDesc" = "Change the configuration template to define outgoing ways for this server, restart the panel to take effect" "xrayConfigRoutings" = "Configuration of Routing rules" -"xrayConfigRoutingsDesc" = "Change the configuration temlate to define Routing rules for this server, restart the panel to take effect" +"xrayConfigRoutingsDesc" = "Change the configuration template to define Routing rules for this server, restart the panel to take effect" "telegramBotEnable" = "Enable telegram bot" "telegramBotEnableDesc" = "Restart the panel to take effect" "telegramToken" = "Telegram Token"