From 50701adcf644e901caaeb9904a3e330001a378b6 Mon Sep 17 00:00:00 2001 From: Arkadiusz Wieczorek Date: Sat, 9 Jul 2022 18:05:56 +0200 Subject: [PATCH] Remove wczytywanie... text --- components/toolbar/toolbar.scss | 4 + components/toolbar/toolbar.tsx | 187 +++++++++++++++++--------------- 2 files changed, 101 insertions(+), 90 deletions(-) diff --git a/components/toolbar/toolbar.scss b/components/toolbar/toolbar.scss index 945273c..f80d21b 100644 --- a/components/toolbar/toolbar.scss +++ b/components/toolbar/toolbar.scss @@ -22,6 +22,10 @@ body { z-index: 1; user-select: none; + &--no-page { + border-bottom: 0; + } + .webpage-metadata { word-break: break-all; display: flex; diff --git a/components/toolbar/toolbar.tsx b/components/toolbar/toolbar.tsx index 922a031..4bd9767 100644 --- a/components/toolbar/toolbar.tsx +++ b/components/toolbar/toolbar.tsx @@ -132,13 +132,9 @@ const Toolbar = () => { return setMarksOccurrence(true); } - if (!origin) { - return
Wczytywanie...
; - } - return (
-
+
{origin ? ( @@ -157,95 +153,106 @@ const Toolbar = () => { ) : null}
-
-
-
-
- - - { - Object.values(getMemory().getClustersForOrigin(origin)).filter( - (cluster) => cluster.hasCookies() - ).length - } - -
-
- - - { - Object.values(getMemory().getClustersForOrigin(origin)).filter( - (cluster) => cluster.exposesOrigin() - ).length - } - -
-
-
- {Object.values(getMemory().getClustersForOrigin(origin)).length} -
-
- Liczba wykrytych domen podmiotów trzecich -
- -
- {cookieDomainCopy ? ( -

cluster.hasCookies()) - .map((domain) => domain.id) - .join(', ')} - > - {first_sentence_cookie} - {cookieDomainCopy} -

- ) : null} - {exposedOriginDomainCopy ? ( -

cluster.exposesOrigin()) - .map((domain) => domain.id) - .join(', ')} - > - {first_sentence_history} - {exposedOriginDomainCopy} -

- ) : null} -
- - {exposedOriginDomainCopy || cookieDomainCopy ? ( + {origin ? ( -
-

- Takie przetwarzanie danych może być niezgodne z prawem. Przejdź do - analizy aby pomóc ustalić, czy ta strona nie narusza RODO. -

+ {' '} +
+
+
+
+ + + { + Object.values( + getMemory().getClustersForOrigin(origin) + ).filter((cluster) => cluster.hasCookies()).length + } + +
+
+ + + { + Object.values( + getMemory().getClustersForOrigin(origin) + ).filter((cluster) => cluster.exposesOrigin()).length + } + +
+
+
+ {Object.values(getMemory().getClustersForOrigin(origin)).length} +
+
+ Liczba wykrytych domen podmiotów trzecich
-
- +
+ {cookieDomainCopy ? ( +

cluster.hasCookies()) + .map((domain) => domain.id) + .join(', ')} + > + {first_sentence_cookie} + {cookieDomainCopy} +

+ ) : null} + {exposedOriginDomainCopy ? ( +

cluster.exposesOrigin()) + .map((domain) => domain.id) + .join(', ')} + > + {first_sentence_history} + {exposedOriginDomainCopy} +

+ ) : null}
+ {exposedOriginDomainCopy || cookieDomainCopy ? ( + +
+

+ Takie przetwarzanie danych może być niezgodne z prawem. Przejdź + do analizy aby pomóc ustalić, czy ta strona nie narusza RODO. +

+
+
+ +
+
+ ) : ( + +
+

Nie znaleziono problemów na tej stronie.

+
+
+ )} - ) : ( - -
-

Nie znaleziono problemów na tej stronie.

-
-
- )} + ) : null}
); };