2015-02-12 23:22:32 -05:00
|
|
|
import DS from 'ember-data';
|
2014-06-24 01:33:24 -05:00
|
|
|
import ValidationEngine from 'ghost/mixins/validation-engine';
|
2014-07-05 15:44:19 -05:00
|
|
|
import NProgressSaveMixin from 'ghost/mixins/nprogress-save';
|
2014-06-24 01:33:24 -05:00
|
|
|
|
2014-07-05 15:44:19 -05:00
|
|
|
var Setting = DS.Model.extend(NProgressSaveMixin, ValidationEngine, {
|
2014-06-24 01:33:24 -05:00
|
|
|
validationType: 'setting',
|
|
|
|
|
2014-06-19 21:29:49 -05: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'),
|
2014-07-31 14:36:20 -05:00
|
|
|
availableThemes: DS.attr(),
|
|
|
|
ghost_head: DS.attr('string'),
|
2014-12-14 12:56:04 -05:00
|
|
|
ghost_foot: DS.attr('string'),
|
2015-01-11 14:55:52 -05:00
|
|
|
labs: DS.attr('string'),
|
|
|
|
navigation: DS.attr('string')
|
2014-06-19 21:29:49 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
export default Setting;
|