show human readable values

This commit is contained in:
bastantoine 2022-11-18 23:18:57 +01:00
parent 7c100f4030
commit b0d9fbbbaf
5 changed files with 476 additions and 10 deletions

View file

@ -0,0 +1,26 @@
<template>
<n-space>
{{ value.value }}
<i v-if="value.extension">({{ value.extension }})</i>
</n-space>
</template>
<script setup lang="ts">
import { computed } from 'vue';
import { parse_claim_value } from './jwt-parser.service';
const props = defineProps({
claim: {
type: String,
default: '',
},
value: {
type: String,
default: '',
},
});
const value = computed(() => parse_claim_value(props.claim, props.value));
</script>
<style lang="less" scoped></style>