nodebb-plugin-facebook-post 1.0.40 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/static/lib/composer.js +3 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-plugin-facebook-post",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Auto-post new NodeBB topics to a fixed Facebook Page (text + NodeBB uploads
|
|
3
|
+
"version": "1.0.42",
|
|
4
|
+
"description": "Auto-post new NodeBB topics to a fixed Facebook Page (text + NodeBB uploads).",
|
|
5
5
|
"main": "library.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"axios": "^1.6.0"
|
package/static/lib/composer.js
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
const $li = $(`
|
|
22
22
|
<li aria-label="Publier sur Facebook" data-bs-original-title="Publier sur Facebook" data-fbpost-btn>
|
|
23
|
-
<button type="button" class="btn btn-sm btn-link
|
|
24
|
-
aria-label="Publier sur Facebook" style="
|
|
23
|
+
<button type="button" class="btn btn-sm btn-link"
|
|
24
|
+
aria-label="Publier sur Facebook" style="color:#c0392b;">
|
|
25
25
|
<i class="fab fa-facebook-f"></i>
|
|
26
26
|
</button>
|
|
27
27
|
</li>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
$btn.on('click', function () {
|
|
32
32
|
const active = !$(this).data('fbpost-active');
|
|
33
33
|
$(this).data('fbpost-active', active);
|
|
34
|
-
$(this).css({ color: active ? '#
|
|
34
|
+
$(this).css({ color: active ? '#27ae60' : '#c0392b' });
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
const $toolbar = $composer.find('ul.formatting-group').first();
|