import $ from 'jquery';
import {addCaretJQueryExtension} from '../main/webapp/js/lib/text-caret';

global.$ = $;
addCaretJQueryExtension($);

$.fn.extend({
  //mock userPopup extension
  userPopup() {}
});

global.eXo = {
  env: {
    portal: {
      context: 'portal',
      rest: 'rest',
      language: 'fr'
    }
  },
  chat: {
    userSettings: {
      username: 'root',
      fullName: 'Root Root',
      isOnline: true,
      status: 'invisible'
    },
    room : {
      extraApplications : [{
        key: 'test',
        iconClass: 'testIcon',
        labelKey: 'testLabel'
      }],
      extraActions: []
    },
    message : {
      extraActions : [{
        key: 'testAction',
        labelKey: 'testAction',
        enabled: () => {return true;}
      }],
      notifs: {
        
      }
    }
  }
};