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

nodebb-theme-harmony

Package Overview
Dependencies
Maintainers
0
Versions
437
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 2.0.0-pre.40 to 2.0.0-pre.41

2

package.json
{
"name": "nodebb-theme-harmony",
"version": "2.0.0-pre.40",
"version": "2.0.0-pre.41",
"nbbpm": {

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

@@ -257,16 +257,14 @@ 'use strict';

['notifications', 'chat'].forEach((type) => {
const countEl = document.querySelector(`[component="${type}/count"]`);
if (!countEl) {
const countEl = $(`nav.sidebar [component="${type}/count"]`).first();
if (!countEl.length) {
return;
}
const count = parseInt(countEl.innerText, 10);
const count = parseInt(countEl.text(), 10);
if (count > 1) {
const listEls = document.querySelectorAll(`[component="${type}/list"]`);
listEls.forEach((listEl) => {
const placeholder = listEl.querySelector('*');
if (placeholder) {
for (let x = 0; x < count - 1; x++) {
const cloneEl = placeholder.cloneNode(true);
listEl.insertBefore(cloneEl, placeholder);
}
const listEls = $(`.dropdown-menu [component="${type}/list"]`);
listEls.each((index, el) => {
const placeholder = $(el).children().first();
for (let x = 0; x < count - 1; x++) {
const cloneEl = placeholder.clone(true);
cloneEl.insertAfter(placeholder);
}

@@ -273,0 +271,0 @@ });

@@ -13,2 +13,5 @@ Harmony theme for NodeBB

### Categories
_The cards in the header are added by the recent cards plugin. https://github.com/NodeBB-Community/nodebb-plugin-recent-cards_
<img height="450" src="screenshots/categories.png">

@@ -15,0 +18,0 @@

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

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

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