mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
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,
33 lines
834 B
JavaScript
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,
|
|
}
|
|
});
|
|
});
|