2019-06-22 07:10:21 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Go Again</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2019-06-22 19:28:03 +00:00
|
|
|
<h1>Go Again</h1>
|
|
|
|
<h2>Webhooks, on time!</h2>
|
|
|
|
|
2019-06-22 07:28:02 +00:00
|
|
|
<form class="js-schedules-list">
|
|
|
|
<label
|
|
|
|
>Token:
|
2019-06-22 23:11:14 +00:00
|
|
|
<input class="js-auth-token" type="text" required />
|
2019-06-22 07:28:02 +00:00
|
|
|
</label>
|
2019-06-22 23:11:14 +00:00
|
|
|
<button>Login</button>
|
2019-06-22 07:28:02 +00:00
|
|
|
</form>
|
2019-06-22 19:28:03 +00:00
|
|
|
|
|
|
|
<pre><code class="js-schedules-output"> </code></pre>
|
|
|
|
|
2019-06-22 23:11:14 +00:00
|
|
|
<div class="js-schedules" hidden>
|
2019-06-22 19:28:03 +00:00
|
|
|
<h2>Schedules</h2>
|
|
|
|
<div class="js-schedule">
|
|
|
|
<form class="js-new-schedule">
|
2019-06-22 23:11:14 +00:00
|
|
|
<label>Date: <input type="date" class="js-date" required/></label>
|
|
|
|
<label
|
|
|
|
>Time: <input type="time" class="js-time" step="60" required
|
|
|
|
/></label>
|
2019-06-22 19:28:03 +00:00
|
|
|
<!-- TODO combo box -->
|
2019-06-22 23:11:14 +00:00
|
|
|
<label
|
|
|
|
>Location:
|
|
|
|
<select class="js-tz">
|
|
|
|
<option value="UTC">UTC</option>
|
|
|
|
<option disabled>──────────</option>
|
|
|
|
</select>
|
|
|
|
</label>
|
2019-06-22 19:28:03 +00:00
|
|
|
<br />
|
|
|
|
|
|
|
|
<div class="doc-webhooks-container">
|
|
|
|
<h3>Webhook</h3>
|
|
|
|
<div class="js-webhooks">
|
|
|
|
<div class="js-webhook">
|
|
|
|
<h4>
|
|
|
|
<span class="js-comment"></span
|
|
|
|
><button class="js-delete" type="button">Delete</button>
|
|
|
|
</h4>
|
|
|
|
<span class="js-id" hidden></span>
|
|
|
|
<span class="js-method"></span>
|
|
|
|
<span class="js-url"></span>
|
|
|
|
<br />
|
|
|
|
<div class="js-headers">
|
|
|
|
<div class="js-header">
|
|
|
|
<span class="js-key"></span>
|
|
|
|
<span class="js-value"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<pre><code class="js-body-template"></code></pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="js-new-webhook">
|
2019-06-22 23:11:14 +00:00
|
|
|
<!--
|
2019-06-22 19:28:03 +00:00
|
|
|
<select class="js-template">
|
2019-06-22 23:11:14 +00:00
|
|
|
<option value="webhook" selected>Custom Webhook</option>
|
|
|
|
<option value="requestbin">RequestBin</option>
|
|
|
|
<option value="mailgun">Maligun</option>
|
|
|
|
<option value="twilio">Twilio</option>
|
|
|
|
<option value="pushbullet">Pushbullet</option>
|
2019-06-22 19:28:03 +00:00
|
|
|
</select>
|
|
|
|
<br />
|
2019-06-22 23:11:14 +00:00
|
|
|
-->
|
2019-06-22 19:28:03 +00:00
|
|
|
<input
|
|
|
|
class="js-comment"
|
|
|
|
type="text"
|
|
|
|
placeholder="Webhook Name"
|
|
|
|
required
|
|
|
|
/>
|
|
|
|
<br />
|
|
|
|
<select class="js-method">
|
|
|
|
<option value="POST" selected>POST</option>
|
|
|
|
<option value="PUT">PUT</option>
|
|
|
|
</select>
|
|
|
|
<input
|
|
|
|
placeholder="https://example.com/api/v1/updates"
|
|
|
|
class="js-url"
|
|
|
|
type="url"
|
|
|
|
required
|
|
|
|
/>
|
|
|
|
<div class="js-headers">
|
|
|
|
<div class="js-header">
|
|
|
|
<input placeholder="Header" class="js-key" type="text" />
|
|
|
|
<input placeholder="Value" class="js-value" type="text" />
|
|
|
|
<button type="button" class="js-rm-header" hidden>[x]</button>
|
|
|
|
<button type="button" class="js-new-header">[+]</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="js-body">
|
|
|
|
<textarea
|
|
|
|
placeholder="Body template, use '{{ keyname }}' for template values."
|
|
|
|
class="js-body-template"
|
|
|
|
></textarea>
|
|
|
|
<!-- TODO preview template -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
<button class="js-create">Save Schedule</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="./ajquery.js"></script>
|
2019-06-22 23:11:14 +00:00
|
|
|
<script src="./app.js"></script>
|
2019-06-22 07:10:21 +00:00
|
|
|
</body>
|
|
|
|
</html>
|