nodebb-plugin-sso-github 3.2.0 → 4.0.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.
package/library.js CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- const User = require.main.require('./src/user');
4
- const db = require.main.require('./src/database');
5
- const meta = require.main.require('./src/meta');
6
- const nconf = require.main.require('nconf');
7
- const passport = require.main.require('passport');
3
+ const User = nodebb.require('./src/user');
4
+ const db = nodebb.require('./src/database');
5
+ const meta = nodebb.require('./src/meta');
6
+ const nconf = nodebb.require('nconf');
7
+ const passport = nodebb.require('passport');
8
8
  const GithubStrategy = require('passport-github2').Strategy;
9
9
 
10
10
  const constants = Object.freeze({
@@ -18,7 +18,7 @@ const constants = Object.freeze({
18
18
  const GitHub = module.exports;
19
19
 
20
20
  GitHub.init = async function (data) {
21
- const hostHelpers = require.main.require('./src/routes/helpers');
21
+ const hostHelpers = nodebb.require('./src/routes/helpers');
22
22
 
23
23
  hostHelpers.setupAdminPageRoute(data.router, '/admin/plugins/sso-github', function (req, res) {
24
24
  res.render('admin/plugins/sso-github', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-sso-github",
3
- "version": "3.2.0",
3
+ "version": "4.0.0",
4
4
  "description": "NodeBB GitHub SSO",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -49,10 +49,10 @@
49
49
  "passport-github2": "^0.1.9"
50
50
  },
51
51
  "devDependencies": {
52
- "eslint": "10.0.2",
53
- "eslint-config-nodebb": "^2.0.0"
52
+ "eslint": "10.7.0",
53
+ "eslint-config-nodebb": "^2.0.3"
54
54
  },
55
55
  "nbbpm": {
56
- "compatibility": "^4.9.0"
56
+ "compatibility": "^4.14.0"
57
57
  }
58
58
  }
@@ -1,16 +1,16 @@
1
1
  <div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3">
2
2
  <div class="panel panel-default">
3
3
  <div class="panel-heading">
4
- <h3 class="panel-title">[[user:sso.dissociate-confirm-title]]</h3>
4
+ <h3 class="panel-title">{{tx("user:sso.dissociate-confirm-title")}}</h3>
5
5
  </div>
6
6
  <div class="panel-body">
7
- [[user:sso.dissociate-confirm, {service}]]
7
+ {{tx("user:sso.dissociate-confirm", service)}}
8
8
 
9
9
  <hr>
10
10
 
11
11
  <form method="post">
12
12
  <input type="hidden" name="_csrf" value="{config.csrf_token}" />
13
- <button class="btn btn-danger">[[user:sso.dissociate]]</button>
13
+ <button class="btn btn-danger">{{tx("user:sso.dissociate")}}</button>
14
14
  </form>
15
15
  </div>
16
16
  </div>