Add english labels for eventlog filtering

This commit is contained in:
Johannes Zellner
2025-11-20 02:08:08 +01:00
parent bbf7007250
commit 25dec602b8

View File

@@ -15,72 +15,83 @@ function getApp(id) {
}
const availableActions = [
{ id: 'app.backup' },
{ id: 'app.backup.finish' },
{ id: 'app.configure' },
{ id: 'app.install' },
{ id: 'app.restore' },
{ id: 'app.uninstall' },
{ id: 'app.update' },
{ id: 'app.update.finish' },
{ id: 'app.login' },
{ id: 'app.oom' },
{ id: 'app.down' },
{ id: 'app.up' },
{ id: 'app.start' },
{ id: 'app.stop' },
{ id: 'app.restart' },
{ id: 'backup.cleanup' },
{ id: 'backup.cleanup.finish' },
{ id: 'backup.finish' },
{ id: 'backup.start' },
{ id: 'backuptarget.add' },
{ id: 'branding.avatar' },
{ id: 'branding.footer' },
{ id: 'branding.name' },
{ id: 'certificate.new' },
{ id: 'certificate.renew' },
{ id: 'certificate.cleanup' },
{ id: 'cloudron.activate' },
{ id: 'cloudron.provision' },
{ id: 'cloudron.restore' },
{ id: 'cloudron.start' },
{ id: 'cloudron.update' },
{ id: 'cloudron.update.finish' },
{ id: 'dashboard.domain.update' },
{ id: 'directoryserver.configure' },
{ id: 'dyndns.update' },
{ id: 'domain.add' },
{ id: 'domain.update' },
{ id: 'domain.remove' },
{ id: 'externalldap.configure' },
{ id: 'group.add' },
{ id: 'group.update' },
{ id: 'group.remove' },
{ id: 'mail.location' },
{ id: 'mail.enabled' },
{ id: 'mail.box.add' },
{ id: 'mail.box.update' },
{ id: 'mail.box.remove' },
{ id: 'mail.list.add' },
{ id: 'mail.list.update' },
{ id: 'mail.list.remove' },
{ id: 'service.configure' },
{ id: 'service.rebuild' },
{ id: 'service.restart' },
{ id: 'support.ticket' },
{ id: 'support.ssh' },
{ id: 'user.add' },
{ id: 'user.login' },
{ id: 'user.login.ghost' },
{ id: 'user.logout' },
{ id: 'user.remove' },
{ id: 'user.transfer' },
{ id: 'user.update' },
{ id: 'userdirectory.profileconfig.update' },
{ id: 'volume.add' },
{ id: 'volume.update' },
{ id: 'volume.remove' },
{ 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' },
{ 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: 'backuptarget.add', label: 'Site added' },
{ separator: true, label: 'Certificates' },
{ id: 'certificate.new', label: 'Obtained' },
{ id: 'certificate.renew', label: 'Renewed' },
{ id: 'certificate.cleanup', label: 'Cleaned up' },
{ separator: true, label: 'Domains' },
{ id: 'domain.add', label: 'Added' },
{ id: 'domain.update', label: 'Updated' },
{ id: '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' },
{ separator: true, label: 'Services' },
{ id: 'service.configure', label: 'Configured' },
{ id: 'service.rebuild', label: 'Rebuilt' },
{ id: '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: 'user.transfer', label: 'Transferred' },
{ separator: true, label: 'Groups' },
{ id: 'group.add', label: 'Added' },
{ id: 'group.update', label: 'Updated' },
{ id: 'group.remove', label: 'Removed' },
{ separator: true, label: 'Volumes' },
{ id: 'volume.add', label: 'Added' },
{ id: 'volume.update', label: 'Updated' },
{ id: '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' },
{ 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: 'support.ssh', label: '' },
// { id: 'support.ticket', label: '' },
];
const refreshBusy = ref(false);
@@ -173,7 +184,7 @@ onUnmounted(() => {
{{ $t('eventlog.title') }}
<div>
<TextInput :placeholder="$t('main.searchPlaceholder')" style="flex-grow: 1;" v-model="search"/>
<MultiSelect :search-threshold="10" v-model="actions" :options="availableActions" option-label="id" option-key="id" :selected-label="actions.length ? $t('main.multiselect.selected', { n: actions.length }) : $t('eventlog.filterAllEvents')"/>
<MultiSelect :search-threshold="10" v-model="actions" :options="availableActions" option-label="label" option-key="id" :selected-label="actions.length ? $t('main.multiselect.selected', { n: actions.length }) : $t('eventlog.filterAllEvents')"/>
<Button tool secondary @click="onRefresh()" :loading="refreshBusy" icon="fa-solid fa-sync-alt" />
</div>
</h1>