Vulcan/packages/vulcan-lib/lib/modules/config.js

43 lines
1.3 KiB
JavaScript
Raw Normal View History

import SimpleSchema from 'simpl-schema';
2016-02-17 14:39:56 +09:00
/**
* @summary Kick off the namespace for Vulcan.
* @namespace Vulcan
2016-02-17 14:39:56 +09:00
*/
2018-01-25 15:03:03 -06:00
// eslint-disable-next-line no-undef
Vulcan = {};
2016-02-17 14:39:56 +09:00
2018-01-25 15:03:03 -06:00
// eslint-disable-next-line no-undef
2018-01-28 11:13:45 +09:00
Vulcan.VERSION = '1.8.6';
2016-02-17 14:39:56 +09:00
2016-02-16 15:08:30 +09:00
// ------------------------------------- Schemas -------------------------------- //
SimpleSchema.extendOptions([
'private',
'editable', // editable: true means the field can be edited by the document's owner
'hidden', // hidden: true means the field is never shown in a form no matter what
'mustComplete', // mustComplete: true means the field is required to have a complete profile
'profile', // profile: true means the field is shown on user profiles
'template', // legacy template used to display the field; backward compatibility (not used anymore)
'form', // form placeholder
'autoform', // legacy form placeholder; backward compatibility (not used anymore)
'control', // SmartForm control (String or React component)
'order', // position in the form
'group', // form fieldset group
'onInsert', // field insert callback
'onEdit', // field edit callback
'onRemove', // field remove callback
'viewableBy',
'insertableBy',
'editableBy',
'resolveAs',
'limit',
2017-08-02 16:18:34 +09:00
'searchable',
'default',
'description',
]);
2016-02-16 15:08:30 +09:00
2018-01-25 15:03:03 -06:00
// eslint-disable-next-line no-undef
export default Vulcan;