mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	Co-authored-by: Pranav <pranav@chatwoot.com> Co-authored-by: Pranav <pranavrajs@gmail.com>
		
			
				
	
	
		
			31 lines
		
	
	
		
			970 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			970 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import './design-system/histoire.scss';
 | 
						|
import { defineSetupVue3 } from '@histoire/plugin-vue';
 | 
						|
import i18nMessages from 'dashboard/i18n';
 | 
						|
import { createI18n } from 'vue-i18n';
 | 
						|
import { vResizeObserver } from '@vueuse/components';
 | 
						|
import store from 'dashboard/store';
 | 
						|
import FloatingVue from 'floating-vue';
 | 
						|
import VueDOMPurifyHTML from 'vue-dompurify-html';
 | 
						|
import { domPurifyConfig } from 'shared/helpers/HTMLSanitizer.js';
 | 
						|
import { directive as onClickaway } from 'vue3-click-away';
 | 
						|
 | 
						|
const i18n = createI18n({
 | 
						|
  legacy: false, // https://github.com/intlify/vue-i18n/issues/1902
 | 
						|
  locale: 'en',
 | 
						|
  messages: i18nMessages,
 | 
						|
});
 | 
						|
 | 
						|
export const setupVue3 = defineSetupVue3(({ app }) => {
 | 
						|
  app.use(store);
 | 
						|
  app.use(i18n);
 | 
						|
  app.use(FloatingVue, {
 | 
						|
    instantMove: true,
 | 
						|
    arrowOverflow: false,
 | 
						|
    disposeTimeout: 5000000,
 | 
						|
  });
 | 
						|
 | 
						|
  app.directive('resize', vResizeObserver);
 | 
						|
  app.use(VueDOMPurifyHTML, domPurifyConfig);
 | 
						|
  app.directive('on-clickaway', onClickaway);
 | 
						|
});
 |