nav tabs on admin dashboard

This commit is contained in:
2019-03-07 00:20:34 -06:00
parent f73d6ae228
commit e4f473f376
11661 changed files with 216240 additions and 1544253 deletions
+4 -5
View File
@@ -4,12 +4,12 @@ module.exports = function defFunc(ajv) {
defFunc.definition = {
type: 'object',
macro: function (schema) {
if (schema.length == 0) return {};
if (schema.length == 1) return { not: { required: schema } };
if (schema.length == 0) return true;
if (schema.length == 1) return {not: {required: schema}};
var schemas = schema.map(function (prop) {
return { required: [prop] };
return {required: [prop]};
});
return { not: { anyOf: schemas } };
return {not: {anyOf: schemas}};
},
metaSchema: {
type: 'array',
@@ -22,4 +22,3 @@ module.exports = function defFunc(ajv) {
ajv.addKeyword('prohibited', defFunc.definition);
return ajv;
};