Vulcan/packages/nova-lib/lib/config.js
Xavier Cazalot 7f99b48953 devel - revert commits related to simpl-schema (#1537)
* Revert "add note link to issue in collection2 on mutation insert, remove debug console logs on mutation edit"

This reverts commit 7a15103de7.

* Revert "node simpl-schema + collection2-core: fix vote by specifying the right type of the array (dont use blackbox in the end!)"

This reverts commit e894c3224c.

* Revert "add graphql date type (fix problem with node simple schema), fix an update bug on date picker,  add edit check on custom post item, add `blackbox: true` for arrays field (validation problem with simple-schema)"

This reverts commit 9d84fbec98.

* Revert "use node `simpl-schema` by aldeed to replace `meteor/aldeed:simple-schema` ; use the meteor collection2 core package as recommended"

This reverts commit 016935f4fa.

* revert before node-simple-schema, fix obj.hasOwnProperty undefined error thrown by simple-schema & collection2

* CustomPostsItem: check on renderActions; withDocument/List: pollInterval 20seconds by default; DateTime form component enhancement + GraphQLDate type
2017-01-11 18:02:12 +01:00

55 lines
1.6 KiB
JavaScript

import { SimpleSchema } from 'meteor/aldeed:simple-schema';
/**
* @summary Kick off the global namespace for Telescope.
* @namespace Telescope
*/
const Telescope = {};
Telescope.VERSION = '1.0.0';
// ------------------------------------- Schemas -------------------------------- //
SimpleSchema.extendOptions({
private: Match.Optional(Boolean),
editable: Match.Optional(Boolean), // editable: true means the field can be edited by the document's owner
hidden: Match.Optional(Boolean), // hidden: true means the field is never shown in a form no matter what
required: Match.Optional(Boolean), // required: true means the field is required to have a complete profile
profile: Match.Optional(Boolean), // profile: true means the field is shown on user profiles
template: Match.Optional(String), // legacy template used to display the field; backward compatibility (not used anymore)
form: Match.Optional(Object), // form placeholder
autoform: Match.Optional(Object), // legacy form placeholder; backward compatibility (not used anymore)
control: Match.Optional(Match.Any), // SmartForm control (String or React component)
order: Match.Optional(Number), // position in the form
group: Match.Optional(Object), // form fieldset group
preload: Match.Optional(Boolean),
});
// ------------------------------------- Statuses -------------------------------- //
Telescope.statuses = [
{
value: 1,
label: 'pending'
},
{
value: 2,
label: 'approved'
},
{
value: 3,
label: 'rejected'
},
{
value: 4,
label: 'spam'
},
{
value: 5,
label: 'deleted'
}
];
export default Telescope;