1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-04 00:17:06 +00:00
mailinabox/management/reporting/ui/reports-page-header.js
downtownallday 2a0e50c8d4 Initial commit of a log capture and reporting feature
This adds a new section to the admin panel called "Activity", that
supplies charts, graphs and details about messages entering and leaving
the host.

A new daemon captures details of system mail activity by monitoring
the /var/log/mail.log file, summarizing it into a sqllite database
that's kept in user-data.
2021-01-11 18:02:07 -05:00

25 lines
749 B
JavaScript

Vue.component('reports-page-header', {
props: {
loading_counter: { type:Number, required:true },
},
components: {
'page-header': Vue.component('page-header'),
},
template:
'<page-header '+
'header_text="Server Activity" :loading_counter="loading_counter">'+
'<template v-slot:links>'+
' <b-navbar type="dark" variant="transparent" class="p-0">'+
' <b-navbar-nav>'+
' <b-nav-item href="/admin">Admin Panel</b-nav-item>'+
' <b-nav-item to="/settings"><b-icon icon="gear-fill" aria-hidden="true"></b-icon></b-nav-item>'+
' </b-navbar-nav>'+
' </b-navbar>'+
'</template>'+
'</page-header>'
,
});