mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-10-20 11:41:42 +00:00
98537825e9
- feat: full screen tiptap editor, esentially two editors that attempt to keep their state in sync. - moves tiptap editor menu bar to to show up as a bubble once text is selected. - Layout fixes and improvements. - Improves /reports/overview charts and cards.
24 lines
516 B
Vue
24 lines
516 B
Vue
<template>
|
|
<LineChart :data="data" index="date" :categories="['New conversations', 'Resolved conversations', 'Messages sent']"
|
|
:x-formatter="xFormatter" :y-formatter="yFormatter" />
|
|
</template>
|
|
|
|
<script setup>
|
|
import { LineChart } from '@/components/ui/chart-line'
|
|
const props = defineProps({
|
|
data: {
|
|
type: Array,
|
|
default: () => []
|
|
}
|
|
})
|
|
|
|
const xFormatter = (tick) => {
|
|
return props.data[tick]?.date ?? ''
|
|
}
|
|
|
|
const yFormatter = (tick) => {
|
|
return Number.isInteger(tick) ? tick : ''
|
|
}
|
|
|
|
</script>
|