Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodebb-theme-peace

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodebb-theme-peace - npm Package Compare versions

Comparing version 2.0.31 to 2.0.32

33

lib/library.js

@@ -66,35 +66,4 @@ 'use strict';

library.filterMiddlewareRenderHeader = async function (hookData) {
const userSettings = await user.getSettings(hookData.req.uid);
const defaultSkin = _.capitalize(meta.config.bootswatchSkin) || '[[user:no-skin]]';
const defaultSkins = [
{ name: `[[user:default, ${defaultSkin}]]`, value: '', selected: userSettings.bootswatchSkin === '' },
{ name: '[[user:no-skin]]', value: 'noskin', selected: userSettings.bootswatchSkin === 'noskin' },
];
const lightSkins = [
'cerulean', 'cosmo', 'flatly', 'journal', 'litera',
'lumen', 'lux', 'materia', 'minty', 'morph', 'pulse', 'sandstone',
'simplex', 'sketchy', 'spacelab', 'united', 'yeti', 'zephyr',
];
const darkSkins = [
'cyborg', 'darkly', 'quartz', 'slate', 'solar', 'superhero', 'vapor',
];
function parseSkins(skins) {
skins = skins.map(skin => ({
name: _.capitalize(skin),
value: skin,
}));
skins.forEach((skin) => {
skin.selected = skin.value === userSettings.bootswatchSkin;
});
return skins;
}
hookData.templateData.bootswatchSkinOptions = {
default: defaultSkins,
light: parseSkins(lightSkins),
dark: parseSkins(darkSkins),
};
hookData.templateData.currentBSSkin = _.capitalize(hookData.templateData.bootswatchSkin);
hookData.templateData.bootswatchSkinOptions = await meta.css.getSkinSwitcherOptions(hookData.req.uid);
return hookData;
};

2

package.json
{
"name": "nodebb-theme-peace",
"version": "2.0.31",
"version": "2.0.32",
"nbbpm": {

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc