nodebb-theme-lastlife
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -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) { |
{ | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
1001210
246
2750