iachat/app/javascript/dashboard/helper
Fayaz Ahmed b474929f5e
chore: Replace eventBus with mitt.js [CW-3275] (#9539)
# Replace the deprecated `eventBus` with mitt.js

## Description

Since eventBus and it's respective methods are deprecated and removed
from all future releases of vue, this was blocking us from migrating.
This PR replaces eventBus with
[mitt](https://github.com/developit/mitt). I have created a wrapper
mitt.js to simulate the same old event names so it's backwards
compatible, without making a lot of changes.


Fixes # (issue)

## Type of change

Please delete options that are not relevant.

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality not to work as expected)
- [ ] This change requires a documentation update

## How Has This Been Tested?

1. Made sure all the places we're listening to bus events are working as
expected.
2. Respective specsf or the events from mitt.


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published in downstream
modules
2024-05-31 15:50:36 +05:30
..
AnalyticsHelper feat(ee): Add SLA management UI (#8777) 2024-02-20 23:03:22 -08:00
AudioAlerts feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
CacheHelper feat: fallback to DB localStorage for idb names (#8682) 2024-01-15 15:08:15 +05:30
directives feat: SLA threshold card component (#9163) 2024-03-27 13:19:51 +05:30
specs fix: Right click Snooze is not working (#9498) 2024-05-22 13:03:49 +05:30
actionCable.js chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
actionQueryGenerator.js fix: Unable to save automation "send email to team" (#6052) 2022-12-12 20:10:33 +05:30
APIHelper.js fix: Allow users to login even if they have access to more than 15 accounts (#4475) 2022-04-14 20:54:26 +05:30
auditlogHelper.js feat: auditlog for team and inbox member updates (#7516) 2023-08-15 19:55:19 -07:00
automationHelper.js feat(ee): Add support for SLA in automation rules (#8910) 2024-02-21 14:45:43 -08:00
commons.js feat: Add the ability add new portal (#5219) 2022-08-10 09:27:52 +05:30
customViewsHelper.js feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
downloadHelper.js feat: Add business hours in downloadable reports (#4674) 2022-05-27 09:26:59 +05:30
editorHelper.js feat: Support image resize in message signature (#8042) 2023-10-09 13:20:12 +05:30
featureHelper.js feat: Add help URLs for features in features.yml (#9134) 2024-03-21 10:30:46 -07:00
filterQueryGenerator.js chore: Support multiple values for automation message content (#7871) 2023-09-19 13:04:58 +05:30
flag.js chore: Replace packages with native functions (#5140) 2022-08-03 17:08:21 +05:30
inbox.js feat: add reauthorization banner for Facebook (#9553) 2024-05-30 09:41:04 +05:30
labelColor.js feat: Create portal UI improvements (#5261) 2022-08-18 17:11:19 +05:30
portalHelper.js feat: Add support to uncategorized articles (#6912) 2023-05-02 15:35:26 +05:30
preChat.js feat: Support Regex validation for custom attributes (#7856) 2024-01-23 18:01:57 +04:00
pushHelper.js chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
routeHelpers.js fix: Right click Snooze is not working (#9498) 2024-05-22 13:03:49 +05:30
scriptHelpers.js chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
snoozeHelpers.js feat: Inbox header actions (Snooze/Delete) (#8858) 2024-02-06 08:54:15 +05:30
states.js Move src to dashboard (#152) 2019-10-16 14:36:17 +05:30
themeHelper.js feat: Add the option to toggle the dark/light color-scheme (#7662) 2023-08-03 12:21:45 -07:00
uploadHelper.js feat: Add upload under account scope (#7914) 2023-09-19 09:51:54 +05:30
URLHelper.js feat: Adds support for logo in portal settings page [CW-2585] (#8354) 2023-11-17 19:58:27 -08:00