New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nodebb-theme-harmony

Package Overview
Dependencies
Maintainers
2
Versions
476
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodebb-theme-harmony - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

6

library.js

@@ -15,2 +15,3 @@ 'use strict';

stickyToolbar: 'on',
openSidebars: 'off',
};

@@ -103,2 +104,3 @@

config.stickyToolbar = themeConfig.stickyToolbar === 'on';
config.openSidebars = themeConfig.openSidebars === 'on';
config.openDraftsOnPageLoad = false;

@@ -120,3 +122,5 @@ return config;

Object.keys(defaults).forEach((key) => {
hookData.settings[key] = hookData.data[key] || undefined;
if (hookData.data.hasOwnProperty(key)) {
hookData.settings[key] = hookData.data[key] || undefined;
}
});

@@ -123,0 +127,0 @@ return hookData;

2

package.json
{
"name": "nodebb-theme-harmony",
"version": "0.0.12",
"version": "0.0.13",
"nbbpm": {

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

@@ -38,5 +38,15 @@ 'use strict';

function setupMobileMenu() {
$('[component="sidebar/toggle"]').on('click', function () {
$('.sidebar').toggleClass('open');
$(window).trigger('action:sidebar.toggle');
require(['api'], function (api) {
$('[component="sidebar/toggle"]').on('click', async function () {
const sidebarEl = $('.sidebar');
sidebarEl.toggleClass('open');
if (app.user.uid) {
await api.put(`/users/${app.user.uid}/settings`, {
settings: {
openSidebars: sidebarEl.hasClass('open') ? 'on' : 'off',
},
});
}
$(window).trigger('action:sidebar.toggle');
});
});

@@ -83,3 +93,2 @@ }

const draftItems = drafts.listAvailable();
console.log('harmony sees', draftItems);
if (!draftItems.length) {

@@ -94,3 +103,3 @@ draftListEl.find('.no-drafts').removeClass('hidden');

});
console.log(draftItems);
const html = await app.parseAndTranslate('partials/sidebar/drafts', 'drafts', { drafts: draftItems });

@@ -97,0 +106,0 @@ draftListEl.find('.no-drafts').addClass('hidden');

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc