Add EVENTS to constants
This commit is contained in:
@@ -3,88 +3,89 @@
|
||||
import { onMounted, onUnmounted, useTemplateRef } from 'vue';
|
||||
import EventlogList from '../components/EventlogList.vue';
|
||||
import EventlogsModel from '../models/EventlogsModel.js';
|
||||
import { EVENTS } from '../constants.js';
|
||||
|
||||
const eventlogsModel = EventlogsModel.create();
|
||||
const eventlogList = useTemplateRef('eventlogList');
|
||||
|
||||
const availableActions = [
|
||||
{ separator: true, label: 'App' },
|
||||
{ id: 'app.backup', label: 'Backup started' },
|
||||
{ id: 'app.backup.finish', label: 'Backup finished' },
|
||||
{ id: 'app.configure', label: 'Reconfigured' },
|
||||
{ id: 'app.install', label: 'Installed' },
|
||||
{ id: 'app.restore', label: 'Restored' },
|
||||
{ id: 'app.uninstall', label: 'Uninstalled' },
|
||||
{ id: 'app.update', label: 'Update started' },
|
||||
{ id: 'app.update.finish', label: 'Update finished' },
|
||||
{ id: 'app.login', label: 'Log in' },
|
||||
{ id: 'app.oom', label: 'Out of memory' },
|
||||
{ id: 'app.down', label: 'Down' },
|
||||
{ id: 'app.up', label: 'Up' },
|
||||
{ id: 'app.start', label: 'Started' },
|
||||
{ id: 'app.stop', label: 'Stopped' },
|
||||
{ id: 'app.restart', label: 'Restarted' },
|
||||
{ id: EVENTS.APP_BACKUP, label: 'Backup started' },
|
||||
{ id: EVENTS.APP_BACKUP_FINISH, label: 'Backup finished' },
|
||||
{ id: EVENTS.APP_CONFIGURE, label: 'Reconfigured' },
|
||||
{ id: EVENTS.APP_INSTALL, label: 'Installed' },
|
||||
{ id: EVENTS.APP_RESTORE, label: 'Restored' },
|
||||
{ id: EVENTS.APP_UNINSTALL, label: 'Uninstalled' },
|
||||
{ id: EVENTS.APP_UPDATE, label: 'Update started' },
|
||||
{ id: EVENTS.APP_UPDATE_FINISH, label: 'Update finished' },
|
||||
{ id: EVENTS.APP_LOGIN, label: 'Log in' },
|
||||
{ id: EVENTS.APP_OOM, label: 'Out of memory' },
|
||||
{ id: EVENTS.APP_DOWN, label: 'Down' },
|
||||
{ id: EVENTS.APP_UP, label: 'Up' },
|
||||
{ id: EVENTS.APP_START, label: 'Started' },
|
||||
{ id: EVENTS.APP_STOP, label: 'Stopped' },
|
||||
{ id: EVENTS.APP_RESTART, label: 'Restarted' },
|
||||
{ separator: true, label: 'Platform backup' },
|
||||
{ id: 'backup.cleanup', label: 'Cleanup started' },
|
||||
{ id: 'backup.cleanup.finish', label: 'Cleanup finished' },
|
||||
{ id: 'backup.start', label: 'Started' },
|
||||
{ id: 'backup.finish', label: 'Finished' },
|
||||
{ id: 'backup.integrity.start', label: 'Integrity check started' },
|
||||
{ id: 'backup.integrity.finish', label: 'Integrity check finished' },
|
||||
{ id: 'backuptarget.add', label: 'Site added' },
|
||||
{ id: 'backuptarget.remove', label: 'Site removed' },
|
||||
{ id: EVENTS.BACKUP_CLEANUP_START, label: 'Cleanup started' },
|
||||
{ id: EVENTS.BACKUP_CLEANUP_FINISH, label: 'Cleanup finished' },
|
||||
{ id: EVENTS.BACKUP_START, label: 'Started' },
|
||||
{ id: EVENTS.BACKUP_FINISH, label: 'Finished' },
|
||||
{ id: EVENTS.BACKUP_INTEGRITY_START, label: 'Integrity check started' },
|
||||
{ id: EVENTS.BACKUP_INTEGRITY_FINISH, label: 'Integrity check finished' },
|
||||
{ id: EVENTS.BACKUP_SITE_ADD, label: 'Site added' },
|
||||
{ id: EVENTS.BACKUP_SITE_REMOVE, label: 'Site removed' },
|
||||
{ separator: true, label: 'Certificates' },
|
||||
{ id: 'certificate.new', label: 'Obtained' },
|
||||
{ id: 'certificate.renew', label: 'Renewed' },
|
||||
{ id: 'certificate.cleanup', label: 'Cleaned up' },
|
||||
{ id: EVENTS.CERTIFICATE_NEW, label: 'Obtained' },
|
||||
{ id: EVENTS.CERTIFICATE_RENEWAL, label: 'Renewed' },
|
||||
{ id: EVENTS.CERTIFICATE_CLEANUP, label: 'Cleaned up' },
|
||||
{ separator: true, label: 'Domains' },
|
||||
{ id: 'domain.add', label: 'Added' },
|
||||
{ id: 'domain.update', label: 'Updated' },
|
||||
{ id: 'domain.remove', label: 'Removed' },
|
||||
{ id: EVENTS.DOMAIN_ADD, label: 'Added' },
|
||||
{ id: EVENTS.DOMAIN_UPDATE, label: 'Updated' },
|
||||
{ id: EVENTS.DOMAIN_REMOVE, label: 'Removed' },
|
||||
{ separator: true, label: 'Email' },
|
||||
{ id: 'mail.location', label: 'Location changed' },
|
||||
{ id: 'mail.enabled', label: 'Enabled/Disabled' },
|
||||
{ id: 'mail.box.add', label: 'Mailbox added' },
|
||||
{ id: 'mail.box.update', label: 'Mailbox updated' },
|
||||
{ id: 'mail.box.remove', label: 'Mailbox removed' },
|
||||
{ id: 'mail.list.add', label: 'Mailinglist added' },
|
||||
{ id: 'mail.list.update', label: 'Mailinglist updated' },
|
||||
{ id: 'mail.list.remove', label: 'Mailinglist removed' },
|
||||
{ id: EVENTS.MAIL_LOCATION, label: 'Location changed' },
|
||||
{ id: EVENTS.MAIL_ENABLED, label: 'Enabled/Disabled' },
|
||||
{ id: EVENTS.MAIL_MAILBOX_ADD, label: 'Mailbox added' },
|
||||
{ id: EVENTS.MAIL_MAILBOX_UPDATE, label: 'Mailbox updated' },
|
||||
{ id: EVENTS.MAIL_MAILBOX_REMOVE, label: 'Mailbox removed' },
|
||||
{ id: EVENTS.MAIL_LIST_ADD, label: 'Mailinglist added' },
|
||||
{ id: EVENTS.MAIL_LIST_UPDATE, label: 'Mailinglist updated' },
|
||||
{ id: EVENTS.MAIL_LIST_REMOVE, label: 'Mailinglist removed' },
|
||||
{ separator: true, label: 'Services' },
|
||||
{ id: 'service.configure', label: 'Configured' },
|
||||
{ id: 'service.rebuild', label: 'Rebuilt' },
|
||||
{ id: 'service.restart', label: 'Restarted' },
|
||||
{ id: EVENTS.SERVICE_CONFIGURE, label: 'Configured' },
|
||||
{ id: EVENTS.SERVICE_REBUILD, label: 'Rebuilt' },
|
||||
{ id: EVENTS.SERVICE_RESTART, label: 'Restarted' },
|
||||
{ separator: true, label: 'Users' },
|
||||
{ id: 'user.add', label: 'Added' },
|
||||
{ id: 'user.update', label: 'Updated' },
|
||||
{ id: 'user.remove', label: 'Removed' },
|
||||
{ id: 'user.login', label: 'Logged in' },
|
||||
{ id: 'user.login.ghost', label: 'Ghost logged in' },
|
||||
{ id: 'user.logout', label: 'Logged out' },
|
||||
{ id: EVENTS.USER_ADD, label: 'Added' },
|
||||
{ id: EVENTS.USER_UPDATE, label: 'Updated' },
|
||||
{ id: EVENTS.USER_REMOVE, label: 'Removed' },
|
||||
{ id: EVENTS.USER_LOGIN, label: 'Logged in' },
|
||||
{ id: EVENTS.USER_LOGIN_GHOST, label: 'Ghost logged in' },
|
||||
{ id: EVENTS.USER_LOGOUT, label: 'Logged out' },
|
||||
{ separator: true, label: 'Groups' },
|
||||
{ id: 'group.add', label: 'Added' },
|
||||
{ id: 'group.update', label: 'Updated' },
|
||||
{ id: 'group.remove', label: 'Removed' },
|
||||
{ id: EVENTS.GROUP_ADD, label: 'Added' },
|
||||
{ id: EVENTS.GROUP_UPDATE, label: 'Updated' },
|
||||
{ id: EVENTS.GROUP_REMOVE, label: 'Removed' },
|
||||
{ separator: true, label: 'Volumes' },
|
||||
{ id: 'volume.add', label: 'Added' },
|
||||
{ id: 'volume.update', label: 'Updated' },
|
||||
{ id: 'volume.remove', label: 'Removed' },
|
||||
{ id: EVENTS.VOLUME_ADD, label: 'Added' },
|
||||
{ id: EVENTS.VOLUME_UPDATE, label: 'Updated' },
|
||||
{ id: EVENTS.VOLUME_REMOVE, label: 'Removed' },
|
||||
{ separator: true, label: 'Branding' },
|
||||
{ id: 'branding.avatar', label: 'Avatar changed' },
|
||||
{ id: 'branding.footer', label: 'Footer changed' },
|
||||
{ id: 'branding.name', label: 'Name started' },
|
||||
{ id: EVENTS.BRANDING_AVATAR, label: 'Avatar changed' },
|
||||
{ id: EVENTS.BRANDING_FOOTER, label: 'Footer changed' },
|
||||
{ id: EVENTS.BRANDING_NAME, label: 'Name started' },
|
||||
{ separator: true, label: 'Cloudron' },
|
||||
{ id: 'cloudron.activate', label: 'Activated' },
|
||||
{ id: 'cloudron.provision', label: 'Provisioned' },
|
||||
{ id: 'cloudron.restore', label: 'Restored' },
|
||||
{ id: 'cloudron.start', label: 'Started' },
|
||||
{ id: 'cloudron.update', label: 'Update started' },
|
||||
{ id: 'cloudron.update.finish', label: 'Update finished' },
|
||||
{ id: 'dashboard.domain.update', label: 'Dashboard domain updated' },
|
||||
{ id: 'dyndns.update', label: 'DynDNS changed' },
|
||||
{ id: 'directoryserver.configure', label: 'LDAP configured ' },
|
||||
{ id: 'externalldap.configure', label: 'External LDAP configured' },
|
||||
{ id: 'userdirectory.profileconfig.update', label: 'Profile config changed' },
|
||||
{ id: EVENTS.ACTIVATE, label: 'Activated' },
|
||||
{ id: EVENTS.PROVISION, label: 'Provisioned' },
|
||||
{ id: EVENTS.RESTORE, label: 'Restored' },
|
||||
{ id: EVENTS.START, label: 'Started' },
|
||||
{ id: EVENTS.UPDATE, label: 'Update started' },
|
||||
{ id: EVENTS.UPDATE_FINISH, label: 'Update finished' },
|
||||
{ id: EVENTS.DASHBOARD_DOMAIN_UPDATE, label: 'Dashboard domain updated' },
|
||||
{ id: EVENTS.DYNDNS_UPDATE, label: 'DynDNS changed' },
|
||||
{ id: EVENTS.DIRECTORY_SERVER_CONFIGURE, label: 'LDAP configured ' },
|
||||
{ id: EVENTS.EXTERNAL_LDAP_CONFIGURE, label: 'External LDAP configured' },
|
||||
{ id: EVENTS.USER_DIRECTORY_PROFILE_CONFIG_UPDATE, label: 'Profile config changed' },
|
||||
];
|
||||
|
||||
async function fetchPage(filter, page, perPage) {
|
||||
|
||||
Reference in New Issue
Block a user