The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/autolinker/server/settings.ts

70 lines
1.5 KiB

import { Meteor } from 'meteor/meteor';
import { settingsRegistry } from '../../settings/server';
Meteor.startup(function () {
const enableQuery = {
_id: 'AutoLinker',
value: true,
};
settingsRegistry.add('AutoLinker', true, {
type: 'boolean',
group: 'Message',
section: 'AutoLinker',
public: true,
i18nLabel: 'Enabled',
});
settingsRegistry.add('AutoLinker_StripPrefix', false, {
type: 'boolean',
group: 'Message',
section: 'AutoLinker',
public: true,
i18nDescription: 'AutoLinker_StripPrefix_Description',
enableQuery,
});
settingsRegistry.add('AutoLinker_Urls_Scheme', true, {
type: 'boolean',
group: 'Message',
section: 'AutoLinker',
public: true,
enableQuery,
});
settingsRegistry.add('AutoLinker_Urls_www', true, {
type: 'boolean',
group: 'Message',
section: 'AutoLinker',
public: true,
enableQuery,
});
settingsRegistry.add('AutoLinker_Urls_TLD', true, {
type: 'boolean',
group: 'Message',
section: 'AutoLinker',
public: true,
enableQuery,
});
settingsRegistry.add('AutoLinker_UrlsRegExp', '(://|www\\.).+', {
type: 'string',
group: 'Message',
section: 'AutoLinker',
public: true,
enableQuery,
});
settingsRegistry.add('AutoLinker_Email', true, {
type: 'boolean',
group: 'Message',
section: 'AutoLinker',
public: true,
enableQuery,
});
settingsRegistry.add('AutoLinker_Phone', true, {
type: 'boolean',
group: 'Message',
section: 'AutoLinker',
public: true,
i18nDescription: 'AutoLinker_Phone_Description',
enableQuery,
});
});