Ghost/ghost/admin/app/models/setting.js

26 lines
741 B
JavaScript
Raw Normal View History

2015-02-13 07:22:32 +03:00
import DS from 'ember-data';
import ValidationEngine from 'ghost/mixins/validation-engine';
var Setting = DS.Model.extend(ValidationEngine, {
validationType: 'setting',
title: DS.attr('string'),
description: DS.attr('string'),
logo: DS.attr('string'),
cover: DS.attr('string'),
defaultLang: DS.attr('string'),
postsPerPage: DS.attr('number'),
forceI18n: DS.attr('boolean'),
permalinks: DS.attr('string'),
activeTheme: DS.attr('string'),
availableThemes: DS.attr(),
ghost_head: DS.attr('string'),
2014-12-14 20:56:04 +03:00
ghost_foot: DS.attr('string'),
labs: DS.attr('string'),
navigation: DS.attr('string'),
isPrivate: DS.attr('boolean'),
password: DS.attr('string')
});
export default Setting;