mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-22 23:28:35 +00:00
✨ On clicking use button from history, view will scroll to request section, moved history section below response section
This commit is contained in:
parent
8f03f709fb
commit
5c9b8addf3
64
index.html
64
index.html
@ -75,7 +75,7 @@
|
|||||||
<h3>API request builder</h3>
|
<h3>API request builder</h3>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<fieldset class="request">
|
<fieldset class="request" ref="request">
|
||||||
<legend v-on:click="collapse">Request ↕</legend>
|
<legend v-on:click="collapse">Request ↕</legend>
|
||||||
<div class="collapsible">
|
<div class="collapsible">
|
||||||
<ul>
|
<ul>
|
||||||
@ -104,37 +104,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="history hidden">
|
|
||||||
<legend v-on:click="collapse">History ↕</legend>
|
|
||||||
<div class="collapsible">
|
|
||||||
<ul v-for="entry in history">
|
|
||||||
<li>
|
|
||||||
<label for="time">Time</label>
|
|
||||||
<input name="time" type="text" readonly :value="entry.time">
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label for="name">Method</label>
|
|
||||||
<input name="name" type="text" readonly :value="entry.method">
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label for="name">URL</label>
|
|
||||||
<input name="name" type="text" readonly :value="entry.url">
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label for="name">Path</label>
|
|
||||||
<input name="name" type="text" readonly :value="entry.path">
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label for="delete"> </label>
|
|
||||||
<button name="delete" @click="deleteHistory(entry)">Delete</button>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label for="use"> </label>
|
|
||||||
<button name="use" @click="useHistory(entry)">Use</button>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
<fieldset class="reqbody" v-if="method === 'POST' || method === 'PUT'">
|
<fieldset class="reqbody" v-if="method === 'POST' || method === 'PUT'">
|
||||||
<legend v-on:click="collapse">Request Body ↕</legend>
|
<legend v-on:click="collapse">Request Body ↕</legend>
|
||||||
<div class="collapsible">
|
<div class="collapsible">
|
||||||
@ -253,6 +222,37 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<fieldset class="history">
|
||||||
|
<legend v-on:click="collapse">History ↕</legend>
|
||||||
|
<div class="collapsible">
|
||||||
|
<ul v-for="entry in history">
|
||||||
|
<li>
|
||||||
|
<label for="time">Time</label>
|
||||||
|
<input name="time" type="text" readonly :value="entry.time">
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="name">Method</label>
|
||||||
|
<input name="name" type="text" readonly :value="entry.method">
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="name">URL</label>
|
||||||
|
<input name="name" type="text" readonly :value="entry.url">
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="name">Path</label>
|
||||||
|
<input name="name" type="text" readonly :value="entry.path">
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="delete"> </label>
|
||||||
|
<button name="delete" @click="deleteHistory(entry)">Delete</button>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="use"> </label>
|
||||||
|
<button name="use" @click="useHistory(entry)">Use</button>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
<footer>
|
<footer>
|
||||||
<a href="https://github.com/liyasthomas/postwoman"><img src="icons/github.svg" alt="" style="margin-right: 16px">GitHub</a>
|
<a href="https://github.com/liyasthomas/postwoman"><img src="icons/github.svg" alt="" style="margin-right: 16px">GitHub</a>
|
||||||
<button id="installPWA" onclick="installPWA()">
|
<button id="installPWA" onclick="installPWA()">
|
||||||
|
Loading…
Reference in New Issue
Block a user