Skip to content

Commit

Permalink
update manifest v3 for unpacked1x
Browse files Browse the repository at this point in the history
  • Loading branch information
Duc Duong committed Sep 17, 2022
1 parent 847f9b6 commit 9a0d5ee
Show file tree
Hide file tree
Showing 12 changed files with 786 additions and 794 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "resources-saver-extension",
"version": "2.0.0",
"version": "2.0.1",
"description": "Chrome extension for one click downloading all resources!",
"browserslist": [
"> 0.5%, last 2 versions, not dead"
Expand Down
10 changes: 3 additions & 7 deletions src/devtoolApp/components/Header/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import React, { useCallback, useEffect, useRef } from 'react';
import React from 'react';
import { withTheme } from 'styled-components';
import { HeaderWrapper } from './styles';
import ResetButton from 'devtoolApp/components/ResetButton';
import Button from 'devtoolApp/components/Button';
import { useStore } from 'devtoolApp/store';
import { downloadZipFile, resolveDuplicatedResources } from 'devtoolApp/utils/file';
import { logResourceByUrl } from '../../utils/resource';
import * as uiActions from 'devtoolApp/store/ui';
import { INITIAL_STATE as UI_INITIAL_STATE } from 'devtoolApp/store/ui';
import { resetNetworkResource } from 'devtoolApp/store/networkResource';
import { resetStaticResource } from 'devtoolApp/store/staticResource';
import { useAppSaveAllResource } from '../../hooks/useAppSaveAllResource';
import packageJson from '/package.json';

export const Header = (props) => {
const { state } = useStore();
Expand All @@ -22,7 +18,7 @@ export const Header = (props) => {
<HeaderWrapper>
<div>
<span>Resources Saver</span>
<sup>Version: 2.0.0</sup>
<sup>Version: {packageJson?.version || 'LOCAL'}</sup>
<ResetButton color={props.theme.white} bgColor={props.theme.danger} />
</div>
<Button onClick={handleOnSave} disabled={status !== UI_INITIAL_STATE.status || isSaving}>
Expand Down
34 changes: 15 additions & 19 deletions unpacked1x/manifest.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
{
"name": "Save All Resources",
"version": "0.1.9",
"description": "UP - Save all resources files with retaining folder structure.",
"description": "Save all resources files with retaining folder structure.",
"author": "up209d",
"homepage_url": "https://github.com/up209d/ResourcesSaverExt",
"icons": {
"128": "icon.gif"
"128": "icon.gif"
},
"browser_action": {
"default_icon": "icon.gif",
"default_title": "UP",
"action": {
"default_icon": "icon.gif",
"default_title": "Save All Resources",
"default_popup": "popup.html"
},
},
"background": {
"scripts": [
"background.js"
]
},
"permissions": [
"tabs",
"http://*/",
"https://*/",
"*://*/*",
"downloads",
"downloads.shelf"
],
"service_worker": "background.js",
"type": "module"
},
"permissions": ["tabs", "downloads", "downloads.shelf", "scripting"],
"host_permissions": ["http://*/", "https://*/"],
"optional_host_permissions": ["*://*/*"],
"devtools_page": "devtool.html",
"manifest_version": 2
"manifest_version": 3
}
382 changes: 382 additions & 0 deletions unpacked2x/devtool.app.05af6a9f.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions unpacked2x/devtool.app.05af6a9f.js.map

Large diffs are not rendered by default.

382 changes: 0 additions & 382 deletions unpacked2x/devtool.app.0ec8173c.js

This file was deleted.

1 change: 0 additions & 1 deletion unpacked2x/devtool.app.0ec8173c.js.map

This file was deleted.

382 changes: 0 additions & 382 deletions unpacked2x/devtool.app.b39492e6.js

This file was deleted.

1 change: 0 additions & 1 deletion unpacked2x/devtool.app.b39492e6.js.map

This file was deleted.

382 changes: 382 additions & 0 deletions unpacked2x/devtool.app.fda907e5.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions unpacked2x/devtool.app.fda907e5.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion unpacked2x/devtool.app.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta content="UP" name="UP"><meta content="width=device-width, initial-scale=1" name="viewport"><meta content="IE=edge" http-equiv="X-UA-Compatible"><title>Resource Saver Extension</title><style>@keyframes borderPreload{0%{border-radius:20%}to{border-radius:40%}}html,body{overflow:hidden}#preload{width:100vw;height:100vh;z-index:9999;-o-transition:all .3s ease-out;pointer-events:none;opacity:1;background-color:#fff;transition:all .3s ease-out;display:none;position:fixed;top:0;left:0}#preload[data-light]{background-color:#fff;display:block}#preload[data-dark]{background-color:#333;display:block}#preload[data-hidden]{opacity:0}#preload:before{box-sizing:border-box;content:"";z-index:99999;width:48px;height:48px;border:1px solid #999;border-radius:15%;animation:borderPreload .5s cubic-bezier(.69,.22,.44,.91) infinite alternate both;display:block;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}#preload:after{color:#999;text-align:center;box-sizing:border-box;content:"...";z-index:99999;width:20px;height:20px;margin-top:-3px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:400;line-height:1.5;display:block;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}#preload[data-dark]:after{color:#eee}</style><link href="/devtool.app.cf2f89bd.css" rel="stylesheet" type="text/css"></head><body> <div id="root"></div> <div id="preload"></div> <script src="/devtool.app.6fb73acd.js"></script> <script src="/devtool.app.372106c3.js"></script> <script type="module" src="/devtool.app.0ec8173c.js"></script><script src="/devtool.app.b39492e6.js" nomodule="" defer></script> </body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta content="UP" name="UP"><meta content="width=device-width, initial-scale=1" name="viewport"><meta content="IE=edge" http-equiv="X-UA-Compatible"><title>Resource Saver Extension</title><style>@keyframes borderPreload{0%{border-radius:20%}to{border-radius:40%}}html,body{overflow:hidden}#preload{width:100vw;height:100vh;z-index:9999;-o-transition:all .3s ease-out;pointer-events:none;opacity:1;background-color:#fff;transition:all .3s ease-out;display:none;position:fixed;top:0;left:0}#preload[data-light]{background-color:#fff;display:block}#preload[data-dark]{background-color:#333;display:block}#preload[data-hidden]{opacity:0}#preload:before{box-sizing:border-box;content:"";z-index:99999;width:48px;height:48px;border:1px solid #999;border-radius:15%;animation:borderPreload .5s cubic-bezier(.69,.22,.44,.91) infinite alternate both;display:block;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}#preload:after{color:#999;text-align:center;box-sizing:border-box;content:"...";z-index:99999;width:20px;height:20px;margin-top:-3px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:400;line-height:1.5;display:block;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}#preload[data-dark]:after{color:#eee}</style><link href="/devtool.app.cf2f89bd.css" rel="stylesheet" type="text/css"></head><body> <div id="root"></div> <div id="preload"></div> <script src="/devtool.app.6fb73acd.js"></script> <script src="/devtool.app.372106c3.js"></script> <script type="module" src="/devtool.app.05af6a9f.js"></script><script src="/devtool.app.fda907e5.js" nomodule="" defer></script> </body></html>

0 comments on commit 9a0d5ee

Please sign in to comment.