Restructure omni services and add Chatwoot research snapshot

This commit is contained in:
Ruslan Bakiev
2026-02-21 11:11:27 +07:00
parent edea7a0034
commit b73babbbf6
7732 changed files with 978203 additions and 32 deletions

View File

@@ -0,0 +1,61 @@
<script>
import { useMessageFormatter } from 'shared/composables/useMessageFormatter';
import { getContrastingTextColor } from '@chatwoot/utils';
export default {
name: 'UserMessageBubble',
props: {
message: {
type: String,
default: '',
},
widgetColor: {
type: String,
default: '',
},
},
setup() {
const { formatMessage } = useMessageFormatter();
return {
formatMessage,
};
},
computed: {
textColor() {
return getContrastingTextColor(this.widgetColor);
},
},
};
</script>
<template>
<div
v-dompurify-html="formatMessage(message, false)"
class="chat-bubble user"
:style="{ background: widgetColor, color: textColor }"
/>
</template>
<style lang="scss" scoped>
.chat-bubble.user::v-deep {
p code {
@apply bg-n-alpha-2 dark:bg-n-alpha-1 text-white;
}
pre {
@apply text-white bg-n-alpha-2 dark:bg-n-alpha-1;
code {
@apply bg-transparent text-white;
}
}
blockquote {
@apply bg-transparent border-n-slate-7 ltr:border-l-2 rtl:border-r-2 border-solid;
p {
@apply text-n-slate-5 dark:text-n-slate-12/90;
}
}
}
</style>