Skip to content

Commit a20b761

Browse files
authored
Fix CI/CD badge and typos. (#807)
1 parent e207c65 commit a20b761

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Gmail.js - JavaScript API for Gmail
22

3-
![Node.js CI](https://github.com/KartikTalwar/gmail.js/workflows/Node.js%20CI/badge.svg?branch=master)
3+
![Node.js CI](https://github.com/KartikTalwar/gmail.js/actions/workflows/node.js.yml/badge.svg?branch=master)
44
[![npm](https://img.shields.io/npm/v/gmail-js.svg)](https://www.npmjs.com/package/gmail-js)
55

66
### What Gmail.js is and isn't
@@ -172,7 +172,7 @@ import "gmail-js";
172172
- **`mark_as_spam`** - When a conversation(s) is marked as spam
173173
- **`mark_as_not_spam`** - When a conversation(s) is unchecked as spam
174174
- **`label`** - When a conversation(s) get applied a label
175-
- **`archive`** - When a conversation(s) is archieved
175+
- **`archive`** - When a conversation(s) is archived
176176
- **`move_to_inbox`** - When a conversation(s) is moved to the inbox
177177
- **`delete_forever`** - When a conversation(s) is deleted forever
178178
- **`star`** - When a conversation(s) is starred
@@ -186,7 +186,7 @@ import "gmail-js";
186186
- **`add_to_tasks`** - When an item is added to google tasks
187187
- **`move_label`** - When a conversation(s) is moved to a label folder
188188
- **`save_draft`** - When a draft is saved
189-
- **`discard_draft`** - When a draft is dicarded
189+
- **`discard_draft`** - When a draft is discarded
190190
- **`send_message`** - When a message is sent (except scheduled messages)
191191
- **`send_scheduled_message`** - When a message is scheduled for sending (but not actually sent)
192192
- **`expand_categories`** - When a category is expanded from the left nav sidebar
@@ -600,7 +600,7 @@ Returns `True` if user has multiple inbox lab enabled, `False` otherwise
600600

601601
#### gmail.check.is_horizontal_split()
602602

603-
Returns `True` if the pane split mode is horiontal `False` otherwise
603+
Returns `True` if the pane split mode is horizontal `False` otherwise
604604

605605
#### gmail.check.are_shortcuts_enabled()
606606

@@ -717,7 +717,7 @@ The items contain the sent requested parameterized data
717717
#### gmail.observe.actions()
718718

719719
Similar to `gmail.observe.http_requests()` this keeps track of the last 10 gmail actions (vs all http requests).
720-
Actions here correspond to things like clicking refres, archiving, deleting, starring etc.
720+
Actions here correspond to things like clicking refresh, archiving, deleting, starring etc.
721721

722722
#### gmail.observe.on(action, callback)
723723

@@ -743,7 +743,7 @@ Your callback will be fired directly after Gmail's XMLHttpRequest has been sent
743743
- **mark_as_spam** - When a conversation(s) is marked as spam
744744
- **mark_as_not_spam** - When a conversation(s) is unchecked as spam
745745
- **label** - When a conversation(s) get applied a label
746-
- **archive** - When a conversation(s) is archieved
746+
- **archive** - When a conversation(s) is archived
747747
- **move_to_inbox** - When a conversation(s) is moved to the inbox
748748
- **delete_forever** - When a conversation(s) is deleted forever
749749
- **star** - When a conversation(s) is starred
@@ -757,23 +757,23 @@ Your callback will be fired directly after Gmail's XMLHttpRequest has been sent
757757
- **add_to_tasks** - When an item is added to google tasks
758758
- **move_label** - When a conversation(s) is moved to a label folder
759759
- **save_draft** - When a draft is saved
760-
- **discard_draft** - When a draft is dicarded
760+
- **discard_draft** - When a draft is discarded
761761
- **send_message** - When a message is sent (except scheduled messages)
762762
- **send_scheduled_message** - When a message is scheduled for sending (but not actually sent)
763763
- **expand_categories** - When a category is expanded from the left nav sidebar
764764
- **restore_message_in_thread** - When a deleted message is restored inside a thread
765765
- **delete_label** - When a label is deleted
766766
- **show_newly_arrived_message** - When inside an email and a new email arrives in the thread
767767

768-
The on method also supports observering specific DOM events in the Gmail Interface (for example when a new compose window is opened). These are only available via the `on` method (not the `before` or `after` methods).
768+
The on method also supports observing specific DOM events in the Gmail Interface (for example when a new compose window is opened). These are only available via the `on` method (not the `before` or `after` methods).
769769

770770
**Available DOM Actions/Observers**
771771

772772
- **load** - When the gmail interface has completed loading
773773
- **compose** - When a new compose window opens, or a message is replied to or forwarded
774774
- **compose_cancelled** - When an existing compose window is closed.
775775
- **recipient_change** - When the recipient (to, cc or bcc) is changed when composing a new email or replying/forwarding an email
776-
- **view_thread** - When a new coversation thread is opened
776+
- **view_thread** - When a new conversation thread is opened
777777
- **view_email** - When an individual email is loaded within a thread (also fires when thread loads displaying the latest email)
778778
- **load_email_menu** - When the dropdown menu next to the reply button is clicked
779779

@@ -1022,7 +1022,7 @@ Simple:
10221022

10231023
Complex:
10241024
- action - the name of the new DOM observer
1025-
- args - an object containin properties for each of the supported DOM observer configuration agruments:
1025+
- args - an object containing properties for each of the supported DOM observer configuration arguments:
10261026
- class - the class of an inserted DOM element that identifies that this action should be triggered
10271027
- selector - if you need to match more than just the className of a specific element to indicate a match, you can use this selector for further checking (uses element.is(selector) on matched element). E.g. if there are multiple elements with a class indicating an observer should fire, but you only want it to fire on a specific id, then you would use this
10281028
- sub_selector - if specified, we do a jquery element.find for the passed selector on the inserted element and ensure we can find a match
@@ -1073,7 +1073,7 @@ Returns basic data for all the messages currently visible in the messages view.
10731073

10741074
### gmail.dom.compose(compose_el)
10751075

1076-
An object used to abstract interation with a compose popup.
1076+
An object used to abstract interaction with a compose popup.
10771077
Represents a compose window in the DOM and provides a bunch of methods and properties to access & interact with the window.
10781078

10791079
Expects a jQuery DOM element for the compose div.
@@ -1376,7 +1376,7 @@ individual email IDs.
13761376
**Note: This method can only be used with other deprecated methods,
13771377
and is itself deprecated. Use `gmail.new.get.email_id()` instead.**
13781378

1379-
Same as `gmail.get.thread_id()`, but kept for compatibilty.
1379+
Same as `gmail.get.thread_id()`, but kept for compatibility.
13801380
Using this method generates a warning!
13811381

13821382
```js

src/gmail.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,7 @@ var Gmail = function(localJQuery) {
24202420
for (let [action, response] of Object.entries(events)) {
24212421

24222422
// we have to do this here each time to keep backwards compatibility with old response_callback implementation
2423-
response = [...response]; // break the reference so it doesn"t keep growing each trigger
2423+
response = [...response]; // break the reference so it doesn't keep growing each trigger
24242424
if(type === "after") response.push(xhr.xhrResponse); // backwards compat for after events requires we push onreadystatechange parsed response first
24252425
response.push(xhr);
24262426
if(api.observe.bound(action, type)) {
@@ -2502,7 +2502,7 @@ var Gmail = function(localJQuery) {
25022502
// when the dropdown menu next to the reply button is inserted into the DOM when viewing an email
25032503
"load_email_menu": {
25042504
class: "J-N",
2505-
selector: "div[role=menu] div[role=menuitem]:first-child", // use the first menu item in the popoup as the indicator to trigger this observer
2505+
selector: "div[role=menu] div[role=menuitem]:first-child", // use the first menu item in the popup as the indicator to trigger this observer
25062506
handler: function(match, callback) {
25072507
match = match.closest("div[role=menu]");
25082508
callback(match);
@@ -3106,11 +3106,11 @@ var Gmail = function(localJQuery) {
31063106
if(typeof time !== "undefined"){
31073107
var initialInfoboxStyle = top.attr("style"); // backup initial style
31083108
top.removeAttr("style").fadeTo(time, 0, function(){ // simply remove then restore
3109-
$(this).attr("style", initialInfoboxStyle); // style attribute insteed of playing
3109+
$(this).attr("style", initialInfoboxStyle); // style attribute instead of playing
31103110
}); // on visibility property
31113111
}
31123112
else{
3113-
top.removeAttr("style"); // dito
3113+
top.removeAttr("style"); // ditto
31143114
}
31153115
}
31163116
};
@@ -4355,7 +4355,7 @@ var Gmail = function(localJQuery) {
43554355
*/
43564356
to: function(to_array) {
43574357

4358-
// if update data has been passeed, loop through & create a new to_wrapper contents
4358+
// if update data has been passed, loop through & create a new to_wrapper contents
43594359
if (to_array) {
43604360
if (!Array.isArray(to_array)) {
43614361
to_array = [to_array];

0 commit comments

Comments
 (0)