Socket
Socket
Sign inDemoInstall

nodebb-theme-lastlife

Package Overview
Dependencies
2
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.13 to 0.0.14

33

library.js

@@ -9,22 +9,2 @@ 'use strict';

library.init = function(params, callback) {
var app = params.router;
var middleware = params.middleware;
app.get('/admin/plugins/persona', middleware.admin.buildHeader, renderAdmin);
app.get('/api/admin/plugins/persona', renderAdmin);
callback();
};
library.addAdminNavigation = function(header, callback) {
header.plugins.push({
route: '/plugins/persona',
icon: 'fa-paint-brush',
name: 'Persona Theme'
});
callback(null, header);
};
library.getTeasers = function(data, callback) {

@@ -91,15 +71,2 @@ data.teasers.forEach(function(teaser) {

library.getThemeConfig = function(config, callback) {
meta.settings.get('persona', function(err, settings) {
config.hideSubCategories = settings.hideSubCategories === 'on';
config.hideCategoryLastPost = settings.hideCategoryLastPost === 'on';
config.enableQuickReply = settings.enableQuickReply === 'on';
callback(null, config);
});
};
function renderAdmin(req, res, next) {
res.render('admin/plugins/persona', {});
}
library.addUserToTopic = function(data, callback) {

@@ -106,0 +73,0 @@ if (data.req.user) {

2

package.json
{
"name": "nodebb-theme-lastlife",
"version": "0.0.13",
"version": "0.0.14",
"nbbpm": {

@@ -5,0 +5,0 @@ "compatibility": "^1.11.0"

@@ -7,5 +7,2 @@ {

{ "hook": "filter:widgets.getAreas", "method": "defineWidgetAreas" },
{ "hook": "filter:config.get", "method": "getThemeConfig" },
{ "hook": "static:app.load", "method": "init" },
{ "hook": "filter:admin.header.build", "method": "addAdminNavigation" },
{ "hook": "filter:topic.build", "method": "addUserToTopic" },

@@ -25,7 +22,4 @@ { "hook": "filter:meta.getLinkTags", "method": "getLinkTags"}

"images": "./static/images"
},
"acpScripts": [
"lib/admin.js"
],
},
"languages": "languages"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc