Files
wekan/server/publications/customUI.js
T
Lauri Ojansivu 6b27764452 Admin Panel: a login page background colour, and a readable layout for the login text and the support page.
Lay-out has a new Login page background color (loginBackgroundColor). Only a
hex colour is accepted, so the value in the CSS custom property can never carry
CSS; the text under the login logo turns white on a dark colour and black on a
light one. The colour is on body only while the sign-in layout shows. The
support page and the text under the login logo get a centred column with sized,
bold headings and space between paragraphs. The label is translated into every
language file.

Thanks to Raymond-Voogt and xet7 !

Fixes #6866,
2026-11-03 17:19:22 +02:00

33 lines
834 B
JavaScript

import Settings from '/models/settings';
// Publish custom UI configuration
Meteor.publish('customUI', function() {
// Published to all users (public configuration)
return Settings.find({}, {
fields: {
customLoginLogoImageUrl: 1,
customLoginLogoLinkUrl: 1,
customHelpLinkUrl: 1,
textBelowCustomLoginLogo: 1,
loginBackgroundColor: 1,
customTopLeftCornerLogoImageUrl: 1,
customTopLeftCornerLogoLinkUrl: 1,
customTopLeftCornerLogoHeight: 1,
customHTMLafterBodyStart: 1,
customHTMLbeforeBodyEnd: 1,
}
});
});
// Publish Matomo configuration
Meteor.publish('matomoConfig', function() {
// Published to all users (public configuration)
return Settings.find({}, {
fields: {
matomoEnabled: 1,
matomoURL: 1,
matomoSiteId: 1,
}
});
});