2018-07-11 07:54:32 +00:00
|
|
|
<template>
|
|
|
|
<table class="ignore-list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="hostmask">Hostmask</th>
|
|
|
|
<th class="when">Ignored At</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2019-07-17 09:33:59 +00:00
|
|
|
<tr v-for="user in channel.data" :key="user.hostmask">
|
2021-05-22 17:42:57 +00:00
|
|
|
<td class="hostmask"><ParsedMessage :network="network" :text="user.hostmask" /></td>
|
2020-01-08 09:11:44 +00:00
|
|
|
<td class="when">{{ localetime(user.when) }}</td>
|
2018-07-11 07:54:32 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</template>
|
|
|
|
|
2022-06-19 00:25:21 +00:00
|
|
|
<script lang="ts">
|
2021-05-22 17:42:57 +00:00
|
|
|
import ParsedMessage from "../ParsedMessage.vue";
|
2020-01-08 09:11:44 +00:00
|
|
|
import localetime from "../../js/helpers/localetime";
|
2022-06-19 00:25:21 +00:00
|
|
|
import {defineComponent, PropType} from "vue";
|
|
|
|
import {ClientNetwork, ClientChan} from "../../js/types";
|
2020-01-08 09:11:44 +00:00
|
|
|
|
2022-06-19 00:25:21 +00:00
|
|
|
export default defineComponent({
|
2018-07-11 07:54:32 +00:00
|
|
|
name: "ListIgnored",
|
2021-05-22 17:42:57 +00:00
|
|
|
components: {
|
|
|
|
ParsedMessage,
|
|
|
|
},
|
2018-07-11 07:54:32 +00:00
|
|
|
props: {
|
2022-06-19 00:25:21 +00:00
|
|
|
network: {type: Object as PropType<ClientNetwork>, required: true},
|
|
|
|
channel: {type: Object as PropType<ClientChan>, required: true},
|
2018-07-11 07:54:32 +00:00
|
|
|
},
|
2022-06-19 00:25:21 +00:00
|
|
|
setup() {
|
|
|
|
return {
|
|
|
|
localetime,
|
|
|
|
};
|
2020-01-08 09:11:44 +00:00
|
|
|
},
|
2022-06-19 00:25:21 +00:00
|
|
|
});
|
2018-07-11 07:54:32 +00:00
|
|
|
</script>
|