Overview
Comment: | [fx] merge webext2 |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fx | webext2_fix |
Files: | files | file ages | folders |
SHA3-256: |
5a4cc905e2b33e03c2fc6ccf81466141 |
User & Date: | IllusionPerdu on 2017-08-08 17:51:51 |
Other Links: | branch diff | manifest | tags |
Context
2017-08-08
| ||
18:28 | [core] force text/json mimetype in helpers.loadFile check-in: ccebd25f43 user: IllusionPerdu tags: core, fx, webext2_fix | |
17:51 | [fx] merge webext2 check-in: 5a4cc905e2 user: IllusionPerdu tags: fx, webext2_fix | |
17:45 | [core] set isInit to true when the object was initialized check-in: 6cea30d5de user: IllusionPerdu tags: core, webext2_fix | |
17:44 | [core][js] use typeof(require) instead of typeof(exports) check-in: b844f2ba25 user: olr tags: core, webext2 | |
Changes
Modified gc_lang/fr/webext/background.js from [f23ea27e23] to [d13b1b16d2].
︙ | |||
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | }); browser.contextMenus.create({ id: "lexicographer", title: "Lexicographe", contexts: ["selection", "editable", "page"] }); browser.contextMenus.create({ id: "conjugueur_panel", title: "Conjugueur [fenêtre]", contexts: ["all"] }); browser.contextMenus.create({ id: "conjugueur_tab", title: "Conjugueur [onglet]", contexts: ["all"] }); function onCreated(windowInfo) { console.log(`Created window: ${windowInfo.id}`); } function onError(error) { console.log(`Error: ${error}`); } browser.contextMenus.onClicked.addListener(function (xInfo, xTab) { // xInfo = https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/contextMenus/OnClickData // xTab = https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/tabs/Tab console.log(xInfo); console.log(xTab); console.log("Item " + xInfo.menuItemId + " clicked in tab " + xTab.id); console.log("editable: " + xInfo.editable + " · selected: " + xInfo.selectionText); // confusing: no way to get the node where we click?! switch (xInfo.menuItemId) { case "grammar_checking": break; case "lexicographer": if (xInfo.selectionText) { xGCEWorker.postMessage(["getListOfTokens", {sText: xInfo.selectionText}]); } break; case "conjugueur_panel": var xConjWindow = browser.windows.create({ url: browser.extension.getURL("panel/conjugueur.html"), type: "detached_panel", width: 710, height: 980 }); xConjWindow.then(onCreated, onError); break; case "conjugueur_tab": var xConjTab = browser.tabs.create({ url: browser.extension.getURL("panel/conjugueur.html"), pinned: true }); xConjTab.then(onCreated, onError); break; } }); |
Added gc_lang/fr/webext/img/lines.png version [e4f15f2e8d].
cannot compute difference between binary files
Added gc_lang/fr/webext/img/logo-80.png version [17bf2efae3].
cannot compute difference between binary files
Modified gc_lang/fr/webext/manifest.json from [ebaa1e6143] to [de1e478a6e].
︙ | |||
22 23 24 25 26 27 28 | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | - + | "64": "img/logo-64.png", "96": "img/logo-96.png" }, "browser_action": { "default_icon": "img/logo-32.png", "default_popup": "panel/main.html", "default_title": "Grammalecte [fr]", |
︙ |
Added gc_lang/fr/webext/panel/conjugueur.css version [763dd8903a].