Updated simpl-schema and collection2, started untangling the mess that made

This commit is contained in:
Stefan Zermatten
2018-10-12 13:38:51 +02:00
parent e3065f089f
commit 53a1137848
23 changed files with 337 additions and 138 deletions

View File

@@ -0,0 +1,11 @@
import SimpleSchema from 'simpl-schema';
const ColorSchema = new SimpleSchema({
color: {
type: String,
defaultValue: "#9E9E9E",
// match hex colors of the form #A23 or #A23f56
regEx: /^#([a-f0-9]{3}){1,2}\b$/i,
},
});
export default ColorSchema;

View File

@@ -1,4 +1,5 @@
const deathSaveSchema = new SimpleSchema({
import SimpleSchema from 'simpl-schema';
const DeathSavesSchema = new SimpleSchema({
pass: {
type: Number,
min: 0,
@@ -21,4 +22,4 @@ const deathSaveSchema = new SimpleSchema({
},
});
export default deathSaveSchema;
export default DeathSavesSchema;