mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 19:11:22 +01:00
ACP quick actions (#6374)
* ACP quick actions - Moved restart, build & restart, and logout into separate buttons - Moved buttons on mobile into the side menu - Added version and upgrade alert to header / mobile menu - Moved version checking to server-side with a cache for rate limiting - Changed "reload" translations to "rebuild and restart" * Change info alert to black-on-white to match focused search bar * Fix tests * Fallback for failed fetch of latest version
This commit is contained in:
committed by
Julian Lam
parent
81e085bb9d
commit
eaae5b52cd
@@ -12,6 +12,7 @@ var nconf = require('nconf');
|
||||
var url = require('url');
|
||||
var errorText;
|
||||
|
||||
var packageInfo = require('../../package');
|
||||
|
||||
nconf.file({ file: path.join(__dirname, '../../config.json') });
|
||||
nconf.defaults({
|
||||
@@ -120,6 +121,8 @@ before(function (done) {
|
||||
nconf.set('theme_config', path.join(nconf.get('themes_path'), 'nodebb-theme-persona', 'theme.json'));
|
||||
nconf.set('bcrypt_rounds', 1);
|
||||
|
||||
nconf.set('version', packageInfo.version);
|
||||
|
||||
meta.dependencies.check(next);
|
||||
},
|
||||
function (next) {
|
||||
|
||||
Reference in New Issue
Block a user