2016-11-14 14:16:51 +01:00
|
|
|
/* eslint-disable camelcase */
|
2016-01-12 20:23:01 +01:00
|
|
|
import Model from 'ember-data/model';
|
|
|
|
import attr from 'ember-data/attr';
|
2016-05-24 14:06:59 +02:00
|
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
2014-06-24 08:33:24 +02:00
|
|
|
|
2015-10-28 12:36:45 +01:00
|
|
|
export default Model.extend(ValidationEngine, {
|
2014-06-24 08:33:24 +02:00
|
|
|
validationType: 'setting',
|
|
|
|
|
2015-10-28 12:36:45 +01:00
|
|
|
title: attr('string'),
|
|
|
|
description: attr('string'),
|
|
|
|
logo: attr('string'),
|
|
|
|
cover: attr('string'),
|
|
|
|
defaultLang: attr('string'),
|
|
|
|
postsPerPage: attr('number'),
|
|
|
|
forceI18n: attr('boolean'),
|
|
|
|
permalinks: attr('string'),
|
|
|
|
activeTheme: attr('string'),
|
|
|
|
availableThemes: attr(),
|
2016-06-10 15:28:11 +02:00
|
|
|
activeTimezone: attr('string', {defaultValue: 'Etc/UTC'}),
|
2015-10-28 12:36:45 +01:00
|
|
|
ghost_head: attr('string'),
|
|
|
|
ghost_foot: attr('string'),
|
2016-05-16 20:16:40 +02:00
|
|
|
facebook: attr('facebook-url-user'),
|
2016-03-03 09:52:27 +01:00
|
|
|
twitter: attr('twitter-url-user'),
|
2015-10-28 12:36:45 +01:00
|
|
|
labs: attr('string'),
|
2016-04-26 11:45:59 +02:00
|
|
|
navigation: attr('navigation-settings'),
|
2015-10-28 12:36:45 +01:00
|
|
|
isPrivate: attr('boolean'),
|
2016-03-29 10:40:44 +02:00
|
|
|
password: attr('string'),
|
2017-01-20 10:33:54 +01:00
|
|
|
slack: attr('slack-settings'),
|
|
|
|
amp: attr('boolean')
|
2014-06-20 04:29:49 +02:00
|
|
|
});
|