nodebb-plugin-tenor-gif 3.0.0 → 3.1.0

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.
@@ -3,7 +3,9 @@
3
3
  var Controllers = {};
4
4
 
5
5
  Controllers.renderAdminPage = function (req, res, next) {
6
- res.render('admin/plugins/tenor-gif', {});
6
+ res.render('admin/plugins/tenor-gif', {
7
+ title: 'Tenor GIF',
8
+ });
7
9
  };
8
10
 
9
11
  module.exports = Controllers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-tenor-gif",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "readmeFilename": "README.md",
23
23
  "nbbpm": {
24
- "compatibility": "^3.0.0"
24
+ "compatibility": "^3.2.0"
25
25
  },
26
26
  "dependencies": {
27
27
  "@commitlint/cli": "^9.1.2",
@@ -1,34 +1,38 @@
1
- <form role="form" class="tenor-gif-settings">
2
- <div class="row">
3
- <div class="col-sm-2 col-12 settings-header">General</div>
4
- <div class="col-sm-10 col-12">
5
- <p class="lead">
6
- Sign up for your Tenor GIF API Key from the <a href="https://console.cloud.google.com/apis/credentials">Google Cloud Console</a>, then enter it below and reload your NodeBB.
7
- </p>
8
- <p>
9
- <strong>Be careful</strong>: If you use the <i class="fa fa-copy"></i> button to copy the API key, it'll add spaces to the beginning and end. You'll need to remove those.
10
- </p>
11
- <div class="mb-3">
12
- <label for="key">API Key</label>
13
- <input type="text" id="key" name="key" title="API Key" class="form-control" placeholder="API Key">
14
- </div>
15
- <div class="mb-3">
16
- <label for="contentFilter">Content Filter</label>
17
- <select class="form-control" id="contentFilter" name="contentFilter">
18
- <option value="off">Off</option>
19
- <option value="low">Low</option>
20
- <option value="medium" selected>Medium (default)</option>
21
- <option value="high">High</option>
22
- </select>
23
- </div>
24
- <div class="mb-3">
25
- <label for="limit">Limit results</label>
26
- <input class="form-control" type="number" min="1" max="50" id="limit" placeholder="10" name="limit" />
27
- </div>
1
+ <div class="acp-page-container">
2
+ <!-- IMPORT admin/partials/settings/header.tpl -->
3
+
4
+ <div class="row m-0">
5
+ <div id="spy-container" class="col-12 px-0 mb-4" tabindex="0">
6
+ <form role="form" class="tenor-gif-settings">
7
+ <div class="row">
8
+ <div class="col-sm-2 col-12 settings-header">General</div>
9
+ <div class="col-sm-10 col-12">
10
+ <p class="lead">
11
+ Sign up for your Tenor GIF API Key from the <a href="https://console.cloud.google.com/apis/credentials">Google Cloud Console</a>, then enter it below and reload your NodeBB.
12
+ </p>
13
+ <p>
14
+ <strong>Be careful</strong>: If you use the <i class="fa fa-copy"></i> button to copy the API key, it'll add spaces to the beginning and end. You'll need to remove those.
15
+ </p>
16
+ <div class="mb-3">
17
+ <label for="key">API Key</label>
18
+ <input type="text" id="key" name="key" title="API Key" class="form-control" placeholder="API Key">
19
+ </div>
20
+ <div class="mb-3">
21
+ <label for="contentFilter">Content Filter</label>
22
+ <select class="form-control" id="contentFilter" name="contentFilter">
23
+ <option value="off">Off</option>
24
+ <option value="low">Low</option>
25
+ <option value="medium" selected>Medium (default)</option>
26
+ <option value="high">High</option>
27
+ </select>
28
+ </div>
29
+ <div class="mb-3">
30
+ <label for="limit">Limit results</label>
31
+ <input class="form-control" type="number" min="1" max="50" id="limit" placeholder="10" name="limit" />
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </form>
28
36
  </div>
29
37
  </div>
30
- </form>
31
-
32
- <button id="save" class="floating-button mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored">
33
- <i class="material-icons">save</i>
34
- </button>
38
+ </div>