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,59 @@
<script>
export default {
props: {
block: {
type: Boolean,
default: false,
},
type: {
type: String,
default: 'blue',
},
bgColor: {
type: String,
default: '',
},
textColor: {
type: String,
default: '',
},
disabled: {
type: Boolean,
default: false,
},
},
computed: {
buttonClassName() {
let className =
'text-white py-3 px-4 rounded-lg shadow-sm leading-4 cursor-pointer disabled:opacity-50';
if (this.type === 'clear') {
className = 'flex mx-auto mt-4 text-xs leading-3 w-auto text-n-gray-12';
}
if (this.type === 'blue' && !Object.keys(this.buttonStyles).length) {
className = `${className} bg-n-brand hover:brightness-110`;
}
if (this.block) {
className = `${className} w-full`;
}
return className;
},
buttonStyles() {
const styles = {};
if (this.bgColor) {
styles.backgroundColor = this.bgColor;
}
if (this.textColor) {
styles.color = this.textColor;
}
return styles;
},
},
};
</script>
<template>
<button :class="buttonClassName" :style="buttonStyles" :disabled="disabled">
<slot />
</button>
</template>