Add configurable widget online effects

This commit is contained in:
rajchales-monito
2026-07-24 14:02:37 +02:00
parent 8178b4a4e7
commit e3270201b8
5 changed files with 98 additions and 7 deletions
+8
View File
@@ -263,6 +263,13 @@ function defaultSettings() {
},
desktop: { side: "right", bottomPx: 22, sideOffsetPx: 22, widthPx: 370 },
mobile: { side: "right", bottomPx: 14, sideOffsetPx: 12, widthPx: 340 },
launcherEffects: {
breathe: true,
ring: true,
hoverLabel: true,
wave: true,
avatar: true
},
notifications: { pulseOnAdminReply: true }
};
}
@@ -844,6 +851,7 @@ function formatAttachment(row) {
function formatSite(site) {
const settings = parseJson(site.settings_json, defaultSettings());
settings.notifications = { ...defaultSettings().notifications, ...(settings.notifications || {}) };
settings.launcherEffects = { ...defaultSettings().launcherEffects, ...(settings.launcherEffects || {}) };
return {
id: site.id,
siteKey: site.site_key,