Overview
| Comment: | [tb][fx] message for Thunderbird about settings -> multi-lines message |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | tb | fx |
| Files: | files | file ages | folders |
| SHA3-256: |
174a9bbeb3ffbaf3de6ca31c1f6a9ad7 |
| User & Date: | olr on 2020-07-21 17:47:48 |
| Other Links: | manifest | tags |
Context
|
2020-07-22
| ||
| 08:28 | [fr] faux positifs et ajustements check-in: 99a39de3aa user: olr tags: trunk, fr | |
|
2020-07-21
| ||
| 17:47 | [tb][fx] message for Thunderbird about settings -> multi-lines message check-in: 174a9bbeb3 user: olr tags: trunk, tb, fx | |
| 13:23 | [build][tb] add note for reviewers in Thunderbird extension check-in: cf38ecf53a user: olr tags: trunk, build, tb | |
Changes
Modified gc_lang/fr/webext/content_scripts/editor.js from [c96624ca8d] to [eab0c4d8cd].
| ︙ | |||
17 18 19 20 21 22 23 | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | - + |
//console.log(xDocument.body);
//console.log(xDocument.body.innerHTML);
this.lNode = [];
this.bCheckSignature = bCheckSignature;
this._lParsableNodes = ["P", "LI", "H1", "H2", "H3", "H4", "H5", "H6"];
this._lRootNodes = ["DIV", "UL", "OL"];
if (bThunderbird) {
|
| ︙ |
Modified gc_lang/fr/webext/content_scripts/init.js from [1fe55b3bcd] to [1bb2b5e387].
| ︙ | |||
124 125 126 127 128 129 130 131 132 133 134 135 136 137 | 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | + + + |
this.createGCPanel();
this.oGCPanel.clear();
this.oGCPanel.show();
this.oGCPanel.showEditor();
this.oGCPanel.start(what, xResultNode);
this.oGCPanel.startWaitIcon();
let sText = this.oGCPanel.oTextControl.getText();
if (bThunderbird && sText.trim() === "") {
oGrammalecte.showMessage("❓ Le message ne semble contenir aucune réponse. Si vous écrivez votre réponse avant le message auquel vous répondez, celle-ci ne peut être vue de Grammalecte que si vous avez réglé votre compte pour répondre au-dessus du message cité.\n➜ Pour modifier ce réglage, allez dans vos paramètres de compte et, dans la section [Rédaction et adressage], sélectionnez [La réponse commence avant la citation].\n❗ Si vous ne modifiez pas ce réglage, seul le texte écrit après les passages cités sera vu et analysé par Grammalecte.");
}
oGrammalecteBackgroundPort.parseAndSpellcheck(sText, "__GrammalectePanel__");
},
showMessage: function (sMessage) {
this.createMessageBox();
this.oMessageBox.show();
this.oMessageBox.setMessage(sMessage);
|
| ︙ |
Modified gc_lang/fr/webext/content_scripts/message_box.css from [391156b42c] to [98d7c4869a].
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 | 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 | + + |
/*
CSS
Message box for Grammalecte
*/
div.grammalecte_message_box {
all: initial;
position: fixed;
padding: 0;
margin: 0;
top: 50%;
left: 50%;
width: 400px;
margin-top: -50px;
margin-left: -200px;
min-height: 100px;
box-sizing: content-box;
z-index: 2147483647; /* maximum is 2147483647: https://stackoverflow.com/questions/491052/minimum-and-maximum-value-of-z-index */
border: 2px solid hsl(210, 50%, 50%);
border-radius: 10px 10px 10px 10px;
background-color: hsl(210, 50%, 50%);
color: hsl(0, 10%, 92%);
font-family: "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif;
box-shadow: 0 0 2px 1px hsla(210, 50%, 50%, .5);
line-height: normal;
text-shadow: none;
text-decoration: none;
text-align: left;
}
div.grammalecte_message_box img {
display: inline-block;
margin: 0;
padding: 0;
}
div.grammalecte_message_box_bar {
position: sticky;
width: 100%;
background-color: hsl(210, 50%, 50%);
border-radius: 10px 10px 0 0;
border-bottom: 1px solid hsl(210, 50%, 47%);
|
| ︙ | |||
56 57 58 59 60 61 62 63 | 58 59 60 61 62 63 64 65 66 67 68 69 | + + + + |
}
div.grammalecte_message_box_content {
height: calc(100% - 55px); /* panel height - title_bar */
padding: 20px;
color: hsl(0, 50%, 96%);
font-size: 18px;
}
div.grammalecte_message_box_content p {
margin: 0 0 5px 0;
font-size: 16px;
}
|
Modified gc_lang/fr/webext/content_scripts/message_box.js from [8958174d47] to [b8800bfacf].
| ︙ | |||
84 85 86 87 88 89 90 | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | + + - + + + + + + + + + + + + + |
hide () {
this.xMessageBox.style.display = "none";
this.clear();
}
setMessage (sMessage) {
if (!sMessage.includes("\n")) {
// one line message
|