-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support manifest v3 for Chrome (#197)
* Support manifest v3 * Fix deps
- Loading branch information
1 parent
4e2956d
commit 3e38f8b
Showing
14 changed files
with
2,676 additions
and
1,451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules/ | ||
dist/ | ||
src/js/vendor/vue-stuff/ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
Copyright (C) 2017-present Mirko Perillo and contributors | ||
This file is part of Resting. | ||
Resting is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
Resting is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with Resting. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
// Open a new tab, and load Resting | ||
const openResting = (tabs) => { | ||
chrome.tabs.create({ | ||
url: '/index.html', | ||
}) | ||
} | ||
|
||
chrome.action.onClicked.addListener(openResting) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"description": "Debug, inspect and test http requests in a easy way", | ||
"manifest_version": 3, | ||
"name": "Resting", | ||
"version": "1.8.0", | ||
"author": "Mirko Perillo", | ||
"homepage_url": "https://github.com/mirkoperillo/resting", | ||
"icons": { | ||
"32": "icons/letter-r_32.png", | ||
"64": "icons/letter-r_64.png" | ||
}, | ||
"background": { | ||
"service_worker": "background.js" | ||
}, | ||
"action": { | ||
"default_icon": "icons/letter-r_32.png" | ||
}, | ||
"permissions": ["webRequest", "downloads"], | ||
"host_permissions": ["<all_urls>"] | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) | ||
|
||
cd $parent_path; | ||
echo "Moved to scripts dir" | ||
|
||
if [ $1 == 'chrome' ] | ||
then | ||
echo "Build Chrome Extension" | ||
else | ||
echo "Build Firefox Extension" | ||
fi | ||
|
||
if [ -d "../build" ] | ||
then | ||
rm -r ../build | ||
echo "Removed build dir" | ||
fi | ||
|
||
mkdir ../build | ||
echo "Created build dir" | ||
|
||
cp -r ../src/* ../build | ||
echo "Copied sources" | ||
|
||
cd .. | ||
./scripts/build-vue-comp.sh | ||
echo "Built vue components" | ||
|
||
cd scripts | ||
if [ $1 == 'chrome' ] | ||
then | ||
cp ../addon/chrome/* ../build | ||
else | ||
cp ../addon/firefox/* ../build | ||
fi | ||
echo "Copied webextension files" | ||
|
||
echo "Done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
COMPONENTS_FOLDER="src/js/app/components" | ||
DIST_FOLDER="src/js/vendor/vue-stuff" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters