mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-23 08:16:16 -04:00
show human readable values
This commit is contained in:
parent
7c100f4030
commit
b0d9fbbbaf
5 changed files with 476 additions and 10 deletions
26
src/tools/jwt-parser/value.vue
Normal file
26
src/tools/jwt-parser/value.vue
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue