Default Site customisation and new Settings space (#91)

This commit is contained in:
jc21
2019-03-04 21:19:36 +10:00
committed by GitHub
parent 6f1d38a0e2
commit 133d66c2fe
31 changed files with 893 additions and 15 deletions

View File

@ -0,0 +1,25 @@
'use strict';
const _ = require('underscore');
const Backbone = require('backbone');
const model = Backbone.Model.extend({
idAttribute: 'id',
defaults: function () {
return {
id: undefined,
name: '',
description: '',
value: null,
meta: []
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};