2014-06-24 10:33:24 +04:00
|
|
|
import ValidationEngine from 'ghost/mixins/validation-engine';
|
2014-07-06 00:44:19 +04:00
|
|
|
import NProgressSaveMixin from 'ghost/mixins/nprogress-save';
|
2014-06-24 10:33:24 +04:00
|
|
|
|
2014-07-06 00:44:19 +04:00
|
|
|
var Setting = DS.Model.extend(NProgressSaveMixin, ValidationEngine, {
|
2014-06-24 10:33:24 +04:00
|
|
|
validationType: 'setting',
|
|
|
|
|
2014-06-20 06:29:49 +04:00
|
|
|
title: DS.attr('string'),
|
|
|
|
description: DS.attr('string'),
|
|
|
|
email: 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()
|
|
|
|
});
|
|
|
|
|
|
|
|
export default Setting;
|