Skip to content

Commit 02eb46d

Browse files
authored
feat: conditional and range requests in Brave (#717)
Next Beta: conditional and range requests in Brave
2 parents ff799ec + 58e2dca commit 02eb46d

22 files changed

+1690
-691
lines changed

add-on/_locales/cs/messages.json

+51-11
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"description": "A label for IPFS icon (panel_headerIpfsNodeIconLabel)"
99
},
1010
"panel_headerActiveToggleTitle": {
11-
"message": "Globální nastavení: pozastavit všechny IPFS integrace",
11+
"message": "Toggle all IPFS integrations",
1212
"description": "A label for an embedded IPFS node (panel_headerActiveToggleTitle)"
1313
},
1414
"panel_statusOffline": {
@@ -43,25 +43,41 @@
4343
"message": "Otevřít Web UI",
4444
"description": "A menu item in Browser Action pop-up (panel_openWebui)"
4545
},
46+
"panel_redirectToggle": {
47+
"message": "Redirect to Gateway",
48+
"description": "A menu item in Browser Action pop-up (panel_redirectToggle)"
49+
},
50+
"panel_redirectToggleTooltip": {
51+
"message": "Click to toggle all gateway redirects",
52+
"description": "A menu item in Browser Action pop-up (panel_redirectToggleTooltip)"
53+
},
54+
"panel_toolsSectionHeader": {
55+
"message": "Tools",
56+
"description": "A menu item in Browser Action pop-up (panel_toolsSectionHeader)"
57+
},
4658
"panel_openPreferences": {
4759
"message": "Otevřít nastavení rozšíření",
4860
"description": "A menu item in Browser Action pop-up (panel_openPreferences)"
4961
},
50-
"panel_switchToCustomGateway": {
51-
"message": "Přepnout na vlastní bránu",
52-
"description": "A menu item in Browser Action pop-up (panel_switchToCustomGateway)"
62+
"panel_activeTabSectionHeader": {
63+
"message": "Active Tab",
64+
"description": "A menu item in Browser Action pop-up (panel_activeTabSiteRedirectEnable)"
5365
},
54-
"panel_switchToPublicGateway": {
55-
"message": "Přepnout na veřejnou bránu",
56-
"description": "A menu item in Browser Action pop-up (panel_switchToPublicGateway)"
66+
"panel_activeTabSiteRedirectToggle": {
67+
"message": "Redirect on $1",
68+
"description": "A menu item in Browser Action pop-up (panel_activeTabSiteRedirectToggle)"
69+
},
70+
"panel_activeTabSiteRedirectToggleTooltip": {
71+
"message": "Click to toggle gateway redirects on $1",
72+
"description": "A menu item tooltip in Browser Action pop-up (panel_activeTabSiteRedirectToggleTooltip)"
5773
},
5874
"panel_pinCurrentIpfsAddress": {
5975
"message": "Připnout IPFS objekt",
6076
"description": "A menu item in Browser Action pop-up (panel_pinCurrentIpfsAddress)"
6177
},
62-
"panel_unpinCurrentIpfsAddress": {
63-
"message": "Odepnout IPFS objekt",
64-
"description": "A menu item in Browser Action pop-up (panel_unpinCurrentIpfsAddress)"
78+
"panel_pinCurrentIpfsAddressTooltip": {
79+
"message": "Pinning a CID tells your IPFS node that this data is important and mustn’t be thrown away.",
80+
"description": "A menu item tooltip in Browser Action pop-up (panel_pinCurrentIpfsAddressTooltip)"
6581
},
6682
"panelCopy_currentIpfsAddress": {
6783
"message": "Zkopírovat IPFS cestu",
@@ -211,12 +227,16 @@
211227
"message": "Integrovaný uzel (experiment): spustí js-ipfs uzel přímo ve vaším prohlížeči (použijte pouze pro vývoj, pro více informací následujte odkaz níže)",
212228
"description": "An option description on the Preferences screen (option_ipfsNodeType_description)"
213229
},
230+
"option_ipfsNodeType_embedded_chromesockets_description": {
231+
"message": "Embedded with Chrome Sockets (experimental): run js-ipfs node in your browser with access to chrome.sockets APIs (details under the link below)",
232+
"description": "An option description on the Preferences screen (option_ipfsNodeType_description)"
233+
},
214234
"option_ipfsNodeConfig_title": {
215235
"message": "Konfigurace IPFS uzlu",
216236
"description": "An option title on the Preferences screen (option_ipfsNodeConfig_title)"
217237
},
218238
"option_ipfsNodeConfig_description": {
219-
"message": "Konfigurace pro integrovaný IPFS uzel. Musí být validní JSON.",
239+
"message": "Additional configuration for the embedded IPFS node (arrays will be merged). Must be valid JSON.",
220240
"description": "An option description on the Preferences screen (option_ipfsNodeConfig_description)"
221241
},
222242
"option_ipfsNodeType_external": {
@@ -227,6 +247,10 @@
227247
"message": "Integrovaný",
228248
"description": "An option on the Preferences screen (option_ipfsNodeType_embedded)"
229249
},
250+
"option_ipfsNodeType_embedded_chromesockets": {
251+
"message": "Embedded + chrome.sockets",
252+
"description": "An option on the Preferences screen (option_ipfsNodeType_embedded_chromesockets)"
253+
},
230254
"option_header_gateways": {
231255
"message": "Brány",
232256
"description": "A section header on the Preferences screen (option_header_gateways)"
@@ -251,6 +275,14 @@
251275
"message": "Přesměrovat požadavky pro IPFS objekt skrze vlastní bránu",
252276
"description": "An option description on the Preferences screen (option_useCustomGateway_description)"
253277
},
278+
"option_noRedirectHostnames_title": {
279+
"message": "Redirect Opt-Outs",
280+
"description": "An option title on the Preferences screen (option_noRedirectHostnames_title)"
281+
},
282+
"option_noRedirectHostnames_description": {
283+
"message": "List of websites that should not be redirected to the Custom Gateway (includes subresources from other domains). One hostname per line.",
284+
"description": "An option description on the Preferences screen (option_noRedirectHostnames_description)"
285+
},
254286
"option_publicGatewayUrl_title": {
255287
"message": "Výchozí veřejná brána",
256288
"description": "An option title on the Preferences screen (option_publicGatewayUrl_title)"
@@ -367,6 +399,14 @@
367399
"message": "Povolit automatické načtení nahraných souborů skrze asynchroní HTTP HEAD požadavek na Veřejnou bránu",
368400
"description": "An option description on the Preferences screen (option_preloadAtPublicGateway_description)"
369401
},
402+
"option_logNamespaces_title": {
403+
"message": "Log Namespaces",
404+
"description": "An option title for tweaking log level (option_logNamespaces_title)"
405+
},
406+
"option_logNamespaces_description": {
407+
"message": "Customize which namespaces are logged to Browser Console. Changing this value will trigger extension restart.",
408+
"description": "An option description for the log level (option_logNamespaces_description)"
409+
},
370410
"option_resetAllOptions_title": {
371411
"message": "Vše vyresetovat",
372412
"description": "An option title and button label on the Preferences screen (option_resetAllOptions_title)"

add-on/_locales/da/messages.json

+17-1
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,16 @@
227227
"message": "Indlejret (eksperimentel): kør js-ipfs klienten i din browser (benyt kun i udviklingsøjemed, læs om begrænsninger ved linket nedenfor)",
228228
"description": "An option description on the Preferences screen (option_ipfsNodeType_description)"
229229
},
230+
"option_ipfsNodeType_embedded_chromesockets_description": {
231+
"message": "Indlejret med Chrome Sockets (eksperiment): kør js-ipfs klienten i din browser med adgang til chrome.sockets API'er (detaljer under linket nedenfor)",
232+
"description": "An option description on the Preferences screen (option_ipfsNodeType_description)"
233+
},
230234
"option_ipfsNodeConfig_title": {
231235
"message": "IPFS-klient opsætning",
232236
"description": "An option title on the Preferences screen (option_ipfsNodeConfig_title)"
233237
},
234238
"option_ipfsNodeConfig_description": {
235-
"message": "Opsætning af den indlejrede IPFS-klient. Det skal være valid JSON.",
239+
"message": "Yderligere konfiguration for den indlejrede IPFS klient (array's vil blive sammenlagt). Skal være valid JSON.",
236240
"description": "An option description on the Preferences screen (option_ipfsNodeConfig_description)"
237241
},
238242
"option_ipfsNodeType_external": {
@@ -243,6 +247,10 @@
243247
"message": "Indlejret",
244248
"description": "An option on the Preferences screen (option_ipfsNodeType_embedded)"
245249
},
250+
"option_ipfsNodeType_embedded_chromesockets": {
251+
"message": "Indlejret + chrome.sockets",
252+
"description": "An option on the Preferences screen (option_ipfsNodeType_embedded_chromesockets)"
253+
},
246254
"option_header_gateways": {
247255
"message": "Gateways",
248256
"description": "A section header on the Preferences screen (option_header_gateways)"
@@ -391,6 +399,14 @@
391399
"message": "Aktiver automatisk forhåndsindlæsning af uploadede aktiver via asynkrone HTTP HEAD-forespørgsler til en Offentlig Gateway",
392400
"description": "An option description on the Preferences screen (option_preloadAtPublicGateway_description)"
393401
},
402+
"option_logNamespaces_title": {
403+
"message": "Log navnerum",
404+
"description": "An option title for tweaking log level (option_logNamespaces_title)"
405+
},
406+
"option_logNamespaces_description": {
407+
"message": "Skræddersy hvilke navnerum der logges til browser konsollen. Ændringer af denne værdi vil medføre genstart af udvidelsen.",
408+
"description": "An option description for the log level (option_logNamespaces_description)"
409+
},
394410
"option_resetAllOptions_title": {
395411
"message": "Komplet nulstilling",
396412
"description": "An option title and button label on the Preferences screen (option_resetAllOptions_title)"

add-on/_locales/de/messages.json

+51-11
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"description": "A label for IPFS icon (panel_headerIpfsNodeIconLabel)"
99
},
1010
"panel_headerActiveToggleTitle": {
11-
"message": "Globaler Schalter: Alle IPFS-Einbindungen aufheben",
11+
"message": "Toggle all IPFS integrations",
1212
"description": "A label for an embedded IPFS node (panel_headerActiveToggleTitle)"
1313
},
1414
"panel_statusOffline": {
@@ -43,25 +43,41 @@
4343
"message": "Web-UI öffnen",
4444
"description": "A menu item in Browser Action pop-up (panel_openWebui)"
4545
},
46+
"panel_redirectToggle": {
47+
"message": "Redirect to Gateway",
48+
"description": "A menu item in Browser Action pop-up (panel_redirectToggle)"
49+
},
50+
"panel_redirectToggleTooltip": {
51+
"message": "Click to toggle all gateway redirects",
52+
"description": "A menu item in Browser Action pop-up (panel_redirectToggleTooltip)"
53+
},
54+
"panel_toolsSectionHeader": {
55+
"message": "Tools",
56+
"description": "A menu item in Browser Action pop-up (panel_toolsSectionHeader)"
57+
},
4658
"panel_openPreferences": {
4759
"message": "Einstellungen der Browser-Erweiterung öffnen",
4860
"description": "A menu item in Browser Action pop-up (panel_openPreferences)"
4961
},
50-
"panel_switchToCustomGateway": {
51-
"message": "Zu benutzerdefiniertem Gateway wechseln",
52-
"description": "A menu item in Browser Action pop-up (panel_switchToCustomGateway)"
62+
"panel_activeTabSectionHeader": {
63+
"message": "Active Tab",
64+
"description": "A menu item in Browser Action pop-up (panel_activeTabSiteRedirectEnable)"
5365
},
54-
"panel_switchToPublicGateway": {
55-
"message": "Zu öffentlichem Gateway wechseln",
56-
"description": "A menu item in Browser Action pop-up (panel_switchToPublicGateway)"
66+
"panel_activeTabSiteRedirectToggle": {
67+
"message": "Redirect on $1",
68+
"description": "A menu item in Browser Action pop-up (panel_activeTabSiteRedirectToggle)"
69+
},
70+
"panel_activeTabSiteRedirectToggleTooltip": {
71+
"message": "Click to toggle gateway redirects on $1",
72+
"description": "A menu item tooltip in Browser Action pop-up (panel_activeTabSiteRedirectToggleTooltip)"
5773
},
5874
"panel_pinCurrentIpfsAddress": {
5975
"message": "IPFS-Ressource anpinnen",
6076
"description": "A menu item in Browser Action pop-up (panel_pinCurrentIpfsAddress)"
6177
},
62-
"panel_unpinCurrentIpfsAddress": {
63-
"message": "Pin der IPFS-Ressource entfernen",
64-
"description": "A menu item in Browser Action pop-up (panel_unpinCurrentIpfsAddress)"
78+
"panel_pinCurrentIpfsAddressTooltip": {
79+
"message": "Pinning a CID tells your IPFS node that this data is important and mustn’t be thrown away.",
80+
"description": "A menu item tooltip in Browser Action pop-up (panel_pinCurrentIpfsAddressTooltip)"
6581
},
6682
"panelCopy_currentIpfsAddress": {
6783
"message": "IPFS-Pfad kopieren",
@@ -211,12 +227,16 @@
211227
"message": "Eingebettet (experimentell): einen JS-IPFS-Node im Browser betreiben (nur für Entwickler; siehe Link unten für weitere Details zu den Limitierungen)",
212228
"description": "An option description on the Preferences screen (option_ipfsNodeType_description)"
213229
},
230+
"option_ipfsNodeType_embedded_chromesockets_description": {
231+
"message": "Embedded with Chrome Sockets (experimental): run js-ipfs node in your browser with access to chrome.sockets APIs (details under the link below)",
232+
"description": "An option description on the Preferences screen (option_ipfsNodeType_description)"
233+
},
214234
"option_ipfsNodeConfig_title": {
215235
"message": "IPFS-Node-Konfiguration",
216236
"description": "An option title on the Preferences screen (option_ipfsNodeConfig_title)"
217237
},
218238
"option_ipfsNodeConfig_description": {
219-
"message": "Konfiguration für den eingebetteten IPFS-Node; muss zulässiges JSON sein.",
239+
"message": "Additional configuration for the embedded IPFS node (arrays will be merged). Must be valid JSON.",
220240
"description": "An option description on the Preferences screen (option_ipfsNodeConfig_description)"
221241
},
222242
"option_ipfsNodeType_external": {
@@ -227,6 +247,10 @@
227247
"message": "Eingebettet",
228248
"description": "An option on the Preferences screen (option_ipfsNodeType_embedded)"
229249
},
250+
"option_ipfsNodeType_embedded_chromesockets": {
251+
"message": "Embedded + chrome.sockets",
252+
"description": "An option on the Preferences screen (option_ipfsNodeType_embedded_chromesockets)"
253+
},
230254
"option_header_gateways": {
231255
"message": "Gateways",
232256
"description": "A section header on the Preferences screen (option_header_gateways)"
@@ -251,6 +275,14 @@
251275
"message": "Anfragen zu IPFS-Ressourcen an das benutzerdefinierte Gateway weiterleiten",
252276
"description": "An option description on the Preferences screen (option_useCustomGateway_description)"
253277
},
278+
"option_noRedirectHostnames_title": {
279+
"message": "Redirect Opt-Outs",
280+
"description": "An option title on the Preferences screen (option_noRedirectHostnames_title)"
281+
},
282+
"option_noRedirectHostnames_description": {
283+
"message": "List of websites that should not be redirected to the Custom Gateway (includes subresources from other domains). One hostname per line.",
284+
"description": "An option description on the Preferences screen (option_noRedirectHostnames_description)"
285+
},
254286
"option_publicGatewayUrl_title": {
255287
"message": "Öffentliches Standard-Gateway",
256288
"description": "An option title on the Preferences screen (option_publicGatewayUrl_title)"
@@ -367,6 +399,14 @@
367399
"message": "Aktiviert automatisches Vorladen der Upload-Ressourcen über asynchrone HTTP-HEAD-Anfragen an ein öffentliches Gateway",
368400
"description": "An option description on the Preferences screen (option_preloadAtPublicGateway_description)"
369401
},
402+
"option_logNamespaces_title": {
403+
"message": "Log Namespaces",
404+
"description": "An option title for tweaking log level (option_logNamespaces_title)"
405+
},
406+
"option_logNamespaces_description": {
407+
"message": "Customize which namespaces are logged to Browser Console. Changing this value will trigger extension restart.",
408+
"description": "An option description for the log level (option_logNamespaces_description)"
409+
},
370410
"option_resetAllOptions_title": {
371411
"message": "Alles zurücksetzen",
372412
"description": "An option title and button label on the Preferences screen (option_resetAllOptions_title)"

0 commit comments

Comments
 (0)