Create seperate branch for fix building
6
.gitignore
vendored
|
@ -1,7 +1,5 @@
|
||||||
.log
|
.log
|
||||||
node_modules
|
node_modules
|
||||||
sidebar.js
|
|
||||||
/web-ext-artifacts/
|
/web-ext-artifacts/
|
||||||
lib/*
|
/dist/*
|
||||||
/yarn-error.log
|
/yarn-error.log
|
||||||
/rentgen.zip
|
|
|
@ -44,17 +44,25 @@ let skipReactImports = {
|
||||||
esbuild
|
esbuild
|
||||||
.build({
|
.build({
|
||||||
entryPoints: [
|
entryPoints: [
|
||||||
'components/toolbar/toolbar.tsx',
|
'src/components/toolbar/toolbar.tsx',
|
||||||
'components/sidebar/sidebar.tsx',
|
'src/components/sidebar/sidebar.tsx',
|
||||||
'components/report-window/report-window.tsx',
|
'src/components/report-window/report-window.tsx',
|
||||||
'background.ts',
|
'src/background.ts',
|
||||||
'styles/global.scss',
|
'src/styles/global.scss',
|
||||||
'styles/fonts.scss',
|
'src/styles/fonts.scss',
|
||||||
],
|
],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
// minify: true,
|
// minify: true,
|
||||||
outdir: './lib',
|
outdir: './dist',
|
||||||
loader: { '.woff': 'file', '.woff2': 'file' },
|
loader: {
|
||||||
|
'.woff': 'file',
|
||||||
|
'.woff2': 'file',
|
||||||
|
'.eot': 'file',
|
||||||
|
'.ttf': 'file',
|
||||||
|
'.svg': 'file',
|
||||||
|
'.json': 'json',
|
||||||
|
'.html': 'file',
|
||||||
|
},
|
||||||
plugins: [scss(), skipReactImports],
|
plugins: [scss(), skipReactImports],
|
||||||
define: {
|
define: {
|
||||||
PLUGIN_NAME: '"Rentgen"',
|
PLUGIN_NAME: '"Rentgen"',
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Rentgen",
|
"name": "Rentgen",
|
||||||
"short_name": "Rentgen",
|
"short_name": "Rentgen",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"author": "Kuba Orlik, Arkadiusz Wieczorek (Internet. Czas działać!)",
|
"author": "Kuba Orlik, Arkadiusz Wieczorek (Internet. Czas działać!)",
|
||||||
"homepage_url": "https://git.internet-czas-dzialac.pl/icd/rentgen",
|
"homepage_url": "https://git.internet-czas-dzialac.pl/icd/rentgen",
|
||||||
"background": {
|
"background": {
|
||||||
"scripts": ["lib/background.js"]
|
"scripts": ["dist/background.js"]
|
||||||
},
|
},
|
||||||
"commands": {
|
"commands": {
|
||||||
"_execute_sidebar_action": {
|
"_execute_sidebar_action": {
|
||||||
|
@ -17,14 +17,14 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"browser_action": {
|
"browser_action": {
|
||||||
"default_icon": "assets/icon-addon.svg",
|
"default_icon": "src/assets/icon-addon.svg",
|
||||||
"default_title": "Rentgen",
|
"default_title": "Rentgen",
|
||||||
"default_popup": "components/toolbar/toolbar.html"
|
"default_popup": "src/components/toolbar/toolbar.html"
|
||||||
},
|
},
|
||||||
"icons": {
|
"icons": {
|
||||||
"16": "assets/icon-addon.svg",
|
"16": "src/assets/icon-addon.svg",
|
||||||
"32": "assets/icon-addon.svg",
|
"32": "src/assets/icon-addon.svg",
|
||||||
"64": "assets/icon-addon.svg"
|
"64": "src/assets/icon-addon.svg"
|
||||||
},
|
},
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"proxy",
|
"proxy",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "rentgen",
|
"name": "rentgen",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "Rentgen is an add-on prepared for Firefox based browsers. This extension will automatically visualize all the data that a given website sends to third parties.",
|
"description": "Rentgen is an add-on prepared for Firefox based browsers. This extension will automatically visualize all the data that a given website sends to third parties.",
|
||||||
"main": "esbuild.config.js",
|
"main": "esbuild.config.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
"build": "node esbuild.config.js",
|
"build": "node esbuild.config.js",
|
||||||
"watch": "node esbuild.config.js --watch",
|
"watch": "node esbuild.config.js --watch",
|
||||||
"ext-test": "web-ext run",
|
"ext-test": "web-ext run",
|
||||||
"create-package": "web-ext build",
|
"create-package": "web-ext build --overwrite-dest",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"lint": "web-ext lint"
|
"lint": "web-ext lint"
|
||||||
},
|
},
|
||||||
|
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 814 B After Width: | Height: | Size: 814 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 764 B After Width: | Height: | Size: 764 B |
Before Width: | Height: | Size: 798 B After Width: | Height: | Size: 798 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |
Before Width: | Height: | Size: 480 KiB After Width: | Height: | Size: 480 KiB |
Before Width: | Height: | Size: 526 KiB After Width: | Height: | Size: 526 KiB |
Before Width: | Height: | Size: 275 KiB After Width: | Height: | Size: 275 KiB |
Before Width: | Height: | Size: 316 KiB After Width: | Height: | Size: 316 KiB |
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 139 KiB |
Before Width: | Height: | Size: 215 KiB After Width: | Height: | Size: 215 KiB |
Before Width: | Height: | Size: 362 KiB After Width: | Height: | Size: 362 KiB |
Before Width: | Height: | Size: 468 KiB After Width: | Height: | Size: 468 KiB |
|
@ -6,7 +6,7 @@
|
||||||
<title>Rentgen - generowanie raportu</title>
|
<title>Rentgen - generowanie raportu</title>
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="/lib/styles/fonts.css"
|
href="/dist/styles/fonts.css"
|
||||||
>
|
>
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
|
@ -18,11 +18,11 @@
|
||||||
/>
|
/>
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="/lib/components/report-window/report-window.css"
|
href="/dist/components/report-window/report-window.css"
|
||||||
/>
|
/>
|
||||||
<link
|
<link
|
||||||
rel="shortcut icon"
|
rel="shortcut icon"
|
||||||
href="../../../assets/icon-addon.svg"
|
href="../../assets/icon-addon.svg"
|
||||||
type="image/x-icon"
|
type="image/x-icon"
|
||||||
>
|
>
|
||||||
</head>
|
</head>
|
||||||
|
@ -31,8 +31,8 @@
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script src="/node_modules/react/umd/react.development.js"></script>
|
<script src="/node_modules/react/umd/react.development.js"></script>
|
||||||
<script src="/node_modules/react-dom/umd/react-dom.development.js"></script>
|
<script src="/node_modules/react-dom/umd/react-dom.development.js"></script>
|
||||||
<script src="/node_modules/survey-react/survey.react.min.js"></script>
|
<script src="/node_modules/survey-react/survey.react.min.js"></script>
|
||||||
<script src="/lib/components/report-window/report-window.js"></script>
|
<script src="/dist/components/report-window/report-window.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -6,11 +6,11 @@
|
||||||
<title>Rentgen - analiza strony</title>
|
<title>Rentgen - analiza strony</title>
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="/lib/styles/global.css"
|
href="/dist/styles/global.css"
|
||||||
>
|
>
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="/lib/components/sidebar/sidebar.css"
|
href="/dist/components/sidebar/sidebar.css"
|
||||||
>
|
>
|
||||||
<link
|
<link
|
||||||
rel="shortcut icon"
|
rel="shortcut icon"
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
<script src="/node_modules/react/umd/react.production.min.js"></script>
|
<script src="/node_modules/react/umd/react.production.min.js"></script>
|
||||||
<script src="/node_modules/react-dom/umd/react-dom.production.min.js"></script>
|
<script src="/node_modules/react-dom/umd/react-dom.production.min.js"></script>
|
||||||
<script src="/lib/components/sidebar/sidebar.js"></script>
|
<script src="/dist/components/sidebar/sidebar.js"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -93,7 +93,7 @@ const Sidebar = () => {
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img src="/assets/icons/report.svg" width="20" height="20" />
|
<img src="/src/assets/icons/report.svg" width="20" height="20" />
|
||||||
<span>Generuj raport</span>
|
<span>Generuj raport</span>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
@ -104,8 +104,8 @@ const Sidebar = () => {
|
||||||
<img
|
<img
|
||||||
src={
|
src={
|
||||||
detailsVisibility
|
detailsVisibility
|
||||||
? '/assets/icons/file_minus.svg'
|
? '/src/assets/icons/file_minus.svg'
|
||||||
: '/assets/icons/file_find.svg'
|
: '/src/assets/icons/file_find.svg'
|
||||||
}
|
}
|
||||||
width="20"
|
width="20"
|
||||||
height="20"
|
height="20"
|
||||||
|
@ -116,7 +116,7 @@ const Sidebar = () => {
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
<button onClick={() => setStolenDataView(!stolenDataView)}>
|
<button onClick={() => setStolenDataView(!stolenDataView)}>
|
||||||
<img src="/assets/icons/settings.svg" width="20" height="20" />
|
<img src="/src/assets/icons/settings.svg" width="20" height="20" />
|
||||||
<span>Ustawienia</span>
|
<span>Ustawienia</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ const Sidebar = () => {
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img src="/assets/icons/bulb.svg" width="20" height="20" />
|
<img src="/src/assets/icons/bulb.svg" width="20" height="20" />
|
||||||
<span>Odwiedź wszystkie domeny</span>
|
<span>Odwiedź wszystkie domeny</span>
|
||||||
</button>
|
</button>
|
||||||
) : null}
|
) : null}
|
||||||
|
@ -170,7 +170,11 @@ const Sidebar = () => {
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img src="/assets/icons/close_big.svg" width="16" height="16" />
|
<img
|
||||||
|
src="/src/assets/icons/close_big.svg"
|
||||||
|
width="16"
|
||||||
|
height="16"
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
</section>
|
</section>
|
||||||
) : null}
|
) : null}
|
||||||
|
@ -191,7 +195,11 @@ const Sidebar = () => {
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img src="/assets/icons/close_big.svg" width="16" height="16" />
|
<img
|
||||||
|
src="/src/assets/icons/close_big.svg"
|
||||||
|
width="16"
|
||||||
|
height="16"
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
</section>
|
</section>
|
||||||
) : null}
|
) : null}
|
|
@ -54,7 +54,7 @@ function StolenDataRow({ entry }: { entry: StolenDataEntry }) {
|
||||||
{entry.source === 'cookie' ? (
|
{entry.source === 'cookie' ? (
|
||||||
<span title="Dane przechowywane w Cookies">
|
<span title="Dane przechowywane w Cookies">
|
||||||
<img
|
<img
|
||||||
src="/assets/icons/cookie.svg"
|
src="/src/assets/icons/cookie.svg"
|
||||||
height={16}
|
height={16}
|
||||||
width={16}
|
width={16}
|
||||||
className="cookie-data"
|
className="cookie-data"
|
||||||
|
@ -63,7 +63,7 @@ function StolenDataRow({ entry }: { entry: StolenDataEntry }) {
|
||||||
) : entry.request.hasCookie() ? (
|
) : entry.request.hasCookie() ? (
|
||||||
<span title="Wysłane w zapytaniu opatrzonym Cookies" style={{ opacity: 0.25 }}>
|
<span title="Wysłane w zapytaniu opatrzonym Cookies" style={{ opacity: 0.25 }}>
|
||||||
<img
|
<img
|
||||||
src="/assets/icons/cookie.svg"
|
src="/src/assets/icons/cookie.svg"
|
||||||
height={16}
|
height={16}
|
||||||
width={16}
|
width={16}
|
||||||
className="request-with-cookie"
|
className="request-with-cookie"
|
||||||
|
@ -73,7 +73,7 @@ function StolenDataRow({ entry }: { entry: StolenDataEntry }) {
|
||||||
{entry.exposesOrigin() ? (
|
{entry.exposesOrigin() ? (
|
||||||
<span title="Pokazuje część historii przeglądania">
|
<span title="Pokazuje część historii przeglądania">
|
||||||
<img
|
<img
|
||||||
src="/assets/icons/warning.svg"
|
src="/src/assets/icons/warning.svg"
|
||||||
height={16}
|
height={16}
|
||||||
width={16}
|
width={16}
|
||||||
className="show-history-part"
|
className="show-history-part"
|
||||||
|
@ -85,7 +85,7 @@ function StolenDataRow({ entry }: { entry: StolenDataEntry }) {
|
||||||
style={{ opacity: 0.25 }}
|
style={{ opacity: 0.25 }}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src="/assets/icons/warning.svg"
|
src="/src/assets/icons/warning.svg"
|
||||||
height={16}
|
height={16}
|
||||||
width={16}
|
width={16}
|
||||||
className="request-with-history-part"
|
className="request-with-history-part"
|
|
@ -5,11 +5,11 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="/lib/styles/global.css"
|
href="/dist/styles/global.css"
|
||||||
>
|
>
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="/lib/components/toolbar/toolbar.css"
|
href="/dist/components/toolbar/toolbar.css"
|
||||||
>
|
>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
<script src="/node_modules/react/umd/react.production.min.js"></script>
|
<script src="/node_modules/react/umd/react.production.min.js"></script>
|
||||||
<script src="/node_modules/react-dom/umd/react-dom.production.min.js"></script>
|
<script src="/node_modules/react-dom/umd/react-dom.production.min.js"></script>
|
||||||
<script src="/lib/components/toolbar/toolbar.js"></script>
|
<script src="/dist/components/toolbar/toolbar.js"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -135,7 +135,7 @@ const Toolbar = () => {
|
||||||
return (
|
return (
|
||||||
<div className="toolbar">
|
<div className="toolbar">
|
||||||
<header className={origin ? 'header' : 'header header--no-page'}>
|
<header className={origin ? 'header' : 'header header--no-page'}>
|
||||||
<img src="../../assets/icon-addon.svg" height={32}></img>
|
<img src="/src/assets/icon-addon.svg" height={32}></img>
|
||||||
<div className="webpage-metadata">
|
<div className="webpage-metadata">
|
||||||
{origin ? (
|
{origin ? (
|
||||||
<>
|
<>
|
||||||
|
@ -148,7 +148,11 @@ const Toolbar = () => {
|
||||||
</div>
|
</div>
|
||||||
{origin ? (
|
{origin ? (
|
||||||
<a href="https://internet-czas-dzialac.pl">
|
<a href="https://internet-czas-dzialac.pl">
|
||||||
<img src="/assets/icons/info_circle_outline.svg" width="20" height="20" />
|
<img
|
||||||
|
src="/src/assets/icons/info_circle_outline.svg"
|
||||||
|
width="20"
|
||||||
|
height="20"
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
) : null}
|
) : null}
|
||||||
</header>
|
</header>
|
||||||
|
@ -161,7 +165,7 @@ const Toolbar = () => {
|
||||||
<div className="counters">
|
<div className="counters">
|
||||||
<div className="counter counter--cookies">
|
<div className="counter counter--cookies">
|
||||||
<img
|
<img
|
||||||
src="/assets/icons/cookie.svg#color"
|
src="/src/assets/icons/cookie.svg#color"
|
||||||
width="24"
|
width="24"
|
||||||
height="24"
|
height="24"
|
||||||
/>
|
/>
|
||||||
|
@ -175,7 +179,7 @@ const Toolbar = () => {
|
||||||
</div>
|
</div>
|
||||||
<div className="counter counter--browser-history">
|
<div className="counter counter--browser-history">
|
||||||
<img
|
<img
|
||||||
src="/assets/icons/warning.svg#color"
|
src="/src/assets/icons/warning.svg#color"
|
||||||
width="24"
|
width="24"
|
||||||
height="24"
|
height="24"
|
||||||
/>
|
/>
|
|
@ -34,7 +34,7 @@ export default function Options({
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<nav>
|
<nav>
|
||||||
<button onClick={() => setStolenDataView(true)}>
|
<button onClick={() => setStolenDataView(true)}>
|
||||||
<img src="/assets/icons/short_left.svg" width="20" height="20" />
|
<img src="/src/assets/icons/short_left.svg" width="20" height="20" />
|
||||||
<span>Wróć do szczegółów</span>
|
<span>Wróć do szczegółów</span>
|
||||||
</button>
|
</button>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -120,13 +120,13 @@ export default function Options({
|
||||||
<div className="buttons">
|
<div className="buttons">
|
||||||
<div className="button-container">
|
<div className="button-container">
|
||||||
<button onClick={() => removeRequests()}>
|
<button onClick={() => removeRequests()}>
|
||||||
<img src="/assets/icons/trash_full.svg" width="20" height="20" />
|
<img src="/src/assets/icons/trash_full.svg" width="20" height="20" />
|
||||||
<span>Wyczyść historię wtyczki</span>
|
<span>Wyczyść historię wtyczki</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="button-container">
|
<div className="button-container">
|
||||||
<button onClick={() => removeCookies()}>
|
<button onClick={() => removeCookies()}>
|
||||||
<img src="/assets/icons/cookie.svg" width="20" height="20" />
|
<img src="/src/assets/icons/cookie.svg" width="20" height="20" />
|
||||||
<span>Wyczyść ciasteczka</span>
|
<span>Wyczyść ciasteczka</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|