-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring, add tooltips, adjust strings, build WOT audit log
- Loading branch information
Showing
6 changed files
with
135 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
frontend/src/components/AuditLogDetailsSettingWotUpdate.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<template> | ||
<td class="whitespace-nowrap px-3 py-4 text-sm font-medium text-gray-900"> | ||
{{ t('auditLog.details.setting.wot.update') }} | ||
</td> | ||
<td class="whitespace-nowrap py-4 pl-3 pr-4 sm:pr-6"> | ||
<dl class="flex flex-col gap-2"> | ||
<div class="flex items-baseline gap-2"> | ||
<dt class="text-xs text-gray-500"> | ||
<code>registered by</code> | ||
</dt> | ||
<dd class="flex items-baseline gap-2 text-sm text-gray-900"> | ||
<span v-if="resolvedUpdatedBy != null">{{ resolvedUpdatedBy.name }}</span> | ||
<code class="text-xs" :class="{'text-gray-600': resolvedUpdatedBy != null}">{{ event.updatedBy }}</code> | ||
</dd> | ||
</div> | ||
<div class="flex items-baseline gap-2"> | ||
<dt class="text-xs text-gray-500"> | ||
<code>maximum wot depth</code> | ||
</dt> | ||
<dd class="flex items-baseline gap-2 text-sm text-gray-900"> | ||
<code class="text-xs text-gray-600">{{ event.wotMaxDepth }}</code> | ||
</dd> | ||
</div> | ||
<div class="flex items-baseline gap-2"> | ||
<dt class="text-xs text-gray-500"> | ||
<code>fingerprint verification preciseness</code> | ||
</dt> | ||
<dd class="flex items-baseline gap-2 text-sm text-gray-900"> | ||
<code class="text-xs text-gray-600">{{ event.wotIdVerifyLen }}</code> | ||
</dd> | ||
</div> | ||
</dl> | ||
</td> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { onMounted, ref } from 'vue'; | ||
import { useI18n } from 'vue-i18n'; | ||
import auditlog, { AuditEventSettingWotUpdateDto } from '../common/auditlog'; | ||
import { AuthorityDto } from '../common/backend'; | ||
const { t } = useI18n({ useScope: 'global' }); | ||
const props = defineProps<{ | ||
event: AuditEventSettingWotUpdateDto | ||
}>(); | ||
const resolvedUpdatedBy = ref<AuthorityDto>(); | ||
onMounted(async () => { | ||
resolvedUpdatedBy.value = await auditlog.entityCache.getAuthority(props.event.updatedBy); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.