Bumped webpack and grunt, fixed notifications issue caused by minification

This commit is contained in:
Andrii V 2025-12-03 18:13:53 +01:00
parent 933eb5bb2f
commit 1791f83dcc
8 changed files with 3577 additions and 12995 deletions

View file

@ -25,6 +25,8 @@ controllers
import logging
import socket
import base64
import hashlib
import os
import markupsafe
import ipaddress

View file

@ -1,6 +1,4 @@
import 'regenerator-runtime/runtime.js';
import '@polymer/iron-ajax/iron-ajax.js';
import './shared-styles.js';
import './channelstream-connection/channelstream-connection.js';
import './rhodecode-toast/rhodecode-toast.js';
import './rhodecode-unsafe-html/rhodecode-unsafe-html.js';

View file

@ -224,6 +224,7 @@ export class RhodecodeToast extends LitElement {
}
handleNotification(data) {
console.log('[RhodecodeToast] handleNotification called - DEBUG BUILD v2', data);
if (!templateContext.rhodecode_user.notification_status && !data.message.force) {
return;
}
@ -231,6 +232,7 @@ export class RhodecodeToast extends LitElement {
level: data.message.level,
message: data.message.message
}];
console.log('[RhodecodeToast] toasts updated, count:', this.toasts.length);
}
_gettext(x) {

View file

@ -1,4 +1,5 @@
import {LitElement, html} from 'lit';
import {unsafeHTML} from 'lit/directives/unsafe-html.js';
export class RhodecodeUnsafeHtml extends LitElement {
static properties = {
@ -11,13 +12,8 @@ export class RhodecodeUnsafeHtml extends LitElement {
}
render() {
return html`<slot></slot>`;
}
updated(changedProperties) {
if (changedProperties.has('text')) {
this.innerHTML = this.text;
}
console.log('[RhodecodeUnsafeHtml] render() called, text:', this.text);
return html`${unsafeHTML(this.text)}`;
}
}