refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s

This commit is contained in:
Kroonk
2026-05-22 16:19:55 +02:00
parent 38cc4c09ca
commit a213a1dba0
2215 changed files with 242567 additions and 6015 deletions

View File

@@ -0,0 +1,58 @@
<style scoped>
.avatar-padding {
padding-top: 19%
}
</style>
<template>
<span>
<img v-if="check"
v-tooltip.bottom="contact.complete_name"
:class="['br4 h3 w3 dib tc', imgclass]"
:alt="contact.initials"
:src="avatar_url"
@error="check=false"
/>
<span v-else
v-tooltip.bottom="contact.complete_name"
:class="['br4 h3 w3 dib tc', 'white f3 avatar-padding', imgclass]"
:style="'background-color: '+ default_avatar_color"
>
{{ contact.initials }}
</span>
</span>
</template>
<script>
export default {
props: {
contact: {
type: Object,
default: null,
},
imgclass: {
type: String,
default: '',
},
},
data () {
return {
check: true,
};
},
computed: {
avatar_url() {
if (_.isObject(this.contact.information)) {
return this.contact.information.avatar.url;
}
return this.contact.avatar_url;
},
default_avatar_color() {
if (_.isObject(this.contact.information)) {
return this.contact.information.avatar.default_avatar_color;
}
return this.contact.default_avatar_color;
}
}
};
</script>