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
|
|
|
|
2019-06-23 06:44:50 +00:00
|
|
|
<div class="js-account" hidden>
|
2019-06-23 09:01:24 +00:00
|
|
|
<details>
|
|
|
|
<summary>Schedules</summary>
|
|
|
|
<h3>Schedules</h3>
|
|
|
|
<div class="js-schedules">
|
|
|
|
<div class="js-schedule">
|
|
|
|
<input type="hidden" class="js-id" />
|
|
|
|
<input type="date" class="js-date" readonly />
|
|
|
|
<input type="time" class="js-time" readonly />
|
|
|
|
<input type="text" class="js-tz" readonly />
|
2019-06-22 19:28:03 +00:00
|
|
|
|
2019-06-23 09:01:24 +00:00
|
|
|
<div class="doc-webhooks-container">
|
|
|
|
<div class="js-webhooks">
|
|
|
|
<div class="js-webhook">
|
|
|
|
<h4><span class="js-comment"></span></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>
|
2019-06-22 19:28:03 +00:00
|
|
|
</div>
|
2019-06-23 09:01:24 +00:00
|
|
|
<pre><code class="js-body-template"></code></pre>
|
2019-06-22 19:28:03 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-06-23 09:01:24 +00:00
|
|
|
<button class="js-delete" type="button">Delete Schedule</button>
|
|
|
|
<br />
|
|
|
|
<br />
|
2019-06-23 06:44:50 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br />
|
2019-06-23 09:01:24 +00:00
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Add Schedule</summary>
|
|
|
|
<h3>Add Schedule</h3>
|
|
|
|
<form class="js-new-schedule">
|
|
|
|
<label>Date: <input type="date" class="js-date" required/></label>
|
|
|
|
<label>Time: <input type="time" class="js-time" step="300" required/></label>
|
|
|
|
<!-- TODO combo box -->
|
|
|
|
<label
|
|
|
|
>Location:
|
|
|
|
<select class="js-tz">
|
|
|
|
<option value="UTC">UTC</option>
|
|
|
|
<option disabled>──────────</option>
|
|
|
|
</select>
|
|
|
|
</label>
|
|
|
|
<br />
|
2019-06-23 06:44:50 +00:00
|
|
|
|
2019-06-23 09:01:24 +00:00
|
|
|
<h3>Webhook</h3>
|
|
|
|
<div class="js-new-webhook">
|
|
|
|
<!--
|
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-23 09:01:24 +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 />
|
2019-06-24 01:02:31 +00:00
|
|
|
<br />
|
|
|
|
HTTP Basic Auth (optional):
|
|
|
|
<input placeholder="username" class="js-http-user" type="text" />
|
|
|
|
<input placeholder="password" class="js-http-pass" type="text" />
|
2019-06-23 09:01:24 +00:00
|
|
|
<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">
|
2019-06-24 01:02:31 +00:00
|
|
|
Request Body Type:
|
|
|
|
<label><input name="-body-type" class="js-body-type" type="radio" value="json" checked /> JSON</label>
|
|
|
|
<label><input name="-body-type" class="js-body-type" type="radio" value="form" /> Form</label>
|
|
|
|
<br />
|
2019-06-23 09:01:24 +00:00
|
|
|
<textarea
|
|
|
|
placeholder="Body template, use '{{ keyname }}' for template values."
|
|
|
|
class="js-body-template"
|
|
|
|
></textarea>
|
|
|
|
<!-- TODO preview template -->
|
2019-06-22 19:28:03 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-06-23 09:01:24 +00:00
|
|
|
<br />
|
|
|
|
<button class="js-create">Save Schedule</button>
|
|
|
|
</form>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Debug Info</summary>
|
|
|
|
<h3>Debug Info</h3>
|
|
|
|
<pre><code class="js-schedules-output"> </code></pre>
|
|
|
|
<br />
|
|
|
|
<br />
|
2019-06-23 06:44:50 +00:00
|
|
|
<br />
|
2019-06-23 09:01:24 +00:00
|
|
|
</details>
|
2019-06-22 19:28:03 +00:00
|
|
|
</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>
|