modified: resource/template/common/menu.html modified: resource/template/component/confirm.html modified: resource/template/component/cron.html modified: resource/template/component/monitor.html modified: resource/template/component/notification.html modified: resource/template/component/rule.html modified: resource/template/component/server.html modified: resource/template/dashboard/cron.html modified: resource/template/dashboard/error.html modified: resource/template/dashboard/login.html modified: resource/template/dashboard/monitor.html modified: resource/template/dashboard/notification.html modified: resource/template/dashboard/server.html modified: resource/template/dashboard/setting.html modified: resource/template/dashboard/terminal.html
		
			
				
	
	
		
			61 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
		
			Vendored
		
	
	
	
{{define "component/notification"}}
 | 
						|
<div class="ui tiny notification modal transition hidden">
 | 
						|
    <div class="header">{{tr "AddNotificationMethod"}}</div>
 | 
						|
    <div class="content">
 | 
						|
        <form id="notificationForm" class="ui form">
 | 
						|
            <input type="hidden" name="ID">
 | 
						|
            <div class="field">
 | 
						|
                <label>{{tr "Name"}}</label>
 | 
						|
                <input type="text" name="Name">
 | 
						|
            </div>
 | 
						|
            <div class="field">
 | 
						|
                <label>{{tr "Tag"}}</label>
 | 
						|
                <input type="text" name="Tag" placeholder="default">
 | 
						|
            </div>
 | 
						|
            <div class="field">
 | 
						|
                <label>URL</label>
 | 
						|
                <input type="text" name="URL">
 | 
						|
            </div>
 | 
						|
            <div class="field">
 | 
						|
                <label>{{tr "RequestMethod"}}</label>
 | 
						|
                <select name="RequestMethod" class="ui fluid dropdown">
 | 
						|
                    <option value="1">GET</option>
 | 
						|
                    <option value="2">POST</option>
 | 
						|
                </select>
 | 
						|
            </div>
 | 
						|
            <div class="field">
 | 
						|
                <label>{{tr "RequestType"}}</label>
 | 
						|
                <select name="RequestType" class="ui fluid dropdown">
 | 
						|
                    <option value="1">JSON</option>
 | 
						|
                    <option value="2">FORM</option>
 | 
						|
                </select>
 | 
						|
            </div>
 | 
						|
            <div class="secret field">
 | 
						|
                <label>Header</label>
 | 
						|
                <textarea name="RequestHeader" placeholder='{"User-Agent":"Nezha-Agent"}'></textarea>
 | 
						|
            </div>
 | 
						|
            <div class="secret field">
 | 
						|
                <label>Body</label>
 | 
						|
                <textarea name="RequestBody" placeholder='{
  "content":"#NEZHA#",
  "ServerName":"#SERVER.NAME#",
  "ServerIP":"#SERVER.IP#",
  "ServerIPV4":"#SERVER.IPV4#",
  "ServerIPV6":"#SERVER.IPV6#",
  "CPU":"#SERVER.CPU#",
  "MEM":"#SERVER.MEM#",
  "SWAP":"#SERVER.SWAP#",
  "DISK":"#SERVER.DISK#",
  "NetInSpeed":"#SERVER.NETINSPEED#",
  "NetOutSpeed":"#SERVER.NETOUTSPEED#",
  "TransferIn":"#SERVER.TRANSFERIN#",
  "TranferOut":"#SERVER.TRANSFEROUT#",
  "Load1":"#SERVER.LOAD1#",
  "Load5":"#SERVER.LOAD5#",
  "Load15":"#SERVER.LOAD15#"
  "TCP_CONN_COUNT":"#SERVER.TCPCONNCOUNT"
  "UDP_CONN_COUNT":"#SERVER.UDPCONNCOUNT"
}'></textarea>
 | 
						|
            </div>
 | 
						|
            <div class="field">
 | 
						|
                <div class="ui nf-ssl checkbox">
 | 
						|
                    <input name="VerifySSL" type="checkbox" tabindex="0" class="hidden">
 | 
						|
                    <label>{{tr "VerifySSL"}}</label>
 | 
						|
                </div>
 | 
						|
            </div>
 | 
						|
            <div class="field">
 | 
						|
                <div class="ui nf-skip-check checkbox">
 | 
						|
                    <input name="SkipCheck" type="checkbox" tabindex="0" class="hidden">
 | 
						|
                    <label>{{tr "DoNotSendTestMessages"}}</label>
 | 
						|
                </div>
 | 
						|
            </div>
 | 
						|
        </form>
 | 
						|
    </div>
 | 
						|
    <div class="actions">
 | 
						|
        <div class="ui negative button">{{tr "Cancel"}}</div>
 | 
						|
        <button class="ui positive nezha-primary-btn right labeled icon button">{{tr "Confirm"}}<i class="checkmark icon"></i>
 | 
						|
        </button>
 | 
						|
    </div>
 | 
						|
</div>
 | 
						|
{{end}} |