Changes In Branch mailext Through [80aa853941] Excluding Merge-Ins
This is equivalent to a diff from 3d30d02ecf to 80aa853941
2020-07-10
| ||
08:28 | merge trunk check-in: bbfed11857 user: olr tags: mailext | |
2020-07-09
| ||
15:09 | [build][tb][fx] merge MailExtension background.js with WebExtension background.js check-in: 80aa853941 user: olr tags: build, tb, fx, mailext | |
15:01 | [tb][fx] don’t show clipboard button for MailExtension check-in: 9195e062fb user: olr tags: tb, fx, mailext | |
2020-07-04
| ||
10:23 | [fr] conf: tandis que, + phonet_simil: tandis / tendis / tendit check-in: ee8c478284 user: olr tags: trunk, fr | |
2020-07-02
| ||
12:23 | [tb] MailExtension for Thunderbird 78 check-in: 4c21586958 user: olr tags: tb, mailext | |
09:04 | [fr] faux positif et ajustements check-in: 3d30d02ecf user: olr tags: trunk, fr | |
2020-07-01
| ||
06:17 | [fr] ajustements check-in: f4c70b8022 user: olr tags: trunk, fr | |
Modified gc_lang/fr/build.py from [43a9cad18e] to [67fedfe368].
︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | + - | from distutils import dir_util, file_util import helpers def build (sLang, dVars): "complementary build launched from make.py" dVars['webextOptionsHTML'] = _createOptionsForWebExtension(dVars) createWebExtension(sLang, dVars) convertWebExtensionForChrome(sLang, dVars) createMailExtension(sLang, dVars) createNodeJSPackage(sLang) def createWebExtension (sLang, dVars): "create Web-extension" print("> Building WebExtension for Firefox") helpers.createCleanFolder("_build/webext/"+sLang) dir_util.copy_tree("gc_lang/"+sLang+"/webext/", "_build/webext/"+sLang) dir_util.copy_tree("grammalecte-js", "_build/webext/"+sLang+"/grammalecte") |
︙ | |||
68 69 70 71 72 73 74 | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | - - + + + + + + + + + + + + + - - - - - - + + + + + + - - - + + - - - - - - - - - - - - - - - - | "create extension for Thunderbird (as MailExtension)" print("> Building extension for Thunderbird (MailExtension)") spfZip = "_build/" + dVars['tb_identifier'] + "-v" + dVars['version'] + '.mailext.xpi' hZip = zipfile.ZipFile(spfZip, mode='w', compression=zipfile.ZIP_DEFLATED) _copyGrammalecteJSPackageInZipFile(hZip, sLang) for spf in ["LICENSE.txt", "LICENSE.fr.txt"]: hZip.write(spf) |
︙ |
Modified gc_lang/fr/config.ini from [8f917f78e2] to [c9564324d8].
︙ | |||
55 56 57 58 59 60 61 | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | - | # Thunderbird tb_identifier = French-GC-TB@grammalecte.net tb_name = Grammalecte [fr] win_tb_path = C:\Program Files\Mozilla Thunderbird\thunderbird.exe win_tb_beta_path = C:\Program Files\Thunderbird Daily\thunderbird.exe linux_tb_path = /usr/bin/thunderbird linux_tb_beta_path = /usr/bin/thunderbird |
︙ |
Deleted gc_lang/fr/mailext/README.txt version [e831050871].
| - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/background.js version [84cc5ca0a0].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/chrome.manifest version [8b108fd6a7].
| - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/about.css version [0c03b7bf9e].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/about.js version [94f44e1159].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/about.xul version [6f2fa2e063].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/conjugueur.css version [c5ad386744].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/conjugueur.js version [de46feffb0].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/conjugueur.xul version [7d69e0ed2b].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/gc_options.css version [c585d5d70e].
| - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/gc_options.js version [050fb882b6].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/gc_options.xul version [2d497a7dd0].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/options.css version [b5017553f4].
| - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/options.js version [9da0d898f3].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/options.xul version [3943bf3117].
| - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/overlay.css version [680f0ace85].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/overlay.js version [2bffe86e4e].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/overlay.xul version [c9ae1732ec].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/spell_options.css version [377d800f5a].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/spell_options.js version [d5cdd1e710].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/spell_options.xul version [abb535b915].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/content/spellchecker.js version [ca575ac13b].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/defaults/preferences/grammarchecker.js version [8769787af8].
| - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/gce_worker.js version [946a66a85a].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/icon.png version [9598be5e3c].
cannot compute difference between binary files
Deleted gc_lang/fr/mailext/locale/en/about.dtd version [586b114cab].
| - - - - - - - |
|
Deleted gc_lang/fr/mailext/locale/en/gc_options.dtd version [6feaf76b9e].
| - - - - |
|
Deleted gc_lang/fr/mailext/locale/en/grammarchecker.properties version [ef0da976ea].
| - - - |
|
Deleted gc_lang/fr/mailext/locale/en/lex_editor.dtd version [d8b06fdebc].
| - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/locale/en/options.dtd version [5fe56718ba].
| - - - - - - |
|
Deleted gc_lang/fr/mailext/locale/en/overlay.dtd version [1e54ceb89b].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/locale/en/spell_options.dtd version [fc8174b93b].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/locale/fr/about.dtd version [4705e2f2e0].
| - - - - - - - |
|
Deleted gc_lang/fr/mailext/locale/fr/gc_options.dtd version [aa14ca951b].
| - - - - |
|
Deleted gc_lang/fr/mailext/locale/fr/grammarchecker.properties version [e42689d6bb].
| - - - |
|
Deleted gc_lang/fr/mailext/locale/fr/lex_editor.dtd version [6b48b9e817].
| - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/locale/fr/options.dtd version [37a043f079].
| - - - - |
|
Deleted gc_lang/fr/mailext/locale/fr/overlay.dtd version [93a8ef80c4].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted gc_lang/fr/mailext/locale/fr/spell_options.dtd version [5ab4900b2b].
| - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Modified gc_lang/fr/mailext/manifest.json from [8fc810be06] to [57c89d52e2].
1 2 3 4 5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | - + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | { "manifest_version": 2, "applications": { "gecko": { "id": "${tb_identifier}", |
Deleted gc_lang/fr/mailext/skin/Algoo_logo.png version [59954b3904].
cannot compute difference between binary files
Deleted gc_lang/fr/mailext/skin/LaMouette_small.png version [61c7247845].
cannot compute difference between binary files
Deleted gc_lang/fr/mailext/skin/grammarcheck.png version [9598be5e3c].
cannot compute difference between binary files
Deleted gc_lang/fr/mailext/skin/grammarcheck_disabled.png version [f900d73926].
cannot compute difference between binary files
Deleted gc_lang/fr/mailext/skin/grammarcheck_small.png version [dcb1bf8ae0].
cannot compute difference between binary files
Deleted gc_lang/fr/mailext/skin/grammarcheck_small_disabled.png version [502cc08b3e].
cannot compute difference between binary files
Deleted gc_lang/fr/mailext/skin/logo100.png version [137b3e197f].
cannot compute difference between binary files
Deleted gc_lang/fr/mailext/skin/logo120_text.png version [c438dd0680].
cannot compute difference between binary files
Deleted gc_lang/fr/mailext/worker/gce_worker.js version [abd0c9c4ba].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Modified gc_lang/fr/webext/background.js from [6248266d14] to [713fa99463].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | + + + + | // Background /* jshint esversion:6, -W097 */ /* jslint esversion:6 */ /* global helpers, showError, Worker, chrome, console */ "use strict"; // Chrome don’t follow the W3C specification: // https://browserext.github.io/browserext/ let bChrome = false; let bThunderbird = false; if (typeof(browser) !== "object") { var browser = chrome; bChrome = true; } if (typeof(messenger) === "object") { bThunderbird = true; } const oWorkerHandler = { xGCEWorker: null, nLastTimeWorkerResponse: 0, // milliseconds since 1970-01-01 |
︙ | |||
143 144 145 146 147 148 149 150 151 152 153 154 155 156 | 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + | browser.storage.local.get("gc_options").then(this._initGrammarChecker, showError); browser.storage.local.get("main_dic_name", this._setSpellingDictionaries); browser.storage.local.get("personal_dictionary").then(this._setSpellingDictionaries, showError); browser.storage.local.get("community_dictionary").then(this._setSpellingDictionaries, showError); browser.storage.local.get("oPersonalDictionary").then(this._setSpellingDictionaries, showError); // deprecated browser.storage.local.get("sc_options").then(this._initSCOptions, showError); }, registerComposeScripts: async function () { // For Thunderbird only if (bThunderbird) { let xRegisteredScripts = await browser.composeScripts.register({ /*css: [ // Any number of code or file objects could be listed here. { code: "body { background-color: red; }" }, { file: "compose.css" }, ],*/ js: [ // Any number of code or file objects could be listed here. //{ code: `document.body.textContent = "Hey look, the script ran!";` }, { file: "content_scripts/editor.js" }, { file: "content_scripts/html_src.js" }, { file: "content_scripts/panel.js" }, { file: "grammalecte/fr/textformatter.js" }, { file: "content_scripts/panel_tf.js" }, { file: "content_scripts/panel_gc.js" }, { file: "content_scripts/message_box.js" }, { file: "content_scripts/menu.js" }, { file: "content_scripts/init.js" } ] }); // To unregister scripts: // await xRegisteredScripts.unregister(); } }, _initUIOptions: function (oSavedOptions) { if (!oSavedOptions.hasOwnProperty("ui_options")) { browser.storage.local.set({"ui_options": { textarea: true, editablenode: true }}); |
︙ | |||
206 207 208 209 210 211 212 | 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | - + + - - - - - - - - | }}); oWorkerHandler.xGCEWorker.postMessage({ sCommand: "setDictionaryOnOff", oParam: { sDictionary: "community", bActivate: true }, oInfo: {} }); oWorkerHandler.xGCEWorker.postMessage({ sCommand: "setDictionaryOnOff", oParam: { sDictionary: "personal", bActivate: true }, oInfo: {} }); } else { oWorkerHandler.xGCEWorker.postMessage({ sCommand: "setDictionaryOnOff", oParam: { sDictionary: "community", bActivate: oData.sc_options["community"] }, oInfo: {} }); oWorkerHandler.xGCEWorker.postMessage({ sCommand: "setDictionaryOnOff", oParam: { sDictionary: "personal", bActivate: oData.sc_options["personal"] }, oInfo: {} }); } |
︙ | |||
280 281 282 283 284 285 286 287 288 289 290 291 292 293 | 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 | + + + + + | } //sendResponse({response: "response from background script"}); } browser.runtime.onMessage.addListener(handleMessage); /* Ports from content-scripts */ let dConnx = new Map(); function handleConnexion (xPort) { // Messages from tabs let iPortId = xPort.sender.tab.id; // identifier for the port: each port can be found at dConnx[iPortId] dConnx.set(iPortId, xPort); xPort.onMessage.addListener(function (oRequest) { let {sCommand, oParam, oInfo} = oRequest; switch (sCommand) { |
︙ | |||
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 | 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 | + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | break; default: console.log("[background] Unknown command: " + sCommand); console.log(oRequest); } }); //xPort.postMessage({sActionDone: "newId", result: iPortId}); //console.log("[Grammalecte] init connection to content-script"); xPort.postMessage({sActionDone: "init", sUrl: browser.extension.getURL("")}); } browser.runtime.onConnect.addListener(handleConnexion); /* ComposeAction (Thunderbird only) */ if (bThunderbird) { browser.composeAction.onClicked.addListener(function (xTab, xData) { sendCommandToTab(xTab.id, "grammar_checker_compose_window"); }); } /* Context Menu (not for MailExtension) */ if (!bThunderbird) { |
︙ |
Added gc_lang/fr/webext/content_scripts/editor.js version [4d321e586a].