mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 13:40:06 +00:00
⚡️ pprof 性能调优 / 计划任务支持秒级
This commit is contained in:
2
resource/template/common/menu.html
vendored
2
resource/template/common/menu.html
vendored
@@ -5,7 +5,7 @@
|
||||
<img src="/static/logo.svg?v20210804">
|
||||
</div>
|
||||
{{if .IsAdminPage}}
|
||||
<a class='item{{if eq .MatchedPath "/server"}} active{{end}}' href="/server"><i class="server icon"></i>资产</a>
|
||||
<a class='item{{if eq .MatchedPath "/server"}} active{{end}}' href="/server"><i class="server icon"></i>主机</a>
|
||||
<a class='item{{if eq .MatchedPath "/monitor"}} active{{end}}' href="/monitor"><i class="rss icon"></i>服务</a>
|
||||
<a class='item{{if eq .MatchedPath "/cron"}} active{{end}}' href="/cron"><i class="clock icon"></i>任务</a>
|
||||
<a class='item{{if eq .MatchedPath "/notification"}} active{{end}}' href="/notification"><i class="bell icon"></i>报警</a>
|
||||
|
||||
4
resource/template/component/cron.html
vendored
4
resource/template/component/cron.html
vendored
@@ -10,7 +10,7 @@
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>计划</label>
|
||||
<input type="text" name="Scheduler" placeholder="0 3 * * *(每天3点)">
|
||||
<input type="text" name="Scheduler" placeholder="0 0 3 * * *(每天3点)">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>命令</label>
|
||||
@@ -41,7 +41,7 @@
|
||||
</form>
|
||||
<div class="ui warning message">
|
||||
<p>
|
||||
计划的格式为:<code>* * * * *</code> 分 时 天 月 星期,详情见 <a
|
||||
计划的格式为:<code>* * * * * *</code> 秒 分 时 天 月 星期,详情见 <a
|
||||
href="https://pkg.go.dev/github.com/robfig/cron/v3#hdr-CRON_Expression_Format"
|
||||
target="_blank">计划表达式格式</a><br>
|
||||
命令:就像写 shell/bat 脚本一样,但是不推荐换行,多个命令使用 <code>&&</code>/<code>&</code> 连接,如果遇到 xxx 命令找不到,可能是
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="ui grid">
|
||||
<div class="right floated right aligned twelve wide column">
|
||||
<button class="ui right labeled nezha-primary-btn icon button" onclick="addOrEditMonitor()">
|
||||
<i class="add icon"></i> 添加监控
|
||||
<i class="add icon"></i> 添加服务
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -43,7 +43,7 @@
|
||||
<i class="edit icon"></i>
|
||||
</button>
|
||||
<button class="ui button"
|
||||
onclick="showConfirm('删除监控','确认删除此监控?',deleteRequest,'/api/monitor/'+{{$monitor.ID}})">
|
||||
onclick="showConfirm('删除服务','确认删除此服务?',deleteRequest,'/api/monitor/'+{{$monitor.ID}})">
|
||||
<i class="trash alternate outline icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<div class="ui grid">
|
||||
<div class="right floated right aligned twelve wide column">
|
||||
<button class="ui right labeled nezha-primary-btn icon button" onclick="addOrEditServer()"><i
|
||||
class="add icon"></i> 添加服务器
|
||||
class="add icon"></i> 添加主机
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -56,7 +56,7 @@
|
||||
<i class="edit icon"></i>
|
||||
</button>
|
||||
<button class="ui button"
|
||||
onclick="showConfirm('删除节点','确认删除此监控节点?',deleteRequest,'/api/server/'+{{$server.ID}})">
|
||||
onclick="showConfirm('删除主机','确认删除此主机?',deleteRequest,'/api/server/'+{{$server.ID}})">
|
||||
<i class="trash alternate outline icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
BIN
resource/template/theme-daynight/screenshot.png
vendored
Normal file
BIN
resource/template/theme-daynight/screenshot.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 481 KiB |
1
resource/template/theme-default/README.md
vendored
1
resource/template/theme-default/README.md
vendored
@@ -1 +0,0 @@
|
||||
# 默认主题
|
||||
BIN
resource/template/theme-default/screenshot.png
vendored
Normal file
BIN
resource/template/theme-default/screenshot.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 856 KiB |
BIN
resource/template/theme-hotaru/screenshot.png
vendored
Normal file
BIN
resource/template/theme-hotaru/screenshot.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 MiB |
Reference in New Issue
Block a user