Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
‼️ v2.4.0 (#155)
Browse files Browse the repository at this point in the history
* 🆙 Update dependencies

* 🐛 Fix CSS selectors

* ‼️ v2.4.0
  • Loading branch information
stoe authored Oct 10, 2021
1 parent 2298899 commit f95a6eb
Show file tree
Hide file tree
Showing 11 changed files with 1,274 additions and 896 deletions.
17 changes: 12 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
"es6": true,
"node": true
},
"plugins": ["github"],
"extends": ["plugin:github/recommended"],
"plugins": [
"github"
],
"extends": [
"plugin:github/recommended"
],
"globals": {
"chrome": "readonly",
"document": "readonly",
Expand All @@ -17,8 +21,11 @@
"camelcase": [
"error",
{
"allow": ["per_page"]
"allow": [
"per_page"
]
}
]
],
"import/no-commonjs": "off"
}
}
}
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build/
dist/
package-lock.json
4 changes: 4 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
...require('eslint-plugin-github/prettier.config'),
printWidth: 80
}
2,095 changes: 1,243 additions & 852 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stoe/github-helper",
"version": "2.3.0",
"version": "2.4.0",
"description": "A browser extension to do things on github.com",
"keywords": [],
"author": {
Expand All @@ -15,7 +15,7 @@
"npm": ">=7"
},
"scripts": {
"build": "webpack --config webpack.config.js",
"build": "webpack --config webpack.config.cjs",
"pretest": "npx eslint-config-prettier .eslintrc.json",
"test": "eslint ."
},
Expand All @@ -27,9 +27,9 @@
"archiver": "^5.3.0",
"copy-webpack-plugin": "^6.4.0, <7",
"crx": "^5.0.1",
"eslint": "^7.32.0",
"eslint": "^7.32.0, <8",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-github": "^4.1.3",
"eslint-plugin-github": "^4.3.2",
"file-loader": "^6.2.0",
"html-loader": "^1.3.2, <2",
"remove-files-webpack-plugin": "^1.4.5",
Expand Down
1 change: 0 additions & 1 deletion prettier.config.js

This file was deleted.

33 changes: 3 additions & 30 deletions src/css/style.scss
Original file line number Diff line number Diff line change
@@ -1,32 +1,5 @@
.markdown-body .team-mention.highlight,
.timeline-comment:not(.current-user) .team-mention.highlight,
.timeline-entry .member-mention.highlight,
.timeline-entry .team-mention.highlight {
background-color: var(--color-bg-info-inverse) !important;
border-radius: 2px;
// margin-left: -2px;
// margin-right: -2px;
padding: 0 2px;
}

.timeline-comment.highlight:not(.current-user),
.timeline-entry.highlight {
border-color: var(--color-highlight-text) !important;
}

.timeline-comment.highlight:not(.current-user):before,
.timeline-entry.highlight .comment-header:before {
border-right-color: var(--color-highlight-text) !important;
}

html[data-color-mode='light'] {
.timeline-comment.highlight:not(.current-user),
.timeline-entry.highlight {
border-color: var(--color-bg-warning-inverse) !important;
}

.timeline-comment.highlight:not(.current-user):before,
.timeline-entry.highlight .comment-header:before {
border-right-color: var(--color-bg-warning-inverse) !important;
.timeline-comment:not(.current-user) {
&.gh-helper-highlight {
border-color: var(--color-user-mention-fg) !important;
}
}
4 changes: 2 additions & 2 deletions src/highlighter.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class GitHubHighlighter {
highlight() {
for (const m of this.mentions()) {
try {
m.classList.add('highlight')
m.closest('.timeline-comment, .timeline-entry').classList.add('highlight')
m.classList.add('gh-helper-highlight')
m.closest('.timeline-comment').classList.add('gh-helper-highlight')
} catch (err) {
// eslint-disable-next-line no-console
console.warn(err)
Expand Down
4 changes: 2 additions & 2 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"manifest_version": 2,
"name": "github-helper",
"description": "A browser extension to do things on github.com",
"version": "2.3.0",
"version_name": "2.3.0",
"version": "2.4.0",
"version_name": "2.4.0",

"icons": {
"16": "icons/status16.png",
Expand Down
1 change: 1 addition & 0 deletions src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
() => {
const status = document.getElementById('status')

// eslint-disable-next-line i18n-text/no-en
status.textContent = 'Options saved.'

return setTimeout(() => {
Expand Down
File renamed without changes.

0 comments on commit f95a6eb

Please sign in to comment.