diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 11bfcfdc..00000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -dist/ -*.zip diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 9ffc2d07..00000000 --- a/.eslintrc.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": ["standard", "plugin:prettier/recommended"], - "rules": { - "promise/param-names": "off", - "handle-callback-err": 0 - }, - "env": { - "browser": true, - "webextensions": true, - "node": true, - "jest": true - } -} diff --git a/.gitignore b/.gitignore index 3001f36f..49ecdf3f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ node_modules/ .idea .DS_Store coverage +.vs_code diff --git a/.travis.yml b/.travis.yml index 4368b7c4..892dfa80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: - - 10.16.0 + - 16.18.0 - node install: - yarn install diff --git a/CHANGELOG.md b/CHANGELOG.md index fa3a5272..de6d74d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## **v5.0.11** - 2021-12-25 +## **v6.1.0** - 2024-06-03 + +- Redesigned Options page to enter GitHub access token for private repos or higher rate limits for public repos + +## **v6.0.0** - 2024-06-02 + +- Support latest GitHub Interface 🎉 + +## **v5.0.12** - 2021-12-25 - Fix selector path as per new UI design for showing copy file and download options at the correct location. @@ -56,18 +64,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## **v4.0.1** - 17th July, 2020 - - Fix #66 i.e. content appearing multiple times +- Fix #66 i.e. content appearing multiple times ## **v4.0.0** - 26th June, 2020 - - Support new GitHub Design. Refer [GitHub Blog](https://github.blog/changelog/2020-06-23-design-updates-to-repositories-and-github-ui/) - - Backward compatibility to the old design, if new UI is not 100% publicly available. - - Fix the options token validation message issue. +- Support new GitHub Design. Refer [GitHub Blog](https://github.blog/changelog/2020-06-23-design-updates-to-repositories-and-github-ui/) +- Backward compatibility to the old design, if new UI is not 100% publicly available. +- Fix the options token validation message issue. ## **v3.1.0** - 6th Jan, 2020 - - Extension only utilizes `webNavigation` history for GitHub website using webNavigation event filters. Rest assured, history of any other website is not permitted. - - Updated README with the doc link explaining introduction of `webRequest` and `webNavigation` API for supporting single-page GitHub website. +- Extension only utilizes `webNavigation` history for GitHub website using webNavigation event filters. Rest assured, history of any other website is not permitted. +- Updated README with the doc link explaining introduction of `webRequest` and `webNavigation` API for supporting single-page GitHub website. ## **v3.0.1** - 3rd Jan, 2020 diff --git a/LICENSE b/LICENSE index a0111f25..6c05edbd 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016-2021 Varun Malhotra +Copyright (c) 2016-2024 Varun Malhotra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 40f3ead0..fa5f1d08 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ The extension handles the SPA behavior of GitHub website from `v3.0.0` onwards : Varun Malhotra Varun Malhotra Website -twitter +𝕏 StackOverflow LinkedIn GitHub @@ -75,7 +75,7 @@ To tackle this, create a new GitHub Access Token. Right-click on enhanced-github extension and click on `Options` in the dropdown menu. - + 5. Enter the valid GitHub Access Token 6. Click on `SAVE` and Enjoy the benefits. @@ -84,6 +84,12 @@ This browser extension will automatically pick this valid access token and Bingo ## Screenshots +### 2024 - Updated GitHub UI + +#### Screenshot of each file size and it's download link + + + ### New GitHub Design - [Blog](https://github.blog/changelog/2020-06-23-design-updates-to-repositories-and-github-ui/) #### Screenshot of each file size and it's download link @@ -163,7 +169,7 @@ Refer [Privacy Policy](https://varunmalhotra.xyz/enhanced-github/#privacy-policy > The [MIT license](https://opensource.org/licenses/MIT) (MIT) > -> Copyright (c) 2016-2021 Varun Malhotra +> Copyright (c) 2016-2024 Varun Malhotra > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: > diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 00000000..1430c233 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,24 @@ +// const globals = require('globals'); +const pluginJs = require('@eslint/js'); +const prettierConfig = require('eslint-config-prettier'); + +module.exports = [{ + languageOptions: { + sourceType: 'module', + ecmaVersion: 'latest', + globals: { + require: 'readonly', // Declare 'require' as a global variable + document: 'readonly', + window: 'readonly', + local: 'readonly', + URL: 'readonly', + setTimeout: 'readonly', + setInterval: 'readonly', + clearInterval: 'readonly', + module: 'readonly' + } + }, +}, +pluginJs.configs.recommended, +prettierConfig +]; diff --git a/manifest.json b/manifest.json index 5cbf820a..1ffdf029 100644 --- a/manifest.json +++ b/manifest.json @@ -1,8 +1,8 @@ { "name": "Enhanced GitHub", "short_name": "Enhanced GitHub", - "version": "5.0.12", - "manifest_version": 2, + "version": "6.1.0", + "manifest_version": 3, "description": "Display repo size, size of each file, download link and option to copy file contents", "homepage_url": "https://github.com/softvar/enhanced-github", "author": "Varun Malhotra", @@ -11,12 +11,13 @@ "48": "icons/enhanced-github48.png", "128": "icons/enhanced-github128.png" }, - "browser_action": { + "action": { "default_icon": "icons/enhanced-github48.png", "default_popup": "popup.html", "default_title": "Enhanced GitHub" }, - "permissions": ["*://*.github.com/*", "storage", "webRequest", "webNavigation"], + "permissions": ["storage", "webRequest", "webNavigation"], + "host_permissions": ["*://*.github.com/*"], "content_scripts": [ { "matches": ["*://*.github.com/*"], @@ -24,11 +25,20 @@ } ], "background": { - "scripts": ["background.js"], - "persistent": true + "service_worker": "background.js", + "scripts": ["background.js"] }, "options_ui": { "page": "options.html", - "chrome_style": true + "open_in_tab": true + }, + "content_security_policy": { + "extension_pages": "script-src 'self'; object-src 'self'" + }, + "browser_specific_settings": { + "gecko": { + "id": "{72bd91c9-3dc5-40a8-9b10-dec633c0873f}", + "strict_min_version": "42.0" + } } } diff --git a/options.html b/options.html index 5aa9433c..e236325e 100644 --- a/options.html +++ b/options.html @@ -2,9 +2,21 @@ Enhanced GitHub Options + - -

Options

- -
-
Enter GitHub Access Token
- - -