Overview
Comment: | [fx] lexicographer and grammar checker: analyse selection via the context menu |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fx | webext2 |
Files: | files | file ages | folders |
SHA3-256: |
79e6d105558b500df515428a2d8f4b53 |
User & Date: | olr on 2017-08-25 17:19:53 |
Other Links: | branch diff | manifest | tags |
Context
2017-08-26
| ||
06:43 | [fx] useless code check-in: ed9c7b39c4 user: olr tags: fx, webext2 | |
2017-08-25
| ||
17:19 | [fx] lexicographer and grammar checker: analyse selection via the context menu check-in: 79e6d10555 user: olr tags: fx, webext2 | |
12:04 | [fx] committed by mistake check-in: 3f2b93ca26 user: olr tags: fx, webext2 | |
Changes
Modified gc_lang/fr/webext/background.js from [b3d1a36d31] to [180d15c853].
︙ | |||
21 22 23 24 25 26 27 | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | - + | break; case "parse": case "parseAndSpellcheck": case "parseAndSpellcheck1": case "getListOfTokens": console.log("Action done: " + sActionDone); if (typeof(dInfo.iReturnPort) === "number") { |
︙ | |||
60 61 62 63 64 65 66 | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | - + | xGCEWorker.postMessage({sCommand: "init", dParam: {sExtensionPath: browser.extension.getURL("."), sOptions: "", sContext: "Firefox"}, dInfo: {}}); /* Ports from content-scripts */ |
︙ | |||
94 95 96 97 98 99 100 | 94 95 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 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 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | - + - - - + + - - - - - - - - - - - + - + + + + + + + - - - + + + + - - - + + + + + + + + - - - - + + + + + + + + + + - + - + | } browser.runtime.onMessage.addListener(handleMessage); function handleConnexion (p) { var xPort = p; |
︙ |
Modified gc_lang/fr/webext/content_scripts/content_modifier.js from [429cf766da] to [00d02be92c].
︙ | |||
13 14 15 16 17 18 19 | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | - | function showError (e) { console.error(e.fileName + "\n" + e.name + "\nline: " + e.lineNumber + "\n" + e.message); } const oGrammalecte = { |
︙ | |||
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | + + + + + + - + + | _createWrapperToolbar: function (xTextArea) { try { let xToolbar = createNode("div", {className: "grammalecte_wrapper_toolbar"}); let xConjButton = createNode("div", {className: "grammalecte_wrapper_button", textContent: "Conjuguer"}); xConjButton.onclick = function () { this.createConjPanel(); //this.oConjPanel.show(); }.bind(this); let xTFButton = createNode("div", {className: "grammalecte_wrapper_button", textContent: "Formater"}); xTFButton.onclick = function () { this.createTFPanel(xTextArea); this.oTFPanel.start(xTextArea); this.oTFPanel.show(); }.bind(this); let xLxgButton = createNode("div", {className: "grammalecte_wrapper_button", textContent: "Analyser"}); xLxgButton.onclick = function () { this.createLxgPanel(); this.oLxgPanel.clear(); this.oLxgPanel.show(); this.oLxgPanel.startWaitIcon(); xPort.postMessage({ sCommand: "getListOfTokens", dParam: {sText: xTextArea.value}, dInfo: {sTextAreaId: xTextArea.id} }); }.bind(this); let xGCButton = createNode("div", {className: "grammalecte_wrapper_button", textContent: "Corriger"}); xGCButton.onclick = function () { this.createGCPanel(); this.oGCPanel.clear(); |
︙ | |||
94 95 96 97 98 99 100 | 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 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 189 190 | - + - - - - - + - - - - - + - - - + - - - - - - + - - - - - - - - + + + + + + + + + + + + + + + - - - - - - + + + | catch (e) { showError(e); } }, createConjPanel: function () { console.log("Conjugueur"); |