WIP: 通知方式分组 支持将不同的报警|监控|计划任务的通知 发送到指定的通知分组

This commit is contained in:
Akkia
2022-04-14 21:06:42 +08:00
parent 8ab62858f9
commit 9c1d495eb0
11 changed files with 143 additions and 49 deletions

View File

@@ -38,6 +38,10 @@
<label>推送成功的消息</label>
</div>
</div>
<div class="field">
<label>通知方式组</label>
<input type="text" name="NotificationTag" placeholder="default">
</div>
</form>
<div class="ui warning message">
<p>

View File

@@ -8,6 +8,10 @@
<label>名称</label>
<input type="text" name="Name">
</div>
<div class="field">
<label>分组</label>
<input type="text" name="Tag">
</div>
<div class="field">
<label>URL</label>
<input type="text" name="URL">

View File

@@ -18,6 +18,7 @@
<th>计划</th>
<th>命令</th>
<th>成功推送</th>
<th>通知方式组</th>
<th>覆盖范围</th>
<th>特定服务器</th>
<th>最后执行</th>
@@ -33,6 +34,7 @@
<td>{{$cron.Scheduler}}</td>
<td>{{$cron.Command}}</td>
<td>{{$cron.PushSuccessful}}</td>
<td>{$cron.NotificationTag}</td>
<td>{{if eq $cron.Cover 0}}忽略所有{{else}}覆盖所有{{end}}</td>
<td>{{$cron.ServersRaw}}</td>
<td>{{$cron.LastExecutedAt|tf}}</td>

View File

@@ -15,6 +15,7 @@
<tr>
<th>ID</th>
<th>名称</th>
<th>分组</th>
<th>URL</th>
<th>验证SSL</th>
<th>管理</th>
@@ -25,6 +26,7 @@
<tr>
<td>{{$notification.ID}}</td>
<td>{{$notification.Name}}</td>
<td>{{$notification.Tag}}</td>
<td>{{$notification.URL}}</td>
<td>{{$notification.VerifySSL}}</td>
<td>