mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 05:30:05 +00:00
Update all theme texts
This commit is contained in:
28
resource/template/theme-daynight/home.html
vendored
28
resource/template/theme-daynight/home.html
vendored
@@ -37,12 +37,12 @@
|
||||
</div>
|
||||
<nav class="nav-menu">
|
||||
<ul>
|
||||
<li><a href="/">首页</a></li>
|
||||
<li><a href="/service">服务状态</a></li>
|
||||
<li><a href="/">{{tr "Home"}}</a></li>
|
||||
<li><a href="/service">{{tr "Services"}}</a></li>
|
||||
{{if .Admin}}
|
||||
<li><a href="/server">管理后台</a></li>
|
||||
<li><a href="/server">{{tr "AdminPanel"}}</a></li>
|
||||
{{else}}
|
||||
<li><a href="/login">登录</a></li>
|
||||
<li><a href="/login">{{tr Login}}</a></li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</nav>
|
||||
@@ -111,7 +111,7 @@
|
||||
<li>
|
||||
<div class="disk-bar">
|
||||
<div>
|
||||
<h4>硬盘</h4>
|
||||
<h4>{{tr "DiskUsed"}}</h4>
|
||||
</div>
|
||||
<div v-if="server.State"
|
||||
:class="formatPercent(server.live,server.State.DiskUsed, server.Host.DiskTotal).class"
|
||||
@@ -133,10 +133,10 @@
|
||||
|
||||
<div class="sidebar-container">
|
||||
<ul>
|
||||
<li><i class="fas fa-sun" title="白昼模式"></i><span>白昼模式</span></li>
|
||||
<li><i class="fas fa-moon" title="暗黑模式"></i><span>暗黑模式</span></li>
|
||||
<li><i class="fas fa-th" title="网格视图"></i><span>网格视图</span></li>
|
||||
<li><i class="fas fa-list-ul" title="列表视图"></i><span>列表视图</span></li>
|
||||
<li><i class="fas fa-sun" title="白昼模式"></i><span>{{tr "LightMode"}}</span></li>
|
||||
<li><i class="fas fa-moon" title="暗黑模式"></i><span>{{tr "DarkMode"}}</span></li>
|
||||
<li><i class="fas fa-th" title="网格视图"></i><span>{{tr "GridLayout"}}</span></li>
|
||||
<li><i class="fas fa-list-ul" title="列表视图"></i><span>{{tr "ListLayout"}}</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</main>
|
||||
@@ -239,7 +239,7 @@
|
||||
secondToDate(s) {
|
||||
var d = Math.floor(s / 3600 / 24);
|
||||
if (d > 0) {
|
||||
return d + "天"
|
||||
return d + "{{tr "Day"}}"
|
||||
}
|
||||
var h = Math.floor(s / 3600 % 24);
|
||||
var m = Math.floor(s / 60 % 60);
|
||||
@@ -261,8 +261,8 @@
|
||||
Swal.fire({
|
||||
position: 'top',
|
||||
icon: 'success',
|
||||
title: '实时通道建立',
|
||||
text: '可以实时获取最新监控数据啦',
|
||||
title: '{{tr "RealtimeChannelEstablished"}}',
|
||||
text: '{{tr "GetTheLatestMonitoringDataInRealTime"}}',
|
||||
showConfirmButton: false,
|
||||
timer: 2000
|
||||
});
|
||||
@@ -288,8 +288,8 @@
|
||||
Swal.fire({
|
||||
position: 'top',
|
||||
icon: 'error',
|
||||
title: '实时通道断开',
|
||||
text: '无法实时获取最新监控数据咯',
|
||||
title: '{{tr "RealtimeChannelDisconnect"}}',
|
||||
text: '{{tr "CanNotGetTheLatestMonitoringDataInRealTime"}}',
|
||||
showConfirmButton: false,
|
||||
timer: 2000
|
||||
});
|
||||
|
||||
20
resource/template/theme-daynight/service.html
vendored
20
resource/template/theme-daynight/service.html
vendored
@@ -41,12 +41,12 @@
|
||||
</div>
|
||||
<nav class="nav-menu">
|
||||
<ul>
|
||||
<li><a href="/">首页</a></li>
|
||||
<li><a href="/service">服务状态</a></li>
|
||||
<li><a href="/">{{tr "Home"}}</a></li>
|
||||
<li><a href="/service">{{tr "Services"}}</a></li>
|
||||
{{if .Admin}}
|
||||
<li><a href="/server">管理后台</a></li>
|
||||
<li><a href="/server">{{tr "AdminPanel"}}</a></li>
|
||||
{{else}}
|
||||
<li><a href="/login">登录</a></li>
|
||||
<li><a href="/login">{{tr "Login"}}</a></li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</nav>
|
||||
@@ -55,8 +55,8 @@
|
||||
|
||||
<main>
|
||||
<section class="monitor-header">
|
||||
<h2>服务状态</h2>
|
||||
<h4>最近30天在线率</h4>
|
||||
<h2>{{tr "Status"}}</h2>
|
||||
<h4>{{tr "30DaysOnline"}}</h4>
|
||||
</section>
|
||||
<section class="monitor-container">
|
||||
{{range $service := .Services}}
|
||||
@@ -86,10 +86,10 @@
|
||||
|
||||
<div class="sidebar-container">
|
||||
<ul>
|
||||
<li><i class="fas fa-sun" title="白昼模式"></i><span>白昼模式</span></li>
|
||||
<li><i class="fas fa-moon" title="暗黑模式"></i><span>暗黑模式</span></li>
|
||||
<li><i class="fas fa-th" title="网格视图"></i><span>网格视图</span></li>
|
||||
<li><i class="fas fa-list-ul" title="列表视图"></i><span>列表视图</span></li>
|
||||
<li><i class="fas fa-sun" title="白昼模式"></i><span>{{tr "LightMode"}}</span></li>
|
||||
<li><i class="fas fa-moon" title="暗黑模式"></i><span>{{tr "DarkMode"}}</span></li>
|
||||
<li><i class="fas fa-th" title="网格视图"></i><span>{{tr "GridLayout"}}</span></li>
|
||||
<li><i class="fas fa-list-ul" title="列表视图"></i><span>{{tr "ListLayout"}}</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
<body>
|
||||
<article>
|
||||
<section class="passwd-container">
|
||||
<h2>登 录</h2>
|
||||
<h2>{{tr "Login"}}</h2>
|
||||
<form action="/view-password" method="POST">
|
||||
<h4>验证查看密码</h4>
|
||||
<input type="password" name="Password" placeholder="输入密码 " required /><svg class="passwd-icon" viewBox="97 6 809 988" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<h4>{{tr "VerifyPassword"}}</h4>
|
||||
<input type="password" name="Password" placeholder="{{tr "EnterPassword"}}" required /><svg class="passwd-icon" viewBox="97 6 809 988" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g><path d="M321.8,455.5h356.4V321.8c0-49.2-17.4-91.2-52.2-126c-34.8-34.8-76.8-52.2-126-52.2c-49.2,0-91.2,17.4-126,52.2c-34.8,34.8-52.2,76.8-52.2,126L321.8,455.5L321.8,455.5z M900.9,522.3v400.9c0,18.6-6.5,34.3-19.5,47.3c-13,13-28.8,19.5-47.3,19.5H165.9c-18.6,0-34.3-6.5-47.3-19.5c-13-13-19.5-28.8-19.5-47.3V522.3c0-18.6,6.5-34.3,19.5-47.3c13-13,28.8-19.5,47.3-19.5h22.3V321.8c0-85.4,30.6-158.7,91.9-219.9C341.3,40.7,414.7,10,500,10c85.3,0,158.7,30.6,219.9,91.9c61.3,61.3,91.9,134.6,91.9,219.9v133.6h22.3c18.6,0,34.3,6.5,47.3,19.5C894.4,488,900.9,503.7,900.9,522.3L900.9,522.3z" /></g>
|
||||
</svg>
|
||||
<button type="submit">确认</button>
|
||||
<button type="submit">{{tr "Confirm"}}</button>
|
||||
</form>
|
||||
<figure class="logo">
|
||||
<a href="/">
|
||||
|
||||
Reference in New Issue
Block a user