nodebb-plugin-customize 4.0.0 → 4.0.1

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/.eslintrc.js CHANGED
@@ -10,7 +10,7 @@ module.exports = {
10
10
  objects: 'always-multiline',
11
11
  imports: 'always-multiline',
12
12
  exports: 'always-multiline',
13
- functions: 'never'
13
+ functions: 'never',
14
14
  }],
15
15
  'import/no-unresolved': 'off',
16
16
  'import/prefer-default-export': 'off',
@@ -20,9 +20,9 @@ module.exports = {
20
20
  'object-curly-newline': ['error', {
21
21
  multiline: true,
22
22
  minProperties: 5,
23
- consistent: true
23
+ consistent: true,
24
24
  }],
25
25
  '@typescript-eslint/indent': ['error', 2],
26
- '@typescript-eslint/explicit-function-return-type': 'off'
26
+ '@typescript-eslint/explicit-function-return-type': 'off',
27
27
  },
28
28
  };
@@ -80,7 +80,7 @@
80
80
  </select>
81
81
  </td>
82
82
  <td>
83
- <pre><code id="template-edit-diff"><!-- diff goes here --></code></pre>
83
+ <pre class="diff-preview"><code id="template-edit-diff"><!-- diff goes here --></code></pre>
84
84
  </td>
85
85
  <td>
86
86
  <button class="btn btn-primary" id="template-edit-open" data-bs-toggle="modal" data-bs-target="#template-edit-modal"><i class="fa fa-fw fa-pencil"></i></a>
@@ -6,7 +6,7 @@
6
6
  data-json="{./json}"
7
7
  >
8
8
  <td>{./path}</td>
9
- <td><pre><code>{./diff}</code></pre></td>
9
+ <td><pre class="diff-preview"><code>{./diff}</code></pre></td>
10
10
  <td>
11
11
  <button class="btn btn-link edit"><i class="fa fa-fw fa-cog"></i></a>
12
12
  <button class="btn btn-link delete"><i class="fa fa-fw fa-trash text-danger"></i></a>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-customize",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Customize NodeBB translations and templates",
5
5
  "main": "build/lib",
6
6
  "author": "Peter Jaszkowiak <p.jaszkow@gmail.com> (https://github.com/pitaj)",
@@ -21,25 +21,25 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "diff": "^5.1.0",
24
- "fs-extra": "^10.0.0",
24
+ "fs-extra": "^11.1.1",
25
25
  "lodash": "^4.17.21"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/ace": "^0.0.48",
29
29
  "@types/bootstrap": "^5.2.6",
30
- "@types/diff": "^5.0.2",
31
- "@types/express": "^4.17.16",
32
- "@types/fs-extra": "^9.0.12",
30
+ "@types/diff": "^5.0.3",
31
+ "@types/express": "^4.17.17",
32
+ "@types/fs-extra": "^11.0.1",
33
33
  "@types/jquery": "^3.5.16",
34
- "@types/lodash": "^4.14.191",
34
+ "@types/lodash": "^4.14.195",
35
35
  "@types/nconf": "^0.10.3",
36
- "@types/node": "^18.11.18",
37
- "@typescript-eslint/eslint-plugin": "^5.49.0",
38
- "@typescript-eslint/parser": "^5.49.0",
39
- "eslint": "^8.32.0",
36
+ "@types/node": "^20.4.3",
37
+ "@typescript-eslint/eslint-plugin": "^6.1.0",
38
+ "@typescript-eslint/parser": "^6.1.0",
39
+ "eslint": "^8.45.0",
40
40
  "eslint-config-airbnb-base": "^15.0.0",
41
41
  "eslint-plugin-import": "^2.27.5",
42
- "typescript": "^4.9.4"
42
+ "typescript": "^5.1.6"
43
43
  },
44
44
  "scripts": {
45
45
  "lint": "eslint lib/* && eslint public/lib/*",
@@ -3,7 +3,6 @@ module.exports = {
3
3
  browser: true,
4
4
  },
5
5
  globals: {
6
- '$': true,
6
+ $: true,
7
7
  },
8
8
  };
9
-
package/public/style.scss CHANGED
@@ -6,3 +6,7 @@
6
6
  min-width: 15rem;
7
7
  }
8
8
  }
9
+
10
+ .diff-preview {
11
+ max-width: 700px;
12
+ }
@@ -80,7 +80,7 @@
80
80
  </select>
81
81
  </td>
82
82
  <td>
83
- <pre><code id="template-edit-diff"><!-- diff goes here --></code></pre>
83
+ <pre class="diff-preview"><code id="template-edit-diff"><!-- diff goes here --></code></pre>
84
84
  </td>
85
85
  <td>
86
86
  <button class="btn btn-primary" id="template-edit-open" data-bs-toggle="modal" data-bs-target="#template-edit-modal"><i class="fa fa-fw fa-pencil"></i></a>
@@ -6,7 +6,7 @@
6
6
  data-json="{./json}"
7
7
  >
8
8
  <td>{./path}</td>
9
- <td><pre><code>{./diff}</code></pre></td>
9
+ <td><pre class="diff-preview"><code>{./diff}</code></pre></td>
10
10
  <td>
11
11
  <button class="btn btn-link edit"><i class="fa fa-fw fa-cog"></i></a>
12
12
  <button class="btn btn-link delete"><i class="fa fa-fw fa-trash text-danger"></i></a>
@@ -13,6 +13,7 @@
13
13
  "sourceMap": true,
14
14
  "alwaysStrict": true,
15
15
  "esModuleInterop": true,
16
+ "moduleResolution": "node",
16
17
  "types": [
17
18
  "jquery",
18
19
  "bootstrap",
package/tsconfig.json CHANGED
@@ -11,7 +11,6 @@
11
11
  "strict": true,
12
12
  "sourceMap": true,
13
13
  "alwaysStrict": true,
14
- "typeRoots": [],
15
14
  "types": [
16
15
  "node"
17
16
  ]