Commit 3e53030f by Johannes Edmeier

fix hover for tables

parent 8b3004f0
......@@ -25,37 +25,39 @@
<th>Session Id</th>
</tr>
</thead>
<template v-for="event in events">
<tr class="is-selectable"
:class="{ 'event--is-detailed' : showDetails[event.key] }"
@click="showDetails[event.key] ? $delete(showDetails, event.key) : $set(showDetails, event.key, true)"
:key="event.key">
<td v-text="event.timestamp.format('L HH:mm:ss.SSS')"/>
<td>
<span v-text="event.type" class="tag"
:class="{ 'is-success' : event.isSuccess(), 'is-danger' : event.isFailure() }"/>
</td>
<td v-if="hasSessionEndpoint && event.principal">
<router-link v-text="event.principal"
:to="{ name: 'instance/sessions', params: { 'instanceId' : instance.id }, query: { username : event.principal} }"/>
</td>
<td v-else v-text="event.principal"/>
<td v-text="event.remoteAddress"/>
<td v-if="hasSessionEndpoint && event.sessionId">
<router-link v-text="event.sessionId"
:to="{ name: 'instance/sessions', params: { 'instanceId' : instance.id }, query: { sessionId : event.sessionId } }"/>
</td>
<td v-else v-text="event.sessionId"/>
<tbdoy>
<template v-for="event in events">
<tr class="is-selectable"
:class="{ 'event--is-detailed' : showDetails[event.key] }"
@click="showDetails[event.key] ? $delete(showDetails, event.key) : $set(showDetails, event.key, true)"
:key="event.key">
<td v-text="event.timestamp.format('L HH:mm:ss.SSS')"/>
<td>
<span v-text="event.type" class="tag"
:class="{ 'is-success' : event.isSuccess(), 'is-danger' : event.isFailure() }"/>
</td>
<td v-if="hasSessionEndpoint && event.principal">
<router-link v-text="event.principal"
:to="{ name: 'instance/sessions', params: { 'instanceId' : instance.id }, query: { username : event.principal} }"/>
</td>
<td v-else v-text="event.principal"/>
<td v-text="event.remoteAddress"/>
<td v-if="hasSessionEndpoint && event.sessionId">
<router-link v-text="event.sessionId"
:to="{ name: 'instance/sessions', params: { 'instanceId' : instance.id }, query: { sessionId : event.sessionId } }"/>
</td>
<td v-else v-text="event.sessionId"/>
</tr>
<tr class="event__detail" :key="`${event.key}-detail`" v-if="showDetails[event.key]">
<td colspan="5">
<pre v-text="toJson(event.data)"/>
</td>
</tr>
</template>
<tr v-if="events.length === 0">
<td class="is-muted" colspan="5">No auditevents found.</td>
</tr>
<tr class="event__detail" :key="`${event.key}-detail`" v-if="showDetails[event.key]">
<td colspan="5">
<pre v-text="toJson(event.data)"/>
</td>
</tr>
</template>
<tr v-if="events.length === 0">
<td class="is-muted" colspan="5">No auditevents found.</td>
</tr>
</tbdoy>
</table>
</template>
......
......@@ -27,31 +27,34 @@
<th>Time</th>
</tr>
</thead>
<template v-for="trace in traces">
<tr class="is-selectable"
:class="{ 'trace--is-detailed' : showDetails[trace.key] }"
@click="showDetails[trace.key] ? $delete(showDetails, trace.key) : $set(showDetails, trace.key, true)"
:key="trace.key">
<td v-text="trace.timestamp.format('L HH:mm:ss.SSS')"/>
<td v-text="trace.request.method"/>
<td v-text="trace.request.uri"/>
<td>
<span v-text="trace.response.status" class="tag"
:class="{ 'is-success' : trace.isSuccess(), 'is-warning' : trace.isClientError(), 'is-danger' : trace.isServerError() }"/>
</td>
<td v-text="trace.contentType"/>
<td v-text="trace.contentLength ? prettyBytes(trace.contentLength) : ''"/>
<td v-text="trace.timeTaken !== null && typeof trace.timeTaken !== 'undefined' ? `${trace.timeTaken} ms` : ''"/>
<tbdoy>
<template v-for="trace in traces">
<tr class="is-selectable"
:class="{ 'trace--is-detailed' : showDetails[trace.key] }"
@click="showDetails[trace.key] ? $delete(showDetails, trace.key) : $set(showDetails, trace.key, true)"
:key="trace.key">
<td v-text="trace.timestamp.format('L HH:mm:ss.SSS')"/>
<td v-text="trace.request.method"/>
<td v-text="trace.request.uri"/>
<td>
<span v-text="trace.response.status" class="tag"
:class="{ 'is-success' : trace.isSuccess(), 'is-warning' : trace.isClientError(), 'is-danger' : trace.isServerError() }"/>
</td>
<td v-text="trace.contentType"/>
<td v-text="trace.contentLength ? prettyBytes(trace.contentLength) : ''"/>
<td
v-text="trace.timeTaken !== null && typeof trace.timeTaken !== 'undefined' ? `${trace.timeTaken} ms` : ''"/>
</tr>
<tr class="trace__detail" :key="`${trace.key}-detail`" v-if="showDetails[trace.key]">
<td colspan="7">
<pre v-text="toJson(trace)"/>
</td>
</tr>
</template>
<tr v-if="traces.length === 0">
<td class="is-muted" colspan="7">No traces found.</td>
</tr>
<tr class="trace__detail" :key="`${trace.key}-detail`" v-if="showDetails[trace.key]">
<td colspan="7">
<pre v-text="toJson(trace)"/>
</td>
</tr>
</template>
<tr v-if="traces.length === 0">
<td class="is-muted" colspan="7">No traces found.</td>
</tr>
</tbdoy>
</table>
</template>
......@@ -78,14 +81,14 @@
</script>
<style lang="scss">
@import "~@/assets/css/utilities";
@import "~@/assets/css/utilities";
.trace--is-detailed td {
border: none !important;
}
.trace--is-detailed td {
border: none !important;
}
.trace__detail td {
overflow-x: auto;
max-width: 1024px;
}
.trace__detail td {
overflow-x: auto;
max-width: 1024px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment