Index: gc_lang/fr/webext/background.js ================================================================== --- gc_lang/fr/webext/background.js +++ gc_lang/fr/webext/background.js @@ -189,12 +189,12 @@ let xPort = dConnx.get(xTab.id); xPort.postMessage({sActionDone: "openLxgPanel", result: null, dInfo: null, bEnd: false, bError: false}); xGCEWorker.postMessage({ sCommand: "getListOfTokens", dParam: {sText: xInfo.selectionText}, - dInfo: {iReturnPort: xTab.id}} - ); + dInfo: {iReturnPort: xTab.id} + }); break; } case "conjugueur_panel": let xConjWindow = browser.windows.create({ url: browser.extension.getURL("panel/conjugueur.html"), DELETED gc_lang/fr/webext/panel/lexicographer.css Index: gc_lang/fr/webext/panel/lexicographer.css ================================================================== --- gc_lang/fr/webext/panel/lexicographer.css +++ /dev/null @@ -1,95 +0,0 @@ -/* lxgpanel.css */ - -@import url("common.css"); - -header { - background-color: hsl(0, 0%, 96%); - padding: 10px 20px; - border-bottom: 1px solid hsl(0, 0%, 90%); - color: hsl(0, 0%, 0%); -} - - -body { - background-color: hsl(0, 0%, 98%); - font-family: "Trebuchet MS", sans-serif; - overflow-x: hidden; - color: hsl(0, 0%, 0%); -} - - - -#tokens_list { - padding: 50px 10px 10px 10px; -} - -#tokens_list .paragraph { - background-color: hsla(0, 0%, 90%, 1); - padding: 10px; - border-radius: 2px; - margin: 10px 5px; -} - -#tokens_list p { - margin: 8px; -} -#tokens_list p.separator { - margin: 20px 0; - padding: 5px 50px; - background-color: hsla(0, 0%, 75%, 1); - color: hsla(0, 0%, 96%, 1); - border-radius: 5px; - text-align: center; - font-size: 20px; -} -#tokens_list .token { - margin: 8px; -} -#tokens_list ul { - margin: 0 0 5px 40px; -} -#tokens_list b { - background-color: hsla(150, 10%, 50%, 1); - color: hsla(0, 0%, 96%, 1); - padding: 2px 5px; - border-radius: 2px; - text-decoration: none; -} -#tokens_list b.WORD { - background-color: hsla(150, 50%, 50%, 1); -} -#tokens_list b.ELPFX { - background-color: hsla(150, 30%, 50%, 1); -} -#tokens_list b.UNKNOWN { - background-color: hsla(0, 50%, 50%, 1); -} -#tokens_list b.NUM { - background-color: hsla(180, 50%, 50%, 1); -} -#tokens_list b.COMPLEX { - background-color: hsla(60, 50%, 50%, 1); -} -#tokens_list b.SEPARATOR { - background-color: hsla(210, 50%, 50%, 1); -} -#tokens_list b.LINK { - background-color: hsla(270, 50%, 50%, 1); -} -#tokens_list s { - color: hsla(0, 0%, 60%, 1); - text-decoration: none; -} -#tokens_list .textline { - text-decoration: bold; -} - -#tokens_list p.message { - margin-top: 20px; - padding: 10px 10px; - background-color: hsla(240, 10%, 50%, 1); - font-size: 18px; - color: hsla(240, 0%, 96%, 1); - border-radius: 3px; - text-align: center; -} DELETED gc_lang/fr/webext/panel/lexicographer.html Index: gc_lang/fr/webext/panel/lexicographer.html ================================================================== --- gc_lang/fr/webext/panel/lexicographer.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - -
-
-
-
-
-
-

Grammalecte · Lexicographe

-
-
- -
- - - DELETED gc_lang/fr/webext/panel/lexicographer.js Index: gc_lang/fr/webext/panel/lexicographer.js ================================================================== --- gc_lang/fr/webext/panel/lexicographer.js +++ /dev/null @@ -1,75 +0,0 @@ -// JavaScript - - - -/* - Actions -*/ - -function startWaitIcon () { - document.getElementById("waiticon").hidden = false; -} - -function stopWaitIcon () { - document.getElementById("waiticon").hidden = true; -} - -function clearList () { - document.getElementById("tokens_list").textContent = ""; -} - -function addSeparator (sText) { - if (document.getElementById("tokens_list").textContent !== "") { - let xElem = document.createElement("p"); - xElem.className = "separator"; - xElem.textContent = sText; - document.getElementById("tokens_list").appendChild(xElem); - } -} - -function addMessage (sClass, sText) { - let xNode = document.createElement("p"); - xNode.className = sClass; - xNode.textContent = sText; - document.getElementById("tokens_list").appendChild(xNode); -} - -function addParagraphElems (sJSON) { - try { - let xNodeDiv = document.createElement("div"); - xNodeDiv.className = "paragraph"; - let lElem = JSON.parse(sJSON); - for (let oToken of lElem) { - xNodeDiv.appendChild(createTokenNode(oToken)); - } - document.getElementById("tokens_list").appendChild(xNodeDiv); - } - catch (e) { - console.error(e.fileName + "\n" + e.name + "\nline: " + e.lineNumber + "\n" + e.message); - console.error(sJSON); - } -} - -function createTokenNode (oToken) { - let xTokenNode = document.createElement("div"); - xTokenNode.className = "token " + oToken.sType; - let xTokenValue = document.createElement("b"); - xTokenValue.className = oToken.sType; - xTokenValue.textContent = oToken.sValue; - xTokenNode.appendChild(xTokenValue); - let xSep = document.createElement("s"); - xSep.textContent = " : "; - xTokenNode.appendChild(xSep); - if (oToken.aLabel.length === 1) { - xTokenNode.appendChild(document.createTextNode(oToken.aLabel[0])); - } else { - let xTokenList = document.createElement("ul"); - for (let sLabel of oToken.aLabel) { - let xTokenLine = document.createElement("li"); - xTokenLine.textContent = sLabel; - xTokenList.appendChild(xTokenLine); - } - xTokenNode.appendChild(xTokenList); - } - return xTokenNode; -}