🔖 dashboard v0.13.3
improve l10n
This commit is contained in:
parent
37315acfca
commit
9daa48945b
@ -4,7 +4,7 @@
|
|||||||
<br>
|
<br>
|
||||||
<small><i>LOGO designed by <a href="https://xio.ng" target="_blank">熊大</a> .</i></small>
|
<small><i>LOGO designed by <a href="https://xio.ng" target="_blank">熊大</a> .</i></small>
|
||||||
<br><br>
|
<br><br>
|
||||||
<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Dashboard%20image?label=Dash%20v0.13.2&logo=github&style=for-the-badge"> <img src="https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&label=Agent&style=for-the-badge&logo=github"> <img src="https://img.shields.io/github/workflow/status/naiba/nezha/Agent%20release?label=Agent%20CI&logo=github&style=for-the-badge"> <img src="https://img.shields.io/badge/Installer-v0.9.1-brightgreen?style=for-the-badge&logo=linux">
|
<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Dashboard%20image?label=Dash%20v0.13.3&logo=github&style=for-the-badge"> <img src="https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&label=Agent&style=for-the-badge&logo=github"> <img src="https://img.shields.io/github/workflow/status/naiba/nezha/Agent%20release?label=Agent%20CI&logo=github&style=for-the-badge"> <img src="https://img.shields.io/badge/Installer-v0.9.1-brightgreen?style=for-the-badge&logo=linux">
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<p>:trollface: <b>Nezha Monitoring</b> self-hosted lightweight monitoring and operation and maintenance system. Supports system status, HTTP (SSL certificate change, upcoming expiration, expiration), TCP, Ping <b>monitoring</b> and <b>alerting</b>, execute scheduled tasks and <b>web terminal</b>.</p>
|
<p>:trollface: <b>Nezha Monitoring</b> self-hosted lightweight monitoring and operation and maintenance system. Supports system status, HTTP (SSL certificate change, upcoming expiration, expiration), TCP, Ping <b>monitoring</b> and <b>alerting</b>, execute scheduled tasks and <b>web terminal</b>.</p>
|
||||||
|
@ -87,7 +87,7 @@ var funcMap = template.FuncMap{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tf": func(t time.Time) string {
|
"tf": func(t time.Time) string {
|
||||||
return t.In(singleton.Loc).Format("02/01/2006 15:04:05")
|
return t.In(singleton.Loc).Format("01/02/2006 15:04:05")
|
||||||
},
|
},
|
||||||
"len": func(slice []interface{}) string {
|
"len": func(slice []interface{}) string {
|
||||||
return strconv.Itoa(len(slice))
|
return strconv.Itoa(len(slice))
|
||||||
@ -99,7 +99,7 @@ var funcMap = template.FuncMap{
|
|||||||
return template.HTML(`<` + s + `>`) // #nosec
|
return template.HTML(`<` + s + `>`) // #nosec
|
||||||
},
|
},
|
||||||
"stf": func(s uint64) string {
|
"stf": func(s uint64) string {
|
||||||
return time.Unix(int64(s), 0).In(singleton.Loc).Format("02/01/2006 15:04")
|
return time.Unix(int64(s), 0).In(singleton.Loc).Format("01/02/2006 15:04")
|
||||||
},
|
},
|
||||||
"sf": func(duration uint64) string {
|
"sf": func(duration uint64) string {
|
||||||
return time.Duration(time.Duration(duration) * time.Second).String()
|
return time.Duration(time.Duration(duration) * time.Second).String()
|
||||||
@ -114,7 +114,7 @@ var funcMap = template.FuncMap{
|
|||||||
return strings.TrimSpace(s)
|
return strings.TrimSpace(s)
|
||||||
},
|
},
|
||||||
"float32f": func(f float32) string {
|
"float32f": func(f float32) string {
|
||||||
return fmt.Sprintf("%.2f", f)
|
return fmt.Sprintf("%.3f", f)
|
||||||
},
|
},
|
||||||
"divU64": func(a, b uint64) float32 {
|
"divU64": func(a, b uint64) float32 {
|
||||||
if b == 0 {
|
if b == 0 {
|
||||||
@ -151,7 +151,7 @@ var funcMap = template.FuncMap{
|
|||||||
"dayBefore": func(i int) string {
|
"dayBefore": func(i int) string {
|
||||||
year, month, day := time.Now().Date()
|
year, month, day := time.Now().Date()
|
||||||
today := time.Date(year, month, day, 0, 0, 0, 0, time.Local)
|
today := time.Date(year, month, day, 0, 0, 0, 0, time.Local)
|
||||||
return today.AddDate(0, 0, i-29).Format("02/01")
|
return today.AddDate(0, 0, i-29).Format("01/02")
|
||||||
},
|
},
|
||||||
"className": func(percent float32) string {
|
"className": func(percent float32) string {
|
||||||
if percent == 0 {
|
if percent == 0 {
|
||||||
|
2
resource/template/common/header.html
vendored
2
resource/template/common/header.html
vendored
@ -1,6 +1,6 @@
|
|||||||
{{define "common/header"}}
|
{{define "common/header"}}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh-CN">
|
<html lang="{{.Conf.Language}}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{define "dashboard/redirect"}}
|
{{define "dashboard/redirect"}}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="{{.Conf.Language}}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{define "dashboard/terminal"}}
|
{{define "dashboard/terminal"}}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="{{.Conf.Language}}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
2
resource/template/theme-daynight/home.html
vendored
2
resource/template/theme-daynight/home.html
vendored
@ -1,6 +1,6 @@
|
|||||||
{{define "theme-daynight/home"}}
|
{{define "theme-daynight/home"}}
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="zh-Hans">
|
<html lang="{{.Conf.Language}}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{define "theme-daynight/service"}}
|
{{define "theme-daynight/service"}}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh-Hans">
|
<html lang="{{.Conf.Language}}">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{define "theme-daynight/viewpassword"}}
|
{{define "theme-daynight/viewpassword"}}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh-Hans">
|
<html lang="{{.Conf.Language}}">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
2
resource/template/theme-hotaru/home.html
vendored
2
resource/template/theme-hotaru/home.html
vendored
@ -1,6 +1,6 @@
|
|||||||
{{define "theme-hotaru/home"}}
|
{{define "theme-hotaru/home"}}
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="zh">
|
<html lang="{{.Conf.Language}}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
2
resource/template/theme-mdui/home.html
vendored
2
resource/template/theme-mdui/home.html
vendored
@ -1,6 +1,6 @@
|
|||||||
{{define "theme-mdui/home"}}
|
{{define "theme-mdui/home"}}
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="zh-CN">
|
<html lang="{{.Conf.Language}}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
2
resource/template/theme-mdui/service.html
vendored
2
resource/template/theme-mdui/service.html
vendored
@ -1,6 +1,6 @@
|
|||||||
{{define "theme-mdui/service"}}
|
{{define "theme-mdui/service"}}
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="zh-CN">
|
<html lang="{{.Conf.Language}}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{define "theme-mdui/viewpassword"}}
|
{{define "theme-mdui/viewpassword"}}
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="zh-CN">
|
<html lang="{{.Conf.Language}}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
@ -12,7 +12,7 @@ import (
|
|||||||
"github.com/naiba/nezha/pkg/utils"
|
"github.com/naiba/nezha/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Version = "v0.13.2" // !!记得修改 README 中的 badge 版本!!
|
var Version = "v0.13.3" // !!记得修改 README 中的 badge 版本!!
|
||||||
|
|
||||||
var (
|
var (
|
||||||
Conf *model.Config
|
Conf *model.Config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user