diff --git a/front/src/components/common/Username.vue b/front/src/components/common/Username.vue new file mode 100644 index 0000000000000000000000000000000000000000..17fb34925c51249bb09f237c582ffbb4a9451c8d --- /dev/null +++ b/front/src/components/common/Username.vue @@ -0,0 +1,8 @@ +<template> + <span>{{ username }}</span> +</template> +<script> +export default { + props: ['username'] +} +</script> diff --git a/front/src/components/globals.js b/front/src/components/globals.js index 40315bc47d8efa9731c7133354181e09bbd6cb59..b1d7d61041d31df9f9e47076e6ae273c8119c33b 100644 --- a/front/src/components/globals.js +++ b/front/src/components/globals.js @@ -4,4 +4,8 @@ import HumanDate from '@/components/common/HumanDate' Vue.component('human-date', HumanDate) +import Username from '@/components/common/Username' + +Vue.component('username', Username) + export default {}