30 Commits

Author SHA1 Message Date
Philipp Kief
e153f99d10
[Feature] Custom domain support (#1)
* made each provider a function so it always gives a new object instead of a reference, added name property, added domains property, removed domain property, added canSelfHost property

* getGitProvider now tests only the host of the url instead of the whole string. Removed switch statement for thesting domains in favor of a for loop which will allow custom domains. added new function addGitProvider which adds a copy of the config for given provider and new custom domain

* added custom providers library

* added loading of custom providers

* change async/await calls with with promise.then

* added detect property to provider.selectors object

* added flag isCustom to all custom provider objects for use in filtering

* added mozilla webextension polyfill so storage works across browsers

* wip: custom domains

* added wildcard for content scripts, so that popup can talk to current page

* added eslint exception for parameter reassignment in custom-providers.js

* added isCustom property to each provider, so it is consistent in all provider objects

* Closes #82

* Closes #76

* Added previous selectors as fallback for older instances

* Added ability to opt in to custom websites instead of the extension running on all of them by default. Only chromium browsers supported. Firefox does not allow requesting permissions from background scripts

---------

Co-authored-by: Michael Goodman <bulgedition@gmail.com>
2024-07-04 09:51:51 +02:00
Chris Sandvik
d6fb95b76b
fix: Replace property checking with hasOwnProperty wrapper (#69)
* Run prettier format

* Remove prototype property checking
2023-07-31 14:46:53 -04:00
Claudio Santos
47f418d0ba wip options page 2022-07-20 01:01:02 -04:00
claudiohbsantos
4b3117d895 repo link in popup 2022-07-19 01:28:44 -04:00
claudiohbsantos
2231fb7a7d per domain configs 2022-07-18 01:16:31 -04:00
claudiohbsantos
e144b442d7 refactoring 2022-07-17 00:12:03 -04:00
Chris Sandvik
a33e594205 Switch to using an injected stylesheet 2022-07-06 14:47:09 -04:00
Chris Sandvik
0a08e658f3 Add a functional size setting 2022-07-06 14:27:20 -04:00
Chris Sandvik
05f9f8c057
Fix ESLint config (#38)
* Add support for Azure DevOps and BitBucket

* Remove `console.log`

* Fix ESLint config

- Fix the ESLint config
- Fix all lint errors that cropped up as a result
- Add scripts to lint
- Add prettier format script
- Add `husky` / `lint-staged` to lint/format files when they're pushed

* Move provider configs to new file as requested

* Fixes to meet maintainers specs

* Fix remaining lint warns/errs

* eslint fix

* Update eslint/prettier packges

Remove unused `@types/node-fetch` package

* Add `eslint-plugin-jsdoc`

* Add eslint rule for allowing providers to reassign params in their `replaceIcon` functions

* Add sensible defaults for prettier to override any local editor settings

* Some final cleanup

* Loosen the required engines to allow for easier installing

Co-authored-by: Claudio Santos <Claudiohbsantos@users.noreply.github.com>
2022-06-30 22:25:48 -04:00
claudiohbsantos
b626e990aa separate manifests for chrome/firefox 2022-06-30 00:17:25 -04:00
claudiohbsantos
07badabb40 copy all svgs to root 2021-12-01 00:38:14 -05:00
claudiohbsantos
7203b834f5 use svgs directly 2021-11-30 23:38:46 -05:00
claudiohbsantos
607275c776 manual 1.4.0 release 2021-07-15 23:59:32 -04:00
Claudio Santos
cbd0a5990a
Revert "WSL support" 2021-07-15 23:42:56 -04:00
Shiva Poudel
abd512d3f6 Some changes to the Parcel v2 behaviours 2021-07-14 08:41:18 +05:45
SNDST00M: M.U.N.I.N
7d44fc262e
Remove extra newline 2021-07-13 23:55:48 +01:00
4086606
5f46382603
Fix all build errors on WSL 2021-07-13 09:23:06 +01:00
Shiva Poudel
ebef814f1b Finally Done!! 2021-07-13 11:32:18 +05:45
Shiva Poudel
e4cc3346ee Merge branch 'master' into refactor/extension 2021-07-13 11:16:18 +05:45
claudiohbsantos
a93e674c8b merge conflicts 2021-07-12 23:20:42 -04:00
Shiva Poudel
613574c7c3 Lets not include sorceMaps because extension is being heavier than 1MB also its a production build 2021-07-04 04:28:12 +05:45
4086606
b48d6fd7c5
Autogenerate language configuration map 2021-06-28 17:55:39 +01:00
Shiva Poudel
6c0e92a059 Fix regex for extension icons load because xml.dist and yml.dist were returning just dist
Ref: https://github.com/PKief/vscode-material-icon-theme/pull/1116

This is needed to load php{cs|unit}.xml.dist as XML icon and phpunit-watcher.yml.dist as YAML icon
2021-06-24 18:57:40 +05:45
Shiva Poudel
82de36fb12 Manifest icons location as zip parent dir cannot be removed 2021-06-22 05:54:24 +05:45
Shiva Poudel
c0ccc14d72 Coding standard to match with previous rulesets 2021-06-22 04:19:05 +05:45
Shiva Poudel
de9a81baca Refactor code base for better enhancement and approach 2021-06-21 21:01:04 +05:45
claudiohbsantos
b91ec529c9 inline svgs and iconmap for performance
remove generated files from git
2021-01-02 16:56:03 -05:00
claudiohbsantos
343cd8527f bundle extension with Parcel 2020-12-28 22:42:58 -05:00
claudiohbsantos
8d1d2bd9ab Extension logo added 2020-12-19 17:34:52 -05:00
claudiohbsantos
c1198370d5 separate build src folder from dependencies 2020-12-19 15:11:24 -05:00