nodebb-plugin-discord-onekite 1.1.18 → 1.1.20
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/README.md
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
# nodebb-plugin-discord-onekite v1.1.4.
|
|
1
|
+
# nodebb-plugin-discord-onekite v1.1.4.11
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
- `
|
|
3
|
+
Fixes ACP saving:
|
|
4
|
+
- Inputs now use `data-field` attributes (required by NodeBB `settings` module), so values persist.
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
Discord:
|
|
10
|
-
- Embed only (clickable title via embed.url)
|
|
11
|
-
- Embed description = message excerpt only
|
|
6
|
+
Toast:
|
|
7
|
+
- Title: "Succès"
|
|
8
|
+
- Message: "Paramètres enregistrés"
|
package/package.json
CHANGED
package/static/lib/admin.js
CHANGED
|
@@ -14,7 +14,7 @@ define('admin/plugins/discord-onekite', ['settings'], function (settings) {
|
|
|
14
14
|
e.preventDefault();
|
|
15
15
|
settings.persist('discord-onekite', $form, function () {
|
|
16
16
|
if (window.app && typeof app.alertSuccess === 'function') {
|
|
17
|
-
app.
|
|
17
|
+
if (typeof app.alert === 'function') { app.alert({ type: 'success', title: 'Succès', message: 'Paramètres enregistrés' }); } else { app.alertSuccess('Paramètres enregistrés'); }
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
});
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
<form role="form" class="discord-onekite-settings">
|
|
6
6
|
<div class="mb-3">
|
|
7
7
|
<label class="form-label" for="webhookUrl">Discord Webhook URL</label>
|
|
8
|
-
<input type="text" class="form-control" id="webhookUrl"
|
|
8
|
+
<input type="text" class="form-control" id="webhookUrl" data-field="webhookUrl" value="{settings.webhookUrl}" placeholder="https://discord.com/api/webhooks/..." />
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
11
|
<div class="form-check mb-3">
|
|
12
|
-
<input class="form-check-input" type="checkbox" id="notifyReplies"
|
|
12
|
+
<input class="form-check-input" type="checkbox" id="notifyReplies" data-field="notifyReplies" <!-- IF settings.notifyReplies -->checked<!-- ENDIF settings.notifyReplies -->>
|
|
13
13
|
<label class="form-check-label" for="notifyReplies">
|
|
14
14
|
Notifier aussi les réponses (si décoché : uniquement les nouveaux sujets)
|
|
15
15
|
</label>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
<div class="mb-3">
|
|
19
19
|
<label class="form-label" for="cids">Catégories à notifier</label>
|
|
20
|
-
<select class="form-select" id="cids"
|
|
20
|
+
<select class="form-select" id="cids" data-field="cids" multiple size="12">
|
|
21
21
|
<!-- BEGIN categories -->
|
|
22
22
|
<option value="{categories.cid}" <!-- IF categories.selected -->selected<!-- ENDIF categories.selected -->>{categories.name}</option>
|
|
23
23
|
<!-- END categories -->
|