Compare commits
No commits in common. "7577152d4f5615a02004d3f481e159f8bb5f61b7" and "9b40f88db3cd0a4b3ed57356d95c2c3d590753ef" have entirely different histories.
7577152d4f
...
9b40f88db3
11
options.tsx
11
options.tsx
@ -7,13 +7,6 @@ export default function Options({
|
||||
setCookiesOnly,
|
||||
cookiesOrOriginOnly,
|
||||
setCookiesOrOriginOnly,
|
||||
}: {
|
||||
minValueLength: number;
|
||||
setMinValueLength: (n: number) => void;
|
||||
cookiesOnly: boolean;
|
||||
setCookiesOnly: (b: boolean) => void;
|
||||
cookiesOrOriginOnly: boolean;
|
||||
setCookiesOrOriginOnly: (b: boolean) => void;
|
||||
}) {
|
||||
return (
|
||||
<fieldset>
|
||||
@ -31,7 +24,7 @@ export default function Options({
|
||||
<input
|
||||
type="checkbox"
|
||||
id="cookiesOnly"
|
||||
checked={cookiesOnly}
|
||||
value={cookiesOnly}
|
||||
onChange={(e) => setCookiesOnly(e.target.checked)}
|
||||
/>
|
||||
<label htmlFor="cookiesOnly">Pokazuj tylko dane z cookiesów</label>
|
||||
@ -39,7 +32,7 @@ export default function Options({
|
||||
<input
|
||||
type="checkbox"
|
||||
id="cookiesOrOriginOnly"
|
||||
checked={cookiesOrOriginOnly}
|
||||
value={cookiesOrOriginOnly}
|
||||
onChange={(e) => setCookiesOrOriginOnly(e.target.checked)}
|
||||
/>
|
||||
<label htmlFor="cookiesOrOriginOnly">
|
||||
|
@ -17,7 +17,6 @@ const Sidebar = () => {
|
||||
const [origin, setOrigin] = useState<string | null>(null);
|
||||
const [minValueLength, setMinValueLength] = useState<number | null>(7);
|
||||
const [cookiesOnly, setCookiesOnly] = useState<boolean>(false);
|
||||
const [cookiesOrOriginOnly, setCookiesOrOriginOnly] = useState<boolean>(true);
|
||||
const [counter, setCounter] = useEmitter(getMemory());
|
||||
|
||||
useEffect(() => {
|
||||
@ -52,8 +51,6 @@ const Sidebar = () => {
|
||||
setMinValueLength={setMinValueLength}
|
||||
cookiesOnly={cookiesOnly}
|
||||
setCookiesOnly={setCookiesOnly}
|
||||
cookiesOrOriginOnly={cookiesOrOriginOnly}
|
||||
setCookiesOrOriginOnly={setCookiesOrOriginOnly}
|
||||
/>
|
||||
<StolenData
|
||||
origin={origin}
|
||||
@ -61,7 +58,6 @@ const Sidebar = () => {
|
||||
refresh={() => setCounter((c) => c + 1)}
|
||||
minValueLength={minValueLength}
|
||||
cookiesOnly={cookiesOnly}
|
||||
cookiesOrOriginOnly={cookiesOrOriginOnly}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
@ -75,14 +75,12 @@ export default function StolenDataCluster({
|
||||
shorthost,
|
||||
minValueLength,
|
||||
cookiesOnly,
|
||||
cookiesOrOriginOnly,
|
||||
}: {
|
||||
origin: string;
|
||||
shorthost: string;
|
||||
refreshToken: number;
|
||||
minValueLength: number;
|
||||
cookiesOnly: boolean;
|
||||
cookiesOrOriginOnly: boolean;
|
||||
}) {
|
||||
const cluster = getMemory().getClustersForOrigin(origin)[shorthost];
|
||||
const icons: Record<Sources, string> = {
|
||||
@ -112,7 +110,7 @@ export default function StolenDataCluster({
|
||||
<table>
|
||||
<tbody>
|
||||
{cluster
|
||||
.getStolenData({ minValueLength, cookiesOnly, cookiesOrOriginOnly })
|
||||
.getStolenData({ minValueLength, cookiesOnly })
|
||||
.map((entry) => (
|
||||
<tr
|
||||
key={origin + cluster.id + entry.getUniqueKey()}
|
||||
|
@ -11,14 +11,12 @@ export function StolenData({
|
||||
refreshToken,
|
||||
refresh,
|
||||
cookiesOnly,
|
||||
cookiesOrOriginOnly,
|
||||
}: {
|
||||
origin: string;
|
||||
refreshToken: number;
|
||||
refresh: () => void;
|
||||
minValueLength: number;
|
||||
cookiesOnly: boolean;
|
||||
cookiesOrOriginOnly: boolean;
|
||||
}) {
|
||||
if (!origin) {
|
||||
return <div></div>;
|
||||
@ -66,12 +64,6 @@ export function StolenData({
|
||||
</h1>
|
||||
{clusters
|
||||
.filter((cluster) => !cookiesOnly || cluster.hasCookies())
|
||||
.filter(
|
||||
(cluster) =>
|
||||
!cookiesOrOriginOnly ||
|
||||
cluster.hasCookies() ||
|
||||
cluster.exposesOrigin()
|
||||
)
|
||||
.map((cluster) => {
|
||||
return (
|
||||
<StolenDataCluster
|
||||
@ -81,7 +73,6 @@ export function StolenData({
|
||||
refreshToken={refreshToken}
|
||||
minValueLength={minValueLength}
|
||||
cookiesOnly={cookiesOnly}
|
||||
cookiesOrOriginOnly={cookiesOrOriginOnly}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
|
Loading…
Reference in New Issue
Block a user