🐛 Fixes #81
✨ Added Local Date to history entry and will be shown on hovering timestamp
This commit is contained in:
@@ -197,7 +197,7 @@
|
|||||||
<ul v-for="entry in history" :key="entry.millis" class="entry">
|
<ul v-for="entry in history" :key="entry.millis" class="entry">
|
||||||
<li>
|
<li>
|
||||||
<label for="time">Time</label>
|
<label for="time">Time</label>
|
||||||
<input name="time" type="text" readonly :value="entry.time">
|
<input name="time" type="text" readonly :value="entry.time" :title="entry.date">
|
||||||
</li>
|
</li>
|
||||||
<li class="method-list-item">
|
<li class="method-list-item">
|
||||||
<label for="method">Method</label>
|
<label for="method">Method</label>
|
||||||
@@ -436,10 +436,12 @@
|
|||||||
this.response.body = JSON.stringify(JSON.parse(this.response.body), null, 2);
|
this.response.body = JSON.stringify(JSON.parse(this.response.body), null, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const n = new Date().toLocaleTimeString();
|
const d = new Date().toLocaleDateString();
|
||||||
|
const t = new Date().toLocaleTimeString();
|
||||||
this.history = [{
|
this.history = [{
|
||||||
status: xhr.status,
|
status: xhr.status,
|
||||||
time: n,
|
date: d,
|
||||||
|
time: t,
|
||||||
method: this.method,
|
method: this.method,
|
||||||
url: this.url,
|
url: this.url,
|
||||||
path: this.path
|
path: this.path
|
||||||
|
|||||||
Reference in New Issue
Block a user