From eab96894cbbefb7ae6250549e5874a03ef00ac99 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Mon, 15 Nov 2021 08:09:02 +1100 Subject: [PATCH] Add CSV export --- .../webextension/_locales/ca/messages.json | 1 + .../webextension/_locales/de/messages.json | 1 + .../webextension/_locales/el/messages.json | 1 + .../webextension/_locales/en/messages.json | 1 + .../webextension/_locales/es/messages.json | 1 + .../webextension/_locales/fa/messages.json | 1 + .../webextension/_locales/fr/messages.json | 1 + .../webextension/_locales/gl_ES/messages.json | 1 + .../webextension/_locales/gr/messages.json | 1 + .../webextension/_locales/id/messages.json | 1 + .../webextension/_locales/it/messages.json | 1 + .../webextension/_locales/ja/messages.json | 1 + .../webextension/_locales/ko/messages.json | 1 + .../webextension/_locales/nl/messages.json | 1 + .../webextension/_locales/pl/messages.json | 1 + .../webextension/_locales/pt/messages.json | 1 + .../webextension/_locales/pt_BR/messages.json | 1 + .../webextension/_locales/ro/messages.json | 1 + .../webextension/_locales/ru/messages.json | 1 + .../webextension/_locales/sk/messages.json | 1 + .../webextension/_locales/tr/messages.json | 1 + .../webextension/_locales/uk/messages.json | 1 + .../webextension/_locales/uz/messages.json | 1 + .../webextension/_locales/zh_CN/messages.json | 1 + .../webextension/_locales/zh_TW/messages.json | 1 + src/drivers/webextension/css/styles.css | 10 ++ src/drivers/webextension/html/popup.html | 16 +- src/drivers/webextension/js/driver.js | 15 +- src/drivers/webextension/js/popup.js | 168 ++++++++++++++++++ src/drivers/webextension/manifest.json | 3 +- 30 files changed, 234 insertions(+), 3 deletions(-) diff --git a/src/drivers/webextension/_locales/ca/messages.json b/src/drivers/webextension/_locales/ca/messages.json index c541a783c..c35cc2136 100644 --- a/src/drivers/webextension/_locales/ca/messages.json +++ b/src/drivers/webextension/_locales/ca/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/de/messages.json b/src/drivers/webextension/_locales/de/messages.json index 5f2cb397f..4a08338bf 100644 --- a/src/drivers/webextension/_locales/de/messages.json +++ b/src/drivers/webextension/_locales/de/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/el/messages.json b/src/drivers/webextension/_locales/el/messages.json index 1018ef77a..9e0a0c10f 100644 --- a/src/drivers/webextension/_locales/el/messages.json +++ b/src/drivers/webextension/_locales/el/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/en/messages.json b/src/drivers/webextension/_locales/en/messages.json index 13435c873..09d536f98 100644 --- a/src/drivers/webextension/_locales/en/messages.json +++ b/src/drivers/webextension/_locales/en/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/es/messages.json b/src/drivers/webextension/_locales/es/messages.json index a080da570..8b84dd3a6 100644 --- a/src/drivers/webextension/_locales/es/messages.json +++ b/src/drivers/webextension/_locales/es/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/fa/messages.json b/src/drivers/webextension/_locales/fa/messages.json index 47fb224e1..e151aef54 100644 --- a/src/drivers/webextension/_locales/fa/messages.json +++ b/src/drivers/webextension/_locales/fa/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/fr/messages.json b/src/drivers/webextension/_locales/fr/messages.json index 59e91a111..555766d0d 100644 --- a/src/drivers/webextension/_locales/fr/messages.json +++ b/src/drivers/webextension/_locales/fr/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Type de société" }, "attributeCompanyFounded": { "message": "Création de l'entreprise" }, "attributeKeywords": { "message": "Mots clés" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "Enregistrement SPF" }, "attributeDns_dmarc": { "message": "Enregistrement DMARC" }, "attributeSchemaOrgTypes": { "message": "types schema.org" }, diff --git a/src/drivers/webextension/_locales/gl_ES/messages.json b/src/drivers/webextension/_locales/gl_ES/messages.json index 8c561e4db..1e85c8e01 100644 --- a/src/drivers/webextension/_locales/gl_ES/messages.json +++ b/src/drivers/webextension/_locales/gl_ES/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/gr/messages.json b/src/drivers/webextension/_locales/gr/messages.json index dcbf12f89..c75a202e1 100644 --- a/src/drivers/webextension/_locales/gr/messages.json +++ b/src/drivers/webextension/_locales/gr/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/id/messages.json b/src/drivers/webextension/_locales/id/messages.json index 1b5074750..adde316bd 100644 --- a/src/drivers/webextension/_locales/id/messages.json +++ b/src/drivers/webextension/_locales/id/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/it/messages.json b/src/drivers/webextension/_locales/it/messages.json index 46e7d32c9..a6efd243d 100644 --- a/src/drivers/webextension/_locales/it/messages.json +++ b/src/drivers/webextension/_locales/it/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/ja/messages.json b/src/drivers/webextension/_locales/ja/messages.json index 3f2c9b2bc..4a5d28684 100644 --- a/src/drivers/webextension/_locales/ja/messages.json +++ b/src/drivers/webextension/_locales/ja/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "会社種別" }, "attributeCompanyFounded": { "message": "会社創立日" }, "attributeKeywords": { "message": "キーワード" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPFレコード" }, "attributeDns_dmarc": { "message": "DMARCレコード" }, "attributeSchemaOrgTypes": { "message": "schema.orgタイプ" }, diff --git a/src/drivers/webextension/_locales/ko/messages.json b/src/drivers/webextension/_locales/ko/messages.json index bbacf366d..f8485f0bf 100644 --- a/src/drivers/webextension/_locales/ko/messages.json +++ b/src/drivers/webextension/_locales/ko/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "회사 종류" }, "attributeCompanyFounded": { "message": "회사 상장" }, "attributeKeywords": { "message": "키워드" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF 레코드" }, "attributeDns_dmarc": { "message": "DMARC 레코드" }, "attributeSchemaOrgTypes": { "message": "schema.org 타입" }, diff --git a/src/drivers/webextension/_locales/nl/messages.json b/src/drivers/webextension/_locales/nl/messages.json index 4b451d9a2..4b11536c6 100644 --- a/src/drivers/webextension/_locales/nl/messages.json +++ b/src/drivers/webextension/_locales/nl/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Bedrijfstype" }, "attributeCompanyFounded": { "message": "Oprichting van het bedrijf" }, "attributeKeywords": { "message": "Trefwoorden" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF-registratie" }, "attributeDns_dmarc": { "message": "DMARC-registratie" }, "attributeSchemaOrgTypes": { "message": "Typen schema.org" }, diff --git a/src/drivers/webextension/_locales/pl/messages.json b/src/drivers/webextension/_locales/pl/messages.json index 663be5092..25658716b 100644 --- a/src/drivers/webextension/_locales/pl/messages.json +++ b/src/drivers/webextension/_locales/pl/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/pt/messages.json b/src/drivers/webextension/_locales/pt/messages.json index 2a2620ab3..01dbc5e2b 100644 --- a/src/drivers/webextension/_locales/pt/messages.json +++ b/src/drivers/webextension/_locales/pt/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/pt_BR/messages.json b/src/drivers/webextension/_locales/pt_BR/messages.json index ad36017e7..4e98dbebc 100644 --- a/src/drivers/webextension/_locales/pt_BR/messages.json +++ b/src/drivers/webextension/_locales/pt_BR/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/ro/messages.json b/src/drivers/webextension/_locales/ro/messages.json index d61f2d843..b69336056 100644 --- a/src/drivers/webextension/_locales/ro/messages.json +++ b/src/drivers/webextension/_locales/ro/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/ru/messages.json b/src/drivers/webextension/_locales/ru/messages.json index 253661c8d..2142633a6 100644 --- a/src/drivers/webextension/_locales/ru/messages.json +++ b/src/drivers/webextension/_locales/ru/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/sk/messages.json b/src/drivers/webextension/_locales/sk/messages.json index e83b5f9f8..55afaca59 100644 --- a/src/drivers/webextension/_locales/sk/messages.json +++ b/src/drivers/webextension/_locales/sk/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/tr/messages.json b/src/drivers/webextension/_locales/tr/messages.json index 389e20683..375a123c5 100644 --- a/src/drivers/webextension/_locales/tr/messages.json +++ b/src/drivers/webextension/_locales/tr/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/uk/messages.json b/src/drivers/webextension/_locales/uk/messages.json index 7c91cfe5c..a8de4e1a7 100644 --- a/src/drivers/webextension/_locales/uk/messages.json +++ b/src/drivers/webextension/_locales/uk/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/uz/messages.json b/src/drivers/webextension/_locales/uz/messages.json index 67bb87640..1b5d466f0 100644 --- a/src/drivers/webextension/_locales/uz/messages.json +++ b/src/drivers/webextension/_locales/uz/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/zh_CN/messages.json b/src/drivers/webextension/_locales/zh_CN/messages.json index 2ec846c36..ef262653d 100644 --- a/src/drivers/webextension/_locales/zh_CN/messages.json +++ b/src/drivers/webextension/_locales/zh_CN/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/_locales/zh_TW/messages.json b/src/drivers/webextension/_locales/zh_TW/messages.json index 5d007922e..abee6c0fe 100644 --- a/src/drivers/webextension/_locales/zh_TW/messages.json +++ b/src/drivers/webextension/_locales/zh_TW/messages.json @@ -91,6 +91,7 @@ "attributeCompanyType": { "message": "Company type" }, "attributeCompanyFounded": { "message": "Company founded" }, "attributeKeywords": { "message": "Keywords" }, + "attributeEmployees": { "message": "Employees" }, "attributeDns_spf": { "message": "SPF record" }, "attributeDns_dmarc": { "message": "DMARC record" }, "attributeSchemaOrgTypes": { "message": "schema.org types" }, diff --git a/src/drivers/webextension/css/styles.css b/src/drivers/webextension/css/styles.css index 9e59a6628..bbd367f71 100644 --- a/src/drivers/webextension/css/styles.css +++ b/src/drivers/webextension/css/styles.css @@ -391,6 +391,16 @@ small { display: none; } +.plus-download { + background: var(--color-secondary); + padding: 1rem 1.5rem 0 1.5rem; + text-align: right; +} + +.plus-download--hidden { + display: none; +} + .plus-error { margin: 1.5rem; } diff --git a/src/drivers/webextension/html/popup.html b/src/drivers/webextension/html/popup.html index 7a9848d91..94c3830d4 100644 --- a/src/drivers/webextension/html/popup.html +++ b/src/drivers/webextension/html/popup.html @@ -154,6 +154,20 @@