This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This code supports importing & exporting calendar events from Outlook web by interacting with the | |
| * DOM elements to read data and create events. | |
| * | |
| * The 2 main entry points are: | |
| * | |
| * exportCalendarEvents() - This will copy all calendar events in the current view (e.g. week) and copy them as JSON to the clipboard. | |
| * importCalendarEvents() - This will read the calendar events JSON from the clipboard and import them into the current calendar. | |
| * | |
| * Suggested usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default { | |
| /** | |
| * Searches the provided `content` by the terms within the `searchQuery` and | |
| * splits up the content into fragments which are either matches or non-matches. | |
| * It returns an Array of Objects, each of which has the following format: | |
| * | |
| * * `fragment` (String): The fragment of content | |
| * * `match` (Boolean): True if the content is a match for one of the terms | |
| * in the `searchQuery` | |
| * |