You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
444 B
20 lines
444 B
2 years ago
|
<template>
|
||
|
<div v-html="generateIdenticon()" class="w-fit"></div>
|
||
|
</template>
|
||
|
<script lang="ts">
|
||
|
import { Vue, Component, Prop } from "vue-facing-decorator";
|
||
|
import { toSvg } from "jdenticon";
|
||
|
|
||
|
@Component
|
||
|
export default class EntityIcon extends Vue {
|
||
|
@Prop entityId = "";
|
||
|
@Prop iconSize = "";
|
||
|
|
||
|
generateIdenticon() {
|
||
|
const svgString = toSvg(this.entityId, this.iconSize);
|
||
|
return svgString;
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
<style scoped></style>
|