Overview
Comment: | [fx] WebExt: lexicon editor (ß) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | fx |
Files: | files | file ages | folders |
SHA3-256: |
8a66c7c4376e6be318f95e5ce1e530af |
User & Date: | olr on 2018-01-16 16:45:01 |
Other Links: | manifest | tags |
Context
2018-01-17
| ||
17:37 | [fx] update: lexicon editor check-in: 8396b80e31 user: olr tags: trunk, fx | |
2018-01-16
| ||
16:45 | [fx] WebExt: lexicon editor (ß) check-in: 8a66c7c437 user: olr tags: trunk, fx | |
16:43 | [fr] codes de positionnement pour JS check-in: 697267bdcf user: olr tags: trunk, fr | |
Changes
Modified gc_lang/fr/webext/background.js from [814bdfcd81] to [f7965949be].
︙ | |||
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 | + + + + + + + + + + + + + + + + | switch (sCommand) { case "conjugueur_tab": openConjugueurTab(); break; case "conjugueur_window": openConjugueurWindow(); break; case "lex_editor": openLexEditor(); break; } }); /* Actions */ function storeGCOptions (dOptions) { if (bChrome) { // JS crap again. Chrome can’t store Map object. dOptions = helpers.mapToObject(dOptions); } browser.storage.local.set({"gc_options": dOptions}); } function sendCommandToTab (sCommand, iTab) { let xTabPort = dConnx.get(iTab); xTabPort.postMessage({sActionDone: sCommand, result: null, dInfo: null, bEnd: false, bError: false}); } function openLexEditor () { if (bChrome) { browser.tabs.create({ url: browser.extension.getURL("panel/lex_editor.html") }); return; } let xLexEditor = browser.tabs.create({ url: browser.extension.getURL("panel/lex_editor.html") }); xLexEditor.then(onCreated, onError); } function openConjugueurTab () { if (bChrome) { browser.tabs.create({ url: browser.extension.getURL("panel/conjugueur.html") }); return; |
︙ |
Modified gc_lang/fr/webext/gce_worker.js from [7786f58fad] to [2a64cce6de].
︙ | |||
49 50 51 52 53 54 55 | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | - + | importScripts("grammalecte/tests.js"); /* Warning. Initialization can’t be completed at startup of the worker, for we need the path of the extension to load data stored in JSON files. This path is retrieved in background.js and passed with the event “init”. */ |
︙ |
Modified gc_lang/fr/webext/manifest.json from [84fab8d7b3] to [e08a3d0ea1].
︙ | |||
102 103 104 105 106 107 108 109 110 111 112 113 114 115 | 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | + + + + + + | "description": "Ouvre le conjugueur dans un onglet" }, "conjugueur_window": { "suggested_key": { "default": "Ctrl+Shift+7" }, "description": "Ouvre le conjugueur dans une fenêtre" }, "lex_editor": { "suggested_key": { "default": "Ctrl+Shift+8" }, "description": "Ouvre l’éditeur lexical" } }, "web_accessible_resources": [ "grammalecte/_dictionaries/French.json", "grammalecte/fr/conj_data.json", "grammalecte/fr/mfsp_data.json", |
︙ |
Added gc_lang/fr/webext/panel/lex_editor.css version [00c320e4d1].