Skip to content

Commit

Permalink
Merge branch 'master' into watching-marker
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchdev committed Sep 11, 2023
2 parents 66f8c66 + 71f205d commit debb638
Show file tree
Hide file tree
Showing 39 changed files with 891 additions and 922 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bump-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
bump-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/formatting-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
Expand Down
5 changes: 4 additions & 1 deletion assets/chat/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,10 @@ hr {
.combo,
.count,
.x {
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
}
.combo {
Expand Down
8 changes: 4 additions & 4 deletions assets/chat/js/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class ChatAutoComplete {
/** @member jQuery */
this.ui = $(`<div id="chat-auto-complete"><ul></ul></div>`);
this.ui.on('click', 'li', (e) =>
this.select(parseInt(e.currentTarget.getAttribute('data-index'), 10))
this.select(parseInt(e.currentTarget.getAttribute('data-index'), 10)),
);
this.container = $(this.ui[0].firstElementChild);
this.buckets = new Map();
Expand All @@ -111,7 +111,7 @@ class ChatAutoComplete {
if (keycode === KEYCODES.TAB) {
if (this.results.length > 0)
this.select(
this.selected >= this.results.length - 1 ? 0 : this.selected + 1
this.selected >= this.results.length - 1 ? 0 : this.selected + 1,
);
e.preventDefault();
e.stopPropagation();
Expand Down Expand Up @@ -192,7 +192,7 @@ class ChatAutoComplete {
.filter(
(a) =>
(!a.isemote || !(criteria.useronly || useronly)) &&
regex.test(a.data)
regex.test(a.data),
)
.sort(sortResults)
.slice(0, maxResults);
Expand Down Expand Up @@ -239,7 +239,7 @@ class ChatAutoComplete {

const pre = this.criteria.orig.substr(0, this.criteria.startCaret);
let post = this.criteria.orig.substr(
this.criteria.startCaret + this.criteria.word.length
this.criteria.startCaret + this.criteria.word.length,
);

// always add a space after our completion if there isn't one since people
Expand Down
Loading

0 comments on commit debb638

Please sign in to comment.